Class RotationRulesType
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<RotationRulesType.Builder,
RotationRulesType>
A structure that defines the rotation configuration for the secret.
- See Also:
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal Long
The number of days between rotations of the secret.static RotationRulesType.Builder
builder()
final String
duration()
The length of the rotation window in hours, for example3h
for a three hour window.final boolean
final boolean
equalsBySdkFields
(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional
<T> getValueForField
(String fieldName, Class<T> clazz) final int
hashCode()
final String
Acron()
orrate()
expression that defines the schedule for rotating your secret.static Class
<? extends RotationRulesType.Builder> Take this object and create a builder that contains all of the current property values of this object.final String
toString()
Returns a string representation of this object.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
automaticallyAfterDays
The number of days between rotations of the secret. You can use this value to check that your secret meets your compliance guidelines for how often secrets must be rotated. If you use this field to set the rotation schedule, Secrets Manager calculates the next rotation date based on the previous rotation. Manually updating the secret value by calling
PutSecretValue
orUpdateSecret
is considered a valid rotation.In
DescribeSecret
andListSecrets
, this value is calculated from the rotation schedule after every successful rotation. InRotateSecret
, you can set the rotation schedule inRotationRules
withAutomaticallyAfterDays
orScheduleExpression
, but not both. To set a rotation schedule in hours, useScheduleExpression
.- Returns:
- The number of days between rotations of the secret. You can use this value to check that your secret
meets your compliance guidelines for how often secrets must be rotated. If you use this field to set the
rotation schedule, Secrets Manager calculates the next rotation date based on the previous rotation.
Manually updating the secret value by calling
PutSecretValue
orUpdateSecret
is considered a valid rotation.In
DescribeSecret
andListSecrets
, this value is calculated from the rotation schedule after every successful rotation. InRotateSecret
, you can set the rotation schedule inRotationRules
withAutomaticallyAfterDays
orScheduleExpression
, but not both. To set a rotation schedule in hours, useScheduleExpression
.
-
duration
The length of the rotation window in hours, for example
3h
for a three hour window. Secrets Manager rotates your secret at any time during this window. The window must not extend into the next rotation window or the next UTC day. The window starts according to theScheduleExpression
. If you don't specify aDuration
, for aScheduleExpression
in hours, the window automatically closes after one hour. For aScheduleExpression
in days, the window automatically closes at the end of the UTC day. For more information, including examples, see Schedule expressions in Secrets Manager rotation in the Secrets Manager Users Guide.- Returns:
- The length of the rotation window in hours, for example
3h
for a three hour window. Secrets Manager rotates your secret at any time during this window. The window must not extend into the next rotation window or the next UTC day. The window starts according to theScheduleExpression
. If you don't specify aDuration
, for aScheduleExpression
in hours, the window automatically closes after one hour. For aScheduleExpression
in days, the window automatically closes at the end of the UTC day. For more information, including examples, see Schedule expressions in Secrets Manager rotation in the Secrets Manager Users Guide.
-
scheduleExpression
A
cron()
orrate()
expression that defines the schedule for rotating your secret. Secrets Manager rotation schedules use UTC time zone. Secrets Manager rotates your secret any time during a rotation window.Secrets Manager
rate()
expressions represent the interval in hours or days that you want to rotate your secret, for examplerate(12 hours)
orrate(10 days)
. You can rotate a secret as often as every four hours. If you use arate()
expression, the rotation window starts at midnight. For a rate in hours, the default rotation window closes after one hour. For a rate in days, the default rotation window closes at the end of the day. You can set theDuration
to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.You can use a
cron()
expression to create a rotation schedule that is more detailed than a rotation interval. For more information, including examples, see Schedule expressions in Secrets Manager rotation in the Secrets Manager Users Guide. For a cron expression that represents a schedule in hours, the default rotation window closes after one hour. For a cron expression that represents a schedule in days, the default rotation window closes at the end of the day. You can set theDuration
to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.- Returns:
- A
cron()
orrate()
expression that defines the schedule for rotating your secret. Secrets Manager rotation schedules use UTC time zone. Secrets Manager rotates your secret any time during a rotation window.Secrets Manager
rate()
expressions represent the interval in hours or days that you want to rotate your secret, for examplerate(12 hours)
orrate(10 days)
. You can rotate a secret as often as every four hours. If you use arate()
expression, the rotation window starts at midnight. For a rate in hours, the default rotation window closes after one hour. For a rate in days, the default rotation window closes at the end of the day. You can set theDuration
to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.You can use a
cron()
expression to create a rotation schedule that is more detailed than a rotation interval. For more information, including examples, see Schedule expressions in Secrets Manager rotation in the Secrets Manager Users Guide. For a cron expression that represents a schedule in hours, the default rotation window closes after one hour. For a cron expression that represents a schedule in days, the default rotation window closes at the end of the day. You can set theDuration
to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.
-
toBuilder
Description copied from interface:ToCopyableBuilder
Take this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilder
in interfaceToCopyableBuilder<RotationRulesType.Builder,
RotationRulesType> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
Description copied from interface:SdkPojo
Indicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojo
class, and is generated based on a service model.If an
SdkPojo
class does not have any inherited fields,equalsBySdkFields
andequals
are essentially the same.- Specified by:
equalsBySdkFields
in interfaceSdkPojo
- Parameters:
obj
- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-