/* * 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 CreateBlueGreenDeployment operation. /// Creates a blue/green deployment. /// /// /// /// A blue/green deployment creates a staging environment that copies the production environment. /// In a blue/green deployment, the blue environment is the current production environment. /// The green environment is the staging environment. The staging environment stays in /// sync with the current production environment using logical replication. /// /// /// /// You can make changes to the databases in the green environment without affecting production /// workloads. For example, you can upgrade the major or minor DB engine version, change /// database parameters, or make schema changes in the staging environment. You can thoroughly /// test changes in the green environment. When ready, you can switch over the environments /// to promote the green environment to be the new production environment. The switchover /// typically takes under a minute. /// /// /// /// For more information, see Using /// Amazon RDS Blue/Green Deployments for database updates in the Amazon RDS User /// Guide and /// Using Amazon RDS Blue/Green Deployments for database updates in the Amazon /// Aurora User Guide. /// /// public partial class CreateBlueGreenDeploymentRequest : AmazonRDSRequest { private string _blueGreenDeploymentName; private string _source; private List _tags = new List(); private string _targetDBClusterParameterGroupName; private string _targetDBParameterGroupName; private string _targetEngineVersion; /// /// Gets and sets the property BlueGreenDeploymentName. /// /// The name of the blue/green deployment. /// /// /// /// Constraints: /// ///
  • /// /// Can't be the same as an existing blue/green deployment name in the same account and /// Amazon Web Services Region. /// ///
///
[AWSProperty(Required=true, Min=1, Max=60)] public string BlueGreenDeploymentName { get { return this._blueGreenDeploymentName; } set { this._blueGreenDeploymentName = value; } } // Check to see if BlueGreenDeploymentName property is set internal bool IsSetBlueGreenDeploymentName() { return this._blueGreenDeploymentName != null; } /// /// Gets and sets the property Source. /// /// The Amazon Resource Name (ARN) of the source production database. /// /// /// /// Specify the database that you want to clone. The blue/green deployment creates this /// database in the green environment. You can make updates to the database in the green /// environment, such as an engine version upgrade. When you are ready, you can switch /// the database in the green environment to be the production database. /// /// [AWSProperty(Required=true, Min=1, Max=2048)] public string Source { get { return this._source; } set { this._source = value; } } // Check to see if Source property is set internal bool IsSetSource() { return this._source != null; } /// /// Gets and sets the property Tags. /// /// Tags to assign to the blue/green deployment. /// /// public List Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// /// Gets and sets the property TargetDBClusterParameterGroupName. /// /// The DB cluster parameter group associated with the Aurora DB cluster in the green /// environment. /// /// /// /// To test parameter changes, specify a DB cluster parameter group that is different /// from the one associated with the source DB cluster. /// /// [AWSProperty(Min=1, Max=255)] public string TargetDBClusterParameterGroupName { get { return this._targetDBClusterParameterGroupName; } set { this._targetDBClusterParameterGroupName = value; } } // Check to see if TargetDBClusterParameterGroupName property is set internal bool IsSetTargetDBClusterParameterGroupName() { return this._targetDBClusterParameterGroupName != null; } /// /// Gets and sets the property TargetDBParameterGroupName. /// /// The DB parameter group associated with the DB instance in the green environment. /// /// /// /// To test parameter changes, specify a DB parameter group that is different from the /// one associated with the source DB instance. /// /// [AWSProperty(Min=1, Max=255)] public string TargetDBParameterGroupName { get { return this._targetDBParameterGroupName; } set { this._targetDBParameterGroupName = value; } } // Check to see if TargetDBParameterGroupName property is set internal bool IsSetTargetDBParameterGroupName() { return this._targetDBParameterGroupName != null; } /// /// Gets and sets the property TargetEngineVersion. /// /// The engine version of the database in the green environment. /// /// /// /// Specify the engine version to upgrade to in the green environment. /// /// [AWSProperty(Min=1, Max=64)] public string TargetEngineVersion { get { return this._targetEngineVersion; } set { this._targetEngineVersion = value; } } // Check to see if TargetEngineVersion property is set internal bool IsSetTargetEngineVersion() { return this._targetEngineVersion != null; } } }