LayerVersionArgs class

The set of arguments for LayerVersion. The set of arguments for LayerVersion.

Constructors

LayerVersionArgs({Input? code, Input<List<String>?>? compatibleArchitectures, Input<List<String>?>? compatibleRuntimes, Input<String?>? description, required Input<String> layerName, Input<String?>? licenseInfo, Input<String?>? region, Input<String?>? s3Bucket, Input<String?>? s3Key, Input<String?>? s3ObjectVersion, Input<bool?>? skipDestroy, Input<String?>? sourceCodeHash})
Creates a new LayerVersionArgs. code Path to the function's deployment package within the local filesystem. If defined, The s3_-prefixed options cannot be used. compatibleArchitectures List of Architectures this layer is compatible with. Currently x8664 and arm64 can be specified. compatibleRuntimes List of Runtimes this layer is compatible with. Up to 15 runtimes can be specified. description Description of what your Lambda Layer does. layerName Unique name for your Lambda Layer. licenseInfo License info for your Lambda Layer. See License Info. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. s3Bucket S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function. s3Key S3 key of an object containing the function's deployment package. Conflicts with filename. s3ObjectVersion Object version containing the function's deployment package. Conflicts with filename. skipDestroy Whether to retain the old version of a previously deployed Lambda Layer. Default is false. When this is not set to true, changing any of compatibleArchitectures, compatibleRuntimes, description, filename, layerName, licenseInfo, s3Bucket, s3Key, s3ObjectVersion, or sourceCodeHash forces deletion of the existing layer version and creation of a new layer version. sourceCodeHash Virtual attribute used to trigger replacement when source code changes. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3Key. The usual way to set this is filebase64sha256("file.zip") or base64sha256(file("file.zip")), where "file.zip" is the local filename of the lambda layer source archive.
const
LayerVersionArgs.fromMap(Map<String, dynamic> map)
factory

Properties

code → Input?
Path to the function's deployment package within the local filesystem. If defined, The s3_-prefixed options cannot be used.
final
compatibleArchitectures → Input<List<String>?>?
List of Architectures this layer is compatible with. Currently x8664 and arm64 can be specified.
final
compatibleRuntimes → Input<List<String>?>?
List of Runtimes this layer is compatible with. Up to 15 runtimes can be specified.
final
description → Input<String?>?
Description of what your Lambda Layer does.
final
hashCode int
The hash code for this object.
no setterinherited
layerName → Input<String>
Unique name for your Lambda Layer.
final
licenseInfo → Input<String?>?
License info for your Lambda Layer. See License Info.
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
s3Bucket → Input<String?>?
S3 bucket location containing the function's deployment package. Conflicts with filename. This bucket must reside in the same AWS region where you are creating the Lambda function.
final
s3Key → Input<String?>?
S3 key of an object containing the function's deployment package. Conflicts with filename.
final
s3ObjectVersion → Input<String?>?
Object version containing the function's deployment package. Conflicts with filename.
final
skipDestroy → Input<bool?>?
Whether to retain the old version of a previously deployed Lambda Layer. Default is false. When this is not set to true, changing any of compatibleArchitectures, compatibleRuntimes, description, filename, layerName, licenseInfo, s3Bucket, s3Key, s3ObjectVersion, or sourceCodeHash forces deletion of the existing layer version and creation of a new layer version.
final
sourceCodeHash → Input<String?>?
Virtual attribute used to trigger replacement when source code changes. Must be set to a base64-encoded SHA256 hash of the package file specified with either filename or s3Key. The usual way to set this is filebase64sha256("file.zip") or base64sha256(file("file.zip")), where "file.zip" is the local filename of the lambda layer source archive.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toMap() Map<String, dynamic>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited