/*
* 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 rds-2014-10-31.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.RDS.Model
{
///
/// Container for the parameters to the DeleteDBCluster operation.
/// The DeleteDBCluster action deletes a previously provisioned DB cluster. When you delete
/// a DB cluster, all automated backups for that DB cluster are deleted and can't be recovered.
/// Manual DB cluster snapshots of the specified DB cluster are not deleted.
///
///
///
/// If you're deleting a Multi-AZ DB cluster with read replicas, all cluster members are
/// terminated and read replicas are promoted to standalone instances.
///
///
///
/// For more information on Amazon Aurora, see
/// What is Amazon Aurora? in the Amazon Aurora User Guide.
///
///
///
/// For more information on Multi-AZ DB clusters, see
/// Multi-AZ DB cluster deployments in the Amazon RDS User Guide.
///
///
public partial class DeleteDBClusterRequest : AmazonRDSRequest
{
private string _dbClusterIdentifier;
private string _finalDBSnapshotIdentifier;
private bool? _skipFinalSnapshot;
///
/// Gets and sets the property DBClusterIdentifier.
///
/// The DB cluster identifier for the DB cluster to be deleted. This parameter isn't case-sensitive.
///
///
///
/// Constraints:
///
/// -
///
/// Must match an existing DBClusterIdentifier.
///
///
///
[AWSProperty(Required=true)]
public string DBClusterIdentifier
{
get { return this._dbClusterIdentifier; }
set { this._dbClusterIdentifier = value; }
}
// Check to see if DBClusterIdentifier property is set
internal bool IsSetDBClusterIdentifier()
{
return this._dbClusterIdentifier != null;
}
///
/// Gets and sets the property FinalDBSnapshotIdentifier.
///
/// The DB cluster snapshot identifier of the new DB cluster snapshot created when SkipFinalSnapshot
/// is disabled.
///
///
///
/// Specifying this parameter and also skipping the creation of a final DB cluster snapshot
/// with the SkipFinalShapshot
parameter results in an error.
///
///
///
/// Constraints:
///
/// -
///
/// Must be 1 to 255 letters, numbers, or hyphens.
///
///
-
///
/// First character must be a letter
///
///
-
///
/// Can't end with a hyphen or contain two consecutive hyphens
///
///
///
public string FinalDBSnapshotIdentifier
{
get { return this._finalDBSnapshotIdentifier; }
set { this._finalDBSnapshotIdentifier = value; }
}
// Check to see if FinalDBSnapshotIdentifier property is set
internal bool IsSetFinalDBSnapshotIdentifier()
{
return this._finalDBSnapshotIdentifier != null;
}
///
/// Gets and sets the property SkipFinalSnapshot.
///
/// A value that indicates whether to skip the creation of a final DB cluster snapshot
/// before the DB cluster is deleted. If skip is specified, no DB cluster snapshot is
/// created. If skip isn't specified, a DB cluster snapshot is created before the DB cluster
/// is deleted. By default, skip isn't specified, and the DB cluster snapshot is created.
/// By default, this parameter is disabled.
///
///
///
/// You must specify a FinalDBSnapshotIdentifier
parameter if SkipFinalSnapshot
/// is disabled.
///
///
///
public bool SkipFinalSnapshot
{
get { return this._skipFinalSnapshot.GetValueOrDefault(); }
set { this._skipFinalSnapshot = value; }
}
// Check to see if SkipFinalSnapshot property is set
internal bool IsSetSkipFinalSnapshot()
{
return this._skipFinalSnapshot.HasValue;
}
}
}