Class LayerVersionArgs.Builder

  • Enclosing class:
    LayerVersionArgs

    public static final class LayerVersionArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • 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