#[non_exhaustive]pub struct AwsIamAccessKeyDetailsBuilder { /* private fields */ }
Expand description
A builder for AwsIamAccessKeyDetails
.
Implementations§
source§impl AwsIamAccessKeyDetailsBuilder
impl AwsIamAccessKeyDetailsBuilder
sourcepub fn user_name(self, input: impl Into<String>) -> Self
👎Deprecated: This filter is deprecated. Instead, use PrincipalName.
pub fn user_name(self, input: impl Into<String>) -> Self
The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter because access keys can also be assigned to principals that are not IAM users.
sourcepub fn set_user_name(self, input: Option<String>) -> Self
👎Deprecated: This filter is deprecated. Instead, use PrincipalName.
pub fn set_user_name(self, input: Option<String>) -> Self
The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter because access keys can also be assigned to principals that are not IAM users.
sourcepub fn get_user_name(&self) -> &Option<String>
👎Deprecated: This filter is deprecated. Instead, use PrincipalName.
pub fn get_user_name(&self) -> &Option<String>
The user associated with the IAM access key related to a finding.
The UserName
parameter has been replaced with the PrincipalName
parameter because access keys can also be assigned to principals that are not IAM users.
sourcepub fn status(self, input: AwsIamAccessKeyStatus) -> Self
pub fn status(self, input: AwsIamAccessKeyStatus) -> Self
The status of the IAM access key related to a finding.
sourcepub fn set_status(self, input: Option<AwsIamAccessKeyStatus>) -> Self
pub fn set_status(self, input: Option<AwsIamAccessKeyStatus>) -> Self
The status of the IAM access key related to a finding.
sourcepub fn get_status(&self) -> &Option<AwsIamAccessKeyStatus>
pub fn get_status(&self) -> &Option<AwsIamAccessKeyStatus>
The status of the IAM access key related to a finding.
sourcepub fn created_at(self, input: impl Into<String>) -> Self
pub fn created_at(self, input: impl Into<String>) -> Self
Indicates when the IAM access key was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn set_created_at(self, input: Option<String>) -> Self
pub fn set_created_at(self, input: Option<String>) -> Self
Indicates when the IAM access key was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn get_created_at(&self) -> &Option<String>
pub fn get_created_at(&self) -> &Option<String>
Indicates when the IAM access key was created.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be separated by T
. For example, 2020-03-22T13:22:13.933Z
.
sourcepub fn principal_id(self, input: impl Into<String>) -> Self
pub fn principal_id(self, input: impl Into<String>) -> Self
The ID of the principal associated with an access key.
sourcepub fn set_principal_id(self, input: Option<String>) -> Self
pub fn set_principal_id(self, input: Option<String>) -> Self
The ID of the principal associated with an access key.
sourcepub fn get_principal_id(&self) -> &Option<String>
pub fn get_principal_id(&self) -> &Option<String>
The ID of the principal associated with an access key.
sourcepub fn principal_type(self, input: impl Into<String>) -> Self
pub fn principal_type(self, input: impl Into<String>) -> Self
The type of principal associated with an access key.
sourcepub fn set_principal_type(self, input: Option<String>) -> Self
pub fn set_principal_type(self, input: Option<String>) -> Self
The type of principal associated with an access key.
sourcepub fn get_principal_type(&self) -> &Option<String>
pub fn get_principal_type(&self) -> &Option<String>
The type of principal associated with an access key.
sourcepub fn principal_name(self, input: impl Into<String>) -> Self
pub fn principal_name(self, input: impl Into<String>) -> Self
The name of the principal.
sourcepub fn set_principal_name(self, input: Option<String>) -> Self
pub fn set_principal_name(self, input: Option<String>) -> Self
The name of the principal.
sourcepub fn get_principal_name(&self) -> &Option<String>
pub fn get_principal_name(&self) -> &Option<String>
The name of the principal.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID of the account for the key.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID of the account for the key.
sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The Amazon Web Services account ID of the account for the key.
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The identifier of the access key.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The identifier of the access key.
sourcepub fn get_access_key_id(&self) -> &Option<String>
pub fn get_access_key_id(&self) -> &Option<String>
The identifier of the access key.
sourcepub fn session_context(self, input: AwsIamAccessKeySessionContext) -> Self
pub fn session_context(self, input: AwsIamAccessKeySessionContext) -> Self
Information about the session that the key was used for.
sourcepub fn set_session_context(
self,
input: Option<AwsIamAccessKeySessionContext>
) -> Self
pub fn set_session_context( self, input: Option<AwsIamAccessKeySessionContext> ) -> Self
Information about the session that the key was used for.
sourcepub fn get_session_context(&self) -> &Option<AwsIamAccessKeySessionContext>
pub fn get_session_context(&self) -> &Option<AwsIamAccessKeySessionContext>
Information about the session that the key was used for.
sourcepub fn build(self) -> AwsIamAccessKeyDetails
pub fn build(self) -> AwsIamAccessKeyDetails
Consumes the builder and constructs a AwsIamAccessKeyDetails
.
Trait Implementations§
source§impl Clone for AwsIamAccessKeyDetailsBuilder
impl Clone for AwsIamAccessKeyDetailsBuilder
source§fn clone(&self) -> AwsIamAccessKeyDetailsBuilder
fn clone(&self) -> AwsIamAccessKeyDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsIamAccessKeyDetailsBuilder
impl Default for AwsIamAccessKeyDetailsBuilder
source§fn default() -> AwsIamAccessKeyDetailsBuilder
fn default() -> AwsIamAccessKeyDetailsBuilder
source§impl PartialEq for AwsIamAccessKeyDetailsBuilder
impl PartialEq for AwsIamAccessKeyDetailsBuilder
source§fn eq(&self, other: &AwsIamAccessKeyDetailsBuilder) -> bool
fn eq(&self, other: &AwsIamAccessKeyDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.