/*
* 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 fsx-2018-03-01.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.FSx.Model;
using Amazon.FSx.Model.Internal.MarshallTransformations;
using Amazon.FSx.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.FSx
{
///
/// Implementation for accessing FSx
///
/// Amazon FSx is a fully managed service that makes it easy for storage and application
/// administrators to launch and use shared file storage.
///
public partial class AmazonFSxClient : AmazonServiceClient, IAmazonFSx
{
private static IServiceMetadata serviceMetadata = new AmazonFSxMetadata();
#region Constructors
///
/// Constructs AmazonFSxClient 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 AmazonFSxClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonFSxConfig()) { }
///
/// Constructs AmazonFSxClient 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 AmazonFSxClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonFSxConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonFSxClient 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 AmazonFSxClient Configuration Object
public AmazonFSxClient(AmazonFSxConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonFSxClient with AWS Credentials
///
/// AWS Credentials
public AmazonFSxClient(AWSCredentials credentials)
: this(credentials, new AmazonFSxConfig())
{
}
///
/// Constructs AmazonFSxClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonFSxClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonFSxConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonFSxClient with AWS Credentials and an
/// AmazonFSxClient Configuration object.
///
/// AWS Credentials
/// The AmazonFSxClient Configuration Object
public AmazonFSxClient(AWSCredentials credentials, AmazonFSxConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonFSxClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonFSxClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonFSxConfig())
{
}
///
/// Constructs AmazonFSxClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonFSxClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonFSxConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonFSxClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonFSxClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonFSxClient Configuration Object
public AmazonFSxClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonFSxConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonFSxClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonFSxClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonFSxConfig())
{
}
///
/// Constructs AmazonFSxClient 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 AmazonFSxClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonFSxConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonFSxClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonFSxClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonFSxClient Configuration Object
public AmazonFSxClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonFSxConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IFSxPaginatorFactory _paginators;
///
/// Paginators for the service
///
public IFSxPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new FSxPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonFSxEndpointResolver());
}
///
/// 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 AssociateFileSystemAliases
internal virtual AssociateFileSystemAliasesResponse AssociateFileSystemAliases(AssociateFileSystemAliasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateFileSystemAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateFileSystemAliasesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Use this action to associate one or more Domain Name Server (DNS) aliases with an
/// existing Amazon FSx for Windows File Server file system. A file system can have a
/// maximum of 50 DNS aliases associated with it at any one time. If you try to associate
/// a DNS alias that is already associated with the file system, FSx takes no action on
/// that alias in the request. For more information, see Working
/// with DNS Aliases and Walkthrough
/// 5: Using DNS aliases to access your file system, including additional steps you
/// must take to be able to access your file system using a DNS alias.
///
///
///
/// The system response shows the DNS aliases that Amazon FSx is attempting to associate
/// with the file system. Use the API operation to monitor the status of the aliases Amazon
/// FSx is associating with the file system.
///
///
/// Container for the necessary parameters to execute the AssociateFileSystemAliases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the AssociateFileSystemAliases service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
/// REST API Reference for AssociateFileSystemAliases Operation
public virtual Task AssociateFileSystemAliasesAsync(AssociateFileSystemAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AssociateFileSystemAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = AssociateFileSystemAliasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CancelDataRepositoryTask
internal virtual CancelDataRepositoryTaskResponse CancelDataRepositoryTask(CancelDataRepositoryTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelDataRepositoryTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelDataRepositoryTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Cancels an existing Amazon FSx for Lustre data repository task if that task is in
/// either the PENDING
or EXECUTING
state. When you cancel a
/// task, Amazon FSx does the following.
///
/// -
///
/// Any files that FSx has already exported are not reverted.
///
///
-
///
/// FSx continues to export any files that are "in-flight" when the cancel operation is
/// received.
///
///
-
///
/// FSx does not export any files that have not yet been exported.
///
///
///
/// Container for the necessary parameters to execute the CancelDataRepositoryTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CancelDataRepositoryTask service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// The data repository task could not be canceled because the task has already ended.
///
///
/// The data repository task or tasks you specified could not be found.
///
///
/// A generic error indicating a server-side failure.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for CancelDataRepositoryTask Operation
public virtual Task CancelDataRepositoryTaskAsync(CancelDataRepositoryTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CancelDataRepositoryTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CancelDataRepositoryTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CopyBackup
internal virtual CopyBackupResponse CopyBackup(CopyBackupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CopyBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CopyBackupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Copies an existing backup within the same Amazon Web Services account to another Amazon
/// Web Services Region (cross-Region copy) or within the same Amazon Web Services Region
/// (in-Region copy). You can have up to five backup copy requests in progress to a single
/// destination Region per account.
///
///
///
/// You can use cross-Region backup copies for cross-Region disaster recovery. You can
/// periodically take backups and copy them to another Region so that in the event of
/// a disaster in the primary Region, you can restore from backup and recover availability
/// quickly in the other Region. You can make cross-Region copies only within your Amazon
/// Web Services partition. A partition is a grouping of Regions. Amazon Web Services
/// currently has three partitions: aws
(Standard Regions), aws-cn
/// (China Regions), and aws-us-gov
(Amazon Web Services GovCloud [US] Regions).
///
///
///
/// You can also use backup copies to clone your file dataset to another Region or within
/// the same Region.
///
///
///
/// You can use the SourceRegion
parameter to specify the Amazon Web Services
/// Region from which the backup will be copied. For example, if you make the call from
/// the us-west-1
Region and want to copy a backup from the us-east-2
/// Region, you specify us-east-2
in the SourceRegion
parameter
/// to make a cross-Region copy. If you don't specify a Region, the backup copy is created
/// in the same Region where the request is sent from (in-Region copy).
///
///
///
/// For more information about creating backup copies, see
/// Copying backups in the Amazon FSx for Windows User Guide, Copying
/// backups in the Amazon FSx for Lustre User Guide, and Copying
/// backups in the Amazon FSx for OpenZFS User Guide.
///
///
/// Container for the necessary parameters to execute the CopyBackup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CopyBackup service method, as returned by FSx.
///
/// No Amazon FSx backups were found based upon the supplied parameters.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// Amazon FSx doesn't support Multi-AZ Windows File Server copy backup in the destination
/// Region, so the copied backup can't be restored.
///
///
/// A generic error indicating a server-side failure.
///
///
/// The Key Management Service (KMS) key of the destination backup is not valid.
///
///
/// The Region provided for SourceRegion
is not valid or is in a different
/// Amazon Web Services partition.
///
///
/// The Key Management Service (KMS) key of the source backup is not valid.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// The request was rejected because the lifecycle status of the source backup isn't AVAILABLE
.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for CopyBackup Operation
public virtual Task CopyBackupAsync(CopyBackupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CopyBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CopyBackupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateBackup
internal virtual CreateBackupResponse CreateBackup(CreateBackupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateBackupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a backup of an existing Amazon FSx for Windows File Server file system, Amazon
/// FSx for Lustre file system, Amazon FSx for NetApp ONTAP volume, or Amazon FSx for
/// OpenZFS file system. We recommend creating regular backups so that you can restore
/// a file system or volume from a backup if an issue arises with the original file system
/// or volume.
///
///
///
/// For Amazon FSx for Lustre file systems, you can create a backup only for file systems
/// that have the following configuration:
///
/// -
///
/// A Persistent deployment type
///
///
-
///
/// Are not linked to a data repository
///
///
///
/// For more information about backups, see the following:
///
///
///
/// If a backup with the specified client request token exists and the parameters match,
/// this operation returns the description of the existing backup. If a backup with the
/// specified client request token exists and the parameters don't match, this operation
/// returns IncompatibleParameterError
. If a backup with the specified client
/// request token doesn't exist, CreateBackup
does the following:
///
/// -
///
/// Creates a new Amazon FSx backup with an assigned ID, and an initial lifecycle state
/// of
CREATING
.
///
/// -
///
/// Returns the description of the backup.
///
///
///
/// By using the idempotent operation, you can retry a CreateBackup
operation
/// without the risk of creating an extra backup. This approach can be useful when an
/// initial call fails in a way that makes it unclear whether a backup was created. If
/// you use the same client request token and the initial call created a backup, the operation
/// returns a successful result because all the parameters are the same.
///
///
///
/// The CreateBackup
operation returns while the backup's lifecycle state
/// is still CREATING
. You can check the backup creation status by calling
/// the DescribeBackups
/// operation, which returns the backup state along with other information.
///
///
/// Container for the necessary parameters to execute the CreateBackup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateBackup service method, as returned by FSx.
///
/// Another backup is already under way. Wait for completion before initiating additional
/// backups of this file system.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// The requested operation is not supported for this resource or API.
///
///
/// No Amazon FSx volumes were found based upon the supplied parameters.
///
/// REST API Reference for CreateBackup Operation
public virtual Task CreateBackupAsync(CreateBackupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateBackupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDataRepositoryAssociation
internal virtual CreateDataRepositoryAssociationResponse CreateDataRepositoryAssociation(CreateDataRepositoryAssociationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataRepositoryAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataRepositoryAssociationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon FSx for Lustre data repository association (DRA). A data repository
/// association is a link between a directory on the file system and an Amazon S3 bucket
/// or prefix. You can have a maximum of 8 data repository associations on a file system.
/// Data repository associations are supported on all FSx for Lustre 2.12 and newer file
/// systems, excluding scratch_1
deployment type.
///
///
///
/// Each data repository association must have a unique Amazon FSx file system directory
/// and a unique S3 bucket or prefix associated with it. You can configure a data repository
/// association for automatic import only, for automatic export only, or for both. To
/// learn more about linking a data repository to your file system, see Linking
/// your file system to an S3 bucket.
///
///
///
/// CreateDataRepositoryAssociation
isn't supported on Amazon File Cache
/// resources. To create a DRA on Amazon File Cache, use the CreateFileCache
/// operation.
///
///
///
/// Container for the necessary parameters to execute the CreateDataRepositoryAssociation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDataRepositoryAssociation service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for CreateDataRepositoryAssociation Operation
public virtual Task CreateDataRepositoryAssociationAsync(CreateDataRepositoryAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataRepositoryAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataRepositoryAssociationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateDataRepositoryTask
internal virtual CreateDataRepositoryTaskResponse CreateDataRepositoryTask(CreateDataRepositoryTaskRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataRepositoryTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataRepositoryTaskResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an Amazon FSx for Lustre data repository task. You use data repository tasks
/// to perform bulk operations between your Amazon FSx file system and its linked data
/// repositories. An example of a data repository task is exporting any data and metadata
/// changes, including POSIX metadata, to files, directories, and symbolic links (symlinks)
/// from your FSx file system to a linked data repository. A CreateDataRepositoryTask
/// operation will fail if a data repository is not linked to the FSx file system. To
/// learn more about data repository tasks, see Data
/// Repository Tasks. To learn more about linking a data repository to your file system,
/// see Linking
/// your file system to an S3 bucket.
///
/// Container for the necessary parameters to execute the CreateDataRepositoryTask service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateDataRepositoryTask service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// An existing data repository task is currently executing on the file system. Wait until
/// the existing task has completed, then create the new task.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for CreateDataRepositoryTask Operation
public virtual Task CreateDataRepositoryTaskAsync(CreateDataRepositoryTaskRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateDataRepositoryTaskRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateDataRepositoryTaskResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateFileCache
internal virtual CreateFileCacheResponse CreateFileCache(CreateFileCacheRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFileCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFileCacheResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new Amazon File Cache resource.
///
///
///
/// You can use this operation with a client request token in the request that Amazon
/// File Cache uses to ensure idempotent creation. If a cache with the specified client
/// request token exists and the parameters match, CreateFileCache
returns
/// the description of the existing cache. If a cache with the specified client request
/// token exists and the parameters don't match, this call returns IncompatibleParameterError
.
/// If a file cache with the specified client request token doesn't exist, CreateFileCache
/// does the following:
///
/// -
///
/// Creates a new, empty Amazon File Cache resourcewith an assigned ID, and an initial
/// lifecycle state of
CREATING
.
///
/// -
///
/// Returns the description of the cache in JSON format.
///
///
///
/// The CreateFileCache
call returns while the cache's lifecycle state is
/// still CREATING
. You can check the cache creation status by calling the
/// DescribeFileCaches
/// operation, which returns the cache state along with other information.
///
///
///
/// Container for the necessary parameters to execute the CreateFileCache service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateFileCache service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// One or more network settings specified in the request are invalid.
///
///
/// An invalid value for PerUnitStorageThroughput
was provided. Please create
/// your file system again, using a valid value.
///
///
/// A cache configuration is required for this operation.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for CreateFileCache Operation
public virtual Task CreateFileCacheAsync(CreateFileCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFileCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFileCacheResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateFileSystem
internal virtual CreateFileSystemResponse CreateFileSystem(CreateFileSystemRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFileSystemRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFileSystemResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new, empty Amazon FSx file system. You can create the following supported
/// Amazon FSx file systems using the CreateFileSystem
API operation:
///
/// -
///
/// Amazon FSx for Lustre
///
///
-
///
/// Amazon FSx for NetApp ONTAP
///
///
-
///
/// Amazon FSx for OpenZFS
///
///
-
///
/// Amazon FSx for Windows File Server
///
///
///
/// This operation requires a client request token in the request that Amazon FSx uses
/// to ensure idempotent creation. This means that calling the operation multiple times
/// with the same client request token has no effect. By using the idempotent operation,
/// you can retry a CreateFileSystem
operation without the risk of creating
/// an extra file system. This approach can be useful when an initial call fails in a
/// way that makes it unclear whether a file system was created. Examples are if a transport
/// level timeout occurred, or your connection was reset. If you use the same client request
/// token and the initial call created a file system, the client receives success as long
/// as the parameters are the same.
///
///
///
/// If a file system with the specified client request token exists and the parameters
/// match, CreateFileSystem
returns the description of the existing file
/// system. If a file system with the specified client request token exists and the parameters
/// don't match, this call returns IncompatibleParameterError
. If a file
/// system with the specified client request token doesn't exist, CreateFileSystem
/// does the following:
///
/// -
///
/// Creates a new, empty Amazon FSx file system with an assigned ID, and an initial lifecycle
/// state of
CREATING
.
///
/// -
///
/// Returns the description of the file system in JSON format.
///
///
///
/// The CreateFileSystem
call returns while the file system's lifecycle state
/// is still CREATING
. You can check the file-system creation status by calling
/// the DescribeFileSystems
/// operation, which returns the file system state along with other information.
///
///
///
/// Container for the necessary parameters to execute the CreateFileSystem service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateFileSystem service method, as returned by FSx.
///
/// An Active Directory error.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// The path provided for data repository export isn't valid.
///
///
/// The path provided for data repository import isn't valid.
///
///
/// One or more network settings specified in the request are invalid.
///
///
/// An invalid value for PerUnitStorageThroughput
was provided. Please create
/// your file system again, using a valid value.
///
///
/// A file system configuration is required for this operation.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for CreateFileSystem Operation
public virtual Task CreateFileSystemAsync(CreateFileSystemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFileSystemRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFileSystemResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateFileSystemFromBackup
internal virtual CreateFileSystemFromBackupResponse CreateFileSystemFromBackup(CreateFileSystemFromBackupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFileSystemFromBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFileSystemFromBackupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new Amazon FSx for Lustre, Amazon FSx for Windows File Server, or Amazon
/// FSx for OpenZFS file system from an existing Amazon FSx backup.
///
///
///
/// If a file system with the specified client request token exists and the parameters
/// match, this operation returns the description of the file system. If a file system
/// with the specified client request token exists but the parameters don't match, this
/// call returns IncompatibleParameterError
. If a file system with the specified
/// client request token doesn't exist, this operation does the following:
///
/// -
///
/// Creates a new Amazon FSx file system from backup with an assigned ID, and an initial
/// lifecycle state of
CREATING
.
///
/// -
///
/// Returns the description of the file system.
///
///
///
/// Parameters like the Active Directory, default share name, automatic backup, and backup
/// settings default to the parameters of the file system that was backed up, unless overridden.
/// You can explicitly supply other settings.
///
///
///
/// By using the idempotent operation, you can retry a CreateFileSystemFromBackup
/// call without the risk of creating an extra file system. This approach can be useful
/// when an initial call fails in a way that makes it unclear whether a file system was
/// created. Examples are if a transport level timeout occurred, or your connection was
/// reset. If you use the same client request token and the initial call created a file
/// system, the client receives a success message as long as the parameters are the same.
///
///
///
/// The CreateFileSystemFromBackup
call returns while the file system's lifecycle
/// state is still CREATING
. You can check the file-system creation status
/// by calling the
/// DescribeFileSystems operation, which returns the file system state along with
/// other information.
///
///
///
/// Container for the necessary parameters to execute the CreateFileSystemFromBackup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateFileSystemFromBackup service method, as returned by FSx.
///
/// An Active Directory error.
///
///
/// No Amazon FSx backups were found based upon the supplied parameters.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// One or more network settings specified in the request are invalid.
///
///
/// An invalid value for PerUnitStorageThroughput
was provided. Please create
/// your file system again, using a valid value.
///
///
/// A file system configuration is required for this operation.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for CreateFileSystemFromBackup Operation
public virtual Task CreateFileSystemFromBackupAsync(CreateFileSystemFromBackupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateFileSystemFromBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateFileSystemFromBackupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateSnapshot
internal virtual CreateSnapshotResponse CreateSnapshot(CreateSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a snapshot of an existing Amazon FSx for OpenZFS volume. With snapshots, you
/// can easily undo file changes and compare file versions by restoring the volume to
/// a previous version.
///
///
///
/// If a snapshot with the specified client request token exists, and the parameters match,
/// this operation returns the description of the existing snapshot. If a snapshot with
/// the specified client request token exists, and the parameters don't match, this operation
/// returns IncompatibleParameterError
. If a snapshot with the specified
/// client request token doesn't exist, CreateSnapshot
does the following:
///
/// -
///
/// Creates a new OpenZFS snapshot with an assigned ID, and an initial lifecycle state
/// of
CREATING
.
///
/// -
///
/// Returns the description of the snapshot.
///
///
///
/// By using the idempotent operation, you can retry a CreateSnapshot
operation
/// without the risk of creating an extra snapshot. This approach can be useful when an
/// initial call fails in a way that makes it unclear whether a snapshot was created.
/// If you use the same client request token and the initial call created a snapshot,
/// the operation returns a successful result because all the parameters are the same.
///
///
///
/// The CreateSnapshot
operation returns while the snapshot's lifecycle state
/// is still CREATING
. You can check the snapshot creation status by calling
/// the DescribeSnapshots
/// operation, which returns the snapshot state along with other information.
///
///
/// Container for the necessary parameters to execute the CreateSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateSnapshot service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// No Amazon FSx volumes were found based upon the supplied parameters.
///
/// REST API Reference for CreateSnapshot Operation
public virtual Task CreateSnapshotAsync(CreateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateStorageVirtualMachine
internal virtual CreateStorageVirtualMachineResponse CreateStorageVirtualMachine(CreateStorageVirtualMachineRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStorageVirtualMachineRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStorageVirtualMachineResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a storage virtual machine (SVM) for an Amazon FSx for ONTAP file system.
///
/// Container for the necessary parameters to execute the CreateStorageVirtualMachine service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateStorageVirtualMachine service method, as returned by FSx.
///
/// An Active Directory error.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for CreateStorageVirtualMachine Operation
public virtual Task CreateStorageVirtualMachineAsync(CreateStorageVirtualMachineRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateStorageVirtualMachineRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateStorageVirtualMachineResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateVolume
internal virtual CreateVolumeResponse CreateVolume(CreateVolumeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVolumeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVolumeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an FSx for ONTAP or Amazon FSx for OpenZFS storage volume.
///
/// Container for the necessary parameters to execute the CreateVolume service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateVolume service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// A volume configuration is required for this operation.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// No FSx for ONTAP SVMs were found based upon the supplied parameters.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for CreateVolume Operation
public virtual Task CreateVolumeAsync(CreateVolumeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVolumeRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVolumeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateVolumeFromBackup
internal virtual CreateVolumeFromBackupResponse CreateVolumeFromBackup(CreateVolumeFromBackupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVolumeFromBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVolumeFromBackupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a new Amazon FSx for NetApp ONTAP volume from an existing Amazon FSx volume
/// backup.
///
/// Container for the necessary parameters to execute the CreateVolumeFromBackup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateVolumeFromBackup service method, as returned by FSx.
///
/// No Amazon FSx backups were found based upon the supplied parameters.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// A volume configuration is required for this operation.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// No FSx for ONTAP SVMs were found based upon the supplied parameters.
///
/// REST API Reference for CreateVolumeFromBackup Operation
public virtual Task CreateVolumeFromBackupAsync(CreateVolumeFromBackupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateVolumeFromBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateVolumeFromBackupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteBackup
internal virtual DeleteBackupResponse DeleteBackup(DeleteBackupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteBackupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an Amazon FSx backup. After deletion, the backup no longer exists, and its
/// data is gone.
///
///
///
/// The DeleteBackup
call returns instantly. The backup won't show up in
/// later DescribeBackups
calls.
///
///
///
/// The data in a deleted backup is also deleted and can't be recovered by any means.
///
///
///
/// Container for the necessary parameters to execute the DeleteBackup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteBackup service method, as returned by FSx.
///
/// You can't delete a backup while it's being copied.
///
///
/// Another backup is already under way. Wait for completion before initiating additional
/// backups of this file system.
///
///
/// No Amazon FSx backups were found based upon the supplied parameters.
///
///
/// You can't delete a backup while it's being used to restore a file system.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
/// REST API Reference for DeleteBackup Operation
public virtual Task DeleteBackupAsync(DeleteBackupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteBackupRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteBackupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteDataRepositoryAssociation
internal virtual DeleteDataRepositoryAssociationResponse DeleteDataRepositoryAssociation(DeleteDataRepositoryAssociationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataRepositoryAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataRepositoryAssociationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a data repository association on an Amazon FSx for Lustre file system. Deleting
/// the data repository association unlinks the file system from the Amazon S3 bucket.
/// When deleting a data repository association, you have the option of deleting the data
/// in the file system that corresponds to the data repository association. Data repository
/// associations are supported on all FSx for Lustre 2.12 and newer file systems, excluding
/// scratch_1
deployment type.
///
/// Container for the necessary parameters to execute the DeleteDataRepositoryAssociation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteDataRepositoryAssociation service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No data repository associations were found based upon the supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for DeleteDataRepositoryAssociation Operation
public virtual Task DeleteDataRepositoryAssociationAsync(DeleteDataRepositoryAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteDataRepositoryAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteDataRepositoryAssociationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteFileCache
internal virtual DeleteFileCacheResponse DeleteFileCache(DeleteFileCacheRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFileCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFileCacheResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an Amazon File Cache resource. After deletion, the cache no longer exists,
/// and its data is gone.
///
///
///
/// The DeleteFileCache
operation returns while the cache has the DELETING
/// status. You can check the cache deletion status by calling the DescribeFileCaches
/// operation, which returns a list of caches in your account. If you pass the cache ID
/// for a deleted cache, the DescribeFileCaches
operation returns a FileCacheNotFound
/// error.
///
///
///
/// The data in a deleted cache is also deleted and can't be recovered by any means.
///
///
///
/// Container for the necessary parameters to execute the DeleteFileCache service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteFileCache service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No caches were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for DeleteFileCache Operation
public virtual Task DeleteFileCacheAsync(DeleteFileCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFileCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFileCacheResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteFileSystem
internal virtual DeleteFileSystemResponse DeleteFileSystem(DeleteFileSystemRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFileSystemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFileSystemResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a file system. After deletion, the file system no longer exists, and its data
/// is gone. Any existing automatic backups and snapshots are also deleted.
///
///
///
/// To delete an Amazon FSx for NetApp ONTAP file system, first delete all the volumes
/// and storage virtual machines (SVMs) on the file system. Then provide a FileSystemId
/// value to the DeleFileSystem
operation.
///
///
///
/// By default, when you delete an Amazon FSx for Windows File Server file system, a final
/// backup is created upon deletion. This final backup isn't subject to the file system's
/// retention policy, and must be manually deleted.
///
///
///
/// The DeleteFileSystem
operation returns while the file system has the
/// DELETING
status. You can check the file system deletion status by calling
/// the DescribeFileSystems
/// operation, which returns a list of file systems in your account. If you pass the file
/// system ID for a deleted file system, the DescribeFileSystems
operation
/// returns a FileSystemNotFound
error.
///
///
///
/// If a data repository task is in a PENDING
or EXECUTING
state,
/// deleting an Amazon FSx for Lustre file system will fail with an HTTP status code 400
/// (Bad Request).
///
///
///
/// The data in a deleted file system is also deleted and can't be recovered by any means.
///
///
///
/// Container for the necessary parameters to execute the DeleteFileSystem service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteFileSystem service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for DeleteFileSystem Operation
public virtual Task DeleteFileSystemAsync(DeleteFileSystemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteFileSystemRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteFileSystemResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteSnapshot
internal virtual DeleteSnapshotResponse DeleteSnapshot(DeleteSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an Amazon FSx for OpenZFS snapshot. After deletion, the snapshot no longer
/// exists, and its data is gone. Deleting a snapshot doesn't affect snapshots stored
/// in a file system backup.
///
///
///
/// The DeleteSnapshot
operation returns instantly. The snapshot appears
/// with the lifecycle status of DELETING
until the deletion is complete.
///
///
/// Container for the necessary parameters to execute the DeleteSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteSnapshot service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No Amazon FSx snapshots were found based on the supplied parameters.
///
/// REST API Reference for DeleteSnapshot Operation
public virtual Task DeleteSnapshotAsync(DeleteSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteStorageVirtualMachine
internal virtual DeleteStorageVirtualMachineResponse DeleteStorageVirtualMachine(DeleteStorageVirtualMachineRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteStorageVirtualMachineRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteStorageVirtualMachineResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an existing Amazon FSx for ONTAP storage virtual machine (SVM). Prior to deleting
/// an SVM, you must delete all non-root volumes in the SVM, otherwise the operation will
/// fail.
///
/// Container for the necessary parameters to execute the DeleteStorageVirtualMachine service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteStorageVirtualMachine service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No FSx for ONTAP SVMs were found based upon the supplied parameters.
///
/// REST API Reference for DeleteStorageVirtualMachine Operation
public virtual Task DeleteStorageVirtualMachineAsync(DeleteStorageVirtualMachineRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteStorageVirtualMachineRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteStorageVirtualMachineResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteVolume
internal virtual DeleteVolumeResponse DeleteVolume(DeleteVolumeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVolumeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVolumeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volume.
///
/// Container for the necessary parameters to execute the DeleteVolume service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteVolume service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// No Amazon FSx volumes were found based upon the supplied parameters.
///
/// REST API Reference for DeleteVolume Operation
public virtual Task DeleteVolumeAsync(DeleteVolumeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteVolumeRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteVolumeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeBackups
internal virtual DescribeBackupsResponse DescribeBackups(DescribeBackupsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeBackupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeBackupsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the description of a specific Amazon FSx backup, if a BackupIds
/// value is provided for that backup. Otherwise, it returns all backups owned by your
/// Amazon Web Services account in the Amazon Web Services Region of the endpoint that
/// you're calling.
///
///
///
/// When retrieving all backups, you can optionally specify the MaxResults
/// parameter to limit the number of backups in a response. If more backups remain, Amazon
/// FSx returns a NextToken
value in the response. In this case, send a later
/// request with the NextToken
request parameter set to the value of the
/// NextToken
value from the last response.
///
///
///
/// This operation is used in an iterative process to retrieve a list of your backups.
/// DescribeBackups
is called first without a NextToken
value.
/// Then the operation continues to be called with the NextToken
parameter
/// set to the value of the last NextToken
value until a response has no
/// NextToken
value.
///
///
///
/// When using this operation, keep the following in mind:
///
/// -
///
/// The operation might return fewer than the
MaxResults
value of backup
/// descriptions while still including a NextToken
value.
///
/// -
///
/// The order of the backups returned in the response of one
DescribeBackups
/// call and the order of the backups returned across the responses of a multi-call iteration
/// is unspecified.
///
///
///
/// Container for the necessary parameters to execute the DescribeBackups service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeBackups service method, as returned by FSx.
///
/// No Amazon FSx backups were found based upon the supplied parameters.
///
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No Amazon FSx volumes were found based upon the supplied parameters.
///
/// REST API Reference for DescribeBackups Operation
public virtual Task DescribeBackupsAsync(DescribeBackupsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeBackupsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeBackupsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeDataRepositoryAssociations
internal virtual DescribeDataRepositoryAssociationsResponse DescribeDataRepositoryAssociations(DescribeDataRepositoryAssociationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDataRepositoryAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDataRepositoryAssociationsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the description of specific Amazon FSx for Lustre or Amazon File Cache data
/// repository associations, if one or more AssociationIds
values are provided
/// in the request, or if filters are used in the request. Data repository associations
/// are supported on Amazon File Cache resources and all FSx for Lustre 2.12 and newer
/// file systems, excluding scratch_1
deployment type.
///
///
///
/// You can use filters to narrow the response to include just data repository associations
/// for specific file systems (use the file-system-id
filter with the ID
/// of the file system) or caches (use the file-cache-id
filter with the
/// ID of the cache), or data repository associations for a specific repository type (use
/// the data-repository-type
filter with a value of S3
or NFS
).
/// If you don't use filters, the response returns all data repository associations owned
/// by your Amazon Web Services account in the Amazon Web Services Region of the endpoint
/// that you're calling.
///
///
///
/// When retrieving all data repository associations, you can paginate the response by
/// using the optional MaxResults
parameter to limit the number of data repository
/// associations returned in a response. If more data repository associations remain,
/// a NextToken
value is returned in the response. In this case, send a later
/// request with the NextToken
request parameter set to the value of NextToken
/// from the last response.
///
///
/// Container for the necessary parameters to execute the DescribeDataRepositoryAssociations service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeDataRepositoryAssociations service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No data repository associations were found based upon the supplied parameters.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
///
/// You have filtered the response to a data repository type that is not supported.
///
/// REST API Reference for DescribeDataRepositoryAssociations Operation
public virtual Task DescribeDataRepositoryAssociationsAsync(DescribeDataRepositoryAssociationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDataRepositoryAssociationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDataRepositoryAssociationsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeDataRepositoryTasks
internal virtual DescribeDataRepositoryTasksResponse DescribeDataRepositoryTasks(DescribeDataRepositoryTasksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDataRepositoryTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDataRepositoryTasksResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the description of specific Amazon FSx for Lustre or Amazon File Cache data
/// repository tasks, if one or more TaskIds
values are provided in the request,
/// or if filters are used in the request. You can use filters to narrow the response
/// to include just tasks for specific file systems or caches, or tasks in a specific
/// lifecycle state. Otherwise, it returns all data repository tasks owned by your Amazon
/// Web Services account in the Amazon Web Services Region of the endpoint that you're
/// calling.
///
///
///
/// When retrieving all tasks, you can paginate the response by using the optional MaxResults
/// parameter to limit the number of tasks returned in a response. If more tasks remain,
/// a NextToken
value is returned in the response. In this case, send a later
/// request with the NextToken
request parameter set to the value of NextToken
/// from the last response.
///
///
/// Container for the necessary parameters to execute the DescribeDataRepositoryTasks service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeDataRepositoryTasks service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// The data repository task or tasks you specified could not be found.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
/// REST API Reference for DescribeDataRepositoryTasks Operation
public virtual Task DescribeDataRepositoryTasksAsync(DescribeDataRepositoryTasksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeDataRepositoryTasksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeDataRepositoryTasksResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeFileCaches
internal virtual DescribeFileCachesResponse DescribeFileCaches(DescribeFileCachesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFileCachesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFileCachesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the description of a specific Amazon File Cache resource, if a FileCacheIds
/// value is provided for that cache. Otherwise, it returns descriptions of all caches
/// owned by your Amazon Web Services account in the Amazon Web Services Region of the
/// endpoint that you're calling.
///
///
///
/// When retrieving all cache descriptions, you can optionally specify the MaxResults
/// parameter to limit the number of descriptions in a response. If more cache descriptions
/// remain, the operation returns a NextToken
value in the response. In this
/// case, send a later request with the NextToken
request parameter set to
/// the value of NextToken
from the last response.
///
///
///
/// This operation is used in an iterative process to retrieve a list of your cache descriptions.
/// DescribeFileCaches
is called first without a NextToken
value.
/// Then the operation continues to be called with the NextToken
parameter
/// set to the value of the last NextToken
value until a response has no
/// NextToken
.
///
///
///
/// When using this operation, keep the following in mind:
///
/// -
///
/// The implementation might return fewer than
MaxResults
cache descriptions
/// while still including a NextToken
value.
///
/// -
///
/// The order of caches returned in the response of one
DescribeFileCaches
/// call and the order of caches returned across the responses of a multicall iteration
/// is unspecified.
///
///
///
/// Container for the necessary parameters to execute the DescribeFileCaches service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeFileCaches service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No caches were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
/// REST API Reference for DescribeFileCaches Operation
public virtual Task DescribeFileCachesAsync(DescribeFileCachesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFileCachesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFileCachesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeFileSystemAliases
internal virtual DescribeFileSystemAliasesResponse DescribeFileSystemAliases(DescribeFileSystemAliasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFileSystemAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFileSystemAliasesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the DNS aliases that are associated with the specified Amazon FSx for Windows
/// File Server file system. A history of all DNS aliases that have been associated with
/// and disassociated from the file system is available in the list of AdministrativeAction
/// provided in the DescribeFileSystems operation response.
///
/// Container for the necessary parameters to execute the DescribeFileSystemAliases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeFileSystemAliases service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
/// REST API Reference for DescribeFileSystemAliases Operation
public virtual Task DescribeFileSystemAliasesAsync(DescribeFileSystemAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFileSystemAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFileSystemAliasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeFileSystems
internal virtual DescribeFileSystemsResponse DescribeFileSystems(DescribeFileSystemsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFileSystemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFileSystemsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the description of specific Amazon FSx file systems, if a FileSystemIds
/// value is provided for that file system. Otherwise, it returns descriptions of all
/// file systems owned by your Amazon Web Services account in the Amazon Web Services
/// Region of the endpoint that you're calling.
///
///
///
/// When retrieving all file system descriptions, you can optionally specify the MaxResults
/// parameter to limit the number of descriptions in a response. If more file system descriptions
/// remain, Amazon FSx returns a NextToken
value in the response. In this
/// case, send a later request with the NextToken
request parameter set to
/// the value of NextToken
from the last response.
///
///
///
/// This operation is used in an iterative process to retrieve a list of your file system
/// descriptions. DescribeFileSystems
is called first without a NextToken
value.
/// Then the operation continues to be called with the NextToken
parameter
/// set to the value of the last NextToken
value until a response has no
/// NextToken
.
///
///
///
/// When using this operation, keep the following in mind:
///
/// -
///
/// The implementation might return fewer than
MaxResults
file system descriptions
/// while still including a NextToken
value.
///
/// -
///
/// The order of file systems returned in the response of one
DescribeFileSystems
/// call and the order of file systems returned across the responses of a multicall iteration
/// is unspecified.
///
///
///
/// Container for the necessary parameters to execute the DescribeFileSystems service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeFileSystems service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
/// REST API Reference for DescribeFileSystems Operation
public virtual Task DescribeFileSystemsAsync(DescribeFileSystemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeFileSystemsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeFileSystemsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeSnapshots
internal virtual DescribeSnapshotsResponse DescribeSnapshots(DescribeSnapshotsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSnapshotsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSnapshotsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns the description of specific Amazon FSx for OpenZFS snapshots, if a SnapshotIds
/// value is provided. Otherwise, this operation returns all snapshots owned by your Amazon
/// Web Services account in the Amazon Web Services Region of the endpoint that you're
/// calling.
///
///
///
/// When retrieving all snapshots, you can optionally specify the MaxResults
/// parameter to limit the number of snapshots in a response. If more backups remain,
/// Amazon FSx returns a NextToken
value in the response. In this case, send
/// a later request with the NextToken
request parameter set to the value
/// of NextToken
from the last response.
///
///
///
/// Use this operation in an iterative process to retrieve a list of your snapshots. DescribeSnapshots
/// is called first without a NextToken
value. Then the operation continues
/// to be called with the NextToken
parameter set to the value of the last
/// NextToken
value until a response has no NextToken
value.
///
///
///
/// When using this operation, keep the following in mind:
///
/// -
///
/// The operation might return fewer than the
MaxResults
value of snapshot
/// descriptions while still including a NextToken
value.
///
/// -
///
/// The order of snapshots returned in the response of one
DescribeSnapshots
/// call and the order of backups returned across the responses of a multi-call iteration
/// is unspecified.
///
///
///
/// Container for the necessary parameters to execute the DescribeSnapshots service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeSnapshots service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No Amazon FSx snapshots were found based on the supplied parameters.
///
/// REST API Reference for DescribeSnapshots Operation
public virtual Task DescribeSnapshotsAsync(DescribeSnapshotsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSnapshotsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSnapshotsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeStorageVirtualMachines
internal virtual DescribeStorageVirtualMachinesResponse DescribeStorageVirtualMachines(DescribeStorageVirtualMachinesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStorageVirtualMachinesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStorageVirtualMachinesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes one or more Amazon FSx for NetApp ONTAP storage virtual machines (SVMs).
///
/// Container for the necessary parameters to execute the DescribeStorageVirtualMachines service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeStorageVirtualMachines service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No FSx for ONTAP SVMs were found based upon the supplied parameters.
///
/// REST API Reference for DescribeStorageVirtualMachines Operation
public virtual Task DescribeStorageVirtualMachinesAsync(DescribeStorageVirtualMachinesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeStorageVirtualMachinesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeStorageVirtualMachinesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeVolumes
internal virtual DescribeVolumesResponse DescribeVolumes(DescribeVolumesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVolumesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVolumesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes one or more Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS volumes.
///
/// Container for the necessary parameters to execute the DescribeVolumes service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeVolumes service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No Amazon FSx volumes were found based upon the supplied parameters.
///
/// REST API Reference for DescribeVolumes Operation
public virtual Task DescribeVolumesAsync(DescribeVolumesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeVolumesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeVolumesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DisassociateFileSystemAliases
internal virtual DisassociateFileSystemAliasesResponse DisassociateFileSystemAliases(DisassociateFileSystemAliasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFileSystemAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFileSystemAliasesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Use this action to disassociate, or remove, one or more Domain Name Service (DNS)
/// aliases from an Amazon FSx for Windows File Server file system. If you attempt to
/// disassociate a DNS alias that is not associated with the file system, Amazon FSx responds
/// with a 400 Bad Request. For more information, see Working
/// with DNS Aliases.
///
///
///
/// The system generated response showing the DNS aliases that Amazon FSx is attempting
/// to disassociate from the file system. Use the API operation to monitor the status
/// of the aliases Amazon FSx is disassociating with the file system.
///
///
/// Container for the necessary parameters to execute the DisassociateFileSystemAliases service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DisassociateFileSystemAliases service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// A generic error indicating a server-side failure.
///
/// REST API Reference for DisassociateFileSystemAliases Operation
public virtual Task DisassociateFileSystemAliasesAsync(DisassociateFileSystemAliasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DisassociateFileSystemAliasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DisassociateFileSystemAliasesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists tags for Amazon FSx resources.
///
///
///
/// When retrieving all tags, you can optionally specify the MaxResults
parameter
/// to limit the number of tags in a response. If more tags remain, Amazon FSx returns
/// a NextToken
value in the response. In this case, send a later request
/// with the NextToken
request parameter set to the value of NextToken
/// from the last response.
///
///
///
/// This action is used in an iterative process to retrieve a list of your tags. ListTagsForResource
/// is called first without a NextToken
value. Then the action continues to
/// be called with the NextToken
parameter set to the value of the last NextToken
/// value until a response has no NextToken
.
///
///
///
/// When using this action, keep the following in mind:
///
/// -
///
/// The implementation might return fewer than
MaxResults
file system descriptions
/// while still including a NextToken
value.
///
/// -
///
/// The order of tags returned in the response of one
ListTagsForResource
/// call and the order of tags returned across the responses of a multi-call iteration
/// is unspecified.
///
///
///
/// 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 FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// The resource specified for the tagging operation is not a resource type owned by Amazon
/// FSx. Use the API of the relevant service to perform the operation.
///
///
/// The resource specified does not support tagging.
///
///
/// The resource specified by the Amazon Resource Name (ARN) can't be found.
///
/// 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 ReleaseFileSystemNfsV3Locks
internal virtual ReleaseFileSystemNfsV3LocksResponse ReleaseFileSystemNfsV3Locks(ReleaseFileSystemNfsV3LocksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ReleaseFileSystemNfsV3LocksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ReleaseFileSystemNfsV3LocksResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Releases the file system lock from an Amazon FSx for OpenZFS file system.
///
/// Container for the necessary parameters to execute the ReleaseFileSystemNfsV3Locks service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ReleaseFileSystemNfsV3Locks service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for ReleaseFileSystemNfsV3Locks Operation
public virtual Task ReleaseFileSystemNfsV3LocksAsync(ReleaseFileSystemNfsV3LocksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ReleaseFileSystemNfsV3LocksRequestMarshaller.Instance;
options.ResponseUnmarshaller = ReleaseFileSystemNfsV3LocksResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region RestoreVolumeFromSnapshot
internal virtual RestoreVolumeFromSnapshotResponse RestoreVolumeFromSnapshot(RestoreVolumeFromSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RestoreVolumeFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = RestoreVolumeFromSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns an Amazon FSx for OpenZFS volume to the state saved by the specified snapshot.
///
/// Container for the necessary parameters to execute the RestoreVolumeFromSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the RestoreVolumeFromSnapshot service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No Amazon FSx volumes were found based upon the supplied parameters.
///
/// REST API Reference for RestoreVolumeFromSnapshot Operation
public virtual Task RestoreVolumeFromSnapshotAsync(RestoreVolumeFromSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RestoreVolumeFromSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = RestoreVolumeFromSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Tags an Amazon FSx resource.
///
/// 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 FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// The resource specified for the tagging operation is not a resource type owned by Amazon
/// FSx. Use the API of the relevant service to perform the operation.
///
///
/// The resource specified does not support tagging.
///
///
/// The resource specified by the Amazon Resource Name (ARN) can't be found.
///
/// 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
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// This action removes a tag from an Amazon FSx 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 FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// The resource specified for the tagging operation is not a resource type owned by Amazon
/// FSx. Use the API of the relevant service to perform the operation.
///
///
/// The resource specified does not support tagging.
///
///
/// The resource specified by the Amazon Resource Name (ARN) can't be found.
///
/// 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 UpdateDataRepositoryAssociation
internal virtual UpdateDataRepositoryAssociationResponse UpdateDataRepositoryAssociation(UpdateDataRepositoryAssociationRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataRepositoryAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataRepositoryAssociationResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the configuration of an existing data repository association on an Amazon
/// FSx for Lustre file system. Data repository associations are supported on all FSx
/// for Lustre 2.12 and newer file systems, excluding scratch_1
deployment
/// type.
///
/// Container for the necessary parameters to execute the UpdateDataRepositoryAssociation service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateDataRepositoryAssociation service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No data repository associations were found based upon the supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
/// REST API Reference for UpdateDataRepositoryAssociation Operation
public virtual Task UpdateDataRepositoryAssociationAsync(UpdateDataRepositoryAssociationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateDataRepositoryAssociationRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateDataRepositoryAssociationResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateFileCache
internal virtual UpdateFileCacheResponse UpdateFileCache(UpdateFileCacheRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFileCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFileCacheResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the configuration of an existing Amazon File Cache resource. You can update
/// multiple properties in a single request.
///
/// Container for the necessary parameters to execute the UpdateFileCache service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateFileCache service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No caches were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// A cache configuration is required for this operation.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for UpdateFileCache Operation
public virtual Task UpdateFileCacheAsync(UpdateFileCacheRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFileCacheRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFileCacheResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateFileSystem
internal virtual UpdateFileSystemResponse UpdateFileSystem(UpdateFileSystemRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFileSystemRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFileSystemResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Use this operation to update the configuration of an existing Amazon FSx file system.
/// You can update multiple properties in a single request.
///
///
///
/// For FSx for Windows File Server file systems, you can update the following properties:
///
/// -
///
///
AuditLogConfiguration
///
/// -
///
///
AutomaticBackupRetentionDays
///
/// -
///
///
DailyAutomaticBackupStartTime
///
/// -
///
///
SelfManagedActiveDirectoryConfiguration
///
/// -
///
///
StorageCapacity
///
/// -
///
///
ThroughputCapacity
///
/// -
///
///
WeeklyMaintenanceStartTime
///
///
///
/// For FSx for Lustre file systems, you can update the following properties:
///
/// -
///
///
AutoImportPolicy
///
/// -
///
///
AutomaticBackupRetentionDays
///
/// -
///
///
DailyAutomaticBackupStartTime
///
/// -
///
///
DataCompressionType
///
/// -
///
///
LogConfiguration
///
/// -
///
///
LustreRootSquashConfiguration
///
/// -
///
///
StorageCapacity
///
/// -
///
///
WeeklyMaintenanceStartTime
///
///
///
/// For FSx for ONTAP file systems, you can update the following properties:
///
/// -
///
///
AddRouteTableIds
///
/// -
///
///
AutomaticBackupRetentionDays
///
/// -
///
///
DailyAutomaticBackupStartTime
///
/// -
///
///
DiskIopsConfiguration
///
/// -
///
///
FsxAdminPassword
///
/// -
///
///
RemoveRouteTableIds
///
/// -
///
///
StorageCapacity
///
/// -
///
///
ThroughputCapacity
///
/// -
///
///
WeeklyMaintenanceStartTime
///
///
///
/// For FSx for OpenZFS file systems, you can update the following properties:
///
/// -
///
///
AutomaticBackupRetentionDays
///
/// -
///
///
CopyTagsToBackups
///
/// -
///
///
CopyTagsToVolumes
///
/// -
///
///
DailyAutomaticBackupStartTime
///
/// -
///
///
DiskIopsConfiguration
///
/// -
///
///
StorageCapacity
///
/// -
///
///
ThroughputCapacity
///
/// -
///
///
WeeklyMaintenanceStartTime
///
///
///
/// Container for the necessary parameters to execute the UpdateFileSystem service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateFileSystem service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// No Amazon FSx file systems were found based upon supplied parameters.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// One or more network settings specified in the request are invalid.
///
///
/// A file system configuration is required for this operation.
///
///
/// An error indicating that a particular service limit was exceeded. You can increase
/// some service limits by contacting Amazon Web Services Support.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for UpdateFileSystem Operation
public virtual Task UpdateFileSystemAsync(UpdateFileSystemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateFileSystemRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateFileSystemResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateSnapshot
internal virtual UpdateSnapshotResponse UpdateSnapshot(UpdateSnapshotRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the name of an Amazon FSx for OpenZFS snapshot.
///
/// Container for the necessary parameters to execute the UpdateSnapshot service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateSnapshot service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No Amazon FSx snapshots were found based on the supplied parameters.
///
/// REST API Reference for UpdateSnapshot Operation
public virtual Task UpdateSnapshotAsync(UpdateSnapshotRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateSnapshotRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateSnapshotResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateStorageVirtualMachine
internal virtual UpdateStorageVirtualMachineResponse UpdateStorageVirtualMachine(UpdateStorageVirtualMachineRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStorageVirtualMachineRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStorageVirtualMachineResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates an FSx for ONTAP storage virtual machine (SVM).
///
/// Container for the necessary parameters to execute the UpdateStorageVirtualMachine service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateStorageVirtualMachine service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// No FSx for ONTAP SVMs were found based upon the supplied parameters.
///
///
/// The requested operation is not supported for this resource or API.
///
/// REST API Reference for UpdateStorageVirtualMachine Operation
public virtual Task UpdateStorageVirtualMachineAsync(UpdateStorageVirtualMachineRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateStorageVirtualMachineRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateStorageVirtualMachineResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateVolume
internal virtual UpdateVolumeResponse UpdateVolume(UpdateVolumeRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVolumeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVolumeResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates the configuration of an Amazon FSx for NetApp ONTAP or Amazon FSx for OpenZFS
/// volume.
///
/// Container for the necessary parameters to execute the UpdateVolume service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateVolume service method, as returned by FSx.
///
/// A generic error indicating a failure with a client request.
///
///
/// The error returned when a second request is received with the same client request
/// token but different parameters settings. A client request token should always uniquely
/// identify a single request.
///
///
/// A generic error indicating a server-side failure.
///
///
/// A volume configuration is required for this operation.
///
///
/// No Amazon FSx volumes were found based upon the supplied parameters.
///
/// REST API Reference for UpdateVolume Operation
public virtual Task UpdateVolumeAsync(UpdateVolumeRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateVolumeRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateVolumeResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}