/*
* Copyright 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 mobile-2017-07-01.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.Mobile.Model;
using Amazon.Mobile.Model.Internal.MarshallTransformations;
using Amazon.Mobile.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.Mobile
{
///
/// Implementation for accessing Mobile
///
/// AWS Mobile Service provides mobile app and website developers with capabilities required
/// to configure AWS resources and bootstrap their developer desktop projects with the
/// necessary SDKs, constants, tools and samples to make use of those resources.
///
public partial class AmazonMobileClient : AmazonServiceClient, IAmazonMobile
{
private static IServiceMetadata serviceMetadata = new AmazonMobileMetadata();
#region Constructors
///
/// Constructs AmazonMobileClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonMobileClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMobileConfig()) { }
///
/// Constructs AmazonMobileClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonMobileClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonMobileConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonMobileClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonMobileClient Configuration Object
public AmazonMobileClient(AmazonMobileConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonMobileClient with AWS Credentials
///
/// AWS Credentials
public AmazonMobileClient(AWSCredentials credentials)
: this(credentials, new AmazonMobileConfig())
{
}
///
/// Constructs AmazonMobileClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonMobileClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonMobileConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMobileClient with AWS Credentials and an
/// AmazonMobileClient Configuration object.
///
/// AWS Credentials
/// The AmazonMobileClient Configuration Object
public AmazonMobileClient(AWSCredentials credentials, AmazonMobileConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonMobileClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonMobileClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMobileConfig())
{
}
///
/// Constructs AmazonMobileClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonMobileClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonMobileConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonMobileClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMobileClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonMobileClient Configuration Object
public AmazonMobileClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonMobileConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonMobileClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonMobileClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMobileConfig())
{
}
///
/// Constructs AmazonMobileClient 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 AmazonMobileClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonMobileConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonMobileClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonMobileClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonMobileClient Configuration Object
public AmazonMobileClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonMobileConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customize the pipeline
///
///
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonMobileEndpointResolver());
}
///
/// 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 CreateProject
///
/// Creates an AWS Mobile Hub project.
///
/// Container for the necessary parameters to execute the CreateProject service method.
///
/// The response from the CreateProject service method, as returned by Mobile.
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// There are too many AWS Mobile Hub projects in the account or the account has exceeded
/// the maximum number of resources in some AWS service. You should create another sub-account
/// using AWS Organizations or remove some resources and retry your request.
///
///
/// No entity can be found with the specified identifier.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for CreateProject Operation
public virtual CreateProjectResponse CreateProject(CreateProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateProject operation.
///
///
/// Container for the necessary parameters to execute the CreateProject operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateProject
/// operation.
/// REST API Reference for CreateProject Operation
public virtual IAsyncResult BeginCreateProject(CreateProjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateProjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateProject operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateProject.
///
/// Returns a CreateProjectResult from Mobile.
/// REST API Reference for CreateProject Operation
public virtual CreateProjectResponse EndCreateProject(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DeleteProject
///
/// Delets a project in AWS Mobile Hub.
///
/// Container for the necessary parameters to execute the DeleteProject service method.
///
/// The response from the DeleteProject service method, as returned by Mobile.
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// No entity can be found with the specified identifier.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for DeleteProject Operation
public virtual DeleteProjectResponse DeleteProject(DeleteProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DeleteProject operation.
///
///
/// Container for the necessary parameters to execute the DeleteProject operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteProject
/// operation.
/// REST API Reference for DeleteProject Operation
public virtual IAsyncResult BeginDeleteProject(DeleteProjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteProjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DeleteProject operation.
///
///
/// The IAsyncResult returned by the call to BeginDeleteProject.
///
/// Returns a DeleteProjectResult from Mobile.
/// REST API Reference for DeleteProject Operation
public virtual DeleteProjectResponse EndDeleteProject(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeBundle
///
/// Get the bundle details for the requested bundle id.
///
/// Container for the necessary parameters to execute the DescribeBundle service method.
///
/// The response from the DescribeBundle service method, as returned by Mobile.
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// No entity can be found with the specified identifier.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for DescribeBundle Operation
public virtual DescribeBundleResponse DescribeBundle(DescribeBundleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeBundleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeBundleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeBundle operation.
///
///
/// Container for the necessary parameters to execute the DescribeBundle operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeBundle
/// operation.
/// REST API Reference for DescribeBundle Operation
public virtual IAsyncResult BeginDescribeBundle(DescribeBundleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeBundleRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeBundleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeBundle operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeBundle.
///
/// Returns a DescribeBundleResult from Mobile.
/// REST API Reference for DescribeBundle Operation
public virtual DescribeBundleResponse EndDescribeBundle(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeProject
///
/// Gets details about a project in AWS Mobile Hub.
///
/// Container for the necessary parameters to execute the DescribeProject service method.
///
/// The response from the DescribeProject service method, as returned by Mobile.
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// No entity can be found with the specified identifier.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for DescribeProject Operation
public virtual DescribeProjectResponse DescribeProject(DescribeProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeProject operation.
///
///
/// Container for the necessary parameters to execute the DescribeProject operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeProject
/// operation.
/// REST API Reference for DescribeProject Operation
public virtual IAsyncResult BeginDescribeProject(DescribeProjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeProjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeProject operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeProject.
///
/// Returns a DescribeProjectResult from Mobile.
/// REST API Reference for DescribeProject Operation
public virtual DescribeProjectResponse EndDescribeProject(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ExportBundle
///
/// Generates customized software development kit (SDK) and or tool packages used to
/// integrate mobile web or mobile app clients with backend AWS resources.
///
/// Container for the necessary parameters to execute the ExportBundle service method.
///
/// The response from the ExportBundle service method, as returned by Mobile.
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// No entity can be found with the specified identifier.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for ExportBundle Operation
public virtual ExportBundleResponse ExportBundle(ExportBundleRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportBundleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportBundleResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ExportBundle operation.
///
///
/// Container for the necessary parameters to execute the ExportBundle operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportBundle
/// operation.
/// REST API Reference for ExportBundle Operation
public virtual IAsyncResult BeginExportBundle(ExportBundleRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportBundleRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportBundleResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ExportBundle operation.
///
///
/// The IAsyncResult returned by the call to BeginExportBundle.
///
/// Returns a ExportBundleResult from Mobile.
/// REST API Reference for ExportBundle Operation
public virtual ExportBundleResponse EndExportBundle(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ExportProject
///
/// Exports project configuration to a snapshot which can be downloaded and shared. Note
/// that mobile app push credentials are encrypted in exported projects, so they can only
/// be shared successfully within the same AWS account.
///
/// Container for the necessary parameters to execute the ExportProject service method.
///
/// The response from the ExportProject service method, as returned by Mobile.
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// No entity can be found with the specified identifier.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for ExportProject Operation
public virtual ExportProjectResponse ExportProject(ExportProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ExportProject operation.
///
///
/// Container for the necessary parameters to execute the ExportProject operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportProject
/// operation.
/// REST API Reference for ExportProject Operation
public virtual IAsyncResult BeginExportProject(ExportProjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ExportProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = ExportProjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ExportProject operation.
///
///
/// The IAsyncResult returned by the call to BeginExportProject.
///
/// Returns a ExportProjectResult from Mobile.
/// REST API Reference for ExportProject Operation
public virtual ExportProjectResponse EndExportProject(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListBundles
///
/// List all available bundles.
///
/// Container for the necessary parameters to execute the ListBundles service method.
///
/// The response from the ListBundles service method, as returned by Mobile.
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for ListBundles Operation
public virtual ListBundlesResponse ListBundles(ListBundlesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListBundlesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListBundlesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListBundles operation.
///
///
/// Container for the necessary parameters to execute the ListBundles operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListBundles
/// operation.
/// REST API Reference for ListBundles Operation
public virtual IAsyncResult BeginListBundles(ListBundlesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListBundlesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListBundlesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListBundles operation.
///
///
/// The IAsyncResult returned by the call to BeginListBundles.
///
/// Returns a ListBundlesResult from Mobile.
/// REST API Reference for ListBundles Operation
public virtual ListBundlesResponse EndListBundles(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListProjects
///
/// Lists projects in AWS Mobile Hub.
///
/// Container for the necessary parameters to execute the ListProjects service method.
///
/// The response from the ListProjects service method, as returned by Mobile.
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for ListProjects Operation
public virtual ListProjectsResponse ListProjects(ListProjectsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListProjects operation.
///
///
/// Container for the necessary parameters to execute the ListProjects operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListProjects
/// operation.
/// REST API Reference for ListProjects Operation
public virtual IAsyncResult BeginListProjects(ListProjectsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListProjectsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListProjectsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListProjects operation.
///
///
/// The IAsyncResult returned by the call to BeginListProjects.
///
/// Returns a ListProjectsResult from Mobile.
/// REST API Reference for ListProjects Operation
public virtual ListProjectsResponse EndListProjects(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UpdateProject
///
/// Update an existing project.
///
/// Container for the necessary parameters to execute the UpdateProject service method.
///
/// The response from the UpdateProject service method, as returned by Mobile.
///
/// Account Action is required in order to continue the request.
///
///
/// The request cannot be processed because some parameter is not valid or the project
/// state prevents the operation from being performed.
///
///
/// The service has encountered an unexpected error condition which prevents it from
/// servicing the request.
///
///
/// There are too many AWS Mobile Hub projects in the account or the account has exceeded
/// the maximum number of resources in some AWS service. You should create another sub-account
/// using AWS Organizations or remove some resources and retry your request.
///
///
/// No entity can be found with the specified identifier.
///
///
/// The service is temporarily unavailable. The request should be retried after some
/// time delay.
///
///
/// Too many requests have been received for this AWS account in too short a time. The
/// request should be retried after some time delay.
///
///
/// Credentials of the caller are insufficient to authorize the request.
///
/// REST API Reference for UpdateProject Operation
public virtual UpdateProjectResponse UpdateProject(UpdateProjectRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the UpdateProject operation.
///
///
/// Container for the necessary parameters to execute the UpdateProject operation on AmazonMobileClient.
/// An AsyncCallback 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.
///
/// An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateProject
/// operation.
/// REST API Reference for UpdateProject Operation
public virtual IAsyncResult BeginUpdateProject(UpdateProjectRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateProjectRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateProjectResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UpdateProject operation.
///
///
/// The IAsyncResult returned by the call to BeginUpdateProject.
///
/// Returns a UpdateProjectResult from Mobile.
/// REST API Reference for UpdateProject Operation
public virtual UpdateProjectResponse EndUpdateProject(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}