aws_sdk_cognitoidentity/client/get_identity_pool_roles.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3 /// Constructs a fluent builder for the [`GetIdentityPoolRoles`](crate::operation::get_identity_pool_roles::builders::GetIdentityPoolRolesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`identity_pool_id(impl Into<String>)`](crate::operation::get_identity_pool_roles::builders::GetIdentityPoolRolesFluentBuilder::identity_pool_id) / [`set_identity_pool_id(Option<String>)`](crate::operation::get_identity_pool_roles::builders::GetIdentityPoolRolesFluentBuilder::set_identity_pool_id):<br>required: **true**<br><p>An identity pool ID in the format REGION:GUID.</p><br>
7 /// - On success, responds with [`GetIdentityPoolRolesOutput`](crate::operation::get_identity_pool_roles::GetIdentityPoolRolesOutput) with field(s):
8 /// - [`identity_pool_id(Option<String>)`](crate::operation::get_identity_pool_roles::GetIdentityPoolRolesOutput::identity_pool_id): <p>An identity pool ID in the format REGION:GUID.</p>
9 /// - [`roles(Option<HashMap::<String, String>>)`](crate::operation::get_identity_pool_roles::GetIdentityPoolRolesOutput::roles): <p>The map of roles associated with this pool. Currently only authenticated and unauthenticated roles are supported.</p>
10 /// - [`role_mappings(Option<HashMap::<String, RoleMapping>>)`](crate::operation::get_identity_pool_roles::GetIdentityPoolRolesOutput::role_mappings): <p>How users for a specific identity provider are to mapped to roles. This is a String-to-<code>RoleMapping</code> object map. The string identifies the identity provider, for example, <code>graph.facebook.com</code> or <code>cognito-idp.us-east-1.amazonaws.com/us-east-1_abcdefghi:app_client_id</code>.</p>
11 /// - On failure, responds with [`SdkError<GetIdentityPoolRolesError>`](crate::operation::get_identity_pool_roles::GetIdentityPoolRolesError)
12 pub fn get_identity_pool_roles(&self) -> crate::operation::get_identity_pool_roles::builders::GetIdentityPoolRolesFluentBuilder {
13 crate::operation::get_identity_pool_roles::builders::GetIdentityPoolRolesFluentBuilder::new(self.handle.clone())
14 }
15}