Class CfnLayerVersion
A CloudFormation AWS::Lambda::LayerVersion
.
Inherited Members
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class CfnLayerVersion : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnLayerVersion
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
The AWS::Lambda::LayerVersion
resource creates a Lambda layer from a ZIP archive.
CloudformationResource: AWS::Lambda::LayerVersion
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-layerversion.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 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(Construct, String, ICfnLayerVersionProps) | Create a new |
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 |
Properties
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. It can be any of the following:. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnLayerVersion(Construct, String, ICfnLayerVersionProps)
Create a new AWS::Lambda::LayerVersion
.
public CfnLayerVersion(Construct scope, string id, ICfnLayerVersionProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnLayerVersionProps
- resource properties.
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
Properties
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[]
Remarks
CompatibleRuntimes
A list of compatible function runtimes . Used for filtering with ListLayers and ListLayerVersions .
public virtual string[] CompatibleRuntimes { get; set; }
Property Value
System.String[]
Remarks
Content
The function layer archive.
public virtual object Content { get; set; }
Property Value
System.Object
Remarks
Description
The description of the version.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
LayerName
The name or Amazon Resource Name (ARN) of the layer.
public virtual string LayerName { get; set; }
Property Value
System.String
Remarks
LicenseInfo
The layer's software license. It can be any of the following:.
public virtual string LicenseInfo { get; set; }
Property Value
System.String
Remarks
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>