#[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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)