/*
* 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
{
///
/// Contains the secret managed by RDS in Amazon Web Services Secrets Manager for the
/// master user password.
///
///
///
/// For more information, see Password
/// management with Amazon Web Services Secrets Manager in the Amazon RDS User
/// Guide and Password
/// management with Amazon Web Services Secrets Manager in the Amazon Aurora User
/// Guide.
///
///
public partial class MasterUserSecret
{
private string _kmsKeyId;
private string _secretArn;
private string _secretStatus;
///
/// Gets and sets the property KmsKeyId.
///
/// The Amazon Web Services KMS key identifier that is used to encrypt the secret.
///
///
public string KmsKeyId
{
get { return this._kmsKeyId; }
set { this._kmsKeyId = value; }
}
// Check to see if KmsKeyId property is set
internal bool IsSetKmsKeyId()
{
return this._kmsKeyId != null;
}
///
/// Gets and sets the property SecretArn.
///
/// The Amazon Resource Name (ARN) of the secret.
///
///
public string SecretArn
{
get { return this._secretArn; }
set { this._secretArn = value; }
}
// Check to see if SecretArn property is set
internal bool IsSetSecretArn()
{
return this._secretArn != null;
}
///
/// Gets and sets the property SecretStatus.
///
/// The status of the secret.
///
///
///
/// The possible status values include the following:
///
/// -
///
///
creating
- The secret is being created.
///
/// -
///
///
active
- The secret is available for normal use and rotation.
///
/// -
///
///
rotating
- The secret is being rotated.
///
/// -
///
///
impaired
- The secret can be used to access database credentials, but
/// it can't be rotated. A secret might have this status if, for example, permissions
/// are changed so that RDS can no longer access either the secret or the KMS key for
/// the secret.
///
///
///
/// When a secret has this status, you can correct the condition that caused the status.
/// Alternatively, modify the DB instance to turn off automatic management of database
/// credentials, and then modify the DB instance again to turn on automatic management
/// of database credentials.
///
///
///
public string SecretStatus
{
get { return this._secretStatus; }
set { this._secretStatus = value; }
}
// Check to see if SecretStatus property is set
internal bool IsSetSecretStatus()
{
return this._secretStatus != null;
}
}
}