#[non_exhaustive]pub struct GetCredentialsForIdentityInput {
pub identity_id: Option<String>,
pub logins: Option<HashMap<String, String>>,
pub custom_role_arn: Option<String>,
}
Expand description
Input to the GetCredentialsForIdentity
action.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.identity_id: Option<String>
A unique identifier in the format REGION:GUID.
logins: Option<HashMap<String, String>>
A set of optional name-value pairs that map provider names to provider tokens. The name-value pair will follow the syntax "provider_name": "provider_user_identifier".
Logins should not be specified when trying to get credentials for an unauthenticated identity.
The Logins parameter is required when using identities associated with external identity providers such as Facebook. For examples of Logins
maps, see the code examples in the External Identity Providers section of the Amazon Cognito Developer Guide.
custom_role_arn: Option<String>
The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetCredentialsForIdentity, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<GetCredentialsForIdentity, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<GetCredentialsForIdentity
>
Creates a new builder-style object to manufacture GetCredentialsForIdentityInput
A unique identifier in the format REGION:GUID.
A set of optional name-value pairs that map provider names to provider tokens. The name-value pair will follow the syntax "provider_name": "provider_user_identifier".
Logins should not be specified when trying to get credentials for an unauthenticated identity.
The Logins parameter is required when using identities associated with external identity providers such as Facebook. For examples of Logins
maps, see the code examples in the External Identity Providers section of the Amazon Cognito Developer Guide.
The Amazon Resource Name (ARN) of the role to be assumed when multiple roles were received in the token from the identity provider. For example, a SAML-based identity provider. This parameter is optional for identity providers that do not support role customization.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for GetCredentialsForIdentityInput
impl Sync for GetCredentialsForIdentityInput
impl Unpin for GetCredentialsForIdentityInput
impl UnwindSafe for GetCredentialsForIdentityInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more