Class VersionProps
Properties for a new Lambda version.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class VersionProps : Object, IVersionProps, IVersionOptions, IEventInvokeConfigOptions
Syntax (vb)
Public Class VersionProps
Inherits Object
Implements IVersionProps, IVersionOptions, IEventInvokeConfigOptions
Remarks
ExampleMetadata: infused
Examples
Function fn;
var version = new Version(this, "MyVersion", new VersionProps {
Lambda = fn
});
Synopsis
Constructors
VersionProps() |
Properties
CodeSha256 | SHA256 of the version of the Lambda source code. |
Description | Description of the version. |
Lambda | Function to get the value of. |
MaxEventAge | The maximum age of a request that Lambda sends to a function for processing. |
OnFailure | The destination for failed invocations. |
OnSuccess | The destination for successful invocations. |
ProvisionedConcurrentExecutions | Specifies a provisioned concurrency configuration for a function's version. |
RemovalPolicy | Whether to retain old versions of this function when a new version is created. |
RetryAttempts | The maximum number of times to retry when the function returns an error. |
Constructors
VersionProps()
public VersionProps()
Properties
CodeSha256
SHA256 of the version of the Lambda source code.
public string CodeSha256 { get; set; }
Property Value
System.String
Remarks
Specify to validate that you're deploying the right version.
Default: No validation is performed
Description
Description of the version.
public string Description { get; set; }
Property Value
System.String
Remarks
Default: Description of the Lambda
Lambda
MaxEventAge
The maximum age of a request that Lambda sends to a function for processing.
public Duration MaxEventAge { get; set; }
Property Value
Remarks
Minimum: 60 seconds Maximum: 6 hours
Default: Duration.hours(6)
OnFailure
The destination for failed invocations.
public IDestination OnFailure { get; set; }
Property Value
Remarks
Default: - no destination
OnSuccess
The destination for successful invocations.
public IDestination OnSuccess { get; set; }
Property Value
Remarks
Default: - no destination
ProvisionedConcurrentExecutions
Specifies a provisioned concurrency configuration for a function's version.
public Nullable<double> ProvisionedConcurrentExecutions { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: No provisioned concurrency
RemovalPolicy
Whether to retain old versions of this function when a new version is created.
public Nullable<RemovalPolicy> RemovalPolicy { get; set; }
Property Value
System.Nullable<RemovalPolicy>
Remarks
Default: RemovalPolicy.DESTROY
RetryAttempts
The maximum number of times to retry when the function returns an error.
public Nullable<double> RetryAttempts { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Minimum: 0 Maximum: 2
Default: 2