@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class RotationRulesType extends Object implements Serializable, Cloneable, StructuredPojo
A structure that defines the rotation configuration for the secret.
Constructor and Description |
---|
RotationRulesType() |
Modifier and Type | Method and Description |
---|---|
RotationRulesType |
clone() |
boolean |
equals(Object obj) |
Long |
getAutomaticallyAfterDays()
The number of days between automatic scheduled rotations of the secret.
|
String |
getDuration()
The length of the rotation window in hours, for example
3h for a three hour window. |
String |
getScheduleExpression()
A
cron() or rate() expression that defines the schedule for rotating your secret. |
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAutomaticallyAfterDays(Long automaticallyAfterDays)
The number of days between automatic scheduled rotations of the secret.
|
void |
setDuration(String duration)
The length of the rotation window in hours, for example
3h for a three hour window. |
void |
setScheduleExpression(String scheduleExpression)
A
cron() or rate() expression that defines the schedule for rotating your secret. |
String |
toString()
Returns a string representation of this object.
|
RotationRulesType |
withAutomaticallyAfterDays(Long automaticallyAfterDays)
The number of days between automatic scheduled rotations of the secret.
|
RotationRulesType |
withDuration(String duration)
The length of the rotation window in hours, for example
3h for a three hour window. |
RotationRulesType |
withScheduleExpression(String scheduleExpression)
A
cron() or rate() expression that defines the schedule for rotating your secret. |
public void setAutomaticallyAfterDays(Long automaticallyAfterDays)
The number of days between automatic scheduled 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.
In DescribeSecret
and ListSecrets
, this value is calculated from the rotation schedule
after every successful rotation. In RotateSecret
, you can set the rotation schedule in
RotationRules
with AutomaticallyAfterDays
or ScheduleExpression
, but not
both.
automaticallyAfterDays
- The number of days between automatic scheduled 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.
In DescribeSecret
and ListSecrets
, this value is calculated from the rotation
schedule after every successful rotation. In RotateSecret
, you can set the rotation schedule
in RotationRules
with AutomaticallyAfterDays
or ScheduleExpression
,
but not both.
public Long getAutomaticallyAfterDays()
The number of days between automatic scheduled 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.
In DescribeSecret
and ListSecrets
, this value is calculated from the rotation schedule
after every successful rotation. In RotateSecret
, you can set the rotation schedule in
RotationRules
with AutomaticallyAfterDays
or ScheduleExpression
, but not
both.
In DescribeSecret
and ListSecrets
, this value is calculated from the rotation
schedule after every successful rotation. In RotateSecret
, you can set the rotation schedule
in RotationRules
with AutomaticallyAfterDays
or ScheduleExpression
, but not both.
public RotationRulesType withAutomaticallyAfterDays(Long automaticallyAfterDays)
The number of days between automatic scheduled 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.
In DescribeSecret
and ListSecrets
, this value is calculated from the rotation schedule
after every successful rotation. In RotateSecret
, you can set the rotation schedule in
RotationRules
with AutomaticallyAfterDays
or ScheduleExpression
, but not
both.
automaticallyAfterDays
- The number of days between automatic scheduled 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.
In DescribeSecret
and ListSecrets
, this value is calculated from the rotation
schedule after every successful rotation. In RotateSecret
, you can set the rotation schedule
in RotationRules
with AutomaticallyAfterDays
or ScheduleExpression
,
but not both.
public void setDuration(String 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 go into the next UTC day. If you don't
specify this value, the window automatically ends at the end of the UTC day. The window begins according to the
ScheduleExpression
. For more information, including examples, see Schedule
expressions in Secrets Manager rotation.
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 go into the next UTC day.
If you don't specify this value, the window automatically ends at the end of the UTC day. The window
begins according to the ScheduleExpression
. For more information, including examples, see Schedule
expressions in Secrets Manager rotation.public String getDuration()
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 go into the next UTC day. If you don't
specify this value, the window automatically ends at the end of the UTC day. The window begins according to the
ScheduleExpression
. For more information, including examples, see Schedule
expressions in Secrets Manager rotation.
3h
for a three hour window. Secrets
Manager rotates your secret at any time during this window. The window must not go into the next UTC day.
If you don't specify this value, the window automatically ends at the end of the UTC day. The window
begins according to the ScheduleExpression
. For more information, including examples, see Schedule
expressions in Secrets Manager rotation.public RotationRulesType withDuration(String 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 go into the next UTC day. If you don't
specify this value, the window automatically ends at the end of the UTC day. The window begins according to the
ScheduleExpression
. For more information, including examples, see Schedule
expressions in Secrets Manager rotation.
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 go into the next UTC day.
If you don't specify this value, the window automatically ends at the end of the UTC day. The window
begins according to the ScheduleExpression
. For more information, including examples, see Schedule
expressions in Secrets Manager rotation.public void setScheduleExpression(String scheduleExpression)
A cron()
or rate()
expression that defines the schedule for rotating your secret.
Secrets Manager rotation schedules use UTC time zone.
Secrets Manager rate()
expressions represent the interval in days that you want to rotate your
secret, for example rate(10 days)
. If you use a rate()
expression, the rotation window
opens at midnight, and Secrets Manager rotates your secret any time that day after midnight. You can set a
Duration
to shorten the rotation window.
You can use a cron()
expression to create rotation schedules that are more detailed than a rotation
interval. For more information, including examples, see Schedule
expressions in Secrets Manager rotation. If you use a cron()
expression, Secrets Manager rotates
your secret any time during that day after the window opens. For example, cron(0 8 1 * ? *)
represents a rotation window that occurs on the first day of every month beginning at 8:00 AM UTC. Secrets
Manager rotates the secret any time that day after 8:00 AM. You can set a Duration
to shorten the
rotation window.
scheduleExpression
- A cron()
or rate()
expression that defines the schedule for rotating your
secret. Secrets Manager rotation schedules use UTC time zone.
Secrets Manager rate()
expressions represent the interval in days that you want to rotate
your secret, for example rate(10 days)
. If you use a rate()
expression, the
rotation window opens at midnight, and Secrets Manager rotates your secret any time that day after
midnight. You can set a Duration
to shorten the rotation window.
You can use a cron()
expression to create rotation schedules that are more detailed than a
rotation interval. For more information, including examples, see Schedule
expressions in Secrets Manager rotation. If you use a cron()
expression, Secrets Manager
rotates your secret any time during that day after the window opens. For example,
cron(0 8 1 * ? *)
represents a rotation window that occurs on the first day of every month
beginning at 8:00 AM UTC. Secrets Manager rotates the secret any time that day after 8:00 AM. You can set
a Duration
to shorten the rotation window.
public String getScheduleExpression()
A cron()
or rate()
expression that defines the schedule for rotating your secret.
Secrets Manager rotation schedules use UTC time zone.
Secrets Manager rate()
expressions represent the interval in days that you want to rotate your
secret, for example rate(10 days)
. If you use a rate()
expression, the rotation window
opens at midnight, and Secrets Manager rotates your secret any time that day after midnight. You can set a
Duration
to shorten the rotation window.
You can use a cron()
expression to create rotation schedules that are more detailed than a rotation
interval. For more information, including examples, see Schedule
expressions in Secrets Manager rotation. If you use a cron()
expression, Secrets Manager rotates
your secret any time during that day after the window opens. For example, cron(0 8 1 * ? *)
represents a rotation window that occurs on the first day of every month beginning at 8:00 AM UTC. Secrets
Manager rotates the secret any time that day after 8:00 AM. You can set a Duration
to shorten the
rotation window.
cron()
or rate()
expression that defines the schedule for rotating your
secret. Secrets Manager rotation schedules use UTC time zone.
Secrets Manager rate()
expressions represent the interval in days that you want to rotate
your secret, for example rate(10 days)
. If you use a rate()
expression, the
rotation window opens at midnight, and Secrets Manager rotates your secret any time that day after
midnight. You can set a Duration
to shorten the rotation window.
You can use a cron()
expression to create rotation schedules that are more detailed than a
rotation interval. For more information, including examples, see Schedule
expressions in Secrets Manager rotation. If you use a cron()
expression, Secrets Manager
rotates your secret any time during that day after the window opens. For example,
cron(0 8 1 * ? *)
represents a rotation window that occurs on the first day of every month
beginning at 8:00 AM UTC. Secrets Manager rotates the secret any time that day after 8:00 AM. You can set
a Duration
to shorten the rotation window.
public RotationRulesType withScheduleExpression(String scheduleExpression)
A cron()
or rate()
expression that defines the schedule for rotating your secret.
Secrets Manager rotation schedules use UTC time zone.
Secrets Manager rate()
expressions represent the interval in days that you want to rotate your
secret, for example rate(10 days)
. If you use a rate()
expression, the rotation window
opens at midnight, and Secrets Manager rotates your secret any time that day after midnight. You can set a
Duration
to shorten the rotation window.
You can use a cron()
expression to create rotation schedules that are more detailed than a rotation
interval. For more information, including examples, see Schedule
expressions in Secrets Manager rotation. If you use a cron()
expression, Secrets Manager rotates
your secret any time during that day after the window opens. For example, cron(0 8 1 * ? *)
represents a rotation window that occurs on the first day of every month beginning at 8:00 AM UTC. Secrets
Manager rotates the secret any time that day after 8:00 AM. You can set a Duration
to shorten the
rotation window.
scheduleExpression
- A cron()
or rate()
expression that defines the schedule for rotating your
secret. Secrets Manager rotation schedules use UTC time zone.
Secrets Manager rate()
expressions represent the interval in days that you want to rotate
your secret, for example rate(10 days)
. If you use a rate()
expression, the
rotation window opens at midnight, and Secrets Manager rotates your secret any time that day after
midnight. You can set a Duration
to shorten the rotation window.
You can use a cron()
expression to create rotation schedules that are more detailed than a
rotation interval. For more information, including examples, see Schedule
expressions in Secrets Manager rotation. If you use a cron()
expression, Secrets Manager
rotates your secret any time during that day after the window opens. For example,
cron(0 8 1 * ? *)
represents a rotation window that occurs on the first day of every month
beginning at 8:00 AM UTC. Secrets Manager rotates the secret any time that day after 8:00 AM. You can set
a Duration
to shorten the rotation window.
public String toString()
toString
in class Object
Object.toString()
public RotationRulesType clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.