1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`GetCredentialsForIdentity`](crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`identity_id(impl Into<String>)`](crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder::identity_id) / [`set_identity_id(Option<String>)`](crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder::set_identity_id):<br>required: **true**<br><p>A unique identifier in the format REGION:GUID.</p><br>
    ///   - [`logins(impl Into<String>, impl Into<String>)`](crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder::logins) / [`set_logins(Option<HashMap::<String, String>>)`](crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder::set_logins):<br>required: **false**<br><p>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".</p> <p>Logins should not be specified when trying to get credentials for an unauthenticated identity.</p> <p>The Logins parameter is required when using identities associated with external identity providers such as Facebook. For examples of <code>Logins</code> maps, see the code examples in the <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/external-identity-providers.html">External Identity Providers</a> section of the Amazon Cognito Developer Guide.</p><br>
    ///   - [`custom_role_arn(impl Into<String>)`](crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder::custom_role_arn) / [`set_custom_role_arn(Option<String>)`](crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder::set_custom_role_arn):<br>required: **false**<br><p>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.</p><br>
    /// - On success, responds with [`GetCredentialsForIdentityOutput`](crate::operation::get_credentials_for_identity::GetCredentialsForIdentityOutput) with field(s):
    ///   - [`identity_id(Option<String>)`](crate::operation::get_credentials_for_identity::GetCredentialsForIdentityOutput::identity_id): <p>A unique identifier in the format REGION:GUID.</p>
    ///   - [`credentials(Option<Credentials>)`](crate::operation::get_credentials_for_identity::GetCredentialsForIdentityOutput::credentials): <p>Credentials for the provided identity ID.</p>
    /// - On failure, responds with [`SdkError<GetCredentialsForIdentityError>`](crate::operation::get_credentials_for_identity::GetCredentialsForIdentityError)
    pub fn get_credentials_for_identity(&self) -> crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder {
        crate::operation::get_credentials_for_identity::builders::GetCredentialsForIdentityFluentBuilder::new(self.handle.clone())
    }
}