/* * 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-sync-2014-06-30.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CognitoSync.Model; using Amazon.CognitoSync.Model.Internal.MarshallTransformations; using Amazon.CognitoSync.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CognitoSync { /// /// Implementation for accessing CognitoSync /// /// Amazon Cognito Sync /// /// Amazon Cognito Sync provides an AWS service and client library that enable cross-device /// syncing of application-related user data. High-level client libraries are available /// for both iOS and Android. You can use these libraries to persist data locally so that /// it's available even if the device is offline. Developer credentials don't need to /// be stored on the mobile device to access the service. You can use Amazon Cognito to /// obtain a normalized user ID and credentials. User data is persisted in a dataset that /// can store up to 1 MB of key-value pairs, and you can have up to 20 datasets per user /// identity. /// /// /// /// With Amazon Cognito Sync, the data stored for each identity is accessible only to /// credentials assigned to that identity. In order to use the Cognito Sync service, you /// need to make API calls using credentials retrieved with Amazon /// Cognito Identity service. /// /// /// /// If you want to use Cognito Sync in an Android or iOS application, you will probably /// want to make API calls via the AWS Mobile SDK. To learn more, see the Developer /// Guide for Android and the Developer /// Guide for iOS. /// /// public partial class AmazonCognitoSyncClient : AmazonServiceClient, IAmazonCognitoSync { private static IServiceMetadata serviceMetadata = new AmazonCognitoSyncMetadata(); #region Constructors /// /// Constructs AmazonCognitoSyncClient with AWS Credentials /// /// AWS Credentials public AmazonCognitoSyncClient(AWSCredentials credentials) : this(credentials, new AmazonCognitoSyncConfig()) { } /// /// Constructs AmazonCognitoSyncClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonCognitoSyncClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCognitoSyncConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCognitoSyncClient with AWS Credentials and an /// AmazonCognitoSyncClient Configuration object. /// /// AWS Credentials /// The AmazonCognitoSyncClient Configuration Object public AmazonCognitoSyncClient(AWSCredentials credentials, AmazonCognitoSyncConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonCognitoSyncClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonCognitoSyncClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCognitoSyncConfig()) { } /// /// Constructs AmazonCognitoSyncClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonCognitoSyncClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCognitoSyncConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonCognitoSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCognitoSyncClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonCognitoSyncClient Configuration Object public AmazonCognitoSyncClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCognitoSyncConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonCognitoSyncClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonCognitoSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCognitoSyncConfig()) { } /// /// Constructs AmazonCognitoSyncClient 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 AmazonCognitoSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCognitoSyncConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonCognitoSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCognitoSyncClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonCognitoSyncClient Configuration Object public AmazonCognitoSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCognitoSyncConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customizes the runtime pipeline. /// /// Runtime pipeline for the current client. protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerBefore(new Amazon.CognitoSync.Internal.CognitoCredentialsRetriever(this.Credentials)); pipeline.AddHandlerAfter(new Amazon.CognitoSync.Internal.AmazonCognitoSyncPostMarshallHandler()); pipeline.AddHandlerAfter(new Amazon.CognitoSync.Internal.AmazonCognitoSyncPostSignHandler()); } /// /// 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 BulkPublish internal virtual BulkPublishResponse BulkPublish(BulkPublishRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = BulkPublishRequestMarshaller.Instance; options.ResponseUnmarshaller = BulkPublishResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the BulkPublish operation. /// /// /// Container for the necessary parameters to execute the BulkPublish operation on AmazonCognitoSyncClient. /// 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 BulkPublish Operation public virtual void BulkPublishAsync(BulkPublishRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = BulkPublishRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = BulkPublishResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((BulkPublishRequest)req, (BulkPublishResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DeleteDataset internal virtual DeleteDatasetResponse DeleteDataset(DeleteDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DeleteDataset operation. /// /// /// Container for the necessary parameters to execute the DeleteDataset operation on AmazonCognitoSyncClient. /// 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 DeleteDataset Operation public virtual void DeleteDatasetAsync(DeleteDatasetRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DeleteDatasetRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DeleteDatasetResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DeleteDatasetRequest)req, (DeleteDatasetResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeDataset internal virtual DescribeDatasetResponse DescribeDataset(DescribeDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeDataset operation. /// /// /// Container for the necessary parameters to execute the DescribeDataset operation on AmazonCognitoSyncClient. /// 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 DescribeDataset Operation public virtual void DescribeDatasetAsync(DescribeDatasetRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeDatasetRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeDatasetResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeDatasetRequest)req, (DescribeDatasetResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeIdentityPoolUsage internal virtual DescribeIdentityPoolUsageResponse DescribeIdentityPoolUsage(DescribeIdentityPoolUsageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIdentityPoolUsageRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIdentityPoolUsageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets usage details (for example, data storage) about a particular identity pool. /// /// /// /// This API can only be called with developer credentials. You cannot call this API with /// the temporary user credentials provided by Cognito Identity. /// /// /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. GUID generation is unique within a region. /// 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 DescribeIdentityPoolUsage service method, as returned by CognitoSync. /// /// Indicates an internal service error. /// /// /// Thrown when a request parameter does not comply with the associated constraints. /// /// /// Thrown when a user is not authorized to access the requested resource. /// /// /// Thrown if the resource doesn't exist. /// /// /// Thrown if the request is throttled. /// /// REST API Reference for DescribeIdentityPoolUsage Operation public virtual void DescribeIdentityPoolUsageAsync(string identityPoolId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new DescribeIdentityPoolUsageRequest(); request.IdentityPoolId = identityPoolId; DescribeIdentityPoolUsageAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the DescribeIdentityPoolUsage operation. /// /// /// Container for the necessary parameters to execute the DescribeIdentityPoolUsage operation on AmazonCognitoSyncClient. /// 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 DescribeIdentityPoolUsage Operation public virtual void DescribeIdentityPoolUsageAsync(DescribeIdentityPoolUsageRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeIdentityPoolUsageRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeIdentityPoolUsageResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeIdentityPoolUsageRequest)req, (DescribeIdentityPoolUsageResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region DescribeIdentityUsage internal virtual DescribeIdentityUsageResponse DescribeIdentityUsage(DescribeIdentityUsageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeIdentityUsageRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeIdentityUsageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the DescribeIdentityUsage operation. /// /// /// Container for the necessary parameters to execute the DescribeIdentityUsage operation on AmazonCognitoSyncClient. /// 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 DescribeIdentityUsage Operation public virtual void DescribeIdentityUsageAsync(DescribeIdentityUsageRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = DescribeIdentityUsageRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = DescribeIdentityUsageResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((DescribeIdentityUsageRequest)req, (DescribeIdentityUsageResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetBulkPublishDetails internal virtual GetBulkPublishDetailsResponse GetBulkPublishDetails(GetBulkPublishDetailsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetBulkPublishDetailsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetBulkPublishDetailsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetBulkPublishDetails operation. /// /// /// Container for the necessary parameters to execute the GetBulkPublishDetails operation on AmazonCognitoSyncClient. /// 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 GetBulkPublishDetails Operation public virtual void GetBulkPublishDetailsAsync(GetBulkPublishDetailsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetBulkPublishDetailsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetBulkPublishDetailsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetBulkPublishDetailsRequest)req, (GetBulkPublishDetailsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetCognitoEvents internal virtual GetCognitoEventsResponse GetCognitoEvents(GetCognitoEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCognitoEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCognitoEventsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the GetCognitoEvents operation. /// /// /// Container for the necessary parameters to execute the GetCognitoEvents operation on AmazonCognitoSyncClient. /// 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 GetCognitoEvents Operation public virtual void GetCognitoEventsAsync(GetCognitoEventsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetCognitoEventsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetCognitoEventsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetCognitoEventsRequest)req, (GetCognitoEventsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region GetIdentityPoolConfiguration internal virtual GetIdentityPoolConfigurationResponse GetIdentityPoolConfiguration(GetIdentityPoolConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetIdentityPoolConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetIdentityPoolConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Gets the configuration settings of an identity pool. /// /// /// /// This API can only be called with developer credentials. You cannot call this API with /// the temporary user credentials provided by Cognito Identity. /// /// /// A name-spaced GUID (for example, us-east-1:23EC4050-6AEA-7089-A2DD-08002EXAMPLE) created by Amazon Cognito. This is the ID of the pool for which to return a configuration. /// 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 GetIdentityPoolConfiguration service method, as returned by CognitoSync. /// /// Indicates an internal service error. /// /// /// Thrown when a request parameter does not comply with the associated constraints. /// /// /// Thrown when a user is not authorized to access the requested resource. /// /// /// Thrown if the resource doesn't exist. /// /// /// Thrown if the request is throttled. /// /// REST API Reference for GetIdentityPoolConfiguration Operation public virtual void GetIdentityPoolConfigurationAsync(string identityPoolId, AmazonServiceCallback callback, AsyncOptions options = null) { var request = new GetIdentityPoolConfigurationRequest(); request.IdentityPoolId = identityPoolId; GetIdentityPoolConfigurationAsync(request, callback, options); } /// /// Initiates the asynchronous execution of the GetIdentityPoolConfiguration operation. /// /// /// Container for the necessary parameters to execute the GetIdentityPoolConfiguration operation on AmazonCognitoSyncClient. /// 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 GetIdentityPoolConfiguration Operation public virtual void GetIdentityPoolConfigurationAsync(GetIdentityPoolConfigurationRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = GetIdentityPoolConfigurationRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = GetIdentityPoolConfigurationResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((GetIdentityPoolConfigurationRequest)req, (GetIdentityPoolConfigurationResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListDatasets internal virtual ListDatasetsResponse ListDatasets(ListDatasetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDatasetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDatasetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListDatasets operation. /// /// /// Container for the necessary parameters to execute the ListDatasets operation on AmazonCognitoSyncClient. /// 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 ListDatasets Operation public virtual void ListDatasetsAsync(ListDatasetsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListDatasetsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListDatasetsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListDatasetsRequest)req, (ListDatasetsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListIdentityPoolUsage internal virtual ListIdentityPoolUsageResponse ListIdentityPoolUsage(ListIdentityPoolUsageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListIdentityPoolUsageRequestMarshaller.Instance; options.ResponseUnmarshaller = ListIdentityPoolUsageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListIdentityPoolUsage operation. /// /// /// Container for the necessary parameters to execute the ListIdentityPoolUsage operation on AmazonCognitoSyncClient. /// 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 ListIdentityPoolUsage Operation public virtual void ListIdentityPoolUsageAsync(ListIdentityPoolUsageRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListIdentityPoolUsageRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListIdentityPoolUsageResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListIdentityPoolUsageRequest)req, (ListIdentityPoolUsageResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region ListRecords internal virtual ListRecordsResponse ListRecords(ListRecordsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListRecordsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the ListRecords operation. /// /// /// Container for the necessary parameters to execute the ListRecords operation on AmazonCognitoSyncClient. /// 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 ListRecords Operation public virtual void ListRecordsAsync(ListRecordsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = ListRecordsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = ListRecordsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((ListRecordsRequest)req, (ListRecordsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region RegisterDevice internal virtual RegisterDeviceResponse RegisterDevice(RegisterDeviceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RegisterDeviceRequestMarshaller.Instance; options.ResponseUnmarshaller = RegisterDeviceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the RegisterDevice operation. /// /// /// Container for the necessary parameters to execute the RegisterDevice operation on AmazonCognitoSyncClient. /// 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 RegisterDevice Operation public virtual void RegisterDeviceAsync(RegisterDeviceRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = RegisterDeviceRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = RegisterDeviceResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((RegisterDeviceRequest)req, (RegisterDeviceResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region SetCognitoEvents internal virtual SetCognitoEventsResponse SetCognitoEvents(SetCognitoEventsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetCognitoEventsRequestMarshaller.Instance; options.ResponseUnmarshaller = SetCognitoEventsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SetCognitoEvents operation. /// /// /// Container for the necessary parameters to execute the SetCognitoEvents operation on AmazonCognitoSyncClient. /// 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 SetCognitoEvents Operation public virtual void SetCognitoEventsAsync(SetCognitoEventsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = SetCognitoEventsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = SetCognitoEventsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((SetCognitoEventsRequest)req, (SetCognitoEventsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region SetIdentityPoolConfiguration internal virtual SetIdentityPoolConfigurationResponse SetIdentityPoolConfiguration(SetIdentityPoolConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SetIdentityPoolConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = SetIdentityPoolConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SetIdentityPoolConfiguration operation. /// /// /// Container for the necessary parameters to execute the SetIdentityPoolConfiguration operation on AmazonCognitoSyncClient. /// 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 SetIdentityPoolConfiguration Operation public virtual void SetIdentityPoolConfigurationAsync(SetIdentityPoolConfigurationRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = SetIdentityPoolConfigurationRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = SetIdentityPoolConfigurationResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((SetIdentityPoolConfigurationRequest)req, (SetIdentityPoolConfigurationResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region SubscribeToDataset internal virtual SubscribeToDatasetResponse SubscribeToDataset(SubscribeToDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = SubscribeToDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = SubscribeToDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the SubscribeToDataset operation. /// /// /// Container for the necessary parameters to execute the SubscribeToDataset operation on AmazonCognitoSyncClient. /// 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 SubscribeToDataset Operation public virtual void SubscribeToDatasetAsync(SubscribeToDatasetRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = SubscribeToDatasetRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = SubscribeToDatasetResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((SubscribeToDatasetRequest)req, (SubscribeToDatasetResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region UnsubscribeFromDataset internal virtual UnsubscribeFromDatasetResponse UnsubscribeFromDataset(UnsubscribeFromDatasetRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UnsubscribeFromDatasetRequestMarshaller.Instance; options.ResponseUnmarshaller = UnsubscribeFromDatasetResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UnsubscribeFromDataset operation. /// /// /// Container for the necessary parameters to execute the UnsubscribeFromDataset operation on AmazonCognitoSyncClient. /// 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 UnsubscribeFromDataset Operation public virtual void UnsubscribeFromDatasetAsync(UnsubscribeFromDatasetRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = UnsubscribeFromDatasetRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = UnsubscribeFromDatasetResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((UnsubscribeFromDatasetRequest)req, (UnsubscribeFromDatasetResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion #region UpdateRecords internal virtual UpdateRecordsResponse UpdateRecords(UpdateRecordsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateRecordsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateRecordsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Initiates the asynchronous execution of the UpdateRecords operation. /// /// /// Container for the necessary parameters to execute the UpdateRecords operation on AmazonCognitoSyncClient. /// 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 UpdateRecords Operation public virtual void UpdateRecordsAsync(UpdateRecordsRequest request, AmazonServiceCallback callback, AsyncOptions options = null) { options = options == null?new AsyncOptions():options; var invokeOptions = new InvokeOptions(); invokeOptions.RequestMarshaller = UpdateRecordsRequestMarshaller.Instance; invokeOptions.ResponseUnmarshaller = UpdateRecordsResponseUnmarshaller.Instance; Action callbackHelper = null; if(callback !=null ) callbackHelper = (AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao) => { AmazonServiceResult responseObject = new AmazonServiceResult((UpdateRecordsRequest)req, (UpdateRecordsResponse)res, ex , ao.State); callback(responseObject); }; BeginInvoke(request, invokeOptions, options, callbackHelper); } #endregion } }