import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manages an AWS Lambda Web function revision. A revision represents a specific version of the function code and configuration and is immutable (updating any attribute recreates the resource). * * ## Example Usage * * ### Basic Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const exampleFunction = new aws.lambdaweb.Function("example", {functionName: "example-function"}); * const example = new aws.lambdaweb.FunctionRevision("example", { * buildConfig: { * runtimeConfig: { * runtime: "nodejs24.x", * }, * codeConfig: { * s3Object: { * bucket: exampleAwsS3Object.bucket, * key: exampleAwsS3Object.key, * }, * }, * }, * serviceConfig: { * executionRoleArn: exampleAwsIamRole.arn, * }, * functionName: exampleFunction.functionName, * }); * ``` * * ## Import * * ### Identity Schema * * #### Required * * * `functionName` (String) Web function name. * * `revisionId` (String) ID of the revision. * * #### Optional * * * `accountId` (String) AWS Account where this resource is managed. * * `region` (String) Region where this resource is managed. * * Using `pulumi import`, import a revision using `functionName` and `revisionId` separated by a comma (`,`). For example: * * ```sh * $ pulumi import aws:lambdaweb/functionRevision:FunctionRevision example example-function,rev-sglsh * ``` */ export declare class FunctionRevision extends pulumi.CustomResource { /** * Get an existing FunctionRevision resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FunctionRevisionState, opts?: pulumi.CustomResourceOptions): FunctionRevision; /** * Check whether an existing FunctionRevision resource with the given ID exists. * * @param id The _unique_ provider ID of the resource to check. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static exists(id: pulumi.Input, state?: FunctionRevisionState, opts?: pulumi.CustomResourceOptions): pulumi.Output; /** * Returns true if the given object is an instance of FunctionRevision. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FunctionRevision; /** * ARN of the revision. */ readonly arn: pulumi.Output; /** * Build configuration for the revision. See `buildConfig` Block below. */ readonly buildConfig: pulumi.Output; /** * Description of the revision. */ readonly description: pulumi.Output; /** * Web function name. */ readonly functionName: pulumi.Output; /** * ARN of the KMS key used to encrypt the revision's code and environment variables. */ readonly kmsKeyArn: pulumi.Output; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ readonly region: pulumi.Output; /** * ID of the revision. */ readonly revisionId: pulumi.Output; /** * Service configuration for the revision. See `serviceConfig` Block below. * * The following arguments are optional: */ readonly serviceConfig: pulumi.Output; readonly timeouts: pulumi.Output; /** * Create a FunctionRevision resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FunctionRevisionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FunctionRevision resources. */ export interface FunctionRevisionState { /** * ARN of the revision. */ arn?: pulumi.Input; /** * Build configuration for the revision. See `buildConfig` Block below. */ buildConfig?: pulumi.Input; /** * Description of the revision. */ description?: pulumi.Input; /** * Web function name. */ functionName?: pulumi.Input; /** * ARN of the KMS key used to encrypt the revision's code and environment variables. */ kmsKeyArn?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * ID of the revision. */ revisionId?: pulumi.Input; /** * Service configuration for the revision. See `serviceConfig` Block below. * * The following arguments are optional: */ serviceConfig?: pulumi.Input; timeouts?: pulumi.Input; } /** * The set of arguments for constructing a FunctionRevision resource. */ export interface FunctionRevisionArgs { /** * Build configuration for the revision. See `buildConfig` Block below. */ buildConfig: pulumi.Input; /** * Description of the revision. */ description?: pulumi.Input; /** * Web function name. */ functionName: pulumi.Input; /** * ARN of the KMS key used to encrypt the revision's code and environment variables. */ kmsKeyArn?: pulumi.Input; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input; /** * Service configuration for the revision. See `serviceConfig` Block below. * * The following arguments are optional: */ serviceConfig: pulumi.Input; timeouts?: pulumi.Input; } //# sourceMappingURL=functionRevision.d.ts.map