/* * 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 datasync-2018-11-09.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.DataSync.Model; using Amazon.DataSync.Model.Internal.MarshallTransformations; using Amazon.DataSync.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.DataSync { /// /// Implementation for accessing DataSync /// /// DataSync /// /// DataSync is an online data movement and discovery service that simplifies data migration /// and helps you quickly, easily, and securely transfer your file or object data to, /// from, and between Amazon Web Services storage services. /// /// /// /// This API interface reference includes documentation for using DataSync programmatically. /// For complete information, see the DataSync /// User Guide . /// /// public partial class AmazonDataSyncClient : AmazonServiceClient, IAmazonDataSync { private static IServiceMetadata serviceMetadata = new AmazonDataSyncMetadata(); private IDataSyncPaginatorFactory _paginators; /// /// Paginators for the service /// public IDataSyncPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new DataSyncPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// Constructs AmazonDataSyncClient 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 AmazonDataSyncClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonDataSyncConfig()) { } /// /// Constructs AmazonDataSyncClient 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 AmazonDataSyncClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonDataSyncConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonDataSyncClient 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 AmazonDataSyncClient Configuration Object public AmazonDataSyncClient(AmazonDataSyncConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonDataSyncClient with AWS Credentials /// /// AWS Credentials public AmazonDataSyncClient(AWSCredentials credentials) : this(credentials, new AmazonDataSyncConfig()) { } /// /// Constructs AmazonDataSyncClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonDataSyncClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonDataSyncConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonDataSyncClient with AWS Credentials and an /// AmazonDataSyncClient Configuration object. /// /// AWS Credentials /// The AmazonDataSyncClient Configuration Object public AmazonDataSyncClient(AWSCredentials credentials, AmazonDataSyncConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonDataSyncClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonDataSyncClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonDataSyncConfig()) { } /// /// Constructs AmazonDataSyncClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonDataSyncClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonDataSyncConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonDataSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonDataSyncClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonDataSyncClient Configuration Object public AmazonDataSyncClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonDataSyncConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonDataSyncClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonDataSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDataSyncConfig()) { } /// /// Constructs AmazonDataSyncClient 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 AmazonDataSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonDataSyncConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonDataSyncClient with AWS Access Key ID, AWS Secret Key and an /// AmazonDataSyncClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonDataSyncClient Configuration Object public AmazonDataSyncClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonDataSyncConfig 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 AmazonDataSyncEndpointResolver()); } /// /// 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 AddStorageSystem /// /// Creates an Amazon Web Services resource for an on-premises storage system that you /// want DataSync Discovery to collect information about. /// /// Container for the necessary parameters to execute the AddStorageSystem service method. /// /// The response from the AddStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for AddStorageSystem Operation public virtual AddStorageSystemResponse AddStorageSystem(AddStorageSystemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = AddStorageSystemResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an Amazon Web Services resource for an on-premises storage system that you /// want DataSync Discovery to collect information about. /// /// Container for the necessary parameters to execute the AddStorageSystem service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AddStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for AddStorageSystem Operation public virtual Task AddStorageSystemAsync(AddStorageSystemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = AddStorageSystemResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CancelTaskExecution /// /// Stops an DataSync task execution that's in progress. The transfer of some files are /// abruptly interrupted. File contents that're transferred to the destination might be /// incomplete or inconsistent with the source files. /// /// /// /// However, if you start a new task execution using the same task and allow it to finish, /// file content on the destination will be complete and consistent. This applies to other /// unexpected failures that interrupt a task execution. In all of these cases, DataSync /// successfully completes the transfer when you start the next task execution. /// /// /// Container for the necessary parameters to execute the CancelTaskExecution service method. /// /// The response from the CancelTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CancelTaskExecution Operation public virtual CancelTaskExecutionResponse CancelTaskExecution(CancelTaskExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CancelTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelTaskExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops an DataSync task execution that's in progress. The transfer of some files are /// abruptly interrupted. File contents that're transferred to the destination might be /// incomplete or inconsistent with the source files. /// /// /// /// However, if you start a new task execution using the same task and allow it to finish, /// file content on the destination will be complete and consistent. This applies to other /// unexpected failures that interrupt a task execution. In all of these cases, DataSync /// successfully completes the transfer when you start the next task execution. /// /// /// Container for the necessary parameters to execute the CancelTaskExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CancelTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CancelTaskExecution Operation public virtual Task CancelTaskExecutionAsync(CancelTaskExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CancelTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = CancelTaskExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateAgent /// /// Activates an DataSync agent that you've deployed in your storage environment. The /// activation process associates the agent with your Amazon Web Services account. /// /// /// /// If you haven't deployed an agent yet, see the following topics to learn more: /// /// /// /// If you're transferring between Amazon Web Services storage services, you don't need /// a DataSync agent. /// /// /// /// Container for the necessary parameters to execute the CreateAgent service method. /// /// The response from the CreateAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateAgent Operation public virtual CreateAgentResponse CreateAgent(CreateAgentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAgentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Activates an DataSync agent that you've deployed in your storage environment. The /// activation process associates the agent with your Amazon Web Services account. /// /// /// /// If you haven't deployed an agent yet, see the following topics to learn more: /// /// /// /// If you're transferring between Amazon Web Services storage services, you don't need /// a DataSync agent. /// /// /// /// Container for the necessary parameters to execute the CreateAgent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateAgent Operation public virtual Task CreateAgentAsync(CreateAgentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateAgentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationAzureBlob /// /// Creates an endpoint for a Microsoft Azure Blob Storage container that DataSync can /// use as a transfer source or destination. /// /// /// /// Before you begin, make sure you know how /// DataSync accesses Azure Blob Storage and works with access /// tiers and blob /// types. You also need a DataSync /// agent that can connect to your container. /// /// /// Container for the necessary parameters to execute the CreateLocationAzureBlob service method. /// /// The response from the CreateLocationAzureBlob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationAzureBlob Operation public virtual CreateLocationAzureBlobResponse CreateLocationAzureBlob(CreateLocationAzureBlobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationAzureBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationAzureBlobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for a Microsoft Azure Blob Storage container that DataSync can /// use as a transfer source or destination. /// /// /// /// Before you begin, make sure you know how /// DataSync accesses Azure Blob Storage and works with access /// tiers and blob /// types. You also need a DataSync /// agent that can connect to your container. /// /// /// Container for the necessary parameters to execute the CreateLocationAzureBlob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationAzureBlob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationAzureBlob Operation public virtual Task CreateLocationAzureBlobAsync(CreateLocationAzureBlobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationAzureBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationAzureBlobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationEfs /// /// Creates an endpoint for an Amazon EFS file system that DataSync can access for a transfer. /// For more information, see Creating /// a location for Amazon EFS. /// /// Container for the necessary parameters to execute the CreateLocationEfs service method. /// /// The response from the CreateLocationEfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationEfs Operation public virtual CreateLocationEfsResponse CreateLocationEfs(CreateLocationEfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationEfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationEfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for an Amazon EFS file system that DataSync can access for a transfer. /// For more information, see Creating /// a location for Amazon EFS. /// /// Container for the necessary parameters to execute the CreateLocationEfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationEfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationEfs Operation public virtual Task CreateLocationEfsAsync(CreateLocationEfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationEfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationEfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationFsxLustre /// /// Creates an endpoint for an Amazon FSx for Lustre file system. /// /// Container for the necessary parameters to execute the CreateLocationFsxLustre service method. /// /// The response from the CreateLocationFsxLustre service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxLustre Operation public virtual CreateLocationFsxLustreResponse CreateLocationFsxLustre(CreateLocationFsxLustreRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxLustreRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxLustreResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for an Amazon FSx for Lustre file system. /// /// Container for the necessary parameters to execute the CreateLocationFsxLustre service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationFsxLustre service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxLustre Operation public virtual Task CreateLocationFsxLustreAsync(CreateLocationFsxLustreRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxLustreRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxLustreResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationFsxOntap /// /// Creates an endpoint for an Amazon FSx for NetApp ONTAP file system that DataSync can /// access for a transfer. For more information, see Creating /// a location for FSx for ONTAP. /// /// Container for the necessary parameters to execute the CreateLocationFsxOntap service method. /// /// The response from the CreateLocationFsxOntap service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxOntap Operation public virtual CreateLocationFsxOntapResponse CreateLocationFsxOntap(CreateLocationFsxOntapRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxOntapRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxOntapResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for an Amazon FSx for NetApp ONTAP file system that DataSync can /// access for a transfer. For more information, see Creating /// a location for FSx for ONTAP. /// /// Container for the necessary parameters to execute the CreateLocationFsxOntap service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationFsxOntap service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxOntap Operation public virtual Task CreateLocationFsxOntapAsync(CreateLocationFsxOntapRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxOntapRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxOntapResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationFsxOpenZfs /// /// Creates an endpoint for an Amazon FSx for OpenZFS file system that DataSync can access /// for a transfer. For more information, see Creating /// a location for FSx for OpenZFS. /// /// /// /// Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs /// operation. /// /// /// /// Container for the necessary parameters to execute the CreateLocationFsxOpenZfs service method. /// /// The response from the CreateLocationFsxOpenZfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxOpenZfs Operation public virtual CreateLocationFsxOpenZfsResponse CreateLocationFsxOpenZfs(CreateLocationFsxOpenZfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxOpenZfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxOpenZfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for an Amazon FSx for OpenZFS file system that DataSync can access /// for a transfer. For more information, see Creating /// a location for FSx for OpenZFS. /// /// /// /// Request parameters related to SMB aren't supported with the CreateLocationFsxOpenZfs /// operation. /// /// /// /// Container for the necessary parameters to execute the CreateLocationFsxOpenZfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationFsxOpenZfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxOpenZfs Operation public virtual Task CreateLocationFsxOpenZfsAsync(CreateLocationFsxOpenZfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxOpenZfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxOpenZfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationFsxWindows /// /// Creates an endpoint for an Amazon FSx for Windows File Server file system. /// /// Container for the necessary parameters to execute the CreateLocationFsxWindows service method. /// /// The response from the CreateLocationFsxWindows service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxWindows Operation public virtual CreateLocationFsxWindowsResponse CreateLocationFsxWindows(CreateLocationFsxWindowsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxWindowsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxWindowsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for an Amazon FSx for Windows File Server file system. /// /// Container for the necessary parameters to execute the CreateLocationFsxWindows service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationFsxWindows service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationFsxWindows Operation public virtual Task CreateLocationFsxWindowsAsync(CreateLocationFsxWindowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationFsxWindowsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationFsxWindowsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationHdfs /// /// Creates an endpoint for a Hadoop Distributed File System (HDFS). /// /// Container for the necessary parameters to execute the CreateLocationHdfs service method. /// /// The response from the CreateLocationHdfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationHdfs Operation public virtual CreateLocationHdfsResponse CreateLocationHdfs(CreateLocationHdfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationHdfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationHdfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for a Hadoop Distributed File System (HDFS). /// /// Container for the necessary parameters to execute the CreateLocationHdfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationHdfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationHdfs Operation public virtual Task CreateLocationHdfsAsync(CreateLocationHdfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationHdfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationHdfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationNfs /// /// Creates an endpoint for an Network File System (NFS) file server that DataSync can /// use for a data transfer. /// /// Container for the necessary parameters to execute the CreateLocationNfs service method. /// /// The response from the CreateLocationNfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationNfs Operation public virtual CreateLocationNfsResponse CreateLocationNfs(CreateLocationNfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationNfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationNfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for an Network File System (NFS) file server that DataSync can /// use for a data transfer. /// /// Container for the necessary parameters to execute the CreateLocationNfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationNfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationNfs Operation public virtual Task CreateLocationNfsAsync(CreateLocationNfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationNfsRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationNfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationObjectStorage /// /// Creates an endpoint for an object storage system that DataSync can access for a transfer. /// For more information, see Creating /// a location for object storage. /// /// Container for the necessary parameters to execute the CreateLocationObjectStorage service method. /// /// The response from the CreateLocationObjectStorage service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationObjectStorage Operation public virtual CreateLocationObjectStorageResponse CreateLocationObjectStorage(CreateLocationObjectStorageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationObjectStorageRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationObjectStorageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for an object storage system that DataSync can access for a transfer. /// For more information, see Creating /// a location for object storage. /// /// Container for the necessary parameters to execute the CreateLocationObjectStorage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationObjectStorage service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationObjectStorage Operation public virtual Task CreateLocationObjectStorageAsync(CreateLocationObjectStorageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationObjectStorageRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationObjectStorageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationS3 /// /// A location is an endpoint for an Amazon S3 bucket. DataSync can use the location /// as a source or destination for copying data. /// /// /// /// Before you create your location, make sure that you read the following sections: /// /// /// /// For more information, see Creating /// an Amazon S3 location. /// /// /// Container for the necessary parameters to execute the CreateLocationS3 service method. /// /// The response from the CreateLocationS3 service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationS3 Operation public virtual CreateLocationS3Response CreateLocationS3(CreateLocationS3Request request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationS3RequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationS3ResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// A location is an endpoint for an Amazon S3 bucket. DataSync can use the location /// as a source or destination for copying data. /// /// /// /// Before you create your location, make sure that you read the following sections: /// /// /// /// For more information, see Creating /// an Amazon S3 location. /// /// /// Container for the necessary parameters to execute the CreateLocationS3 service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationS3 service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationS3 Operation public virtual Task CreateLocationS3Async(CreateLocationS3Request request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationS3RequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationS3ResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLocationSmb /// /// Creates an endpoint for a Server Message Block (SMB) file server that DataSync can /// use for a data transfer. /// /// /// /// Before you begin, make sure that you understand how DataSync accesses /// an SMB file server. /// /// /// Container for the necessary parameters to execute the CreateLocationSmb service method. /// /// The response from the CreateLocationSmb service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationSmb Operation public virtual CreateLocationSmbResponse CreateLocationSmb(CreateLocationSmbRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationSmbRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationSmbResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates an endpoint for a Server Message Block (SMB) file server that DataSync can /// use for a data transfer. /// /// /// /// Before you begin, make sure that you understand how DataSync accesses /// an SMB file server. /// /// /// Container for the necessary parameters to execute the CreateLocationSmb service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLocationSmb service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for CreateLocationSmb Operation public virtual Task CreateLocationSmbAsync(CreateLocationSmbRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLocationSmbRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLocationSmbResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateTask /// /// Configures a task, which defines where and how DataSync transfers your data. /// /// /// /// A task includes a source location, a destination location, and the preferences for /// how and when you want to transfer your data (such as bandwidth limits, scheduling, /// among other options). /// /// /// /// If you're planning to transfer data to or from an Amazon S3 location, review how /// DataSync can affect your S3 request charges and the DataSync /// pricing page before you begin. /// /// /// /// Container for the necessary parameters to execute the CreateTask service method. /// /// The response from the CreateTask service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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); } /// /// Configures a task, which defines where and how DataSync transfers your data. /// /// /// /// A task includes a source location, a destination location, and the preferences for /// how and when you want to transfer your data (such as bandwidth limits, scheduling, /// among other options). /// /// /// /// If you're planning to transfer data to or from an Amazon S3 location, review how /// DataSync can affect your S3 request charges and the DataSync /// pricing page before you begin. /// /// /// /// 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 DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 DeleteAgent /// /// Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN) /// of the agent in your request. The operation disassociates the agent from your Amazon /// Web Services account. However, it doesn't delete the agent virtual machine (VM) from /// your on-premises environment. /// /// Container for the necessary parameters to execute the DeleteAgent service method. /// /// The response from the DeleteAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DeleteAgent Operation public virtual DeleteAgentResponse DeleteAgent(DeleteAgentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAgentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an agent. To specify which agent to delete, use the Amazon Resource Name (ARN) /// of the agent in your request. The operation disassociates the agent from your Amazon /// Web Services account. However, it doesn't delete the agent virtual machine (VM) from /// your on-premises environment. /// /// Container for the necessary parameters to execute the DeleteAgent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DeleteAgent Operation public virtual Task DeleteAgentAsync(DeleteAgentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteAgentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteLocation /// /// Deletes the configuration of a location used by DataSync. /// /// Container for the necessary parameters to execute the DeleteLocation service method. /// /// The response from the DeleteLocation service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DeleteLocation Operation public virtual DeleteLocationResponse DeleteLocation(DeleteLocationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLocationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes the configuration of a location used by DataSync. /// /// Container for the necessary parameters to execute the DeleteLocation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteLocation service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DeleteLocation Operation public virtual Task DeleteLocationAsync(DeleteLocationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLocationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLocationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteTask /// /// Deletes an DataSync task. /// /// Container for the necessary parameters to execute the DeleteTask service method. /// /// The response from the DeleteTask service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DeleteTask Operation public virtual DeleteTaskResponse DeleteTask(DeleteTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Deletes an DataSync task. /// /// Container for the necessary parameters to execute the DeleteTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteTask service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DeleteTask Operation public virtual Task DeleteTaskAsync(DeleteTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeAgent /// /// Returns metadata about an DataSync agent, such as its name, endpoint type, and status. /// /// Container for the necessary parameters to execute the DescribeAgent service method. /// /// The response from the DescribeAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeAgent Operation public virtual DescribeAgentResponse DescribeAgent(DescribeAgentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAgentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata about an DataSync agent, such as its name, endpoint type, and status. /// /// Container for the necessary parameters to execute the DescribeAgent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeAgent Operation public virtual Task DescribeAgentAsync(DescribeAgentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeAgentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeDiscoveryJob /// /// Returns information about a DataSync discovery job. /// /// Container for the necessary parameters to execute the DescribeDiscoveryJob service method. /// /// The response from the DescribeDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeDiscoveryJob Operation public virtual DescribeDiscoveryJobResponse DescribeDiscoveryJob(DescribeDiscoveryJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDiscoveryJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about a DataSync discovery job. /// /// Container for the necessary parameters to execute the DescribeDiscoveryJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeDiscoveryJob Operation public virtual Task DescribeDiscoveryJobAsync(DescribeDiscoveryJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeDiscoveryJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationAzureBlob /// /// Provides details about how an DataSync transfer location for Microsoft Azure Blob /// Storage is configured. /// /// Container for the necessary parameters to execute the DescribeLocationAzureBlob service method. /// /// The response from the DescribeLocationAzureBlob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationAzureBlob Operation public virtual DescribeLocationAzureBlobResponse DescribeLocationAzureBlob(DescribeLocationAzureBlobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationAzureBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationAzureBlobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides details about how an DataSync transfer location for Microsoft Azure Blob /// Storage is configured. /// /// Container for the necessary parameters to execute the DescribeLocationAzureBlob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationAzureBlob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationAzureBlob Operation public virtual Task DescribeLocationAzureBlobAsync(DescribeLocationAzureBlobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationAzureBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationAzureBlobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationEfs /// /// Returns metadata about your DataSync location for an Amazon EFS file system. /// /// Container for the necessary parameters to execute the DescribeLocationEfs service method. /// /// The response from the DescribeLocationEfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationEfs Operation public virtual DescribeLocationEfsResponse DescribeLocationEfs(DescribeLocationEfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationEfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationEfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata about your DataSync location for an Amazon EFS file system. /// /// Container for the necessary parameters to execute the DescribeLocationEfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationEfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationEfs Operation public virtual Task DescribeLocationEfsAsync(DescribeLocationEfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationEfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationEfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationFsxLustre /// /// Provides details about how an DataSync location for an Amazon FSx for Lustre file /// system is configured. /// /// Container for the necessary parameters to execute the DescribeLocationFsxLustre service method. /// /// The response from the DescribeLocationFsxLustre service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxLustre Operation public virtual DescribeLocationFsxLustreResponse DescribeLocationFsxLustre(DescribeLocationFsxLustreRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxLustreRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxLustreResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides details about how an DataSync location for an Amazon FSx for Lustre file /// system is configured. /// /// Container for the necessary parameters to execute the DescribeLocationFsxLustre service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationFsxLustre service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxLustre Operation public virtual Task DescribeLocationFsxLustreAsync(DescribeLocationFsxLustreRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxLustreRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxLustreResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationFsxOntap /// /// Provides details about how an DataSync location for an Amazon FSx for NetApp ONTAP /// file system is configured. /// /// /// /// If your location uses SMB, the DescribeLocationFsxOntap operation doesn't /// actually return a Password. /// /// /// /// Container for the necessary parameters to execute the DescribeLocationFsxOntap service method. /// /// The response from the DescribeLocationFsxOntap service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxOntap Operation public virtual DescribeLocationFsxOntapResponse DescribeLocationFsxOntap(DescribeLocationFsxOntapRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxOntapRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxOntapResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides details about how an DataSync location for an Amazon FSx for NetApp ONTAP /// file system is configured. /// /// /// /// If your location uses SMB, the DescribeLocationFsxOntap operation doesn't /// actually return a Password. /// /// /// /// Container for the necessary parameters to execute the DescribeLocationFsxOntap service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationFsxOntap service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxOntap Operation public virtual Task DescribeLocationFsxOntapAsync(DescribeLocationFsxOntapRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxOntapRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxOntapResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationFsxOpenZfs /// /// Provides details about how an DataSync location for an Amazon FSx for OpenZFS file /// system is configured. /// /// /// /// Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs /// operation. /// /// /// /// Container for the necessary parameters to execute the DescribeLocationFsxOpenZfs service method. /// /// The response from the DescribeLocationFsxOpenZfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxOpenZfs Operation public virtual DescribeLocationFsxOpenZfsResponse DescribeLocationFsxOpenZfs(DescribeLocationFsxOpenZfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxOpenZfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxOpenZfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides details about how an DataSync location for an Amazon FSx for OpenZFS file /// system is configured. /// /// /// /// Response elements related to SMB aren't supported with the DescribeLocationFsxOpenZfs /// operation. /// /// /// /// Container for the necessary parameters to execute the DescribeLocationFsxOpenZfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationFsxOpenZfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxOpenZfs Operation public virtual Task DescribeLocationFsxOpenZfsAsync(DescribeLocationFsxOpenZfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxOpenZfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxOpenZfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationFsxWindows /// /// Returns metadata about an Amazon FSx for Windows File Server location, such as information /// about its path. /// /// Container for the necessary parameters to execute the DescribeLocationFsxWindows service method. /// /// The response from the DescribeLocationFsxWindows service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxWindows Operation public virtual DescribeLocationFsxWindowsResponse DescribeLocationFsxWindows(DescribeLocationFsxWindowsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxWindowsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxWindowsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata about an Amazon FSx for Windows File Server location, such as information /// about its path. /// /// Container for the necessary parameters to execute the DescribeLocationFsxWindows service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationFsxWindows service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationFsxWindows Operation public virtual Task DescribeLocationFsxWindowsAsync(DescribeLocationFsxWindowsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationFsxWindowsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationFsxWindowsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationHdfs /// /// Returns metadata, such as the authentication information about the Hadoop Distributed /// File System (HDFS) location. /// /// Container for the necessary parameters to execute the DescribeLocationHdfs service method. /// /// The response from the DescribeLocationHdfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationHdfs Operation public virtual DescribeLocationHdfsResponse DescribeLocationHdfs(DescribeLocationHdfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationHdfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationHdfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata, such as the authentication information about the Hadoop Distributed /// File System (HDFS) location. /// /// Container for the necessary parameters to execute the DescribeLocationHdfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationHdfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationHdfs Operation public virtual Task DescribeLocationHdfsAsync(DescribeLocationHdfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationHdfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationHdfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationNfs /// /// Returns metadata, such as the path information, about an NFS location. /// /// Container for the necessary parameters to execute the DescribeLocationNfs service method. /// /// The response from the DescribeLocationNfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationNfs Operation public virtual DescribeLocationNfsResponse DescribeLocationNfs(DescribeLocationNfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationNfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationNfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata, such as the path information, about an NFS location. /// /// Container for the necessary parameters to execute the DescribeLocationNfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationNfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationNfs Operation public virtual Task DescribeLocationNfsAsync(DescribeLocationNfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationNfsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationNfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationObjectStorage /// /// Returns metadata about your DataSync location for an object storage system. /// /// Container for the necessary parameters to execute the DescribeLocationObjectStorage service method. /// /// The response from the DescribeLocationObjectStorage service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationObjectStorage Operation public virtual DescribeLocationObjectStorageResponse DescribeLocationObjectStorage(DescribeLocationObjectStorageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationObjectStorageRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationObjectStorageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata about your DataSync location for an object storage system. /// /// Container for the necessary parameters to execute the DescribeLocationObjectStorage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationObjectStorage service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationObjectStorage Operation public virtual Task DescribeLocationObjectStorageAsync(DescribeLocationObjectStorageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationObjectStorageRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationObjectStorageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationS3 /// /// Returns metadata, such as bucket name, about an Amazon S3 bucket location. /// /// Container for the necessary parameters to execute the DescribeLocationS3 service method. /// /// The response from the DescribeLocationS3 service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationS3 Operation public virtual DescribeLocationS3Response DescribeLocationS3(DescribeLocationS3Request request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationS3RequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationS3ResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata, such as bucket name, about an Amazon S3 bucket location. /// /// Container for the necessary parameters to execute the DescribeLocationS3 service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationS3 service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationS3 Operation public virtual Task DescribeLocationS3Async(DescribeLocationS3Request request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationS3RequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationS3ResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLocationSmb /// /// Returns metadata, such as the path and user information about an SMB location. /// /// Container for the necessary parameters to execute the DescribeLocationSmb service method. /// /// The response from the DescribeLocationSmb service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationSmb Operation public virtual DescribeLocationSmbResponse DescribeLocationSmb(DescribeLocationSmbRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationSmbRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationSmbResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns metadata, such as the path and user information about an SMB location. /// /// Container for the necessary parameters to execute the DescribeLocationSmb service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLocationSmb service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeLocationSmb Operation public virtual Task DescribeLocationSmbAsync(DescribeLocationSmbRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLocationSmbRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLocationSmbResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeStorageSystem /// /// Returns information about an on-premises storage system that you're using with DataSync /// Discovery. /// /// Container for the necessary parameters to execute the DescribeStorageSystem service method. /// /// The response from the DescribeStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeStorageSystem Operation public virtual DescribeStorageSystemResponse DescribeStorageSystem(DescribeStorageSystemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStorageSystemResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information about an on-premises storage system that you're using with DataSync /// Discovery. /// /// Container for the necessary parameters to execute the DescribeStorageSystem service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeStorageSystem Operation public virtual Task DescribeStorageSystemAsync(DescribeStorageSystemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStorageSystemResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeStorageSystemResourceMetrics /// /// Returns information, including performance data and capacity usage, which DataSync /// Discovery collects about a specific resource in your-premises storage system. /// /// Container for the necessary parameters to execute the DescribeStorageSystemResourceMetrics service method. /// /// The response from the DescribeStorageSystemResourceMetrics service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeStorageSystemResourceMetrics Operation public virtual DescribeStorageSystemResourceMetricsResponse DescribeStorageSystemResourceMetrics(DescribeStorageSystemResourceMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStorageSystemResourceMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStorageSystemResourceMetricsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information, including performance data and capacity usage, which DataSync /// Discovery collects about a specific resource in your-premises storage system. /// /// Container for the necessary parameters to execute the DescribeStorageSystemResourceMetrics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeStorageSystemResourceMetrics service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeStorageSystemResourceMetrics Operation public virtual Task DescribeStorageSystemResourceMetricsAsync(DescribeStorageSystemResourceMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStorageSystemResourceMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStorageSystemResourceMetricsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeStorageSystemResources /// /// Returns information that DataSync Discovery collects about resources in your on-premises /// storage system. /// /// Container for the necessary parameters to execute the DescribeStorageSystemResources service method. /// /// The response from the DescribeStorageSystemResources service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeStorageSystemResources Operation public virtual DescribeStorageSystemResourcesResponse DescribeStorageSystemResources(DescribeStorageSystemResourcesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStorageSystemResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStorageSystemResourcesResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns information that DataSync Discovery collects about resources in your on-premises /// storage system. /// /// Container for the necessary parameters to execute the DescribeStorageSystemResources service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeStorageSystemResources service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeStorageSystemResources Operation public virtual Task DescribeStorageSystemResourcesAsync(DescribeStorageSystemResourcesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeStorageSystemResourcesRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeStorageSystemResourcesResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeTask /// /// Provides information about an DataSync transfer task. /// /// Container for the necessary parameters to execute the DescribeTask service method. /// /// The response from the DescribeTask service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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); } /// /// Provides information about an DataSync transfer task. /// /// 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 DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 DescribeTaskExecution /// /// Provides information about an DataSync transfer task that's running. /// /// Container for the necessary parameters to execute the DescribeTaskExecution service method. /// /// The response from the DescribeTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeTaskExecution Operation public virtual DescribeTaskExecutionResponse DescribeTaskExecution(DescribeTaskExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTaskExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides information about an DataSync transfer task that's running. /// /// Container for the necessary parameters to execute the DescribeTaskExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for DescribeTaskExecution Operation public virtual Task DescribeTaskExecutionAsync(DescribeTaskExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeTaskExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region GenerateRecommendations /// /// Creates recommendations about where to migrate your data to in Amazon Web Services. /// Recommendations are generated based on information that DataSync Discovery collects /// about your on-premises storage system's resources. For more information, see Recommendations /// provided by DataSync Discovery. /// /// /// /// Once generated, you can view your recommendations by using the DescribeStorageSystemResources /// operation. /// /// /// /// If your discovery /// job completes successfully, you don't need to use this operation. DataSync Discovery /// generates the recommendations for you automatically. /// /// /// /// Container for the necessary parameters to execute the GenerateRecommendations service method. /// /// The response from the GenerateRecommendations service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for GenerateRecommendations Operation public virtual GenerateRecommendationsResponse GenerateRecommendations(GenerateRecommendationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateRecommendationsRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateRecommendationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates recommendations about where to migrate your data to in Amazon Web Services. /// Recommendations are generated based on information that DataSync Discovery collects /// about your on-premises storage system's resources. For more information, see Recommendations /// provided by DataSync Discovery. /// /// /// /// Once generated, you can view your recommendations by using the DescribeStorageSystemResources /// operation. /// /// /// /// If your discovery /// job completes successfully, you don't need to use this operation. DataSync Discovery /// generates the recommendations for you automatically. /// /// /// /// Container for the necessary parameters to execute the GenerateRecommendations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GenerateRecommendations service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for GenerateRecommendations Operation public virtual Task GenerateRecommendationsAsync(GenerateRecommendationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GenerateRecommendationsRequestMarshaller.Instance; options.ResponseUnmarshaller = GenerateRecommendationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListAgents /// /// Returns a list of DataSync agents that belong to an Amazon Web Services account in /// the Amazon Web Services Region specified in the request. /// /// /// /// With pagination, you can reduce the number of agents returned in a response. If you /// get a truncated list of agents in a response, the response contains a marker that /// you can specify in your next request to fetch the next page of agents. /// /// /// /// ListAgents is eventually consistent. This means the result of running /// the operation might not reflect that you just created or deleted an agent. For example, /// if you create an agent with CreateAgent /// and then immediately run ListAgents, that agent might not show up in /// the list right away. In situations like this, you can always confirm whether an agent /// has been created (or deleted) by using DescribeAgent. /// /// /// Container for the necessary parameters to execute the ListAgents service method. /// /// The response from the ListAgents service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListAgents Operation public virtual ListAgentsResponse ListAgents(ListAgentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListAgentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAgentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of DataSync agents that belong to an Amazon Web Services account in /// the Amazon Web Services Region specified in the request. /// /// /// /// With pagination, you can reduce the number of agents returned in a response. If you /// get a truncated list of agents in a response, the response contains a marker that /// you can specify in your next request to fetch the next page of agents. /// /// /// /// ListAgents is eventually consistent. This means the result of running /// the operation might not reflect that you just created or deleted an agent. For example, /// if you create an agent with CreateAgent /// and then immediately run ListAgents, that agent might not show up in /// the list right away. In situations like this, you can always confirm whether an agent /// has been created (or deleted) by using DescribeAgent. /// /// /// Container for the necessary parameters to execute the ListAgents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAgents service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListAgents Operation public virtual Task ListAgentsAsync(ListAgentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListAgentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListAgentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListDiscoveryJobs /// /// Provides a list of the existing discovery jobs in the Amazon Web Services Region and /// Amazon Web Services account where you're using DataSync Discovery. /// /// Container for the necessary parameters to execute the ListDiscoveryJobs service method. /// /// The response from the ListDiscoveryJobs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListDiscoveryJobs Operation public virtual ListDiscoveryJobsResponse ListDiscoveryJobs(ListDiscoveryJobsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListDiscoveryJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDiscoveryJobsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Provides a list of the existing discovery jobs in the Amazon Web Services Region and /// Amazon Web Services account where you're using DataSync Discovery. /// /// Container for the necessary parameters to execute the ListDiscoveryJobs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListDiscoveryJobs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListDiscoveryJobs Operation public virtual Task ListDiscoveryJobsAsync(ListDiscoveryJobsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListDiscoveryJobsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListDiscoveryJobsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListLocations /// /// Returns a list of source and destination locations. /// /// /// /// If you have more locations than are returned in a response (that is, the response /// returns only a truncated list of your agents), the response contains a token that /// you can specify in your next request to fetch the next page of locations. /// /// /// Container for the necessary parameters to execute the ListLocations service method. /// /// The response from the ListLocations service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListLocations Operation public virtual ListLocationsResponse ListLocations(ListLocationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLocationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLocationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of source and destination locations. /// /// /// /// If you have more locations than are returned in a response (that is, the response /// returns only a truncated list of your agents), the response contains a token that /// you can specify in your next request to fetch the next page of locations. /// /// /// Container for the necessary parameters to execute the ListLocations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListLocations service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListLocations Operation public virtual Task ListLocationsAsync(ListLocationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListLocationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLocationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListStorageSystems /// /// Lists the on-premises storage systems that you're using with DataSync Discovery. /// /// Container for the necessary parameters to execute the ListStorageSystems service method. /// /// The response from the ListStorageSystems service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListStorageSystems Operation public virtual ListStorageSystemsResponse ListStorageSystems(ListStorageSystemsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListStorageSystemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStorageSystemsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the on-premises storage systems that you're using with DataSync Discovery. /// /// Container for the necessary parameters to execute the ListStorageSystems service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListStorageSystems service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListStorageSystems Operation public virtual Task ListStorageSystemsAsync(ListStorageSystemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListStorageSystemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListStorageSystemsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource /// /// Returns all the tags associated with an Amazon Web Services resource. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 all the tags associated with an Amazon Web Services resource. /// /// 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 DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 ListTaskExecutions /// /// Returns a list of executed tasks. /// /// Container for the necessary parameters to execute the ListTaskExecutions service method. /// /// The response from the ListTaskExecutions service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListTaskExecutions Operation public virtual ListTaskExecutionsResponse ListTaskExecutions(ListTaskExecutionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTaskExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTaskExecutionsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Returns a list of executed tasks. /// /// Container for the necessary parameters to execute the ListTaskExecutions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListTaskExecutions service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for ListTaskExecutions Operation public virtual Task ListTaskExecutionsAsync(ListTaskExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTaskExecutionsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTaskExecutionsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTasks /// /// Returns a list of the DataSync tasks you created. /// /// Container for the necessary parameters to execute the ListTasks service method. /// /// The response from the ListTasks service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 the DataSync tasks you created. /// /// 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 DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 RemoveStorageSystem /// /// Permanently removes a storage system resource from DataSync Discovery, including the /// associated discovery jobs, collected data, and recommendations. /// /// Container for the necessary parameters to execute the RemoveStorageSystem service method. /// /// The response from the RemoveStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for RemoveStorageSystem Operation public virtual RemoveStorageSystemResponse RemoveStorageSystem(RemoveStorageSystemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveStorageSystemResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Permanently removes a storage system resource from DataSync Discovery, including the /// associated discovery jobs, collected data, and recommendations. /// /// Container for the necessary parameters to execute the RemoveStorageSystem service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RemoveStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for RemoveStorageSystem Operation public virtual Task RemoveStorageSystemAsync(RemoveStorageSystemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveStorageSystemResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartDiscoveryJob /// /// Runs a DataSync discovery job on your on-premises storage system. If you haven't added /// the storage system to DataSync Discovery yet, do this first by using the AddStorageSystem /// operation. /// /// Container for the necessary parameters to execute the StartDiscoveryJob service method. /// /// The response from the StartDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for StartDiscoveryJob Operation public virtual StartDiscoveryJobResponse StartDiscoveryJob(StartDiscoveryJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDiscoveryJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Runs a DataSync discovery job on your on-premises storage system. If you haven't added /// the storage system to DataSync Discovery yet, do this first by using the AddStorageSystem /// operation. /// /// Container for the necessary parameters to execute the StartDiscoveryJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for StartDiscoveryJob Operation public virtual Task StartDiscoveryJobAsync(StartDiscoveryJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StartDiscoveryJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StartTaskExecution /// /// Starts an DataSync task. For each task, you can only run one task execution at a time. /// /// /// /// There are several phases to a task execution. For more information, see Task /// execution statuses. /// /// /// /// If you're planning to transfer data to or from an Amazon S3 location, review how /// DataSync can affect your S3 request charges and the DataSync /// pricing page before you begin. /// /// /// /// Container for the necessary parameters to execute the StartTaskExecution service method. /// /// The response from the StartTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for StartTaskExecution Operation public virtual StartTaskExecutionResponse StartTaskExecution(StartTaskExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StartTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTaskExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Starts an DataSync task. For each task, you can only run one task execution at a time. /// /// /// /// There are several phases to a task execution. For more information, see Task /// execution statuses. /// /// /// /// If you're planning to transfer data to or from an Amazon S3 location, review how /// DataSync can affect your S3 request charges and the DataSync /// pricing page before you begin. /// /// /// /// Container for the necessary parameters to execute the StartTaskExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StartTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for StartTaskExecution Operation public virtual Task StartTaskExecutionAsync(StartTaskExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StartTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StartTaskExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region StopDiscoveryJob /// /// Stops a running DataSync discovery job. /// /// /// /// You can stop a discovery job anytime. A job that's stopped before it's scheduled to /// end likely will provide you some information about your on-premises storage system /// resources. To get recommendations for a stopped job, you must use the GenerateRecommendations /// operation. /// /// /// Container for the necessary parameters to execute the StopDiscoveryJob service method. /// /// The response from the StopDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for StopDiscoveryJob Operation public virtual StopDiscoveryJobResponse StopDiscoveryJob(StopDiscoveryJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDiscoveryJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Stops a running DataSync discovery job. /// /// /// /// You can stop a discovery job anytime. A job that's stopped before it's scheduled to /// end likely will provide you some information about your on-premises storage system /// resources. To get recommendations for a stopped job, you must use the GenerateRecommendations /// operation. /// /// /// Container for the necessary parameters to execute the StopDiscoveryJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the StopDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for StopDiscoveryJob Operation public virtual Task StopDiscoveryJobAsync(StopDiscoveryJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = StopDiscoveryJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource /// /// Applies a tag to an Amazon Web Services resource. Tags are key-value pairs /// that can help you manage, filter, and search for your resources. /// /// /// /// These include DataSync resources, such as locations, tasks, and task executions. /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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); } /// /// Applies a tag to an Amazon Web Services resource. Tags are key-value pairs /// that can help you manage, filter, and search for your resources. /// /// /// /// These include DataSync resources, such as locations, tasks, and task executions. /// /// /// 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 DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 tags from an Amazon Web Services resource. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 tags from an Amazon Web Services resource. /// /// 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 DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// 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 #region UpdateAgent /// /// Updates the name of an agent. /// /// Container for the necessary parameters to execute the UpdateAgent service method. /// /// The response from the UpdateAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateAgent Operation public virtual UpdateAgentResponse UpdateAgent(UpdateAgentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAgentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the name of an agent. /// /// Container for the necessary parameters to execute the UpdateAgent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateAgent service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateAgent Operation public virtual Task UpdateAgentAsync(UpdateAgentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateAgentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateAgentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateDiscoveryJob /// /// Edits a DataSync discovery job configuration. /// /// Container for the necessary parameters to execute the UpdateDiscoveryJob service method. /// /// The response from the UpdateDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateDiscoveryJob Operation public virtual UpdateDiscoveryJobResponse UpdateDiscoveryJob(UpdateDiscoveryJobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDiscoveryJobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Edits a DataSync discovery job configuration. /// /// Container for the necessary parameters to execute the UpdateDiscoveryJob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateDiscoveryJob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateDiscoveryJob Operation public virtual Task UpdateDiscoveryJobAsync(UpdateDiscoveryJobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateDiscoveryJobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateDiscoveryJobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLocationAzureBlob /// /// Modifies some configurations of the Microsoft Azure Blob Storage transfer location /// that you're using with DataSync. /// /// Container for the necessary parameters to execute the UpdateLocationAzureBlob service method. /// /// The response from the UpdateLocationAzureBlob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationAzureBlob Operation public virtual UpdateLocationAzureBlobResponse UpdateLocationAzureBlob(UpdateLocationAzureBlobRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationAzureBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationAzureBlobResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Modifies some configurations of the Microsoft Azure Blob Storage transfer location /// that you're using with DataSync. /// /// Container for the necessary parameters to execute the UpdateLocationAzureBlob service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLocationAzureBlob service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationAzureBlob Operation public virtual Task UpdateLocationAzureBlobAsync(UpdateLocationAzureBlobRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationAzureBlobRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationAzureBlobResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLocationHdfs /// /// Updates some parameters of a previously created location for a Hadoop Distributed /// File System cluster. /// /// Container for the necessary parameters to execute the UpdateLocationHdfs service method. /// /// The response from the UpdateLocationHdfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationHdfs Operation public virtual UpdateLocationHdfsResponse UpdateLocationHdfs(UpdateLocationHdfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationHdfsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationHdfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates some parameters of a previously created location for a Hadoop Distributed /// File System cluster. /// /// Container for the necessary parameters to execute the UpdateLocationHdfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLocationHdfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationHdfs Operation public virtual Task UpdateLocationHdfsAsync(UpdateLocationHdfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationHdfsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationHdfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLocationNfs /// /// Updates some of the parameters of a previously created location for Network File System /// (NFS) access. For information about creating an NFS location, see Creating /// a location for NFS. /// /// Container for the necessary parameters to execute the UpdateLocationNfs service method. /// /// The response from the UpdateLocationNfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationNfs Operation public virtual UpdateLocationNfsResponse UpdateLocationNfs(UpdateLocationNfsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationNfsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationNfsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates some of the parameters of a previously created location for Network File System /// (NFS) access. For information about creating an NFS location, see Creating /// a location for NFS. /// /// Container for the necessary parameters to execute the UpdateLocationNfs service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLocationNfs service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationNfs Operation public virtual Task UpdateLocationNfsAsync(UpdateLocationNfsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationNfsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationNfsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLocationObjectStorage /// /// Updates some parameters of an existing object storage location that DataSync accesses /// for a transfer. For information about creating a self-managed object storage location, /// see Creating /// a location for object storage. /// /// Container for the necessary parameters to execute the UpdateLocationObjectStorage service method. /// /// The response from the UpdateLocationObjectStorage service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationObjectStorage Operation public virtual UpdateLocationObjectStorageResponse UpdateLocationObjectStorage(UpdateLocationObjectStorageRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationObjectStorageRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationObjectStorageResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates some parameters of an existing object storage location that DataSync accesses /// for a transfer. For information about creating a self-managed object storage location, /// see Creating /// a location for object storage. /// /// Container for the necessary parameters to execute the UpdateLocationObjectStorage service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLocationObjectStorage service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationObjectStorage Operation public virtual Task UpdateLocationObjectStorageAsync(UpdateLocationObjectStorageRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationObjectStorageRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationObjectStorageResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLocationSmb /// /// Updates some of the parameters of a previously created location for Server Message /// Block (SMB) file system access. For information about creating an SMB location, see /// Creating /// a location for SMB. /// /// Container for the necessary parameters to execute the UpdateLocationSmb service method. /// /// The response from the UpdateLocationSmb service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationSmb Operation public virtual UpdateLocationSmbResponse UpdateLocationSmb(UpdateLocationSmbRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationSmbRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationSmbResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates some of the parameters of a previously created location for Server Message /// Block (SMB) file system access. For information about creating an SMB location, see /// Creating /// a location for SMB. /// /// Container for the necessary parameters to execute the UpdateLocationSmb service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLocationSmb service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateLocationSmb Operation public virtual Task UpdateLocationSmbAsync(UpdateLocationSmbRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLocationSmbRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLocationSmbResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateStorageSystem /// /// Modifies some configurations of an on-premises storage system resource that you're /// using with DataSync Discovery. /// /// Container for the necessary parameters to execute the UpdateStorageSystem service method. /// /// The response from the UpdateStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateStorageSystem Operation public virtual UpdateStorageSystemResponse UpdateStorageSystem(UpdateStorageSystemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStorageSystemResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Modifies some configurations of an on-premises storage system resource that you're /// using with DataSync Discovery. /// /// Container for the necessary parameters to execute the UpdateStorageSystem service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateStorageSystem service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateStorageSystem Operation public virtual Task UpdateStorageSystemAsync(UpdateStorageSystemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateStorageSystemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateStorageSystemResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateTask /// /// Updates the metadata associated with a task. /// /// Container for the necessary parameters to execute the UpdateTask service method. /// /// The response from the UpdateTask service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateTask Operation public virtual UpdateTaskResponse UpdateTask(UpdateTaskRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTaskResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the metadata associated with a task. /// /// Container for the necessary parameters to execute the UpdateTask service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateTask service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateTask Operation public virtual Task UpdateTaskAsync(UpdateTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTaskRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTaskResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateTaskExecution /// /// Modifies a running DataSync task. /// /// /// /// Currently, the only Option that you can modify with UpdateTaskExecution /// is BytesPerSecond /// , which throttles bandwidth for a running or queued task. /// /// /// /// Container for the necessary parameters to execute the UpdateTaskExecution service method. /// /// The response from the UpdateTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateTaskExecution Operation public virtual UpdateTaskExecutionResponse UpdateTaskExecution(UpdateTaskExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTaskExecutionResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Modifies a running DataSync task. /// /// /// /// Currently, the only Option that you can modify with UpdateTaskExecution /// is BytesPerSecond /// , which throttles bandwidth for a running or queued task. /// /// /// /// Container for the necessary parameters to execute the UpdateTaskExecution service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateTaskExecution service method, as returned by DataSync. /// /// This exception is thrown when an error occurs in the DataSync service. /// /// /// This exception is thrown when the client submits a malformed request. /// /// REST API Reference for UpdateTaskExecution Operation public virtual Task UpdateTaskExecutionAsync(UpdateTaskExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateTaskExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateTaskExecutionResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }