We recommend new projects start with resources from the AWS provider.
aws-native.lambda.Version
Explore with Pulumi AI
We recommend new projects start with resources from the AWS provider.
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,
            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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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.
- ProvisionedConcurrency Pulumi.Config Aws Native. Lambda. Inputs. Version Provisioned Concurrency Configuration 
- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- RuntimePolicy Pulumi.Aws Native. Lambda. Inputs. Version Runtime Policy 
- 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.
- ProvisionedConcurrency VersionConfig Provisioned Concurrency Configuration Args 
- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- RuntimePolicy VersionRuntime Policy Args 
- 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.
- provisionedConcurrency VersionConfig Provisioned Concurrency Configuration 
- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- runtimePolicy VersionRuntime Policy 
- 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.
- provisionedConcurrency VersionConfig Provisioned Concurrency Configuration 
- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- runtimePolicy VersionRuntime Policy 
- 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.
- provisioned_concurrency_ lambda_.config Version Provisioned Concurrency Configuration Args 
- Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- runtime_policy lambda_.Version Runtime Policy Args 
- 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.
- provisionedConcurrency Property MapConfig 
- 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        
- ProvisionedConcurrent intExecutions 
- The amount of provisioned concurrency to allocate for the version.
- ProvisionedConcurrent intExecutions 
- The amount of provisioned concurrency to allocate for the version.
- provisionedConcurrent IntegerExecutions 
- The amount of provisioned concurrency to allocate for the version.
- provisionedConcurrent numberExecutions 
- The amount of provisioned concurrency to allocate for the version.
- provisioned_concurrent_ intexecutions 
- The amount of provisioned concurrency to allocate for the version.
- provisionedConcurrent NumberExecutions 
- The amount of provisioned concurrency to allocate for the version.
VersionRuntimePolicy, VersionRuntimePolicyArgs      
- UpdateRuntime stringOn 
- The runtime update mode.
- RuntimeVersion stringArn 
- 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.
- UpdateRuntime stringOn 
- The runtime update mode.
- RuntimeVersion stringArn 
- 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.
- updateRuntime StringOn 
- The runtime update mode.
- runtimeVersion StringArn 
- 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.
- updateRuntime stringOn 
- The runtime update mode.
- runtimeVersion stringArn 
- 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_ stron 
- The runtime update mode.
- runtime_version_ strarn 
- 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.
- updateRuntime StringOn 
- The runtime update mode.
- runtimeVersion StringArn 
- 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
We recommend new projects start with resources from the AWS provider.