/*
* 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 storagegateway-2013-06-30.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.StorageGateway.Model
{
///
/// Container for the parameters to the DeleteVolume operation.
/// Deletes the specified storage volume that you previously created using the CreateCachediSCSIVolume
/// or CreateStorediSCSIVolume API. This operation is only supported in the cached
/// volume and stored volume types. For stored volume gateways, the local disk that was
/// configured as the storage volume is not deleted. You can reuse the local disk to create
/// another storage volume.
///
///
///
/// Before you delete a volume, make sure there are no iSCSI connections to the volume
/// you are deleting. You should also make sure there is no snapshot in progress. You
/// can use the Amazon Elastic Compute Cloud (Amazon EC2) API to query snapshots on the
/// volume you are deleting and check the snapshot status. For more information, go to
/// DescribeSnapshots
/// in the Amazon Elastic Compute Cloud API Reference.
///
///
///
/// In the request, you must provide the Amazon Resource Name (ARN) of the storage volume
/// you want to delete.
///
///
public partial class DeleteVolumeRequest : AmazonStorageGatewayRequest
{
private string _volumeARN;
///
/// Gets and sets the property VolumeARN.
///
/// The Amazon Resource Name (ARN) of the volume. Use the ListVolumes operation
/// to return a list of gateway volumes.
///
///
[AWSProperty(Required=true, Min=50, Max=500)]
public string VolumeARN
{
get { return this._volumeARN; }
set { this._volumeARN = value; }
}
// Check to see if VolumeARN property is set
internal bool IsSetVolumeARN()
{
return this._volumeARN != null;
}
}
}