/* * Copyright 2010-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the cognito-identity-2014-06-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CognitoIdentity.Model; using Amazon.CognitoIdentity.Model.Internal.MarshallTransformations; using Amazon.CognitoIdentity.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CognitoIdentity { /// /// Implementation for accessing CognitoIdentity /// /// Amazon Cognito Federated Identities /// /// Amazon Cognito Federated Identities is a web service that delivers scoped temporary /// credentials to mobile devices and other untrusted environments. It uniquely identifies /// a device and supplies the user with a consistent identity over the lifetime of an /// application. /// /// /// /// Using Amazon Cognito Federated Identities, you can enable authentication with one /// or more third-party identity providers (Facebook, Google, or Login with Amazon) or /// an Amazon Cognito user pool, and you can also choose to support unauthenticated access /// from your app. Cognito delivers a unique identifier for each user and acts as an OpenID /// token provider trusted by AWS Security Token Service (STS) to access temporary, limited-privilege /// AWS credentials. /// /// /// /// For a description of the authentication flow from the Amazon Cognito Developer Guide /// see Authentication /// Flow. /// /// /// /// For more information see Amazon /// Cognito Federated Identities. /// /// public partial class AmazonCognitoIdentityClient : AmazonServiceClient, IAmazonCognitoIdentity { private static IServiceMetadata serviceMetadata = new AmazonCognitoIdentityMetadata(); #region Constructors /// /// Constructs AmazonCognitoIdentityClient with AWS Credentials /// /// AWS Credentials public AmazonCognitoIdentityClient(AWSCredentials credentials) : this(credentials, new AmazonCognitoIdentityConfig()) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCognitoIdentityClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCognitoIdentityConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Credentials and an /// AmazonCognitoIdentityClient Configuration object. /// /// AWS Credentials /// The AmazonCognitoIdentityClient Configuration Object public AmazonCognitoIdentityClient(AWSCredentials credentials, AmazonCognitoIdentityConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCognitoIdentityClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCognitoIdentityConfig()) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCognitoIdentityClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCognitoIdentityConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCognitoIdentityClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCognitoIdentityClient Configuration Object public AmazonCognitoIdentityClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCognitoIdentityConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCognitoIdentityClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCognitoIdentityConfig()) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The region to connect. public AmazonCognitoIdentityClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCognitoIdentityConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCognitoIdentityClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCognitoIdentityClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCognitoIdentityClient Configuration Object public AmazonCognitoIdentityClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCognitoIdentityConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Capture metadata for the service. /// protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// /// Disposes the service client. /// protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region CreateIdentityPool internal virtual CreateIdentityPoolResponse CreateIdentityPool(CreateIdentityPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateIdentityPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateIdentityPoolResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the CreateIdentityPool operation. /// /// /// Container for the necessary parameters to execute the CreateIdentityPool operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for CreateIdentityPool Operation public virtual void CreateIdentityPoolAsync(CreateIdentityPoolRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = CreateIdentityPoolRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = CreateIdentityPoolResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((CreateIdentityPoolRequest)req, (CreateIdentityPoolResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DeleteIdentities internal virtual DeleteIdentitiesResponse DeleteIdentities(DeleteIdentitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIdentitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIdentitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteIdentities operation. /// /// /// Container for the necessary parameters to execute the DeleteIdentities operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for DeleteIdentities Operation public virtual void DeleteIdentitiesAsync(DeleteIdentitiesRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DeleteIdentitiesRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DeleteIdentitiesResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DeleteIdentitiesRequest)req, (DeleteIdentitiesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DeleteIdentityPool internal virtual DeleteIdentityPoolResponse DeleteIdentityPool(DeleteIdentityPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteIdentityPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteIdentityPoolResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an identity pool. Once a pool is deleted, users will not be able to authenticate /// with the pool. /// /// /// /// You must use AWS Developer credentials to call this API. /// /// /// An identity pool ID in the format REGION:GUID. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the DeleteIdentityPool service method, as returned by CognitoIdentity. /// /// 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 the requested resource (for example, a dataset or record) does not exist. /// /// /// Thrown when a request is throttled. /// /// REST API Reference for DeleteIdentityPool Operation public virtual void DeleteIdentityPoolAsync(string identityPoolId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new DeleteIdentityPoolRequest(); request.IdentityPoolId = identityPoolId; DeleteIdentityPoolAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the DeleteIdentityPool operation. /// /// /// Container for the necessary parameters to execute the DeleteIdentityPool operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for DeleteIdentityPool Operation public virtual void DeleteIdentityPoolAsync(DeleteIdentityPoolRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DeleteIdentityPoolRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DeleteIdentityPoolResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DeleteIdentityPoolRequest)req, (DeleteIdentityPoolResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeIdentity internal virtual DescribeIdentityResponse DescribeIdentity(DescribeIdentityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIdentityRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIdentityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata related to the given identity, including when the identity was created /// and any associated linked logins. /// /// /// /// You must use AWS Developer credentials to call this API. /// /// /// A unique identifier in the format REGION:GUID. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the DescribeIdentity service method, as returned by CognitoIdentity. /// /// 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 the requested resource (for example, a dataset or record) does not exist. /// /// /// Thrown when a request is throttled. /// /// REST API Reference for DescribeIdentity Operation public virtual void DescribeIdentityAsync(string identityId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new DescribeIdentityRequest(); request.IdentityId = identityId; DescribeIdentityAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the DescribeIdentity operation. /// /// /// Container for the necessary parameters to execute the DescribeIdentity operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for DescribeIdentity Operation public virtual void DescribeIdentityAsync(DescribeIdentityRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeIdentityRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeIdentityResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeIdentityRequest)req, (DescribeIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeIdentityPool internal virtual DescribeIdentityPoolResponse DescribeIdentityPool(DescribeIdentityPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIdentityPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIdentityPoolResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets details about a particular identity pool, including the pool name, ID description, /// creation date, and current number of users. /// /// /// /// You must use AWS Developer credentials to call this API. /// /// /// An identity pool ID in the format REGION:GUID. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the DescribeIdentityPool service method, as returned by CognitoIdentity. /// /// 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 the requested resource (for example, a dataset or record) does not exist. /// /// /// Thrown when a request is throttled. /// /// REST API Reference for DescribeIdentityPool Operation public virtual void DescribeIdentityPoolAsync(string identityPoolId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new DescribeIdentityPoolRequest(); request.IdentityPoolId = identityPoolId; DescribeIdentityPoolAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the DescribeIdentityPool operation. /// /// /// Container for the necessary parameters to execute the DescribeIdentityPool operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for DescribeIdentityPool Operation public virtual void DescribeIdentityPoolAsync(DescribeIdentityPoolRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeIdentityPoolRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeIdentityPoolResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeIdentityPoolRequest)req, (DescribeIdentityPoolResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetCredentialsForIdentity internal virtual GetCredentialsForIdentityResponse GetCredentialsForIdentity(GetCredentialsForIdentityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCredentialsForIdentityRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCredentialsForIdentityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns credentials for the provided identity ID. Any provided logins will be validated /// against supported login providers. If the token is for cognito-identity.amazonaws.com, /// it will be passed through to AWS Security Token Service with the appropriate role /// for the token. /// /// /// /// This is a public API. You do not need any credentials to call this API. /// /// /// A unique identifier in the format REGION:GUID. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the GetCredentialsForIdentity service method, as returned by CognitoIdentity. /// /// An exception thrown when a dependent service such as Facebook or Twitter is not responding /// /// /// Thrown when the service encounters an error during processing the request. /// /// /// Thrown if the identity pool has no role associated for the given auth type (auth/unauth) /// or if the AssumeRole fails. /// /// /// 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. /// /// REST API Reference for GetCredentialsForIdentity Operation public virtual void GetCredentialsForIdentityAsync(string identityId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new GetCredentialsForIdentityRequest(); request.IdentityId = identityId; GetCredentialsForIdentityAsync(request, callback, options); } /// /// Returns credentials for the provided identity ID. Any provided logins will be validated /// against supported login providers. If the token is for cognito-identity.amazonaws.com, /// it will be passed through to AWS Security Token Service with the appropriate role /// for the token. /// /// /// /// This is a public API. You do not need any credentials to call this API. /// /// /// 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. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the GetCredentialsForIdentity service method, as returned by CognitoIdentity. /// /// An exception thrown when a dependent service such as Facebook or Twitter is not responding /// /// /// Thrown when the service encounters an error during processing the request. /// /// /// Thrown if the identity pool has no role associated for the given auth type (auth/unauth) /// or if the AssumeRole fails. /// /// /// 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. /// /// REST API Reference for GetCredentialsForIdentity Operation public virtual void GetCredentialsForIdentityAsync(string identityId, Dictionary logins, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new GetCredentialsForIdentityRequest(); request.IdentityId = identityId; request.Logins = logins; GetCredentialsForIdentityAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the GetCredentialsForIdentity operation. /// /// /// Container for the necessary parameters to execute the GetCredentialsForIdentity operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for GetCredentialsForIdentity Operation public virtual void GetCredentialsForIdentityAsync(GetCredentialsForIdentityRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetCredentialsForIdentityRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetCredentialsForIdentityResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetCredentialsForIdentityRequest)req, (GetCredentialsForIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetId internal virtual GetIdResponse GetId(GetIdRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIdRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIdResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetId operation. /// /// /// Container for the necessary parameters to execute the GetId operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for GetId Operation public virtual void GetIdAsync(GetIdRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetIdRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetIdResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetIdRequest)req, (GetIdResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetIdentityPoolRoles internal virtual GetIdentityPoolRolesResponse GetIdentityPoolRoles(GetIdentityPoolRolesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIdentityPoolRolesRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIdentityPoolRolesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the roles for an identity pool. /// /// /// /// You must use AWS Developer credentials to call this API. /// /// /// An identity pool ID in the format REGION:GUID. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the GetIdentityPoolRoles service method, as returned by CognitoIdentity. /// /// 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. /// /// REST API Reference for GetIdentityPoolRoles Operation public virtual void GetIdentityPoolRolesAsync(string identityPoolId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new GetIdentityPoolRolesRequest(); request.IdentityPoolId = identityPoolId; GetIdentityPoolRolesAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the GetIdentityPoolRoles operation. /// /// /// Container for the necessary parameters to execute the GetIdentityPoolRoles operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for GetIdentityPoolRoles Operation public virtual void GetIdentityPoolRolesAsync(GetIdentityPoolRolesRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetIdentityPoolRolesRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetIdentityPoolRolesResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetIdentityPoolRolesRequest)req, (GetIdentityPoolRolesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetOpenIdToken internal virtual GetOpenIdTokenResponse GetOpenIdToken(GetOpenIdTokenRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetOpenIdTokenRequestMarshaller.Instance; options.ResponseUnmarshaller = GetOpenIdTokenResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets an OpenID token, using a known Cognito ID. This known Cognito ID is returned /// by GetId. You can optionally add additional logins for the identity. Supplying /// multiple logins creates an implicit link. /// /// /// /// The OpenId token is valid for 10 minutes. /// /// /// /// This is a public API. You do not need any credentials to call this API. /// /// /// A unique identifier in the format REGION:GUID. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the GetOpenIdToken service method, as returned by CognitoIdentity. /// /// An exception thrown when a dependent service such as Facebook or Twitter is not responding /// /// /// 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. /// /// REST API Reference for GetOpenIdToken Operation public virtual void GetOpenIdTokenAsync(string identityId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new GetOpenIdTokenRequest(); request.IdentityId = identityId; GetOpenIdTokenAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the GetOpenIdToken operation. /// /// /// Container for the necessary parameters to execute the GetOpenIdToken operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for GetOpenIdToken Operation public virtual void GetOpenIdTokenAsync(GetOpenIdTokenRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetOpenIdTokenRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetOpenIdTokenResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetOpenIdTokenRequest)req, (GetOpenIdTokenResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetOpenIdTokenForDeveloperIdentity internal virtual GetOpenIdTokenForDeveloperIdentityResponse GetOpenIdTokenForDeveloperIdentity(GetOpenIdTokenForDeveloperIdentityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetOpenIdTokenForDeveloperIdentityRequestMarshaller.Instance; options.ResponseUnmarshaller = GetOpenIdTokenForDeveloperIdentityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetOpenIdTokenForDeveloperIdentity operation. /// /// /// Container for the necessary parameters to execute the GetOpenIdTokenForDeveloperIdentity operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for GetOpenIdTokenForDeveloperIdentity Operation public virtual void GetOpenIdTokenForDeveloperIdentityAsync(GetOpenIdTokenForDeveloperIdentityRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetOpenIdTokenForDeveloperIdentityRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetOpenIdTokenForDeveloperIdentityResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetOpenIdTokenForDeveloperIdentityRequest)req, (GetOpenIdTokenForDeveloperIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListIdentities internal virtual ListIdentitiesResponse ListIdentities(ListIdentitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIdentitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIdentitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListIdentities operation. /// /// /// Container for the necessary parameters to execute the ListIdentities operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for ListIdentities Operation public virtual void ListIdentitiesAsync(ListIdentitiesRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListIdentitiesRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListIdentitiesResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListIdentitiesRequest)req, (ListIdentitiesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListIdentityPools internal virtual ListIdentityPoolsResponse ListIdentityPools(ListIdentityPoolsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIdentityPoolsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIdentityPoolsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListIdentityPools operation. /// /// /// Container for the necessary parameters to execute the ListIdentityPools operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for ListIdentityPools Operation public virtual void ListIdentityPoolsAsync(ListIdentityPoolsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListIdentityPoolsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListIdentityPoolsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListIdentityPoolsRequest)req, (ListIdentityPoolsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListTagsForResource internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListTagsForResource operation. /// /// /// Container for the necessary parameters to execute the ListTagsForResource operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for ListTagsForResource Operation public virtual void ListTagsForResourceAsync(ListTagsForResourceRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListTagsForResourceRequest)req, (ListTagsForResourceResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region LookupDeveloperIdentity internal virtual LookupDeveloperIdentityResponse LookupDeveloperIdentity(LookupDeveloperIdentityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = LookupDeveloperIdentityRequestMarshaller.Instance; options.ResponseUnmarshaller = LookupDeveloperIdentityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the LookupDeveloperIdentity operation. /// /// /// Container for the necessary parameters to execute the LookupDeveloperIdentity operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for LookupDeveloperIdentity Operation public virtual void LookupDeveloperIdentityAsync(LookupDeveloperIdentityRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = LookupDeveloperIdentityRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = LookupDeveloperIdentityResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((LookupDeveloperIdentityRequest)req, (LookupDeveloperIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region MergeDeveloperIdentities internal virtual MergeDeveloperIdentitiesResponse MergeDeveloperIdentities(MergeDeveloperIdentitiesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = MergeDeveloperIdentitiesRequestMarshaller.Instance; options.ResponseUnmarshaller = MergeDeveloperIdentitiesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the MergeDeveloperIdentities operation. /// /// /// Container for the necessary parameters to execute the MergeDeveloperIdentities operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for MergeDeveloperIdentities Operation public virtual void MergeDeveloperIdentitiesAsync(MergeDeveloperIdentitiesRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = MergeDeveloperIdentitiesRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = MergeDeveloperIdentitiesResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((MergeDeveloperIdentitiesRequest)req, (MergeDeveloperIdentitiesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region SetIdentityPoolRoles internal virtual SetIdentityPoolRolesResponse SetIdentityPoolRoles(SetIdentityPoolRolesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetIdentityPoolRolesRequestMarshaller.Instance; options.ResponseUnmarshaller = SetIdentityPoolRolesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// 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. /// /// /// An identity pool ID in the format REGION:GUID. /// 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. /// An Action delegate that is invoked when the operation completes. /// /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// /// /// The response from the SetIdentityPoolRoles service method, as returned by CognitoIdentity. /// /// 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. /// /// REST API Reference for SetIdentityPoolRoles Operation public virtual void SetIdentityPoolRolesAsync(string identityPoolId, Dictionary roles, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new SetIdentityPoolRolesRequest(); request.IdentityPoolId = identityPoolId; request.Roles = roles; SetIdentityPoolRolesAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the SetIdentityPoolRoles operation. /// /// /// Container for the necessary parameters to execute the SetIdentityPoolRoles operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for SetIdentityPoolRoles Operation public virtual void SetIdentityPoolRolesAsync(SetIdentityPoolRolesRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = SetIdentityPoolRolesRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = SetIdentityPoolRolesResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((SetIdentityPoolRolesRequest)req, (SetIdentityPoolRolesResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region TagResource internal virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the TagResource operation. /// /// /// Container for the necessary parameters to execute the TagResource operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for TagResource Operation public virtual void TagResourceAsync(TagResourceRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = TagResourceRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((TagResourceRequest)req, (TagResourceResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region UnlinkDeveloperIdentity internal virtual UnlinkDeveloperIdentityResponse UnlinkDeveloperIdentity(UnlinkDeveloperIdentityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnlinkDeveloperIdentityRequestMarshaller.Instance; options.ResponseUnmarshaller = UnlinkDeveloperIdentityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UnlinkDeveloperIdentity operation. /// /// /// Container for the necessary parameters to execute the UnlinkDeveloperIdentity operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for UnlinkDeveloperIdentity Operation public virtual void UnlinkDeveloperIdentityAsync(UnlinkDeveloperIdentityRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = UnlinkDeveloperIdentityRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = UnlinkDeveloperIdentityResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((UnlinkDeveloperIdentityRequest)req, (UnlinkDeveloperIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region UnlinkIdentity internal virtual UnlinkIdentityResponse UnlinkIdentity(UnlinkIdentityRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnlinkIdentityRequestMarshaller.Instance; options.ResponseUnmarshaller = UnlinkIdentityResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UnlinkIdentity operation. /// /// /// Container for the necessary parameters to execute the UnlinkIdentity operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for UnlinkIdentity Operation public virtual void UnlinkIdentityAsync(UnlinkIdentityRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = UnlinkIdentityRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = UnlinkIdentityResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((UnlinkIdentityRequest)req, (UnlinkIdentityResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region UntagResource internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UntagResource operation. /// /// /// Container for the necessary parameters to execute the UntagResource operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for UntagResource Operation public virtual void UntagResourceAsync(UntagResourceRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = UntagResourceRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((UntagResourceRequest)req, (UntagResourceResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region UpdateIdentityPool internal virtual UpdateIdentityPoolResponse UpdateIdentityPool(UpdateIdentityPoolRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateIdentityPoolRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateIdentityPoolResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateIdentityPool operation. /// /// /// Container for the necessary parameters to execute the UpdateIdentityPool operation on AmazonCognitoIdentityClient. /// An Action delegate that is invoked when the operation completes. /// A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property. /// REST API Reference for UpdateIdentityPool Operation public virtual void UpdateIdentityPoolAsync(UpdateIdentityPoolRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = UpdateIdentityPoolRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = UpdateIdentityPoolResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((UpdateIdentityPoolRequest)req, (UpdateIdentityPoolResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion } }