#[non_exhaustive]pub struct RotationRulesTypeBuilder { /* private fields */ }
Expand description
A builder for RotationRulesType
.
Implementations§
source§impl RotationRulesTypeBuilder
impl RotationRulesTypeBuilder
sourcepub fn automatically_after_days(self, input: i64) -> Self
pub fn automatically_after_days(self, input: i64) -> Self
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
or UpdateSecret
is considered a valid rotation.
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. To set a rotation schedule in hours, use ScheduleExpression
.
sourcepub fn set_automatically_after_days(self, input: Option<i64>) -> Self
pub fn set_automatically_after_days(self, input: Option<i64>) -> Self
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
or UpdateSecret
is considered a valid rotation.
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. To set a rotation schedule in hours, use ScheduleExpression
.
sourcepub fn get_automatically_after_days(&self) -> &Option<i64>
pub fn get_automatically_after_days(&self) -> &Option<i64>
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
or UpdateSecret
is considered a valid rotation.
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. To set a rotation schedule in hours, use ScheduleExpression
.
sourcepub fn duration(self, input: impl Into<String>) -> Self
pub fn duration(self, input: impl Into<String>) -> Self
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 the ScheduleExpression
. If you don't specify a Duration
, for a ScheduleExpression
in hours, the window automatically closes after one hour. For a ScheduleExpression
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.
sourcepub fn set_duration(self, input: Option<String>) -> Self
pub fn set_duration(self, input: Option<String>) -> Self
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 the ScheduleExpression
. If you don't specify a Duration
, for a ScheduleExpression
in hours, the window automatically closes after one hour. For a ScheduleExpression
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.
sourcepub fn get_duration(&self) -> &Option<String>
pub fn get_duration(&self) -> &Option<String>
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 the ScheduleExpression
. If you don't specify a Duration
, for a ScheduleExpression
in hours, the window automatically closes after one hour. For a ScheduleExpression
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.
sourcepub fn schedule_expression(self, input: impl Into<String>) -> Self
pub fn schedule_expression(self, input: impl Into<String>) -> Self
A cron()
or rate()
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 example rate(12 hours)
or rate(10 days)
. You can rotate a secret as often as every four hours. If you use a rate()
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 the Duration
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 the Duration
to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.
sourcepub fn set_schedule_expression(self, input: Option<String>) -> Self
pub fn set_schedule_expression(self, input: Option<String>) -> Self
A cron()
or rate()
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 example rate(12 hours)
or rate(10 days)
. You can rotate a secret as often as every four hours. If you use a rate()
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 the Duration
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 the Duration
to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.
sourcepub fn get_schedule_expression(&self) -> &Option<String>
pub fn get_schedule_expression(&self) -> &Option<String>
A cron()
or rate()
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 example rate(12 hours)
or rate(10 days)
. You can rotate a secret as often as every four hours. If you use a rate()
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 the Duration
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 the Duration
to change the rotation window. The rotation window must not extend into the next UTC day or into the next rotation window.
sourcepub fn build(self) -> RotationRulesType
pub fn build(self) -> RotationRulesType
Consumes the builder and constructs a RotationRulesType
.
Trait Implementations§
source§impl Clone for RotationRulesTypeBuilder
impl Clone for RotationRulesTypeBuilder
source§fn clone(&self) -> RotationRulesTypeBuilder
fn clone(&self) -> RotationRulesTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RotationRulesTypeBuilder
impl Debug for RotationRulesTypeBuilder
source§impl Default for RotationRulesTypeBuilder
impl Default for RotationRulesTypeBuilder
source§fn default() -> RotationRulesTypeBuilder
fn default() -> RotationRulesTypeBuilder
source§impl PartialEq for RotationRulesTypeBuilder
impl PartialEq for RotationRulesTypeBuilder
impl StructuralPartialEq for RotationRulesTypeBuilder
Auto Trait Implementations§
impl Freeze for RotationRulesTypeBuilder
impl RefUnwindSafe for RotationRulesTypeBuilder
impl Send for RotationRulesTypeBuilder
impl Sync for RotationRulesTypeBuilder
impl Unpin for RotationRulesTypeBuilder
impl UnwindSafe for RotationRulesTypeBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)