@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:40.409Z") @Stability(value=Stable) 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) .
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnLayerVersion(software.constructs.Construct scope,
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 Map<String,Object> |
getCfnProperties() |
List<String> |
getCompatibleArchitectures()
A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
|
List<String> |
getCompatibleRuntimes()
A list of compatible [function runtimes](https://docs.aws.amazon.com/lambda/latest/dg/lambda-runtimes.html) .
|
Object |
getContent()
The function layer archive.
|
String |
getDescription()
The description of the version.
|
String |
getLayerName()
The name or Amazon Resource Name (ARN) of the layer.
|
String |
getLicenseInfo()
The layer's software license.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setCompatibleArchitectures(List<String> value)
A list of compatible [instruction set architectures](https://docs.aws.amazon.com/lambda/latest/dg/foundation-arch.html) .
|
void |
setCompatibleRuntimes(List<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(String value)
The description of the version.
|
void |
setLayerName(String value)
The name or Amazon Resource Name (ARN) of the layer.
|
void |
setLicenseInfo(String value)
The layer's software license.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnLayerVersion(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnLayerVersion(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnLayerVersion(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
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.@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) @NotNull public Object getContent()
@Stability(value=Stable)
public void setContent(@NotNull
CfnLayerVersion.ContentProperty value)
@Stability(value=Stable)
public void setContent(@NotNull
IResolvable value)
@Stability(value=Stable) @Nullable public List<String> getCompatibleArchitectures()
@Stability(value=Stable)
public void setCompatibleArchitectures(@Nullable
List<String> value)
@Stability(value=Stable) @Nullable public List<String> getCompatibleRuntimes()
@Stability(value=Stable)
public void setCompatibleRuntimes(@Nullable
List<String> 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()
MIT .https://opensource.org/licenses/MIT .@Stability(value=Stable)
public void setLicenseInfo(@Nullable
String value)
MIT .https://opensource.org/licenses/MIT .Copyright © 2022. All rights reserved.