Class CfnVersion
The AWS::Lambda::Version
resource creates a version from the current code and configuration of a function. Use versions to create a snapshot of your function code and configuration that doesn't change.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnVersion : CfnResource, IInspectable
Syntax (vb)
Public Class CfnVersion
Inherits CfnResource
Implements IInspectable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-version.html
CloudformationResource: AWS::Lambda::Version
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 cfnVersion = new CfnVersion(this, "MyCfnVersion", 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
CfnVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnVersion(Construct, String, ICfnVersionProps) |
Properties
AttrFunctionArn | The ARN of the version. |
AttrVersion | The version number. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
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. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnVersion(Construct, String, ICfnVersionProps)
public CfnVersion(Construct scope, string id, ICfnVersionProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnVersionProps
Resource properties.
Properties
AttrFunctionArn
The ARN of the version.
public virtual string AttrFunctionArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: FunctionArn
AttrVersion
The version number.
public virtual string AttrVersion { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Version
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
CodeSha256
Only publish a version if the hash value matches the value that's specified.
public virtual string CodeSha256 { get; set; }
Property Value
System.String
Description
A description for the version to override the description in the function configuration.
public virtual string Description { get; set; }
Property Value
System.String
FunctionName
The name or ARN of the Lambda function.
public virtual string FunctionName { get; set; }
Property Value
System.String
ProvisionedConcurrencyConfig
Specifies a provisioned concurrency configuration for a function's version.
public virtual object ProvisionedConcurrencyConfig { get; set; }
Property Value
System.Object
RuntimePolicy
Runtime Management Config of a function.
public virtual object RuntimePolicy { get; set; }
Property Value
System.Object
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>