aws_sdk_cognitoidentity/client/set_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 [`SetIdentityPoolRoles`](crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`identity_pool_id(impl Into<String>)`](crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder::identity_pool_id) / [`set_identity_pool_id(Option<String>)`](crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder::set_identity_pool_id):<br>required: **true**<br><p>An identity pool ID in the format REGION:GUID.</p><br>
7 /// - [`roles(impl Into<String>, impl Into<String>)`](crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder::roles) / [`set_roles(Option<HashMap::<String, String>>)`](crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder::set_roles):<br>required: **true**<br><p>The map of roles associated with this pool. For a given role, the key will be either "authenticated" or "unauthenticated" and the value will be the Role ARN.</p><br>
8 /// - [`role_mappings(impl Into<String>, RoleMapping)`](crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder::role_mappings) / [`set_role_mappings(Option<HashMap::<String, RoleMapping>>)`](crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder::set_role_mappings):<br>required: **false**<br><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> <p>Up to 25 rules can be specified per identity provider.</p><br>
9 /// - On success, responds with [`SetIdentityPoolRolesOutput`](crate::operation::set_identity_pool_roles::SetIdentityPoolRolesOutput)
10 /// - On failure, responds with [`SdkError<SetIdentityPoolRolesError>`](crate::operation::set_identity_pool_roles::SetIdentityPoolRolesError)
11 pub fn set_identity_pool_roles(&self) -> crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder {
12 crate::operation::set_identity_pool_roles::builders::SetIdentityPoolRolesFluentBuilder::new(self.handle.clone())
13 }
14}