Class SecretVersionState.Builder

  • Enclosing class:
    SecretVersionState

    public static final class SecretVersionState.Builder
    extends java.lang.Object
    • Method Detail

      • arn

        @Deprecated
        public SecretVersionState.Builder arn​(@Nullable
                                              com.pulumi.core.Output<java.lang.String> arn)
        Deprecated.
        arn is deprecated. Use secretArn instead.
        Parameters:
        arn - (**Deprecated**) ARN of the secret. Use `secretArn` instead.
        Returns:
        builder
      • arn

        @Deprecated
        public SecretVersionState.Builder arn​(java.lang.String arn)
        Deprecated.
        arn is deprecated. Use secretArn instead.
        Parameters:
        arn - (**Deprecated**) ARN of the secret. Use `secretArn` instead.
        Returns:
        builder
      • hasSecretStringWo

        public SecretVersionState.Builder hasSecretStringWo​(@Nullable
                                                            com.pulumi.core.Output<java.lang.Boolean> hasSecretStringWo)
        Parameters:
        hasSecretStringWo - Whether a write-only secret string value is set.
        Returns:
        builder
      • hasSecretStringWo

        public SecretVersionState.Builder hasSecretStringWo​(java.lang.Boolean hasSecretStringWo)
        Parameters:
        hasSecretStringWo - Whether a write-only secret string value is set.
        Returns:
        builder
      • region

        public SecretVersionState.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 SecretVersionState.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
      • secretArn

        public SecretVersionState.Builder secretArn​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> secretArn)
        Parameters:
        secretArn - ARN of the secret.
        Returns:
        builder
      • secretArn

        public SecretVersionState.Builder secretArn​(java.lang.String secretArn)
        Parameters:
        secretArn - ARN of the secret.
        Returns:
        builder
      • secretBinary

        public SecretVersionState.Builder secretBinary​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> secretBinary)
        Parameters:
        secretBinary - Binary data that you want to encrypt and store in this version of the secret. This is required if `secretString` or `secretStringWo` is not set. Needs to be encoded to base64.
        Returns:
        builder
      • secretBinary

        public SecretVersionState.Builder secretBinary​(java.lang.String secretBinary)
        Parameters:
        secretBinary - Binary data that you want to encrypt and store in this version of the secret. This is required if `secretString` or `secretStringWo` is not set. Needs to be encoded to base64.
        Returns:
        builder
      • secretId

        public SecretVersionState.Builder secretId​(@Nullable
                                                   com.pulumi.core.Output<java.lang.String> secretId)
        Parameters:
        secretId - Secret to which you want to add a new version. You can specify either the ARN or the friendly name of the secret. The secret must already exist.
        Returns:
        builder
      • secretId

        public SecretVersionState.Builder secretId​(java.lang.String secretId)
        Parameters:
        secretId - Secret to which you want to add a new version. You can specify either the ARN or the friendly name of the secret. The secret must already exist.
        Returns:
        builder
      • secretString

        public SecretVersionState.Builder secretString​(@Nullable
                                                       com.pulumi.core.Output<java.lang.String> secretString)
        Parameters:
        secretString - Text data that you want to encrypt and store in this version of the secret. This is required if `secretBinary` or `secretStringWo` is not set.
        Returns:
        builder
      • secretString

        public SecretVersionState.Builder secretString​(java.lang.String secretString)
        Parameters:
        secretString - Text data that you want to encrypt and store in this version of the secret. This is required if `secretBinary` or `secretStringWo` is not set.
        Returns:
        builder
      • secretStringWo

        public SecretVersionState.Builder secretStringWo​(@Nullable
                                                         com.pulumi.core.Output<java.lang.String> secretStringWo)
        Parameters:
        secretStringWo - **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. Text data that you want to encrypt and store in this version of the secret. This is required if `secretBinary` or `secretString` is not set. If set, requires `secretStringWoVersion` to be set.
        Returns:
        builder
      • secretStringWo

        public SecretVersionState.Builder secretStringWo​(java.lang.String secretStringWo)
        Parameters:
        secretStringWo - **NOTE:** This field is write-only and its value will not be updated in state as part of read operations. Text data that you want to encrypt and store in this version of the secret. This is required if `secretBinary` or `secretString` is not set. If set, requires `secretStringWoVersion` to be set.
        Returns:
        builder
      • secretStringWoVersion

        public SecretVersionState.Builder secretStringWoVersion​(@Nullable
                                                                com.pulumi.core.Output<java.lang.Integer> secretStringWoVersion)
        Parameters:
        secretStringWoVersion - Required when `secretStringWo` is set. Changing this value triggers an update to `secretStringWo`.
        Returns:
        builder
      • secretStringWoVersion

        public SecretVersionState.Builder secretStringWoVersion​(java.lang.Integer secretStringWoVersion)
        Parameters:
        secretStringWoVersion - Required when `secretStringWo` is set. Changing this value triggers an update to `secretStringWo`.
        Returns:
        builder
      • versionId

        public SecretVersionState.Builder versionId​(@Nullable
                                                    com.pulumi.core.Output<java.lang.String> versionId)
        Parameters:
        versionId - Unique identifier of the version of the secret.
        Returns:
        builder
      • versionId

        public SecretVersionState.Builder versionId​(java.lang.String versionId)
        Parameters:
        versionId - Unique identifier of the version of the secret.
        Returns:
        builder
      • versionStages

        public SecretVersionState.Builder versionStages​(@Nullable
                                                        com.pulumi.core.Output<java.util.List<java.lang.String>> versionStages)
        Parameters:
        versionStages - List of staging labels that are attached to this version of the secret. A staging label must be unique to a single version of the secret. If you specify a staging label that's already associated with a different version of the same secret then that staging label is automatically removed from the other version and attached to this version. If you do not specify a value, then AWS Secrets Manager automatically moves the staging label `AWSCURRENT` to this new version on creation. > **NOTE:** If `versionStages` is configured, you must include the `AWSCURRENT` staging label if this secret version is the only version or if the label is currently present on this secret version, otherwise this provider will show a perpetual difference.
        Returns:
        builder
      • versionStages

        public SecretVersionState.Builder versionStages​(java.util.List<java.lang.String> versionStages)
        Parameters:
        versionStages - List of staging labels that are attached to this version of the secret. A staging label must be unique to a single version of the secret. If you specify a staging label that's already associated with a different version of the same secret then that staging label is automatically removed from the other version and attached to this version. If you do not specify a value, then AWS Secrets Manager automatically moves the staging label `AWSCURRENT` to this new version on creation. > **NOTE:** If `versionStages` is configured, you must include the `AWSCURRENT` staging label if this secret version is the only version or if the label is currently present on this secret version, otherwise this provider will show a perpetual difference.
        Returns:
        builder
      • versionStages

        public SecretVersionState.Builder versionStages​(java.lang.String... versionStages)
        Parameters:
        versionStages - List of staging labels that are attached to this version of the secret. A staging label must be unique to a single version of the secret. If you specify a staging label that's already associated with a different version of the same secret then that staging label is automatically removed from the other version and attached to this version. If you do not specify a value, then AWS Secrets Manager automatically moves the staging label `AWSCURRENT` to this new version on creation. > **NOTE:** If `versionStages` is configured, you must include the `AWSCURRENT` staging label if this secret version is the only version or if the label is currently present on this secret version, otherwise this provider will show a perpetual difference.
        Returns:
        builder