/* * 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 { /// /// Contains information about your private certificate authority (CA). Your private CA /// can issue and revoke X.509 digital certificates. Digital certificates verify that /// the entity named in the certificate Subject field owns or controls the public /// key contained in the Subject Public Key Info field. Call the CreateCertificateAuthority /// action to create your private CA. You must then call the GetCertificateAuthorityCertificate /// action to retrieve a private CA certificate signing request (CSR). Sign the CSR with /// your Amazon Web Services Private CA-hosted or on-premises root or subordinate CA certificate. /// Call the ImportCertificateAuthorityCertificate /// action to import the signed certificate into Certificate Manager (ACM). /// public partial class CertificateAuthority { private string _arn; private CertificateAuthorityConfiguration _certificateAuthorityConfiguration; private DateTime? _createdAt; private FailureReason _failureReason; private KeyStorageSecurityStandard _keyStorageSecurityStandard; private DateTime? _lastStateChangeAt; private DateTime? _notAfter; private DateTime? _notBefore; private string _ownerAccount; private DateTime? _restorableUntil; private RevocationConfiguration _revocationConfiguration; private string _serial; private CertificateAuthorityStatus _status; private CertificateAuthorityType _type; private CertificateAuthorityUsageMode _usageMode; /// /// Gets and sets the property Arn. /// /// Amazon Resource Name (ARN) for your private certificate authority (CA). The format /// is 12345678-1234-1234-1234-123456789012 . /// /// [AWSProperty(Min=5, Max=200)] 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 CertificateAuthorityConfiguration. /// /// Your private CA configuration. /// /// public CertificateAuthorityConfiguration CertificateAuthorityConfiguration { get { return this._certificateAuthorityConfiguration; } set { this._certificateAuthorityConfiguration = value; } } // Check to see if CertificateAuthorityConfiguration property is set internal bool IsSetCertificateAuthorityConfiguration() { return this._certificateAuthorityConfiguration != null; } /// /// Gets and sets the property CreatedAt. /// /// Date and time at which your private CA was created. /// /// public DateTime CreatedAt { get { return this._createdAt.GetValueOrDefault(); } set { this._createdAt = value; } } // Check to see if CreatedAt property is set internal bool IsSetCreatedAt() { return this._createdAt.HasValue; } /// /// Gets and sets the property FailureReason. /// /// Reason the request to create your private CA failed. /// /// public FailureReason FailureReason { get { return this._failureReason; } set { this._failureReason = value; } } // Check to see if FailureReason property is set internal bool IsSetFailureReason() { return this._failureReason != null; } /// /// Gets and sets the property KeyStorageSecurityStandard. /// /// Defines a cryptographic key management compliance standard used for handling CA keys. /// /// /// /// /// Default: FIPS_140_2_LEVEL_3_OR_HIGHER /// /// /// /// Note: Amazon Web Services Region ap-northeast-3 supports only FIPS_140_2_LEVEL_2_OR_HIGHER. /// You must explicitly specify this parameter and value when creating a CA in that Region. /// Specifying a different value (or no value) results in an InvalidArgsException /// with the message "A certificate authority cannot be created in this region with the /// specified security standard." /// /// public KeyStorageSecurityStandard KeyStorageSecurityStandard { get { return this._keyStorageSecurityStandard; } set { this._keyStorageSecurityStandard = value; } } // Check to see if KeyStorageSecurityStandard property is set internal bool IsSetKeyStorageSecurityStandard() { return this._keyStorageSecurityStandard != null; } /// /// Gets and sets the property LastStateChangeAt. /// /// Date and time at which your private CA was last updated. /// /// public DateTime LastStateChangeAt { get { return this._lastStateChangeAt.GetValueOrDefault(); } set { this._lastStateChangeAt = value; } } // Check to see if LastStateChangeAt property is set internal bool IsSetLastStateChangeAt() { return this._lastStateChangeAt.HasValue; } /// /// Gets and sets the property NotAfter. /// /// Date and time after which your private CA certificate is not valid. /// /// public DateTime NotAfter { get { return this._notAfter.GetValueOrDefault(); } set { this._notAfter = value; } } // Check to see if NotAfter property is set internal bool IsSetNotAfter() { return this._notAfter.HasValue; } /// /// Gets and sets the property NotBefore. /// /// Date and time before which your private CA certificate is not valid. /// /// public DateTime NotBefore { get { return this._notBefore.GetValueOrDefault(); } set { this._notBefore = value; } } // Check to see if NotBefore property is set internal bool IsSetNotBefore() { return this._notBefore.HasValue; } /// /// Gets and sets the property OwnerAccount. /// /// The Amazon Web Services account ID that owns the certificate authority. /// /// [AWSProperty(Min=12, Max=12)] public string OwnerAccount { get { return this._ownerAccount; } set { this._ownerAccount = value; } } // Check to see if OwnerAccount property is set internal bool IsSetOwnerAccount() { return this._ownerAccount != null; } /// /// Gets and sets the property RestorableUntil. /// /// The period during which a deleted CA can be restored. For more information, see the /// PermanentDeletionTimeInDays parameter of the DeleteCertificateAuthorityRequest /// action. /// /// public DateTime RestorableUntil { get { return this._restorableUntil.GetValueOrDefault(); } set { this._restorableUntil = value; } } // Check to see if RestorableUntil property is set internal bool IsSetRestorableUntil() { return this._restorableUntil.HasValue; } /// /// Gets and sets the property RevocationConfiguration. /// /// Information about the Online Certificate Status Protocol (OCSP) configuration or certificate /// revocation list (CRL) created and maintained by your private CA. /// /// public RevocationConfiguration RevocationConfiguration { get { return this._revocationConfiguration; } set { this._revocationConfiguration = value; } } // Check to see if RevocationConfiguration property is set internal bool IsSetRevocationConfiguration() { return this._revocationConfiguration != null; } /// /// Gets and sets the property Serial. /// /// Serial number of your private CA. /// /// public string Serial { get { return this._serial; } set { this._serial = value; } } // Check to see if Serial property is set internal bool IsSetSerial() { return this._serial != null; } /// /// Gets and sets the property Status. /// /// Status of your private CA. /// /// public CertificateAuthorityStatus Status { get { return this._status; } set { this._status = value; } } // Check to see if Status property is set internal bool IsSetStatus() { return this._status != null; } /// /// Gets and sets the property Type. /// /// Type of your private CA. /// /// public CertificateAuthorityType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// /// Gets and sets the property UsageMode. /// /// Specifies whether the CA issues general-purpose certificates that typically require /// a revocation mechanism, or short-lived certificates that may optionally omit revocation /// because they expire quickly. Short-lived certificate validity is limited to seven /// days. /// /// /// /// The default value is GENERAL_PURPOSE. /// /// public CertificateAuthorityUsageMode UsageMode { get { return this._usageMode; } set { this._usageMode = value; } } // Check to see if UsageMode property is set internal bool IsSetUsageMode() { return this._usageMode != null; } } }