Struct aws_sdk_secretsmanager::model::secret_list_entry::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }Expand description
A builder for SecretListEntry
Implementations
sourceimpl Builder
impl Builder
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 name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The friendly name of the secret. You can use forward slashes in the name to represent a path hierarchy. For example, /prod/databases/dbserver1 could represent the secret for a server named dbserver1 in the folder databases in the folder prod.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The friendly name of the secret. You can use forward slashes in the name to represent a path hierarchy. For example, /prod/databases/dbserver1 could represent the secret for a server named dbserver1 in the folder databases in the folder prod.
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 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 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 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 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 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 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 last_accessed_date(self, input: DateTime) -> Self
pub fn last_accessed_date(self, input: DateTime) -> Self
The last date that this secret was accessed. This value is truncated to midnight of the date and therefore shows only the date, not the time.
sourcepub fn set_last_accessed_date(self, input: Option<DateTime>) -> Self
pub fn set_last_accessed_date(self, input: Option<DateTime>) -> Self
The last date that this secret was accessed. This value is truncated to midnight of the date and therefore shows only the date, not the time.
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.
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 .
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 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 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 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 build(self) -> SecretListEntry
pub fn build(self) -> SecretListEntry
Consumes the builder and constructs a SecretListEntry
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more