@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:44.088Z") public class CfnLayerVersion extends CfnResource implements IInspectable
The AWS::Lambda::LayerVersion
resource creates a Lambda layer from a ZIP archive.
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.lambda.*; CfnLayerVersion cfnLayerVersion = CfnLayerVersion.Builder.create(this, "MyCfnLayerVersion") .content(ContentProperty.builder() .s3Bucket("s3Bucket") .s3Key("s3Key") // the properties below are optional .s3ObjectVersion("s3ObjectVersion") .build()) // the properties below are optional .compatibleArchitectures(List.of("compatibleArchitectures")) .compatibleRuntimes(List.of("compatibleRuntimes")) .description("description") .layerName("layerName") .licenseInfo("licenseInfo") .build();
Modifier and Type | Class and Description |
---|---|
static class |
CfnLayerVersion.Builder
A fluent builder for
CfnLayerVersion . |
static interface |
CfnLayerVersion.ContentProperty
A ZIP archive that contains the contents of an [Lambda layer](https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html) .
|
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.
|
Modifier | Constructor and Description |
---|---|
|
CfnLayerVersion(Construct scope,
java.lang.String id,
CfnLayerVersionProps props)
Create a new `AWS::Lambda::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> |
getCompatibleArchitectures()
A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
|
java.util.List<java.lang.String> |
getCompatibleRuntimes()
A list of compatible [function runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) .
|
java.lang.Object |
getContent()
The function layer archive.
|
java.lang.String |
getDescription()
The description of the version.
|
java.lang.String |
getLayerName()
The name or Amazon Resource Name (ARN) of the layer.
|
java.lang.String |
getLicenseInfo()
The layer's software license.
|
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 |
setCompatibleArchitectures(java.util.List<java.lang.String> value)
A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
|
void |
setCompatibleRuntimes(java.util.List<java.lang.String> value)
A list of compatible [function runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) .
|
void |
setContent(CfnLayerVersion.ContentProperty value)
The function layer archive.
|
void |
setContent(IResolvable value)
The function layer archive.
|
void |
setDescription(java.lang.String value)
The description of the version.
|
void |
setLayerName(java.lang.String value)
The name or Amazon Resource Name (ARN) of the layer.
|
void |
setLicenseInfo(java.lang.String value)
The layer's software license.
|
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
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. 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.lang.Object getContent()
public void setContent(IResolvable value)
public void setContent(CfnLayerVersion.ContentProperty value)
public java.util.List<java.lang.String> getCompatibleArchitectures()
public void setCompatibleArchitectures(java.util.List<java.lang.String> value)
public java.util.List<java.lang.String> getCompatibleRuntimes()
public void setCompatibleRuntimes(java.util.List<java.lang.String> 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()
MIT
.https://opensource.org/licenses/MIT
.public void setLicenseInfo(java.lang.String value)
MIT
.https://opensource.org/licenses/MIT
.