Class LayerVersionState.Builder

  • Enclosing class:
    LayerVersionState

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

      • Builder

        public Builder()
    • Method Detail

      • arn

        public LayerVersionState.Builder arn​(@Nullable
                                             com.pulumi.core.Output<java.lang.String> arn)
        Parameters:
        arn - ARN of the Lambda Layer with version.
        Returns:
        builder
      • arn

        public LayerVersionState.Builder arn​(java.lang.String arn)
        Parameters:
        arn - ARN of the Lambda Layer with version.
        Returns:
        builder
      • code

        public LayerVersionState.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 LayerVersionState.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
      • codeSha256

        public LayerVersionState.Builder codeSha256​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> codeSha256)
        Parameters:
        codeSha256 - Base64-encoded representation of raw SHA-256 sum of the zip file.
        Returns:
        builder
      • codeSha256

        public LayerVersionState.Builder codeSha256​(java.lang.String codeSha256)
        Parameters:
        codeSha256 - Base64-encoded representation of raw SHA-256 sum of the zip file.
        Returns:
        builder
      • compatibleArchitectures

        public LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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
      • createdDate

        public LayerVersionState.Builder createdDate​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> createdDate)
        Parameters:
        createdDate - Date this resource was created.
        Returns:
        builder
      • createdDate

        public LayerVersionState.Builder createdDate​(java.lang.String createdDate)
        Parameters:
        createdDate - Date this resource was created.
        Returns:
        builder
      • description

        public LayerVersionState.Builder description​(@Nullable
                                                     com.pulumi.core.Output<java.lang.String> description)
        Parameters:
        description - Description of what your Lambda Layer does.
        Returns:
        builder
      • description

        public LayerVersionState.Builder description​(java.lang.String description)
        Parameters:
        description - Description of what your Lambda Layer does.
        Returns:
        builder
      • layerArn

        public LayerVersionState.Builder layerArn​(@Nullable
                                                  com.pulumi.core.Output<java.lang.String> layerArn)
        Parameters:
        layerArn - ARN of the Lambda Layer without version.
        Returns:
        builder
      • layerArn

        public LayerVersionState.Builder layerArn​(java.lang.String layerArn)
        Parameters:
        layerArn - ARN of the Lambda Layer without version.
        Returns:
        builder
      • layerName

        public LayerVersionState.Builder layerName​(@Nullable
                                                   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 LayerVersionState.Builder layerName​(java.lang.String layerName)
        Parameters:
        layerName - Unique name for your Lambda Layer. The following arguments are optional:
        Returns:
        builder
      • licenseInfo

        public LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.Builder s3ObjectVersion​(java.lang.String s3ObjectVersion)
        Parameters:
        s3ObjectVersion - Object version containing the function's deployment package. Conflicts with `filename`.
        Returns:
        builder
      • signingJobArn

        public LayerVersionState.Builder signingJobArn​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> signingJobArn)
        Parameters:
        signingJobArn - ARN of a signing job.
        Returns:
        builder
      • signingJobArn

        public LayerVersionState.Builder signingJobArn​(java.lang.String signingJobArn)
        Parameters:
        signingJobArn - ARN of a signing job.
        Returns:
        builder
      • signingProfileVersionArn

        public LayerVersionState.Builder signingProfileVersionArn​(@Nullable
                                                                  com.pulumi.core.Output<java.lang.String> signingProfileVersionArn)
        Parameters:
        signingProfileVersionArn - ARN for a signing profile version.
        Returns:
        builder
      • signingProfileVersionArn

        public LayerVersionState.Builder signingProfileVersionArn​(java.lang.String signingProfileVersionArn)
        Parameters:
        signingProfileVersionArn - ARN for a signing profile version.
        Returns:
        builder
      • skipDestroy

        public LayerVersionState.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 LayerVersionState.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 LayerVersionState.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 LayerVersionState.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
      • sourceCodeSize

        public LayerVersionState.Builder sourceCodeSize​(@Nullable
                                                        com.pulumi.core.Output<java.lang.Integer> sourceCodeSize)
        Parameters:
        sourceCodeSize - Size in bytes of the function .zip file.
        Returns:
        builder
      • sourceCodeSize

        public LayerVersionState.Builder sourceCodeSize​(java.lang.Integer sourceCodeSize)
        Parameters:
        sourceCodeSize - Size in bytes of the function .zip file.
        Returns:
        builder
      • version

        public LayerVersionState.Builder version​(@Nullable
                                                 com.pulumi.core.Output<java.lang.String> version)
        Parameters:
        version - Lambda Layer version.
        Returns:
        builder
      • version

        public LayerVersionState.Builder version​(java.lang.String version)
        Parameters:
        version - Lambda Layer version.
        Returns:
        builder