Class CreateSecret.SecretContent

    • Method Detail

      • create

        public static CreateSecret.SecretContent create​(String plainTextSecret)
        Create new content from plain text secret.
        Parameters:
        plainTextSecret - plain text
        Returns:
        a new builder with plain text content
      • name

        public CreateSecret.SecretContent name​(String name)
        Names should be unique within a secret. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods. Optional.
        Parameters:
        name - name of the secret
        Returns:
        updated builder
      • stage

        public CreateSecret.SecretContent stage​(SecretStage stage)
        The rotation state of the secret content. The default is CURRENT, meaning that the secret is currently in use. A secret version that you mark as PENDING is staged and available for use, but you don't yet want to rotate it into current, active use. For example, you might create or update a secret and mark its rotation state as PENDING if you haven't yet updated the secret on the target system. When creating a secret, only the value CURRENT is applicable, although the value LATEST is also automatically applied. When updating a secret, you can specify a version's rotation state as either CURRENT or PENDING. Optional.
        Parameters:
        stage - either SecretStage.CURRENT or SecretStage.PENDING are allowed
        Returns:
        updated builder