Class SecretExpiryRule.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • secretVersionExpiryInterval

        public SecretExpiryRule.Builder secretVersionExpiryInterval​(String secretVersionExpiryInterval)
        A property indicating how long the secret contents will be considered valid, expressed in ISO 8601 format.

        The secret needs to be updated when the secret content expires. The timer resets after you update the secret contents. The minimum value is 1 day and the maximum value is 90 days for this property. Currently, only intervals expressed in days are supported. For example, pass P3D to have the secret version expire every 3 days.

        Parameters:
        secretVersionExpiryInterval - the value to set
        Returns:
        this builder
      • timeOfAbsoluteExpiry

        public SecretExpiryRule.Builder timeOfAbsoluteExpiry​(Date timeOfAbsoluteExpiry)
        An optional property indicating the absolute time when this secret will expire, expressed in RFC 3339 timestamp format.

        The minimum number of days from current time is 1 day and the maximum number of days from current time is 365 days. Example: 2019-04-03T21:10:29.600Z

        Parameters:
        timeOfAbsoluteExpiry - the value to set
        Returns:
        this builder
      • isSecretContentRetrievalBlockedOnExpiry

        public SecretExpiryRule.Builder isSecretContentRetrievalBlockedOnExpiry​(Boolean isSecretContentRetrievalBlockedOnExpiry)
        A property indicating whether to block retrieval of the secret content, on expiry.

        The default is false. If the secret has already expired and you would like to retrieve the secret contents, you need to edit the secret rule to disable this property, to allow reading the secret content.

        Parameters:
        isSecretContentRetrievalBlockedOnExpiry - the value to set
        Returns:
        this builder