Struct aws_sdk_sts::types::builders::AssumedRoleUserBuilder
source · #[non_exhaustive]pub struct AssumedRoleUserBuilder { /* private fields */ }
Expand description
A builder for AssumedRoleUser
.
Implementations§
source§impl AssumedRoleUserBuilder
impl AssumedRoleUserBuilder
sourcepub fn assumed_role_id(self, input: impl Into<String>) -> Self
pub fn assumed_role_id(self, input: impl Into<String>) -> Self
A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by Amazon Web Services when the role is created.
This field is required.sourcepub fn set_assumed_role_id(self, input: Option<String>) -> Self
pub fn set_assumed_role_id(self, input: Option<String>) -> Self
A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by Amazon Web Services when the role is created.
sourcepub fn get_assumed_role_id(&self) -> &Option<String>
pub fn get_assumed_role_id(&self) -> &Option<String>
A unique identifier that contains the role ID and the role session name of the role that is being assumed. The role ID is generated by Amazon Web Services when the role is created.
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the temporary security credentials that are returned from the AssumeRole
action. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The ARN of the temporary security credentials that are returned from the AssumeRole
action. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
sourcepub fn get_arn(&self) -> &Option<String>
pub fn get_arn(&self) -> &Option<String>
The ARN of the temporary security credentials that are returned from the AssumeRole
action. For more information about ARNs and how to use them in policies, see IAM Identifiers in the IAM User Guide.
sourcepub fn build(self) -> Result<AssumedRoleUser, BuildError>
pub fn build(self) -> Result<AssumedRoleUser, BuildError>
Consumes the builder and constructs a AssumedRoleUser
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AssumedRoleUserBuilder
impl Clone for AssumedRoleUserBuilder
source§fn clone(&self) -> AssumedRoleUserBuilder
fn clone(&self) -> AssumedRoleUserBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AssumedRoleUserBuilder
impl Debug for AssumedRoleUserBuilder
source§impl Default for AssumedRoleUserBuilder
impl Default for AssumedRoleUserBuilder
source§fn default() -> AssumedRoleUserBuilder
fn default() -> AssumedRoleUserBuilder
source§impl PartialEq for AssumedRoleUserBuilder
impl PartialEq for AssumedRoleUserBuilder
impl StructuralPartialEq for AssumedRoleUserBuilder
Auto Trait Implementations§
impl Freeze for AssumedRoleUserBuilder
impl RefUnwindSafe for AssumedRoleUserBuilder
impl Send for AssumedRoleUserBuilder
impl Sync for AssumedRoleUserBuilder
impl Unpin for AssumedRoleUserBuilder
impl UnwindSafe for AssumedRoleUserBuilder
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
)