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:
- Function
Name string - The name of the Lambda function.
- Code
Sha256 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.
- Provisioned
Concurrency 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.
- Runtime
Policy Pulumi.Aws Native. Lambda. Inputs. Version Runtime Policy - Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
- Function
Name string - The name of the Lambda function.
- Code
Sha256 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.
- Provisioned
Concurrency VersionConfig Provisioned Concurrency Configuration Args - Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- Runtime
Policy VersionRuntime Policy Args - Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
- function
Name String - The name of the Lambda function.
- code
Sha256 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.
- provisioned
Concurrency VersionConfig Provisioned Concurrency Configuration - Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- runtime
Policy VersionRuntime Policy - Specifies the runtime management configuration of a function. Displays runtimeVersionArn only for Manual.
- function
Name string - The name of the Lambda function.
- code
Sha256 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.
- provisioned
Concurrency VersionConfig Provisioned Concurrency Configuration - Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- runtime
Policy 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.
- function
Name String - The name of the Lambda function.
- code
Sha256 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.
- provisioned
Concurrency Property MapConfig - Specifies a provisioned concurrency configuration for a function's version. Updates are not supported for this property.
- runtime
Policy 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:
- Function
Arn string - The ARN of the version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Version
Value string - The version number.
- Function
Arn string - The ARN of the version.
- Id string
- The provider-assigned unique ID for this managed resource.
- Version string
- The version number.
- function
Arn String - The ARN of the version.
- id String
- The provider-assigned unique ID for this managed resource.
- version String
- The version number.
- function
Arn 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.
- function
Arn 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
- Provisioned
Concurrent intExecutions - The amount of provisioned concurrency to allocate for the version.
- Provisioned
Concurrent intExecutions - The amount of provisioned concurrency to allocate for the version.
- provisioned
Concurrent IntegerExecutions - The amount of provisioned concurrency to allocate for the version.
- provisioned
Concurrent numberExecutions - The amount of provisioned concurrency to allocate for the version.
- provisioned_
concurrent_ intexecutions - The amount of provisioned concurrency to allocate for the version.
- provisioned
Concurrent NumberExecutions - The amount of provisioned concurrency to allocate for the version.
VersionRuntimePolicy, VersionRuntimePolicyArgs
- Update
Runtime stringOn - The runtime update mode.
- Runtime
Version 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 stringOn - The runtime update mode.
- Runtime
Version 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 StringOn - The runtime update mode.
- runtime
Version 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 stringOn - The runtime update mode.
- runtime
Version 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.
- update
Runtime StringOn - The runtime update mode.
- runtime
Version 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.