#[non_exhaustive]pub struct SecretListEntryBuilder { /* private fields */ }
Expand description
A builder for SecretListEntry
.
Implementations§
source§impl SecretListEntryBuilder
impl SecretListEntryBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the secret.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the secret.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The user-provided description of the secret.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The user-provided description of the secret.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The user-provided description of the secret.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
The ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field is omitted.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
The ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field is omitted.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
The ARN of the KMS key that Secrets Manager uses to encrypt the secret value. If the secret is encrypted with the Amazon Web Services managed key aws/secretsmanager
, this field is omitted.
sourcepub fn rotation_enabled(self, input: bool) -> Self
pub fn rotation_enabled(self, input: bool) -> Self
Indicates whether automatic, scheduled rotation is enabled for this secret.
sourcepub fn set_rotation_enabled(self, input: Option<bool>) -> Self
pub fn set_rotation_enabled(self, input: Option<bool>) -> Self
Indicates whether automatic, scheduled rotation is enabled for this secret.
sourcepub fn get_rotation_enabled(&self) -> &Option<bool>
pub fn get_rotation_enabled(&self) -> &Option<bool>
Indicates whether automatic, scheduled rotation is enabled for this secret.
sourcepub fn rotation_lambda_arn(self, input: impl Into<String>) -> Self
pub fn rotation_lambda_arn(self, input: impl Into<String>) -> Self
The ARN of an Amazon Web Services Lambda function invoked by Secrets Manager to rotate and expire the secret either automatically per the schedule or manually by a call to RotateSecret
.
sourcepub fn set_rotation_lambda_arn(self, input: Option<String>) -> Self
pub fn set_rotation_lambda_arn(self, input: Option<String>) -> Self
The ARN of an Amazon Web Services Lambda function invoked by Secrets Manager to rotate and expire the secret either automatically per the schedule or manually by a call to RotateSecret
.
sourcepub fn get_rotation_lambda_arn(&self) -> &Option<String>
pub fn get_rotation_lambda_arn(&self) -> &Option<String>
The ARN of an Amazon Web Services Lambda function invoked by Secrets Manager to rotate and expire the secret either automatically per the schedule or manually by a call to RotateSecret
.
sourcepub fn rotation_rules(self, input: RotationRulesType) -> Self
pub fn rotation_rules(self, input: RotationRulesType) -> Self
A structure that defines the rotation configuration for the secret.
sourcepub fn set_rotation_rules(self, input: Option<RotationRulesType>) -> Self
pub fn set_rotation_rules(self, input: Option<RotationRulesType>) -> Self
A structure that defines the rotation configuration for the secret.
sourcepub fn get_rotation_rules(&self) -> &Option<RotationRulesType>
pub fn get_rotation_rules(&self) -> &Option<RotationRulesType>
A structure that defines the rotation configuration for the secret.
sourcepub fn last_rotated_date(self, input: DateTime) -> Self
pub fn last_rotated_date(self, input: DateTime) -> Self
The most recent date and time that the Secrets Manager rotation process was successfully completed. This value is null if the secret hasn't ever rotated.
sourcepub fn set_last_rotated_date(self, input: Option<DateTime>) -> Self
pub fn set_last_rotated_date(self, input: Option<DateTime>) -> Self
The most recent date and time that the Secrets Manager rotation process was successfully completed. This value is null if the secret hasn't ever rotated.
sourcepub fn get_last_rotated_date(&self) -> &Option<DateTime>
pub fn get_last_rotated_date(&self) -> &Option<DateTime>
The most recent date and time that the Secrets Manager rotation process was successfully completed. This value is null if the secret hasn't ever rotated.
sourcepub fn last_changed_date(self, input: DateTime) -> Self
pub fn last_changed_date(self, input: DateTime) -> Self
The last date and time that this secret was modified in any way.
sourcepub fn set_last_changed_date(self, input: Option<DateTime>) -> Self
pub fn set_last_changed_date(self, input: Option<DateTime>) -> Self
The last date and time that this secret was modified in any way.
sourcepub fn get_last_changed_date(&self) -> &Option<DateTime>
pub fn get_last_changed_date(&self) -> &Option<DateTime>
The last date and time that this secret was modified in any way.
sourcepub fn last_accessed_date(self, input: DateTime) -> Self
pub fn last_accessed_date(self, input: DateTime) -> Self
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
sourcepub fn set_last_accessed_date(self, input: Option<DateTime>) -> Self
pub fn set_last_accessed_date(self, input: Option<DateTime>) -> Self
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
sourcepub fn get_last_accessed_date(&self) -> &Option<DateTime>
pub fn get_last_accessed_date(&self) -> &Option<DateTime>
The date that the secret was last accessed in the Region. This field is omitted if the secret has never been retrieved in the Region.
sourcepub fn deleted_date(self, input: DateTime) -> Self
pub fn deleted_date(self, input: DateTime) -> Self
The date and time the deletion of the secret occurred. Not present on active secrets. The secret can be recovered until the number of days in the recovery window has passed, as specified in the RecoveryWindowInDays
parameter of the DeleteSecret
operation.
sourcepub fn set_deleted_date(self, input: Option<DateTime>) -> Self
pub fn set_deleted_date(self, input: Option<DateTime>) -> Self
The date and time the deletion of the secret occurred. Not present on active secrets. The secret can be recovered until the number of days in the recovery window has passed, as specified in the RecoveryWindowInDays
parameter of the DeleteSecret
operation.
sourcepub fn get_deleted_date(&self) -> &Option<DateTime>
pub fn get_deleted_date(&self) -> &Option<DateTime>
The date and time the deletion of the secret occurred. Not present on active secrets. The secret can be recovered until the number of days in the recovery window has passed, as specified in the RecoveryWindowInDays
parameter of the DeleteSecret
operation.
sourcepub fn next_rotation_date(self, input: DateTime) -> Self
pub fn next_rotation_date(self, input: DateTime) -> Self
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
sourcepub fn set_next_rotation_date(self, input: Option<DateTime>) -> Self
pub fn set_next_rotation_date(self, input: Option<DateTime>) -> Self
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
sourcepub fn get_next_rotation_date(&self) -> &Option<DateTime>
pub fn get_next_rotation_date(&self) -> &Option<DateTime>
The next rotation is scheduled to occur on or before this date. If the secret isn't configured for rotation or rotation has been disabled, Secrets Manager returns null.
Appends an item to tags
.
To override the contents of this collection use set_tags
.
The list of user-defined tags associated with the secret. To add tags to a secret, use TagResource
. To remove tags, use UntagResource
.
The list of user-defined tags associated with the secret. To add tags to a secret, use TagResource
. To remove tags, use UntagResource
.
The list of user-defined tags associated with the secret. To add tags to a secret, use TagResource
. To remove tags, use UntagResource
.
sourcepub fn secret_versions_to_stages(
self,
k: impl Into<String>,
v: Vec<String>,
) -> Self
pub fn secret_versions_to_stages( self, k: impl Into<String>, v: Vec<String>, ) -> Self
Adds a key-value pair to secret_versions_to_stages
.
To override the contents of this collection use set_secret_versions_to_stages
.
A list of all of the currently assigned SecretVersionStage
staging labels and the SecretVersionId
attached to each one. Staging labels are used to keep track of the different versions during the rotation process.
A version that does not have any SecretVersionStage
is considered deprecated and subject to deletion. Such versions are not included in this list.
sourcepub fn set_secret_versions_to_stages(
self,
input: Option<HashMap<String, Vec<String>>>,
) -> Self
pub fn set_secret_versions_to_stages( self, input: Option<HashMap<String, Vec<String>>>, ) -> Self
A list of all of the currently assigned SecretVersionStage
staging labels and the SecretVersionId
attached to each one. Staging labels are used to keep track of the different versions during the rotation process.
A version that does not have any SecretVersionStage
is considered deprecated and subject to deletion. Such versions are not included in this list.
sourcepub fn get_secret_versions_to_stages(
&self,
) -> &Option<HashMap<String, Vec<String>>>
pub fn get_secret_versions_to_stages( &self, ) -> &Option<HashMap<String, Vec<String>>>
A list of all of the currently assigned SecretVersionStage
staging labels and the SecretVersionId
attached to each one. Staging labels are used to keep track of the different versions during the rotation process.
A version that does not have any SecretVersionStage
is considered deprecated and subject to deletion. Such versions are not included in this list.
sourcepub fn owning_service(self, input: impl Into<String>) -> Self
pub fn owning_service(self, input: impl Into<String>) -> Self
Returns the name of the service that created the secret.
sourcepub fn set_owning_service(self, input: Option<String>) -> Self
pub fn set_owning_service(self, input: Option<String>) -> Self
Returns the name of the service that created the secret.
sourcepub fn get_owning_service(&self) -> &Option<String>
pub fn get_owning_service(&self) -> &Option<String>
Returns the name of the service that created the secret.
sourcepub fn created_date(self, input: DateTime) -> Self
pub fn created_date(self, input: DateTime) -> Self
The date and time when a secret was created.
sourcepub fn set_created_date(self, input: Option<DateTime>) -> Self
pub fn set_created_date(self, input: Option<DateTime>) -> Self
The date and time when a secret was created.
sourcepub fn get_created_date(&self) -> &Option<DateTime>
pub fn get_created_date(&self) -> &Option<DateTime>
The date and time when a secret was created.
sourcepub fn primary_region(self, input: impl Into<String>) -> Self
pub fn primary_region(self, input: impl Into<String>) -> Self
The Region where Secrets Manager originated the secret.
sourcepub fn set_primary_region(self, input: Option<String>) -> Self
pub fn set_primary_region(self, input: Option<String>) -> Self
The Region where Secrets Manager originated the secret.
sourcepub fn get_primary_region(&self) -> &Option<String>
pub fn get_primary_region(&self) -> &Option<String>
The Region where Secrets Manager originated the secret.
sourcepub fn build(self) -> SecretListEntry
pub fn build(self) -> SecretListEntry
Consumes the builder and constructs a SecretListEntry
.
Trait Implementations§
source§impl Clone for SecretListEntryBuilder
impl Clone for SecretListEntryBuilder
source§fn clone(&self) -> SecretListEntryBuilder
fn clone(&self) -> SecretListEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SecretListEntryBuilder
impl Debug for SecretListEntryBuilder
source§impl Default for SecretListEntryBuilder
impl Default for SecretListEntryBuilder
source§fn default() -> SecretListEntryBuilder
fn default() -> SecretListEntryBuilder
source§impl PartialEq for SecretListEntryBuilder
impl PartialEq for SecretListEntryBuilder
impl StructuralPartialEq for SecretListEntryBuilder
Auto Trait Implementations§
impl Freeze for SecretListEntryBuilder
impl RefUnwindSafe for SecretListEntryBuilder
impl Send for SecretListEntryBuilder
impl Sync for SecretListEntryBuilder
impl Unpin for SecretListEntryBuilder
impl UnwindSafe for SecretListEntryBuilder
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
)