/*
* 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.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.FSx.Model
{
///
/// Container for the parameters to the DeleteFileSystem operation.
/// 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.
///
///
///
public partial class DeleteFileSystemRequest : AmazonFSxRequest
{
private string _clientRequestToken;
private string _fileSystemId;
private DeleteFileSystemLustreConfiguration _lustreConfiguration;
private DeleteFileSystemOpenZFSConfiguration _openZFSConfiguration;
private DeleteFileSystemWindowsConfiguration _windowsConfiguration;
///
/// Gets and sets the property ClientRequestToken.
///
/// A string of up to 63 ASCII characters that Amazon FSx uses to ensure idempotent deletion.
/// This token is automatically filled on your behalf when using the Command Line Interface
/// (CLI) or an Amazon Web Services SDK.
///
///
[AWSProperty(Min=1, Max=63)]
public string ClientRequestToken
{
get { return this._clientRequestToken; }
set { this._clientRequestToken = value; }
}
// Check to see if ClientRequestToken property is set
internal bool IsSetClientRequestToken()
{
return this._clientRequestToken != null;
}
///
/// Gets and sets the property FileSystemId.
///
/// The ID of the file system that you want to delete.
///
///
[AWSProperty(Required=true, Min=11, Max=21)]
public string FileSystemId
{
get { return this._fileSystemId; }
set { this._fileSystemId = value; }
}
// Check to see if FileSystemId property is set
internal bool IsSetFileSystemId()
{
return this._fileSystemId != null;
}
///
/// Gets and sets the property LustreConfiguration.
///
public DeleteFileSystemLustreConfiguration LustreConfiguration
{
get { return this._lustreConfiguration; }
set { this._lustreConfiguration = value; }
}
// Check to see if LustreConfiguration property is set
internal bool IsSetLustreConfiguration()
{
return this._lustreConfiguration != null;
}
///
/// Gets and sets the property OpenZFSConfiguration.
///
/// The configuration object for the OpenZFS file system used in the DeleteFileSystem
/// operation.
///
///
public DeleteFileSystemOpenZFSConfiguration OpenZFSConfiguration
{
get { return this._openZFSConfiguration; }
set { this._openZFSConfiguration = value; }
}
// Check to see if OpenZFSConfiguration property is set
internal bool IsSetOpenZFSConfiguration()
{
return this._openZFSConfiguration != null;
}
///
/// Gets and sets the property WindowsConfiguration.
///
public DeleteFileSystemWindowsConfiguration WindowsConfiguration
{
get { return this._windowsConfiguration; }
set { this._windowsConfiguration = value; }
}
// Check to see if WindowsConfiguration property is set
internal bool IsSetWindowsConfiguration()
{
return this._windowsConfiguration != null;
}
}
}