Package com.pulumi.aws.lambda
Class LayerVersionArgs.Builder
- java.lang.Object
-
- com.pulumi.aws.lambda.LayerVersionArgs.Builder
-
- Enclosing class:
- LayerVersionArgs
public static final class LayerVersionArgs.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(LayerVersionArgs defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayerVersionArgsbuild()LayerVersionArgs.Buildercode(com.pulumi.asset.Archive code)LayerVersionArgs.Buildercode(com.pulumi.core.Output<com.pulumi.asset.Archive> code)LayerVersionArgs.BuildercompatibleArchitectures(com.pulumi.core.Output<java.util.List<java.lang.String>> compatibleArchitectures)LayerVersionArgs.BuildercompatibleArchitectures(java.lang.String... compatibleArchitectures)LayerVersionArgs.BuildercompatibleArchitectures(java.util.List<java.lang.String> compatibleArchitectures)LayerVersionArgs.BuildercompatibleRuntimes(com.pulumi.core.Output<java.util.List<java.lang.String>> compatibleRuntimes)LayerVersionArgs.BuildercompatibleRuntimes(java.lang.String... compatibleRuntimes)LayerVersionArgs.BuildercompatibleRuntimes(java.util.List<java.lang.String> compatibleRuntimes)LayerVersionArgs.Builderdescription(com.pulumi.core.Output<java.lang.String> description)LayerVersionArgs.Builderdescription(java.lang.String description)LayerVersionArgs.BuilderlayerName(com.pulumi.core.Output<java.lang.String> layerName)LayerVersionArgs.BuilderlayerName(java.lang.String layerName)LayerVersionArgs.BuilderlicenseInfo(com.pulumi.core.Output<java.lang.String> licenseInfo)LayerVersionArgs.BuilderlicenseInfo(java.lang.String licenseInfo)LayerVersionArgs.Builderregion(com.pulumi.core.Output<java.lang.String> region)LayerVersionArgs.Builderregion(java.lang.String region)LayerVersionArgs.Builders3Bucket(com.pulumi.core.Output<java.lang.String> s3Bucket)LayerVersionArgs.Builders3Bucket(java.lang.String s3Bucket)LayerVersionArgs.Builders3Key(com.pulumi.core.Output<java.lang.String> s3Key)LayerVersionArgs.Builders3Key(java.lang.String s3Key)LayerVersionArgs.Builders3ObjectVersion(com.pulumi.core.Output<java.lang.String> s3ObjectVersion)LayerVersionArgs.Builders3ObjectVersion(java.lang.String s3ObjectVersion)LayerVersionArgs.BuilderskipDestroy(com.pulumi.core.Output<java.lang.Boolean> skipDestroy)LayerVersionArgs.BuilderskipDestroy(java.lang.Boolean skipDestroy)LayerVersionArgs.BuildersourceCodeHash(com.pulumi.core.Output<java.lang.String> sourceCodeHash)LayerVersionArgs.BuildersourceCodeHash(java.lang.String sourceCodeHash)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(LayerVersionArgs defaults)
-
-
Method Detail
-
code
public LayerVersionArgs.Builder code(@Nullable com.pulumi.core.Output<com.pulumi.asset.Archive> code)
- Parameters:
code- Path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.- Returns:
- builder
-
code
public LayerVersionArgs.Builder code(com.pulumi.asset.Archive code)
- Parameters:
code- Path to the function's deployment package within the local filesystem. If defined, The `s3_`-prefixed options cannot be used.- Returns:
- builder
-
compatibleArchitectures
public LayerVersionArgs.Builder compatibleArchitectures(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> compatibleArchitectures)
- Parameters:
compatibleArchitectures- List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.- Returns:
- builder
-
compatibleArchitectures
public LayerVersionArgs.Builder compatibleArchitectures(java.util.List<java.lang.String> compatibleArchitectures)
- Parameters:
compatibleArchitectures- List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.- Returns:
- builder
-
compatibleArchitectures
public LayerVersionArgs.Builder compatibleArchitectures(java.lang.String... compatibleArchitectures)
- Parameters:
compatibleArchitectures- List of [Architectures](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleArchitectures) this layer is compatible with. Currently `x8664` and `arm64` can be specified.- Returns:
- builder
-
compatibleRuntimes
public LayerVersionArgs.Builder compatibleRuntimes(@Nullable com.pulumi.core.Output<java.util.List<java.lang.String>> compatibleRuntimes)
- Parameters:
compatibleRuntimes- List of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 15 runtimes can be specified.- Returns:
- builder
-
compatibleRuntimes
public LayerVersionArgs.Builder compatibleRuntimes(java.util.List<java.lang.String> compatibleRuntimes)
- Parameters:
compatibleRuntimes- List of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 15 runtimes can be specified.- Returns:
- builder
-
compatibleRuntimes
public LayerVersionArgs.Builder compatibleRuntimes(java.lang.String... compatibleRuntimes)
- Parameters:
compatibleRuntimes- List of [Runtimes](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-CompatibleRuntimes) this layer is compatible with. Up to 15 runtimes can be specified.- Returns:
- builder
-
description
public LayerVersionArgs.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- Description of what your Lambda Layer does.- Returns:
- builder
-
description
public LayerVersionArgs.Builder description(java.lang.String description)
- Parameters:
description- Description of what your Lambda Layer does.- Returns:
- builder
-
layerName
public LayerVersionArgs.Builder layerName(com.pulumi.core.Output<java.lang.String> layerName)
- Parameters:
layerName- Unique name for your Lambda Layer. The following arguments are optional:- Returns:
- builder
-
layerName
public LayerVersionArgs.Builder layerName(java.lang.String layerName)
- Parameters:
layerName- Unique name for your Lambda Layer. The following arguments are optional:- Returns:
- builder
-
licenseInfo
public LayerVersionArgs.Builder licenseInfo(@Nullable com.pulumi.core.Output<java.lang.String> licenseInfo)
- Parameters:
licenseInfo- License info for your Lambda Layer. See [License Info](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-LicenseInfo).- Returns:
- builder
-
licenseInfo
public LayerVersionArgs.Builder licenseInfo(java.lang.String licenseInfo)
- Parameters:
licenseInfo- License info for your Lambda Layer. See [License Info](https://docs.aws.amazon.com/lambda/latest/dg/API_PublishLayerVersion.html#SSS-PublishLayerVersion-request-LicenseInfo).- Returns:
- builder
-
region
public LayerVersionArgs.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public LayerVersionArgs.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
s3Bucket
public LayerVersionArgs.Builder s3Bucket(@Nullable com.pulumi.core.Output<java.lang.String> s3Bucket)
- Parameters:
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.- Returns:
- builder
-
s3Bucket
public LayerVersionArgs.Builder s3Bucket(java.lang.String s3Bucket)
- Parameters:
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.- Returns:
- builder
-
s3Key
public LayerVersionArgs.Builder s3Key(@Nullable com.pulumi.core.Output<java.lang.String> s3Key)
- Parameters:
s3Key- S3 key of an object containing the function's deployment package. Conflicts with `filename`.- Returns:
- builder
-
s3Key
public LayerVersionArgs.Builder s3Key(java.lang.String s3Key)
- Parameters:
s3Key- S3 key of an object containing the function's deployment package. Conflicts with `filename`.- Returns:
- builder
-
s3ObjectVersion
public LayerVersionArgs.Builder s3ObjectVersion(@Nullable com.pulumi.core.Output<java.lang.String> s3ObjectVersion)
- Parameters:
s3ObjectVersion- Object version containing the function's deployment package. Conflicts with `filename`.- Returns:
- builder
-
s3ObjectVersion
public LayerVersionArgs.Builder s3ObjectVersion(java.lang.String s3ObjectVersion)
- Parameters:
s3ObjectVersion- Object version containing the function's deployment package. Conflicts with `filename`.- Returns:
- builder
-
skipDestroy
public LayerVersionArgs.Builder skipDestroy(@Nullable com.pulumi.core.Output<java.lang.Boolean> skipDestroy)
- Parameters:
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.- Returns:
- builder
-
skipDestroy
public LayerVersionArgs.Builder skipDestroy(java.lang.Boolean skipDestroy)
- Parameters:
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.- Returns:
- builder
-
sourceCodeHash
public LayerVersionArgs.Builder sourceCodeHash(@Nullable com.pulumi.core.Output<java.lang.String> sourceCodeHash)
- Parameters:
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.- Returns:
- builder
-
sourceCodeHash
public LayerVersionArgs.Builder sourceCodeHash(java.lang.String sourceCodeHash)
- Parameters:
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.- Returns:
- builder
-
build
public LayerVersionArgs build()
-
-