pub struct GetRoleCredentialsFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetRoleCredentials
.
Returns the STS short-term credentials for a given role name that is assigned to the user.
Implementations§
Source§impl GetRoleCredentialsFluentBuilder
impl GetRoleCredentialsFluentBuilder
Sourcepub fn as_input(&self) -> &GetRoleCredentialsInputBuilder
pub fn as_input(&self) -> &GetRoleCredentialsInputBuilder
Access the GetRoleCredentials as a reference.
Sourcepub async fn send(
self,
) -> Result<GetRoleCredentialsOutput, SdkError<GetRoleCredentialsError, HttpResponse>>
pub async fn send( self, ) -> Result<GetRoleCredentialsOutput, SdkError<GetRoleCredentialsError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<GetRoleCredentialsOutput, GetRoleCredentialsError, Self>
pub fn customize( self, ) -> CustomizableOperation<GetRoleCredentialsOutput, GetRoleCredentialsError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn role_name(self, input: impl Into<String>) -> Self
pub fn role_name(self, input: impl Into<String>) -> Self
The friendly name of the role that is assigned to the user.
Sourcepub fn set_role_name(self, input: Option<String>) -> Self
pub fn set_role_name(self, input: Option<String>) -> Self
The friendly name of the role that is assigned to the user.
Sourcepub fn get_role_name(&self) -> &Option<String>
pub fn get_role_name(&self) -> &Option<String>
The friendly name of the role that is assigned to the user.
Sourcepub fn account_id(self, input: impl Into<String>) -> Self
pub fn account_id(self, input: impl Into<String>) -> Self
The identifier for the AWS account that is assigned to the user.
Sourcepub fn set_account_id(self, input: Option<String>) -> Self
pub fn set_account_id(self, input: Option<String>) -> Self
The identifier for the AWS account that is assigned to the user.
Sourcepub fn get_account_id(&self) -> &Option<String>
pub fn get_account_id(&self) -> &Option<String>
The identifier for the AWS account that is assigned to the user.
Sourcepub fn access_token(self, input: impl Into<String>) -> Self
pub fn access_token(self, input: impl Into<String>) -> Self
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Sourcepub fn set_access_token(self, input: Option<String>) -> Self
pub fn set_access_token(self, input: Option<String>) -> Self
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Sourcepub fn get_access_token(&self) -> &Option<String>
pub fn get_access_token(&self) -> &Option<String>
The token issued by the CreateToken
API call. For more information, see CreateToken in the IAM Identity Center OIDC API Reference Guide.
Trait Implementations§
Source§impl Clone for GetRoleCredentialsFluentBuilder
impl Clone for GetRoleCredentialsFluentBuilder
Source§fn clone(&self) -> GetRoleCredentialsFluentBuilder
fn clone(&self) -> GetRoleCredentialsFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetRoleCredentialsFluentBuilder
impl !RefUnwindSafe for GetRoleCredentialsFluentBuilder
impl Send for GetRoleCredentialsFluentBuilder
impl Sync for GetRoleCredentialsFluentBuilder
impl Unpin for GetRoleCredentialsFluentBuilder
impl !UnwindSafe for GetRoleCredentialsFluentBuilder
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
)