@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:40.095Z") @Stability(value=Stable) 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:
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$ProxyIConstruct.Jsii$Default| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
static String |
REQUIRED_TRANSFORM
The `Transform` a template must use in order to use this resource.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnLayerVersion(Construct scope,
String id)
Create a new `AWS::Serverless::LayerVersion`.
|
|
CfnLayerVersion(Construct scope,
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 Map<String,Object> |
getCfnProperties() |
List<String> |
getCompatibleRuntimes()
`AWS::Serverless::LayerVersion.CompatibleRuntimes`.
|
Object |
getContentUri()
`AWS::Serverless::LayerVersion.ContentUri`.
|
String |
getDescription()
`AWS::Serverless::LayerVersion.Description`.
|
String |
getLayerName()
`AWS::Serverless::LayerVersion.LayerName`.
|
String |
getLicenseInfo()
`AWS::Serverless::LayerVersion.LicenseInfo`.
|
String |
getRetentionPolicy()
`AWS::Serverless::LayerVersion.RetentionPolicy`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCompatibleRuntimes(List<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(String value)
`AWS::Serverless::LayerVersion.ContentUri`.
|
void |
setDescription(String value)
`AWS::Serverless::LayerVersion.Description`.
|
void |
setLayerName(String value)
`AWS::Serverless::LayerVersion.LayerName`.
|
void |
setLicenseInfo(String value)
`AWS::Serverless::LayerVersion.LicenseInfo`.
|
void |
setRetentionPolicy(String value)
`AWS::Serverless::LayerVersion.RetentionPolicy`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdgetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
@Stability(value=Stable) public static final String REQUIRED_TRANSFORM
protected CfnLayerVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLayerVersion(@NotNull
Construct scope,
@NotNull
String id,
@Nullable
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.@Stability(value=Stable)
public CfnLayerVersion(@NotNull
Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public List<String> getCompatibleRuntimes()
@Stability(value=Stable)
public void setCompatibleRuntimes(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public Object getContentUri()
@Stability(value=Stable)
public void setContentUri(@Nullable
String value)
@Stability(value=Stable)
public void setContentUri(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setContentUri(@Nullable
CfnLayerVersion.S3LocationProperty value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getLayerName()
@Stability(value=Stable)
public void setLayerName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getLicenseInfo()
@Stability(value=Stable)
public void setLicenseInfo(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getRetentionPolicy()
@Stability(value=Stable)
public void setRetentionPolicy(@Nullable
String value)
Copyright © 2023. All rights reserved.