/*
* 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.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
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();
private ISnowDeviceManagementPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ISnowDeviceManagementPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new SnowDeviceManagementPaginatorFactory(this);
}
return this._paginators;
}
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CancelTaskAsync(CancelTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task CreateTaskAsync(CreateTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeDeviceAsync(DescribeDeviceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDeviceRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDeviceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeDeviceEc2InstancesAsync(DescribeDeviceEc2InstancesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDeviceEc2InstancesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDeviceEc2InstancesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeExecutionAsync(DescribeExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeExecutionRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeExecutionResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Checks the metadata for a given task on a device.
///
/// Container for the necessary parameters to execute the DescribeTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task DescribeTaskAsync(DescribeTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListDeviceResourcesAsync(ListDeviceResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDeviceResourcesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDeviceResourcesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// 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.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListDevicesAsync(ListDevicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListDevicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListDevicesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns the status of tasks for one or more target devices.
///
/// Container for the necessary parameters to execute the ListExecutions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListExecutionsAsync(ListExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListExecutionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListExecutionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns a list of tags for a managed device or task.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Returns a list of tasks that can be filtered by state.
///
/// Container for the necessary parameters to execute the ListTasks service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task ListTasksAsync(ListTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTasksResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Adds or replaces tags on a device or task.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#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);
}
///
/// Removes a tag from a device or task.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// 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 Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}