/*
* 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 acm-pca-2017-08-22.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.ACMPCA.Model
{
///
/// Container for the parameters to the DeleteCertificateAuthority operation.
/// Deletes a private certificate authority (CA). You must provide the Amazon Resource
/// Name (ARN) of the private CA that you want to delete. You can find the ARN by calling
/// the ListCertificateAuthorities
/// action.
///
///
///
/// Deleting a CA will invalidate other CAs and certificates below it in your CA hierarchy.
///
///
///
/// Before you can delete a CA that you have created and activated, you must disable it.
/// To do this, call the UpdateCertificateAuthority
/// action and set the CertificateAuthorityStatus parameter to DISABLED
.
///
///
///
///
/// Additionally, you can delete a CA if you are waiting for it to be created (that is,
/// the status of the CA is CREATING
). You can also delete it if the CA has
/// been created but you haven't yet imported the signed certificate into Amazon Web Services
/// Private CA (that is, the status of the CA is PENDING_CERTIFICATE
).
///
///
///
/// When you successfully call DeleteCertificateAuthority,
/// the CA's status changes to DELETED
. However, the CA won't be permanently
/// deleted until the restoration period has passed. By default, if you do not set the
/// PermanentDeletionTimeInDays
parameter, the CA remains restorable for
/// 30 days. You can set the parameter from 7 to 30 days. The DescribeCertificateAuthority
/// action returns the time remaining in the restoration window of a private CA in the
/// DELETED
state. To restore an eligible CA, call the RestoreCertificateAuthority
/// action.
///
///
public partial class DeleteCertificateAuthorityRequest : AmazonACMPCARequest
{
private string _certificateAuthorityArn;
private int? _permanentDeletionTimeInDays;
///
/// Gets and sets the property CertificateAuthorityArn.
///
/// The Amazon Resource Name (ARN) that was returned when you called CreateCertificateAuthority.
/// This must have the following form:
///
///
///
/// arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012
///
.
///
///
[AWSProperty(Required=true, Min=5, Max=200)]
public string CertificateAuthorityArn
{
get { return this._certificateAuthorityArn; }
set { this._certificateAuthorityArn = value; }
}
// Check to see if CertificateAuthorityArn property is set
internal bool IsSetCertificateAuthorityArn()
{
return this._certificateAuthorityArn != null;
}
///
/// Gets and sets the property PermanentDeletionTimeInDays.
///
/// The number of days to make a CA restorable after it has been deleted. This can be
/// anywhere from 7 to 30 days, with 30 being the default.
///
///
[AWSProperty(Min=7, Max=30)]
public int PermanentDeletionTimeInDays
{
get { return this._permanentDeletionTimeInDays.GetValueOrDefault(); }
set { this._permanentDeletionTimeInDays = value; }
}
// Check to see if PermanentDeletionTimeInDays property is set
internal bool IsSetPermanentDeletionTimeInDays()
{
return this._permanentDeletionTimeInDays.HasValue;
}
}
}