Class CfnLayerVersion
A CloudFormation AWS::Serverless::LayerVersion
.
Inherited Members
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.AWS.SAM.dll
Syntax (csharp)
public class CfnLayerVersion : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnLayerVersion
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
CloudformationResource: AWS::Serverless::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.SAM;
var cfnLayerVersion = new CfnLayerVersion(this, "MyCfnLayerVersion", new CfnLayerVersionProps {
CompatibleRuntimes = new [] { "compatibleRuntimes" },
ContentUri = "contentUri",
Description = "description",
LayerName = "layerName",
LicenseInfo = "licenseInfo",
RetentionPolicy = "retentionPolicy"
});
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 | |
CompatibleRuntimes |
|
ContentUri |
|
Description |
|
LayerName |
|
LicenseInfo |
|
REQUIRED_TRANSFORM | The |
RetentionPolicy |
|
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnLayerVersion(Construct, String, ICfnLayerVersionProps)
Create a new AWS::Serverless::LayerVersion
.
public CfnLayerVersion(Construct scope, string id, ICfnLayerVersionProps props = null)
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
CompatibleRuntimes
AWS::Serverless::LayerVersion.CompatibleRuntimes
.
public virtual string[] CompatibleRuntimes { get; set; }
Property Value
System.String[]
Remarks
ContentUri
AWS::Serverless::LayerVersion.ContentUri
.
public virtual object ContentUri { get; set; }
Property Value
System.Object
Remarks
Description
AWS::Serverless::LayerVersion.Description
.
public virtual string Description { get; set; }
Property Value
System.String
Remarks
LayerName
AWS::Serverless::LayerVersion.LayerName
.
public virtual string LayerName { get; set; }
Property Value
System.String
Remarks
LicenseInfo
AWS::Serverless::LayerVersion.LicenseInfo
.
public virtual string LicenseInfo { get; set; }
Property Value
System.String
Remarks
REQUIRED_TRANSFORM
The Transform
a template must use in order to use this resource.
public static string REQUIRED_TRANSFORM { get; }
Property Value
System.String
RetentionPolicy
AWS::Serverless::LayerVersion.RetentionPolicy
.
public virtual string RetentionPolicy { 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>