1. Packages
  2. AWS Native
  3. API Docs
  4. lambda
  5. Version

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

aws-native.lambda.Version

Explore with Pulumi AI

aws-native logo

AWS Native is in preview. AWS Classic is fully supported.

AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi

    Resource Type definition for AWS::Lambda::Version

    Create Version Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Version(name: string, args: VersionArgs, opts?: CustomResourceOptions);
    @overload
    def Version(resource_name: str,
                args: VersionArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Version(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                function_name: Optional[str] = None,
                code_sha256: Optional[str] = None,
                description: Optional[str] = None,
                policy: Optional[Any] = None,
                provisioned_concurrency_config: Optional[_lambda_.VersionProvisionedConcurrencyConfigurationArgs] = None,
                runtime_policy: Optional[_lambda_.VersionRuntimePolicyArgs] = None)
    func NewVersion(ctx *Context, name string, args VersionArgs, opts ...ResourceOption) (*Version, error)
    public Version(string name, VersionArgs args, CustomResourceOptions? opts = null)
    public Version(String name, VersionArgs args)
    public Version(String name, VersionArgs args, CustomResourceOptions options)
    
    type: aws-native:lambda:Version
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args VersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args VersionArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args VersionArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VersionArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VersionArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Version Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Version resource accepts the following input properties:

    FunctionName string
    The name of the Lambda function.
    CodeSha256 string
    Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
    Description string
    A description for the version to override the description in the function configuration. Updates are not supported for this property.
    Policy object

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    ProvisionedConcurrencyConfig Pulumi.AwsNative.Lambda.Inputs.VersionProvisionedConcurrencyConfiguration
    Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
    RuntimePolicy Pulumi.AwsNative.Lambda.Inputs.VersionRuntimePolicy
    Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
    FunctionName string
    The name of the Lambda function.
    CodeSha256 string
    Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
    Description string
    A description for the version to override the description in the function configuration. Updates are not supported for this property.
    Policy interface{}

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    ProvisionedConcurrencyConfig VersionProvisionedConcurrencyConfigurationArgs
    Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
    RuntimePolicy VersionRuntimePolicyArgs
    Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
    functionName String
    The name of the Lambda function.
    codeSha256 String
    Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
    description String
    A description for the version to override the description in the function configuration. Updates are not supported for this property.
    policy Object

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    provisionedConcurrencyConfig VersionProvisionedConcurrencyConfiguration
    Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
    runtimePolicy VersionRuntimePolicy
    Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
    functionName string
    The name of the Lambda function.
    codeSha256 string
    Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
    description string
    A description for the version to override the description in the function configuration. Updates are not supported for this property.
    policy any

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    provisionedConcurrencyConfig VersionProvisionedConcurrencyConfiguration
    Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
    runtimePolicy VersionRuntimePolicy
    Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
    function_name str
    The name of the Lambda function.
    code_sha256 str
    Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
    description str
    A description for the version to override the description in the function configuration. Updates are not supported for this property.
    policy Any

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    provisioned_concurrency_config lambda_.VersionProvisionedConcurrencyConfigurationArgs
    Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
    runtime_policy lambda_.VersionRuntimePolicyArgs
    Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
    functionName String
    The name of the Lambda function.
    codeSha256 String
    Only publish a version if the hash value matches the value that's specified. Use this option to avoid publishing a version if the function code has changed since you last updated it. Updates are not supported for this property.
    description String
    A description for the version to override the description in the function configuration. Updates are not supported for this property.
    policy Any

    The resource policy of your function

    Search the CloudFormation User Guide for AWS::Lambda::Version for more information about the expected schema for this property.

    provisionedConcurrencyConfig Property Map
    Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
    runtimePolicy Property Map
    Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Version resource produces the following output properties:

    FunctionArn string
    The ARN of the version.
    Id string
    The provider-assigned unique ID for this managed resource.
    VersionValue string
    The version number.
    FunctionArn string
    The ARN of the version.
    Id string
    The provider-assigned unique ID for this managed resource.
    Version string
    The version number.
    functionArn String
    The ARN of the version.
    id String
    The provider-assigned unique ID for this managed resource.
    version String
    The version number.
    functionArn string
    The ARN of the version.
    id string
    The provider-assigned unique ID for this managed resource.
    version string
    The version number.
    function_arn str
    The ARN of the version.
    id str
    The provider-assigned unique ID for this managed resource.
    version str
    The version number.
    functionArn String
    The ARN of the version.
    id String
    The provider-assigned unique ID for this managed resource.
    version String
    The version number.

    Supporting Types

    VersionProvisionedConcurrencyConfiguration, VersionProvisionedConcurrencyConfigurationArgs

    ProvisionedConcurrentExecutions int
    The amount of provisioned concurrency to allocate for the version.
    ProvisionedConcurrentExecutions int
    The amount of provisioned concurrency to allocate for the version.
    provisionedConcurrentExecutions Integer
    The amount of provisioned concurrency to allocate for the version.
    provisionedConcurrentExecutions number
    The amount of provisioned concurrency to allocate for the version.
    provisioned_concurrent_executions int
    The amount of provisioned concurrency to allocate for the version.
    provisionedConcurrentExecutions Number
    The amount of provisioned concurrency to allocate for the version.

    VersionRuntimePolicy, VersionRuntimePolicyArgs

    UpdateRuntimeOn string
    The runtime update mode.
    RuntimeVersionArn string
    The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
    UpdateRuntimeOn string
    The runtime update mode.
    RuntimeVersionArn string
    The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
    updateRuntimeOn String
    The runtime update mode.
    runtimeVersionArn String
    The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
    updateRuntimeOn string
    The runtime update mode.
    runtimeVersionArn string
    The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
    update_runtime_on str
    The runtime update mode.
    runtime_version_arn str
    The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.
    updateRuntimeOn String
    The runtime update mode.
    runtimeVersionArn String
    The ARN of the runtime the function is configured to use. If the runtime update mode is manual, the ARN is returned, otherwise null is returned.

    Package Details

    Repository
    AWS Native pulumi/pulumi-aws-native
    License
    Apache-2.0
    aws-native logo

    AWS Native is in preview. AWS Classic is fully supported.

    AWS Native v0.109.0 published on Wednesday, Jun 26, 2024 by Pulumi