Struct aws_sdk_sso::operation::get_role_credentials::builders::GetRoleCredentialsFluentBuilder
source · 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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)