Struct aws_sdk_macie2::model::assumed_role::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AssumedRole
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn access_key_id(self, input: impl Into<String>) -> Self
pub fn access_key_id(self, input: impl Into<String>) -> Self
The Amazon Web Services access key ID that identifies the credentials.
sourcepub fn set_access_key_id(self, input: Option<String>) -> Self
pub fn set_access_key_id(self, input: Option<String>) -> Self
The Amazon Web Services access key ID that identifies the credentials.
sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The unique identifier for the Amazon Web Services account that owns the entity that was used to get the credentials.
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 entity that was used to get the credentials.
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 entity that was used to get the credentials.
sourcepub fn principal_id(self, input: impl Into<String>) -> Self
pub fn principal_id(self, input: impl Into<String>) -> Self
The unique identifier for the entity that was used to get the credentials.
sourcepub fn set_principal_id(self, input: Option<String>) -> Self
pub fn set_principal_id(self, input: Option<String>) -> Self
The unique identifier for the entity that was used to get the credentials.
sourcepub fn session_context(self, input: SessionContext) -> Self
pub fn session_context(self, input: SessionContext) -> Self
The details of the session that was created for the credentials, including the entity that issued the session.
sourcepub fn set_session_context(self, input: Option<SessionContext>) -> Self
pub fn set_session_context(self, input: Option<SessionContext>) -> Self
The details of the session that was created for the credentials, including the entity that issued the session.
sourcepub fn build(self) -> AssumedRole
pub fn build(self) -> AssumedRole
Consumes the builder and constructs a AssumedRole
.