Interface ICfnVersionProps
Properties for defining a CfnVersion
.
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnVersionProps
Syntax (vb)
Public Interface 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 policy;
var cfnVersionProps = new CfnVersionProps {
FunctionName = "functionName",
// the properties below are optional
CodeSha256 = "codeSha256",
Description = "description",
Policy = policy,
ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigurationProperty {
ProvisionedConcurrentExecutions = 123
},
RuntimePolicy = new RuntimePolicyProperty {
UpdateRuntimeOn = "updateRuntimeOn",
// the properties below are optional
RuntimeVersionArn = "runtimeVersionArn"
}
};
Synopsis
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. |
Policy | The resource policy of your function. |
ProvisionedConcurrencyConfig | Specifies a provisioned concurrency configuration for a function's version. |
RuntimePolicy | Runtime Management Config of a function. |
Properties
CodeSha256
Only publish a version if the hash value matches the value that's specified.
virtual string CodeSha256 { get; }
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.
virtual string Description { get; }
Property Value
System.String
Remarks
Updates are not supported for this property.
FunctionName
The name or ARN of the Lambda function.
string FunctionName { get; }
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.
Policy
The resource policy of your function.
virtual object Policy { get; }
Property Value
System.Object
Remarks
ProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version.
virtual object ProvisionedConcurrencyConfig { get; }
Property Value
System.Object
Remarks
Updates are not supported for this property.
RuntimePolicy
Runtime Management Config of a function.
virtual object RuntimePolicy { get; }
Property Value
System.Object