Class SecretManagerSecretVersion.Builder

    • Method Detail

      • connection

        @Stability(Experimental)
        public SecretManagerSecretVersion.Builder connection​(com.hashicorp.cdktf.SSHProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • connection

        @Stability(Experimental)
        public SecretManagerSecretVersion.Builder connection​(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
        Parameters:
        connection - This parameter is required.
        Returns:
        this
      • count

        @Stability(Experimental)
        public SecretManagerSecretVersion.Builder count​(com.hashicorp.cdktf.TerraformCount count)
        Parameters:
        count - This parameter is required.
        Returns:
        this
      • dependsOn

        @Stability(Experimental)
        public SecretManagerSecretVersion.Builder dependsOn​(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
        Parameters:
        dependsOn - This parameter is required.
        Returns:
        this
      • forEach

        @Stability(Experimental)
        public SecretManagerSecretVersion.Builder forEach​(com.hashicorp.cdktf.ITerraformIterator forEach)
        Parameters:
        forEach - This parameter is required.
        Returns:
        this
      • lifecycle

        @Stability(Experimental)
        public SecretManagerSecretVersion.Builder lifecycle​(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
        Parameters:
        lifecycle - This parameter is required.
        Returns:
        this
      • provider

        @Stability(Experimental)
        public SecretManagerSecretVersion.Builder provider​(com.hashicorp.cdktf.TerraformProvider provider)
        Parameters:
        provider - This parameter is required.
        Returns:
        this
      • secret

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder secret​(String secret)
        Secret Manager secret resource.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#secret SecretManagerSecretVersion#secret}

        Parameters:
        secret - Secret Manager secret resource. This parameter is required.
        Returns:
        this
      • secretData

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder secretData​(String secretData)
        The secret data. Must be no larger than 64KiB.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#secret_data SecretManagerSecretVersion#secret_data}

        Parameters:
        secretData - The secret data. Must be no larger than 64KiB. This parameter is required.
        Returns:
        this
      • deletionPolicy

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder deletionPolicy​(String deletionPolicy)
        The deletion policy for the secret version.

        Setting 'ABANDON' allows the resource to be abandoned rather than deleted. Setting 'DISABLE' allows the resource to be disabled rather than deleted. Default is 'DELETE'. Possible values are: * DELETE * DISABLE * ABANDON Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#deletion_policy SecretManagerSecretVersion#deletion_policy}

        Parameters:
        deletionPolicy - The deletion policy for the secret version. This parameter is required.
        Returns:
        this
      • enabled

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder enabled​(Boolean enabled)
        The current state of the SecretVersion.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#enabled SecretManagerSecretVersion#enabled}

        Parameters:
        enabled - The current state of the SecretVersion. This parameter is required.
        Returns:
        this
      • enabled

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder enabled​(com.hashicorp.cdktf.IResolvable enabled)
        The current state of the SecretVersion.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#enabled SecretManagerSecretVersion#enabled}

        Parameters:
        enabled - The current state of the SecretVersion. This parameter is required.
        Returns:
        this
      • id

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder id​(String id)
        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#id SecretManagerSecretVersion#id}.

        Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.

        Parameters:
        id - Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#id SecretManagerSecretVersion#id}. This parameter is required.
        Returns:
        this
      • isSecretDataBase64

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder isSecretDataBase64​(Boolean isSecretDataBase64)
        If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#is_secret_data_base64 SecretManagerSecretVersion#is_secret_data_base64}

        Parameters:
        isSecretDataBase64 - If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is. This parameter is required.
        Returns:
        this
      • isSecretDataBase64

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder isSecretDataBase64​(com.hashicorp.cdktf.IResolvable isSecretDataBase64)
        If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#is_secret_data_base64 SecretManagerSecretVersion#is_secret_data_base64}

        Parameters:
        isSecretDataBase64 - If set to 'true', the secret data is expected to be base64-encoded string and would be sent as is. This parameter is required.
        Returns:
        this
      • timeouts

        @Stability(Stable)
        public SecretManagerSecretVersion.Builder timeouts​(SecretManagerSecretVersionTimeouts timeouts)
        timeouts block.

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/secret_manager_secret_version#timeouts SecretManagerSecretVersion#timeouts}

        Parameters:
        timeouts - timeouts block. This parameter is required.
        Returns:
        this