Class SecretVersionArgs.Builder

  • Enclosing class:
    SecretVersionArgs

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

      • Builder

        public Builder()
    • Method Detail

      • region

        public SecretVersionArgs.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 SecretVersionArgs.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
      • secretBinary

        public SecretVersionArgs.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 SecretVersionArgs.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 SecretVersionArgs.Builder secretId​(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 SecretVersionArgs.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 SecretVersionArgs.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 SecretVersionArgs.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 SecretVersionArgs.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 SecretVersionArgs.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 SecretVersionArgs.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 SecretVersionArgs.Builder secretStringWoVersion​(java.lang.Integer secretStringWoVersion)
        Parameters:
        secretStringWoVersion - Required when `secretStringWo` is set. Changing this value triggers an update to `secretStringWo`.
        Returns:
        builder
      • versionStages

        public SecretVersionArgs.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 SecretVersionArgs.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 SecretVersionArgs.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