Amazon.CognitoIdentity.AmazonCognitoIdentityClient.SetIdentityPoolRolesAsync C# (CSharp) Method

SetIdentityPoolRolesAsync() public method

Sets the roles for an identity pool. These roles are used when making calls to GetCredentialsForIdentity action.

You must use AWS Developer credentials to call this API.

/// Thrown if there are parallel requests to modify a resource. /// /// Thrown when the service encounters an error during processing the request. /// /// Thrown for missing or bad input parameter(s). /// /// Thrown when a user is not authorized to access the requested resource. /// /// Thrown when a user tries to use a login which is already linked to another account. /// /// Thrown when the requested resource (for example, a dataset or record) does not exist. /// /// Thrown when a request is throttled. ///
public SetIdentityPoolRolesAsync ( string identityPoolId, string>.Dictionary roles, SetIdentityPoolRolesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
identityPoolId string An identity pool ID in the format REGION:GUID.
roles string>.Dictionary 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.
callback SetIdentityPoolRolesResponse>.AmazonServiceCallback An Action delegate that is invoked when the operation completes.
options AsyncOptions /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. ///
return void
        public void SetIdentityPoolRolesAsync(string identityPoolId, Dictionary<string, string> roles,  AmazonServiceCallback<SetIdentityPoolRolesRequest, SetIdentityPoolRolesResponse> callback, AsyncOptions options = null)
        {
            var request = new SetIdentityPoolRolesRequest();
            request.IdentityPoolId = identityPoolId;
            request.Roles = roles;
            SetIdentityPoolRolesAsync(request, callback, options);
        }

Same methods

AmazonCognitoIdentityClient::SetIdentityPoolRolesAsync ( SetIdentityPoolRolesRequest request, System cancellationToken = default(CancellationToken) ) : Task
AmazonCognitoIdentityClient::SetIdentityPoolRolesAsync ( string identityPoolId, string>.Dictionary roles, System cancellationToken = default(CancellationToken) ) : Task
AmazonCognitoIdentityClient::SetIdentityPoolRolesAsync ( SetIdentityPoolRolesRequest request, SetIdentityPoolRolesResponse>.AmazonServiceCallback callback, AsyncOptions options = null ) : void
AmazonCognitoIdentityClient