/*
* 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 secretsmanager-2017-10-17.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.SecretsManager.Model
{
///
/// This is the response object from the CreateSecret operation.
///
public partial class CreateSecretResponse : AmazonWebServiceResponse
{
private string _arn;
private string _name;
private List _replicationStatus = new List();
private string _versionId;
///
/// Gets and sets the property ARN.
///
/// The ARN of the new secret. The ARN includes the name of the secret followed by six
/// random characters. This ensures that if you create a new secret with the same name
/// as a deleted secret, then users with access to the old secret don't get access to
/// the new secret because the ARNs are different.
///
///
[AWSProperty(Min=20, Max=2048)]
public string ARN
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if ARN property is set
internal bool IsSetARN()
{
return this._arn != null;
}
///
/// Gets and sets the property Name.
///
/// The name of the new secret.
///
///
[AWSProperty(Min=1, Max=256)]
public string Name
{
get { return this._name; }
set { this._name = value; }
}
// Check to see if Name property is set
internal bool IsSetName()
{
return this._name != null;
}
///
/// Gets and sets the property ReplicationStatus.
///
/// A list of the replicas of this secret and their status:
///
/// -
///
///
Failed
, which indicates that the replica was not created.
///
/// -
///
///
InProgress
, which indicates that Secrets Manager is in the process of
/// creating the replica.
///
/// -
///
///
InSync
, which indicates that the replica was created.
///
///
///
public List ReplicationStatus
{
get { return this._replicationStatus; }
set { this._replicationStatus = value; }
}
// Check to see if ReplicationStatus property is set
internal bool IsSetReplicationStatus()
{
return this._replicationStatus != null && this._replicationStatus.Count > 0;
}
///
/// Gets and sets the property VersionId.
///
/// The unique identifier associated with the version of the new secret.
///
///
[AWSProperty(Min=32, Max=64)]
public string VersionId
{
get { return this._versionId; }
set { this._versionId = value; }
}
// Check to see if VersionId property is set
internal bool IsSetVersionId()
{
return this._versionId != null;
}
}
}