Class CfnLayerVersion
The AWS::Lambda::LayerVersion
resource creates a Lambda layer from a ZIP archive.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnLayerVersion : CfnResource, IInspectable
Syntax (vb)
Public Class CfnLayerVersion
Inherits CfnResource
Implements IInspectable
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.html
CloudformationResource: AWS::Lambda::LayerVersion
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 cfnLayerVersion = new CfnLayerVersion(this, "MyCfnLayerVersion", new CfnLayerVersionProps {
Content = new ContentProperty {
S3Bucket = "s3Bucket",
S3Key = "s3Key",
// the properties below are optional
S3ObjectVersion = "s3ObjectVersion"
},
// the properties below are optional
CompatibleArchitectures = new [] { "compatibleArchitectures" },
CompatibleRuntimes = new [] { "compatibleRuntimes" },
Description = "description",
LayerName = "layerName",
LicenseInfo = "licenseInfo"
});
Synopsis
Constructors
CfnLayerVersion(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnLayerVersion(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
CfnLayerVersion(Construct, String, ICfnLayerVersionProps) |
Properties
AttrLayerVersionArn | The ARN of the layer version. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
CompatibleArchitectures | A list of compatible instruction set architectures . |
CompatibleRuntimes | A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions . |
Content | The function layer archive. |
Description | The description of the version. |
LayerName | The name or Amazon Resource Name (ARN) of the layer. |
LicenseInfo | The layer's software license. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnLayerVersion(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnLayerVersion(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnLayerVersion(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnLayerVersion(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
CfnLayerVersion(Construct, String, ICfnLayerVersionProps)
public CfnLayerVersion(Construct scope, string id, ICfnLayerVersionProps 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 ICfnLayerVersionProps
Resource properties.
Properties
AttrLayerVersionArn
The ARN of the layer version.
public virtual string AttrLayerVersionArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: LayerVersionArn
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
CompatibleArchitectures
A list of compatible instruction set architectures .
public virtual string[] CompatibleArchitectures { get; set; }
Property Value
System.String[]
CompatibleRuntimes
A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .
public virtual string[] CompatibleRuntimes { get; set; }
Property Value
System.String[]
Content
The function layer archive.
public virtual object Content { get; set; }
Property Value
System.Object
Description
The description of the version.
public virtual string Description { get; set; }
Property Value
System.String
LayerName
The name or Amazon Resource Name (ARN) of the layer.
public virtual string LayerName { get; set; }
Property Value
System.String
LicenseInfo
The layer's software license.
public virtual string LicenseInfo { get; set; }
Property Value
System.String
Remarks
It can be any of the following:.
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>