/*
* 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 snow-device-management-2021-08-04.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.SnowDeviceManagement.Model;
using Amazon.SnowDeviceManagement.Model.Internal.MarshallTransformations;
using Amazon.SnowDeviceManagement.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.SnowDeviceManagement
{
///
/// Implementation for accessing SnowDeviceManagement
///
/// Amazon Web Services Snow Device Management documentation.
///
public partial class AmazonSnowDeviceManagementClient : AmazonServiceClient, IAmazonSnowDeviceManagement
{
private static IServiceMetadata serviceMetadata = new AmazonSnowDeviceManagementMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private ISnowDeviceManagementPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ISnowDeviceManagementPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new SnowDeviceManagementPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
///
/// Constructs AmazonSnowDeviceManagementClient 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 AmazonSnowDeviceManagementClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSnowDeviceManagementConfig()) { }
///
/// Constructs AmazonSnowDeviceManagementClient 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 AmazonSnowDeviceManagementClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonSnowDeviceManagementConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonSnowDeviceManagementClient 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 AmazonSnowDeviceManagementClient Configuration Object
public AmazonSnowDeviceManagementClient(AmazonSnowDeviceManagementConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Credentials
///
/// AWS Credentials
public AmazonSnowDeviceManagementClient(AWSCredentials credentials)
: this(credentials, new AmazonSnowDeviceManagementConfig())
{
}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonSnowDeviceManagementClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonSnowDeviceManagementConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Credentials and an
/// AmazonSnowDeviceManagementClient Configuration object.
///
/// AWS Credentials
/// The AmazonSnowDeviceManagementClient Configuration Object
public AmazonSnowDeviceManagementClient(AWSCredentials credentials, AmazonSnowDeviceManagementConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonSnowDeviceManagementClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSnowDeviceManagementConfig())
{
}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonSnowDeviceManagementClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonSnowDeviceManagementConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSnowDeviceManagementClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonSnowDeviceManagementClient Configuration Object
public AmazonSnowDeviceManagementClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonSnowDeviceManagementConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonSnowDeviceManagementClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSnowDeviceManagementConfig())
{
}
///
/// Constructs AmazonSnowDeviceManagementClient 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 AmazonSnowDeviceManagementClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonSnowDeviceManagementConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonSnowDeviceManagementClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonSnowDeviceManagementClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonSnowDeviceManagementClient Configuration Object
public AmazonSnowDeviceManagementClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonSnowDeviceManagementConfig 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 AmazonSnowDeviceManagementEndpointResolver());
}
///
/// 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 CancelTask
///
/// Sends a cancel request for a specified task. You can cancel a task only if it's still
/// in a QUEUED
state. Tasks that are already running can't be cancelled.
///
///
///
/// A task might still run if it's processed from the queue before the CancelTask
/// operation changes the task's state.
///
///
///
/// Container for the necessary parameters to execute the CancelTask service method.
///
/// The response from the CancelTask service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for CancelTask Operation
public virtual CancelTaskResponse CancelTask(CancelTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CancelTask operation.
///
///
/// Container for the necessary parameters to execute the CancelTask operation on AmazonSnowDeviceManagementClient.
/// 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 EndCancelTask
/// operation.
/// REST API Reference for CancelTask Operation
public virtual IAsyncResult BeginCancelTask(CancelTaskRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelTaskResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CancelTask operation.
///
///
/// The IAsyncResult returned by the call to BeginCancelTask.
///
/// Returns a CancelTaskResult from SnowDeviceManagement.
/// REST API Reference for CancelTask Operation
public virtual CancelTaskResponse EndCancelTask(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region CreateTask
///
/// Instructs one or more devices to start a task, such as unlocking or rebooting.
///
/// Container for the necessary parameters to execute the CreateTask service method.
///
/// The response from the CreateTask service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request would cause a service quota to be exceeded.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for CreateTask Operation
public virtual CreateTaskResponse CreateTask(CreateTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the CreateTask operation.
///
///
/// Container for the necessary parameters to execute the CreateTask operation on AmazonSnowDeviceManagementClient.
/// 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 EndCreateTask
/// operation.
/// REST API Reference for CreateTask Operation
public virtual IAsyncResult BeginCreateTask(CreateTaskRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTaskResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the CreateTask operation.
///
///
/// The IAsyncResult returned by the call to BeginCreateTask.
///
/// Returns a CreateTaskResult from SnowDeviceManagement.
/// REST API Reference for CreateTask Operation
public virtual CreateTaskResponse EndCreateTask(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeDevice
///
/// Checks device-specific information, such as the device type, software version, IP
/// addresses, and lock status.
///
/// Container for the necessary parameters to execute the DescribeDevice service method.
///
/// The response from the DescribeDevice service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for DescribeDevice Operation
public virtual DescribeDeviceResponse DescribeDevice(DescribeDeviceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeDevice operation.
///
///
/// Container for the necessary parameters to execute the DescribeDevice operation on AmazonSnowDeviceManagementClient.
/// 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 EndDescribeDevice
/// operation.
/// REST API Reference for DescribeDevice Operation
public virtual IAsyncResult BeginDescribeDevice(DescribeDeviceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeDevice operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeDevice.
///
/// Returns a DescribeDeviceResult from SnowDeviceManagement.
/// REST API Reference for DescribeDevice Operation
public virtual DescribeDeviceResponse EndDescribeDevice(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeDeviceEc2Instances
///
/// Checks the current state of the Amazon EC2 instances. The output is similar to describeDevice
,
/// but the results are sourced from the device cache in the Amazon Web Services Cloud
/// and include a subset of the available fields.
///
/// Container for the necessary parameters to execute the DescribeDeviceEc2Instances service method.
///
/// The response from the DescribeDeviceEc2Instances service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for DescribeDeviceEc2Instances Operation
public virtual DescribeDeviceEc2InstancesResponse DescribeDeviceEc2Instances(DescribeDeviceEc2InstancesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDeviceEc2InstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDeviceEc2InstancesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeDeviceEc2Instances operation.
///
///
/// Container for the necessary parameters to execute the DescribeDeviceEc2Instances operation on AmazonSnowDeviceManagementClient.
/// 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 EndDescribeDeviceEc2Instances
/// operation.
/// REST API Reference for DescribeDeviceEc2Instances Operation
public virtual IAsyncResult BeginDescribeDeviceEc2Instances(DescribeDeviceEc2InstancesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDeviceEc2InstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDeviceEc2InstancesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeDeviceEc2Instances operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeDeviceEc2Instances.
///
/// Returns a DescribeDeviceEc2InstancesResult from SnowDeviceManagement.
/// REST API Reference for DescribeDeviceEc2Instances Operation
public virtual DescribeDeviceEc2InstancesResponse EndDescribeDeviceEc2Instances(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeExecution
///
/// Checks the status of a remote task running on one or more target devices.
///
/// Container for the necessary parameters to execute the DescribeExecution service method.
///
/// The response from the DescribeExecution service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for DescribeExecution Operation
public virtual DescribeExecutionResponse DescribeExecution(DescribeExecutionRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExecutionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExecutionResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeExecution operation.
///
///
/// Container for the necessary parameters to execute the DescribeExecution operation on AmazonSnowDeviceManagementClient.
/// 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 EndDescribeExecution
/// operation.
/// REST API Reference for DescribeExecution Operation
public virtual IAsyncResult BeginDescribeExecution(DescribeExecutionRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExecutionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExecutionResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeExecution operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeExecution.
///
/// Returns a DescribeExecutionResult from SnowDeviceManagement.
/// REST API Reference for DescribeExecution Operation
public virtual DescribeExecutionResponse EndDescribeExecution(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region DescribeTask
///
/// Checks the metadata for a given task on a device.
///
/// Container for the necessary parameters to execute the DescribeTask service method.
///
/// The response from the DescribeTask service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for DescribeTask Operation
public virtual DescribeTaskResponse DescribeTask(DescribeTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the DescribeTask operation.
///
///
/// Container for the necessary parameters to execute the DescribeTask operation on AmazonSnowDeviceManagementClient.
/// 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 EndDescribeTask
/// operation.
/// REST API Reference for DescribeTask Operation
public virtual IAsyncResult BeginDescribeTask(DescribeTaskRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTaskResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the DescribeTask operation.
///
///
/// The IAsyncResult returned by the call to BeginDescribeTask.
///
/// Returns a DescribeTaskResult from SnowDeviceManagement.
/// REST API Reference for DescribeTask Operation
public virtual DescribeTaskResponse EndDescribeTask(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListDeviceResources
///
/// Returns a list of the Amazon Web Services resources available for a device. Currently,
/// Amazon EC2 instances are the only supported resource type.
///
/// Container for the necessary parameters to execute the ListDeviceResources service method.
///
/// The response from the ListDeviceResources service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for ListDeviceResources Operation
public virtual ListDeviceResourcesResponse ListDeviceResources(ListDeviceResourcesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDeviceResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDeviceResourcesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListDeviceResources operation.
///
///
/// Container for the necessary parameters to execute the ListDeviceResources operation on AmazonSnowDeviceManagementClient.
/// 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 EndListDeviceResources
/// operation.
/// REST API Reference for ListDeviceResources Operation
public virtual IAsyncResult BeginListDeviceResources(ListDeviceResourcesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDeviceResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDeviceResourcesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListDeviceResources operation.
///
///
/// The IAsyncResult returned by the call to BeginListDeviceResources.
///
/// Returns a ListDeviceResourcesResult from SnowDeviceManagement.
/// REST API Reference for ListDeviceResources Operation
public virtual ListDeviceResourcesResponse EndListDeviceResources(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListDevices
///
/// Returns a list of all devices on your Amazon Web Services account that have Amazon
/// Web Services Snow Device Management enabled in the Amazon Web Services Region where
/// the command is run.
///
/// Container for the necessary parameters to execute the ListDevices service method.
///
/// The response from the ListDevices service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for ListDevices Operation
public virtual ListDevicesResponse ListDevices(ListDevicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDevicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDevicesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListDevices operation.
///
///
/// Container for the necessary parameters to execute the ListDevices operation on AmazonSnowDeviceManagementClient.
/// 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 EndListDevices
/// operation.
/// REST API Reference for ListDevices Operation
public virtual IAsyncResult BeginListDevices(ListDevicesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDevicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDevicesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListDevices operation.
///
///
/// The IAsyncResult returned by the call to BeginListDevices.
///
/// Returns a ListDevicesResult from SnowDeviceManagement.
/// REST API Reference for ListDevices Operation
public virtual ListDevicesResponse EndListDevices(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListExecutions
///
/// Returns the status of tasks for one or more target devices.
///
/// Container for the necessary parameters to execute the ListExecutions service method.
///
/// The response from the ListExecutions service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for ListExecutions Operation
public virtual ListExecutionsResponse ListExecutions(ListExecutionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExecutionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExecutionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListExecutions operation.
///
///
/// Container for the necessary parameters to execute the ListExecutions operation on AmazonSnowDeviceManagementClient.
/// 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 EndListExecutions
/// operation.
/// REST API Reference for ListExecutions Operation
public virtual IAsyncResult BeginListExecutions(ListExecutionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExecutionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExecutionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListExecutions operation.
///
///
/// The IAsyncResult returned by the call to BeginListExecutions.
///
/// Returns a ListExecutionsResult from SnowDeviceManagement.
/// REST API Reference for ListExecutions Operation
public virtual ListExecutionsResponse EndListExecutions(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTagsForResource
///
/// Returns a list of tags for a managed device or task.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// The response from the ListTagsForResource service method, as returned by SnowDeviceManagement.
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for ListTagsForResource Operation
public 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 AmazonSnowDeviceManagementClient.
/// 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 EndListTagsForResource
/// operation.
/// REST API Reference for ListTagsForResource Operation
public virtual IAsyncResult BeginListTagsForResource(ListTagsForResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTagsForResource operation.
///
///
/// The IAsyncResult returned by the call to BeginListTagsForResource.
///
/// Returns a ListTagsForResourceResult from SnowDeviceManagement.
/// REST API Reference for ListTagsForResource Operation
public virtual ListTagsForResourceResponse EndListTagsForResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region ListTasks
///
/// Returns a list of tasks that can be filtered by state.
///
/// Container for the necessary parameters to execute the ListTasks service method.
///
/// The response from the ListTasks service method, as returned by SnowDeviceManagement.
///
/// You don't have sufficient access to perform this action.
///
///
/// An unexpected error occurred while processing the request.
///
///
/// The request was denied due to request throttling.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for ListTasks Operation
public virtual ListTasksResponse ListTasks(ListTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTasksResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Initiates the asynchronous execution of the ListTasks operation.
///
///
/// Container for the necessary parameters to execute the ListTasks operation on AmazonSnowDeviceManagementClient.
/// 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 EndListTasks
/// operation.
/// REST API Reference for ListTasks Operation
public virtual IAsyncResult BeginListTasks(ListTasksRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTasksResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the ListTasks operation.
///
///
/// The IAsyncResult returned by the call to BeginListTasks.
///
/// Returns a ListTasksResult from SnowDeviceManagement.
/// REST API Reference for ListTasks Operation
public virtual ListTasksResponse EndListTasks(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region TagResource
///
/// Adds or replaces tags on a device or task.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// The response from the TagResource service method, as returned by SnowDeviceManagement.
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for TagResource Operation
public 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 AmazonSnowDeviceManagementClient.
/// 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 EndTagResource
/// operation.
/// REST API Reference for TagResource Operation
public virtual IAsyncResult BeginTagResource(TagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the TagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginTagResource.
///
/// Returns a TagResourceResult from SnowDeviceManagement.
/// REST API Reference for TagResource Operation
public virtual TagResourceResponse EndTagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
#region UntagResource
///
/// Removes a tag from a device or task.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// The response from the UntagResource service method, as returned by SnowDeviceManagement.
///
/// An unexpected error occurred while processing the request.
///
///
/// The request references a resource that doesn't exist.
///
///
/// The input fails to satisfy the constraints specified by an Amazon Web Services service.
///
/// REST API Reference for UntagResource Operation
public 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 AmazonSnowDeviceManagementClient.
/// 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 EndUntagResource
/// operation.
/// REST API Reference for UntagResource Operation
public virtual IAsyncResult BeginUntagResource(UntagResourceRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
///
/// Finishes the asynchronous execution of the UntagResource operation.
///
///
/// The IAsyncResult returned by the call to BeginUntagResource.
///
/// Returns a UntagResourceResult from SnowDeviceManagement.
/// REST API Reference for UntagResource Operation
public virtual UntagResourceResponse EndUntagResource(IAsyncResult asyncResult)
{
return EndInvoke(asyncResult);
}
#endregion
}
}