/*
* 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 ModifyCustomDBEngineVersion operation.
/// Modifies the status of a custom engine version (CEV). You can find CEVs to modify
/// by calling DescribeDBEngineVersions
.
///
///
///
/// The MediaImport service that imports files from Amazon S3 to create CEVs isn't integrated
/// with Amazon Web Services CloudTrail. If you turn on data logging for Amazon RDS in
/// CloudTrail, calls to the ModifyCustomDbEngineVersion
event aren't logged.
/// However, you might see calls from the API gateway that accesses your Amazon S3 bucket.
/// These calls originate from the MediaImport service for the ModifyCustomDbEngineVersion
/// event.
///
///
///
/// For more information, see Modifying
/// CEV status in the Amazon RDS User Guide.
///
///
public partial class ModifyCustomDBEngineVersionRequest : AmazonRDSRequest
{
private string _description;
private string _engine;
private string _engineVersion;
private CustomEngineVersionStatus _status;
///
/// Gets and sets the property Description.
///
/// An optional description of your CEV.
///
///
[AWSProperty(Min=1, Max=1000)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
///
/// Gets and sets the property Engine.
///
/// The DB engine. The only supported values are custom-oracle-ee
and custom-oracle-ee-cdb
.
///
///
[AWSProperty(Required=true, Min=1, Max=35)]
public string Engine
{
get { return this._engine; }
set { this._engine = value; }
}
// Check to see if Engine property is set
internal bool IsSetEngine()
{
return this._engine != null;
}
///
/// Gets and sets the property EngineVersion.
///
/// The custom engine version (CEV) that you want to modify. This option is required for
/// RDS Custom for Oracle, but optional for Amazon RDS. The combination of Engine
/// and EngineVersion
is unique per customer per Amazon Web Services Region.
///
///
[AWSProperty(Required=true, Min=1, Max=60)]
public string EngineVersion
{
get { return this._engineVersion; }
set { this._engineVersion = value; }
}
// Check to see if EngineVersion property is set
internal bool IsSetEngineVersion()
{
return this._engineVersion != null;
}
///
/// Gets and sets the property Status.
///
/// The availability status to be assigned to the CEV. Valid values are as follows:
///
/// - available
-
///
/// You can use this CEV to create a new RDS Custom DB instance.
///
///
- inactive
-
///
/// You can create a new RDS Custom instance by restoring a DB snapshot with this CEV.
/// You can't patch or create new instances with this CEV.
///
///
///
/// You can change any status to any status. A typical reason to change status is to prevent
/// the accidental use of a CEV, or to make a deprecated CEV eligible for use again. For
/// example, you might change the status of your CEV from available
to inactive
,
/// and from inactive
back to available
. To change the availability
/// status of the CEV, it must not currently be in use by an RDS Custom instance, snapshot,
/// or automated backup.
///
///
public CustomEngineVersionStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
}
}