Class CfnVersion
A CloudFormation AWS::Lambda::Version
.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class CfnVersion : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnVersion
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
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.
CloudformationResource: AWS::Lambda::Version
Link: 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 cfnVersion = new CfnVersion(this, "MyCfnVersion", new CfnVersionProps {
FunctionName = "functionName",
// the properties below are optional
CodeSha256 = "codeSha256",
Description = "description",
ProvisionedConcurrencyConfig = new ProvisionedConcurrencyConfigurationProperty {
ProvisionedConcurrentExecutions = 123
}
});
Synopsis
Constructors
CfnVersion(Construct, String, ICfnVersionProps) | Create a new |
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 |
Properties
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 of the Lambda function. |
ProvisionedConcurrencyConfig | Specifies a provisioned concurrency configuration for a function's version. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnVersion(Construct, String, ICfnVersionProps)
Create a new AWS::Lambda::Version
.
public CfnVersion(Construct scope, string id, ICfnVersionProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnVersionProps
- resource properties.
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
Properties
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
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 virtual string Description { get; set; }
Property Value
System.String
Remarks
Updates are not supported for this property.
FunctionName
The name of the Lambda function.
public virtual 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 virtual object ProvisionedConcurrencyConfig { get; set; }
Property Value
System.Object
Remarks
Updates are not supported for this property.
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>