@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.095Z") public class CfnLayerVersion extends CfnResource implements IInspectable
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.sam.*; CfnLayerVersion cfnLayerVersion = CfnLayerVersion.Builder.create(this, "MyCfnLayerVersion") .compatibleRuntimes(List.of("compatibleRuntimes")) .contentUri("contentUri") .description("description") .layerName("layerName") .licenseInfo("licenseInfo") .retentionPolicy("retentionPolicy") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnLayerVersion.Builder
A fluent builder for
CfnLayerVersion . |
static interface |
CfnLayerVersion.S3LocationProperty
Example:
|
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
IConstruct.Jsii$Default
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
static java.lang.String |
REQUIRED_TRANSFORM
The `Transform` a template must use in order to use this resource.
|
Modifier | Constructor and Description |
---|---|
|
CfnLayerVersion(Construct scope,
java.lang.String id)
Create a new `AWS::Serverless::LayerVersion`.
|
|
CfnLayerVersion(Construct scope,
java.lang.String id,
CfnLayerVersionProps props)
Create a new `AWS::Serverless::LayerVersion`.
|
protected |
CfnLayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnLayerVersion(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
getCfnProperties() |
java.util.List<java.lang.String> |
getCompatibleRuntimes()
`AWS::Serverless::LayerVersion.CompatibleRuntimes`.
|
java.lang.Object |
getContentUri()
`AWS::Serverless::LayerVersion.ContentUri`.
|
java.lang.String |
getDescription()
`AWS::Serverless::LayerVersion.Description`.
|
java.lang.String |
getLayerName()
`AWS::Serverless::LayerVersion.LayerName`.
|
java.lang.String |
getLicenseInfo()
`AWS::Serverless::LayerVersion.LicenseInfo`.
|
java.lang.String |
getRetentionPolicy()
`AWS::Serverless::LayerVersion.RetentionPolicy`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
renderProperties(java.util.Map<java.lang.String,java.lang.Object> props) |
void |
setCompatibleRuntimes(java.util.List<java.lang.String> value)
`AWS::Serverless::LayerVersion.CompatibleRuntimes`.
|
void |
setContentUri(CfnLayerVersion.S3LocationProperty value)
`AWS::Serverless::LayerVersion.ContentUri`.
|
void |
setContentUri(IResolvable value)
`AWS::Serverless::LayerVersion.ContentUri`.
|
void |
setContentUri(java.lang.String value)
`AWS::Serverless::LayerVersion.ContentUri`.
|
void |
setDescription(java.lang.String value)
`AWS::Serverless::LayerVersion.Description`.
|
void |
setLayerName(java.lang.String value)
`AWS::Serverless::LayerVersion.LayerName`.
|
void |
setLicenseInfo(java.lang.String value)
`AWS::Serverless::LayerVersion.LicenseInfo`.
|
void |
setRetentionPolicy(java.lang.String value)
`AWS::Serverless::LayerVersion.RetentionPolicy`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
getRef
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
public static final java.lang.String CFN_RESOURCE_TYPE_NAME
public static final java.lang.String REQUIRED_TRANSFORM
protected CfnLayerVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public CfnLayerVersion(Construct scope, java.lang.String id, CfnLayerVersionProps props)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.props
- - resource properties.public CfnLayerVersion(Construct scope, java.lang.String id)
scope
- - scope in which this resource is defined. This parameter is required.id
- - scoped id of the resource. This parameter is required.public void inspect(TreeInspector inspector)
inspect
in interface IInspectable
inspector
- - tree inspector to collect and process attributes. This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> renderProperties(java.util.Map<java.lang.String,java.lang.Object> props)
renderProperties
in class CfnResource
props
- This parameter is required.protected java.util.Map<java.lang.String,java.lang.Object> getCfnProperties()
getCfnProperties
in class CfnResource
public java.util.List<java.lang.String> getCompatibleRuntimes()
public void setCompatibleRuntimes(java.util.List<java.lang.String> value)
public java.lang.Object getContentUri()
public void setContentUri(java.lang.String value)
public void setContentUri(IResolvable value)
public void setContentUri(CfnLayerVersion.S3LocationProperty value)
public java.lang.String getDescription()
public void setDescription(java.lang.String value)
public java.lang.String getLayerName()
public void setLayerName(java.lang.String value)
public java.lang.String getLicenseInfo()
public void setLicenseInfo(java.lang.String value)
public java.lang.String getRetentionPolicy()
public void setRetentionPolicy(java.lang.String value)