Class CfnVersionProps
Properties for defining a CfnVersion
.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVersionProps : Object, ICfnVersionProps
Syntax (vb)
Public Class CfnVersionProps
Inherits Object
Implements ICfnVersionProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;
var cfnVersionProps = new CfnVersionProps {
FunctionName = "functionName",
// the properties below are optional
CodeSha256 = "codeSha256",
Description = "description",
ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigurationProperty {
ProvisionedConcurrentExecutions = 123
},
RuntimePolicy = new RuntimePolicyProperty {
UpdateRuntimeOn = "updateRuntimeOn",
// the properties below are optional
RuntimeVersionArn = "runtimeVersionArn"
}
};
Synopsis
Constructors
CfnVersionProps() |
Properties
CodeSha256 | Only publish a version if the hash value matches the value that's specified. |
Description | A description for the version to override the description in the function configuration. |
FunctionName | The name or ARN of the Lambda function. |
ProvisionedConcurrencyConfig | Specifies a provisioned concurrency configuration for a function's version. |
RuntimePolicy | Runtime Management Config of a function. |
Constructors
CfnVersionProps()
public CfnVersionProps()
Properties
CodeSha256
Only publish a version if the hash value matches the value that's specified.
public string CodeSha256 { get; set; }
Property Value
System.String
Remarks
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
A description for the version to override the description in the function configuration.
public string Description { get; set; }
Property Value
System.String
Remarks
Updates are not supported for this property.
FunctionName
The name or ARN of the Lambda function.
public string FunctionName { get; set; }
Property Value
System.String
Remarks
Name formats - Function name - MyFunction
.
The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.
ProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version.
public object ProvisionedConcurrencyConfig { get; set; }
Property Value
System.Object
Remarks
Updates are not supported for this property.
RuntimePolicy
Runtime Management Config of a function.
public object RuntimePolicy { get; set; }
Property Value
System.Object