repo_name
stringlengths
1
52
repo_creator
stringclasses
6 values
programming_language
stringclasses
4 values
code
stringlengths
0
9.68M
num_lines
int64
1
234k
aws-sdk-net
aws
C#
/* * 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 Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.ACMPCA.Endpoints; #pragma warning disable 1591 namespace Amazon.ACMPCA.Internal { /// <summary> /// Amazon ACMPCA endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for ACMPCA service requests. /// Collects values for ACMPCAEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses ACMPCAEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonACMPCAEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonACMPCAConfig)requestContext.ClientConfig; var result = new ACMPCAEndpointParameters(); result.Region = config.RegionEndpoint?.SystemName; result.UseDualStack = config.UseDualstackEndpoint; result.UseFIPS = config.UseFIPSEndpoint; result.Endpoint = config.ServiceURL; // The region needs to be determined from the ServiceURL if not set. var regionEndpoint = config.RegionEndpoint; if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL)) { var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL); result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName; } // To support legacy endpoint overridding rules in the endpoints.json if (result.Region == "us-east-1-regional") { result.Region = "us-east-1"; } // Use AlternateEndpoint region override if set if (requestContext.Request.AlternateEndpoint != null) { result.Region = requestContext.Request.AlternateEndpoint.SystemName; } // Assign staticContextParams and contextParam per operation return result; } } }
83
aws-sdk-net
aws
C#
/* * 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 Amazon.Runtime.Internal; namespace Amazon.ACMPCA.Internal { /// <summary> /// Service metadata for Amazon ACMPCA service /// </summary> public partial class AmazonACMPCAMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "ACM PCA"; } } /// <summary> /// Gets the dictionary that gives mapping of renamed operations /// </summary> public System.Collections.Generic.IDictionary<string, string> OperationNameMapping { get { return new System.Collections.Generic.Dictionary<string, string>(0) { }; } } } }
55
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Provides access information used by the <code>authorityInfoAccess</code> and <code>subjectInfoAccess</code> /// extensions described in <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC /// 5280</a>. /// </summary> public partial class AccessDescription { private GeneralName _accessLocation; private AccessMethod _accessMethod; /// <summary> /// Gets and sets the property AccessLocation. /// <para> /// The location of <code>AccessDescription</code> information. /// </para> /// </summary> [AWSProperty(Required=true)] public GeneralName AccessLocation { get { return this._accessLocation; } set { this._accessLocation = value; } } // Check to see if AccessLocation property is set internal bool IsSetAccessLocation() { return this._accessLocation != null; } /// <summary> /// Gets and sets the property AccessMethod. /// <para> /// The type and format of <code>AccessDescription</code> information. /// </para> /// </summary> [AWSProperty(Required=true)] public AccessMethod AccessMethod { get { return this._accessMethod; } set { this._accessMethod = value; } } // Check to see if AccessMethod property is set internal bool IsSetAccessMethod() { return this._accessMethod != null; } } }
80
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes the type and format of extension access. Only one of <code>CustomObjectIdentifier</code> /// or <code>AccessMethodType</code> may be provided. Providing both results in <code>InvalidArgsException</code>. /// </summary> public partial class AccessMethod { private AccessMethodType _accessMethodType; private string _customObjectIdentifier; /// <summary> /// Gets and sets the property AccessMethodType. /// <para> /// Specifies the <code>AccessMethod</code>. /// </para> /// </summary> public AccessMethodType AccessMethodType { get { return this._accessMethodType; } set { this._accessMethodType = value; } } // Check to see if AccessMethodType property is set internal bool IsSetAccessMethodType() { return this._accessMethodType != null; } /// <summary> /// Gets and sets the property CustomObjectIdentifier. /// <para> /// An object identifier (OID) specifying the <code>AccessMethod</code>. The OID must /// satisfy the regular expression shown below. For more information, see NIST's definition /// of <a href="https://csrc.nist.gov/glossary/term/Object_Identifier">Object Identifier /// (OID)</a>. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string CustomObjectIdentifier { get { return this._customObjectIdentifier; } set { this._customObjectIdentifier = value; } } // Check to see if CustomObjectIdentifier property is set internal bool IsSetCustomObjectIdentifier() { return this._customObjectIdentifier != null; } } }
81
aws-sdk-net
aws
C#
/* * 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 Amazon.Runtime; namespace Amazon.ACMPCA { /// <summary> /// Base class for ACMPCA operation requests. /// </summary> public partial class AmazonACMPCARequest : AmazonWebServiceRequest { } }
30
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Contains X.509 certificate information to be placed in an issued certificate. An <code>APIPassthrough</code> /// or <code>APICSRPassthrough</code> template variant must be selected, or else this /// parameter is ignored. /// /// /// <para> /// If conflicting or duplicate certificate information is supplied from other sources, /// Amazon Web Services Private CA applies <a href="https://docs.aws.amazon.com/privateca/latest/userguide/UsingTemplates.html#template-order-of-operations">order /// of operation rules</a> to determine what information is used. /// </para> /// </summary> public partial class ApiPassthrough { private Extensions _extensions; private ASN1Subject _subject; /// <summary> /// Gets and sets the property Extensions. /// <para> /// Specifies X.509 extension information for a certificate. /// </para> /// </summary> public Extensions Extensions { get { return this._extensions; } set { this._extensions = value; } } // Check to see if Extensions property is set internal bool IsSetExtensions() { return this._extensions != null; } /// <summary> /// Gets and sets the property Subject. /// </summary> public ASN1Subject Subject { get { return this._subject; } set { this._subject = value; } } // Check to see if Subject property is set internal bool IsSetSubject() { return this._subject != null; } } }
82
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Contains information about the certificate subject. The <code>Subject</code> field /// in the certificate identifies the entity that owns or controls the public key in the /// certificate. The entity can be a user, computer, device, or service. The <code>Subject /// </code>must contain an X.500 distinguished name (DN). A DN is a sequence of relative /// distinguished names (RDNs). The RDNs are separated by commas in the certificate. /// </summary> public partial class ASN1Subject { private string _commonName; private string _country; private List<CustomAttribute> _customAttributes = new List<CustomAttribute>(); private string _distinguishedNameQualifier; private string _generationQualifier; private string _givenName; private string _initials; private string _locality; private string _organization; private string _organizationalUnit; private string _pseudonym; private string _serialNumber; private string _state; private string _surname; private string _title; /// <summary> /// Gets and sets the property CommonName. /// <para> /// For CA and end-entity certificates in a private PKI, the common name (CN) can be any /// string within the length limit. /// </para> /// /// <para> /// Note: In publicly trusted certificates, the common name must be a fully qualified /// domain name (FQDN) associated with the certificate subject. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string CommonName { get { return this._commonName; } set { this._commonName = value; } } // Check to see if CommonName property is set internal bool IsSetCommonName() { return this._commonName != null; } /// <summary> /// Gets and sets the property Country. /// <para> /// Two-digit code that specifies the country in which the certificate subject located. /// </para> /// </summary> [AWSProperty(Min=2, Max=2)] public string Country { get { return this._country; } set { this._country = value; } } // Check to see if Country property is set internal bool IsSetCountry() { return this._country != null; } /// <summary> /// Gets and sets the property CustomAttributes. /// <para> /// Contains a sequence of one or more X.500 relative distinguished names (RDNs), each /// of which consists of an object identifier (OID) and a value. For more information, /// see NIST’s definition of <a href="https://csrc.nist.gov/glossary/term/Object_Identifier">Object /// Identifier (OID)</a>. /// </para> /// <note> /// <para> /// Custom attributes cannot be used in combination with standard attributes. /// </para> /// </note> /// </summary> [AWSProperty(Min=1, Max=30)] public List<CustomAttribute> CustomAttributes { get { return this._customAttributes; } set { this._customAttributes = value; } } // Check to see if CustomAttributes property is set internal bool IsSetCustomAttributes() { return this._customAttributes != null && this._customAttributes.Count > 0; } /// <summary> /// Gets and sets the property DistinguishedNameQualifier. /// <para> /// Disambiguating information for the certificate subject. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string DistinguishedNameQualifier { get { return this._distinguishedNameQualifier; } set { this._distinguishedNameQualifier = value; } } // Check to see if DistinguishedNameQualifier property is set internal bool IsSetDistinguishedNameQualifier() { return this._distinguishedNameQualifier != null; } /// <summary> /// Gets and sets the property GenerationQualifier. /// <para> /// Typically a qualifier appended to the name of an individual. Examples include Jr. /// for junior, Sr. for senior, and III for third. /// </para> /// </summary> [AWSProperty(Min=0, Max=3)] public string GenerationQualifier { get { return this._generationQualifier; } set { this._generationQualifier = value; } } // Check to see if GenerationQualifier property is set internal bool IsSetGenerationQualifier() { return this._generationQualifier != null; } /// <summary> /// Gets and sets the property GivenName. /// <para> /// First name. /// </para> /// </summary> [AWSProperty(Min=0, Max=16)] public string GivenName { get { return this._givenName; } set { this._givenName = value; } } // Check to see if GivenName property is set internal bool IsSetGivenName() { return this._givenName != null; } /// <summary> /// Gets and sets the property Initials. /// <para> /// Concatenation that typically contains the first letter of the <b>GivenName</b>, the /// first letter of the middle name if one exists, and the first letter of the <b>Surname</b>. /// </para> /// </summary> [AWSProperty(Min=0, Max=5)] public string Initials { get { return this._initials; } set { this._initials = value; } } // Check to see if Initials property is set internal bool IsSetInitials() { return this._initials != null; } /// <summary> /// Gets and sets the property Locality. /// <para> /// The locality (such as a city or town) in which the certificate subject is located. /// </para> /// </summary> [AWSProperty(Min=0, Max=128)] public string Locality { get { return this._locality; } set { this._locality = value; } } // Check to see if Locality property is set internal bool IsSetLocality() { return this._locality != null; } /// <summary> /// Gets and sets the property Organization. /// <para> /// Legal name of the organization with which the certificate subject is affiliated. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string Organization { get { return this._organization; } set { this._organization = value; } } // Check to see if Organization property is set internal bool IsSetOrganization() { return this._organization != null; } /// <summary> /// Gets and sets the property OrganizationalUnit. /// <para> /// A subdivision or unit of the organization (such as sales or finance) with which the /// certificate subject is affiliated. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string OrganizationalUnit { get { return this._organizationalUnit; } set { this._organizationalUnit = value; } } // Check to see if OrganizationalUnit property is set internal bool IsSetOrganizationalUnit() { return this._organizationalUnit != null; } /// <summary> /// Gets and sets the property Pseudonym. /// <para> /// Typically a shortened version of a longer <b>GivenName</b>. For example, Jonathan /// is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza. /// </para> /// </summary> [AWSProperty(Min=0, Max=128)] public string Pseudonym { get { return this._pseudonym; } set { this._pseudonym = value; } } // Check to see if Pseudonym property is set internal bool IsSetPseudonym() { return this._pseudonym != null; } /// <summary> /// Gets and sets the property SerialNumber. /// <para> /// The certificate serial number. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string SerialNumber { get { return this._serialNumber; } set { this._serialNumber = value; } } // Check to see if SerialNumber property is set internal bool IsSetSerialNumber() { return this._serialNumber != null; } /// <summary> /// Gets and sets the property State. /// <para> /// State in which the subject of the certificate is located. /// </para> /// </summary> [AWSProperty(Min=0, Max=128)] public string State { get { return this._state; } set { this._state = value; } } // Check to see if State property is set internal bool IsSetState() { return this._state != null; } /// <summary> /// Gets and sets the property Surname. /// <para> /// Family name. In the US and the UK, for example, the surname of an individual is ordered /// last. In Asian cultures the surname is typically ordered first. /// </para> /// </summary> [AWSProperty(Min=0, Max=40)] public string Surname { get { return this._surname; } set { this._surname = value; } } // Check to see if Surname property is set internal bool IsSetSurname() { return this._surname != null; } /// <summary> /// Gets and sets the property Title. /// <para> /// A title such as Mr. or Ms., which is pre-pended to the name to refer formally to the /// certificate subject. /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string Title { get { return this._title; } set { this._title = value; } } // Check to see if Title property is set internal bool IsSetTitle() { return this._title != null; } } }
362
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// 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 <b>Subject</b> field owns or controls the public /// key contained in the <b>Subject Public Key Info</b> field. Call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action to create your private CA. You must then call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_GetCertificateAuthorityCertificate.html">GetCertificateAuthorityCertificate</a> /// 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 <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ImportCertificateAuthorityCertificate.html">ImportCertificateAuthorityCertificate</a> /// action to import the signed certificate into Certificate Manager (ACM). /// </summary> 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; /// <summary> /// Gets and sets the property Arn. /// <para> /// Amazon Resource Name (ARN) for your private certificate authority (CA). The format /// is <code> <i>12345678-1234-1234-1234-123456789012</i> </code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property CertificateAuthorityConfiguration. /// <para> /// Your private CA configuration. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// Date and time at which your private CA was created. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property FailureReason. /// <para> /// Reason the request to create your private CA failed. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property KeyStorageSecurityStandard. /// <para> /// Defines a cryptographic key management compliance standard used for handling CA keys. /// /// </para> /// /// <para> /// Default: FIPS_140_2_LEVEL_3_OR_HIGHER /// </para> /// /// <para> /// 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 <code>InvalidArgsException</code> /// with the message "A certificate authority cannot be created in this region with the /// specified security standard." /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property LastStateChangeAt. /// <para> /// Date and time at which your private CA was last updated. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property NotAfter. /// <para> /// Date and time after which your private CA certificate is not valid. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property NotBefore. /// <para> /// Date and time before which your private CA certificate is not valid. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property OwnerAccount. /// <para> /// The Amazon Web Services account ID that owns the certificate authority. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RestorableUntil. /// <para> /// The period during which a deleted CA can be restored. For more information, see the /// <code>PermanentDeletionTimeInDays</code> parameter of the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeleteCertificateAuthorityRequest.html">DeleteCertificateAuthorityRequest</a> /// action. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property RevocationConfiguration. /// <para> /// Information about the Online Certificate Status Protocol (OCSP) configuration or certificate /// revocation list (CRL) created and maintained by your private CA. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Serial. /// <para> /// Serial number of your private CA. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Status. /// <para> /// Status of your private CA. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Type. /// <para> /// Type of your private CA. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property UsageMode. /// <para> /// 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. /// </para> /// /// <para> /// The default value is GENERAL_PURPOSE. /// </para> /// </summary> 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; } } }
357
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Contains configuration information for your private certificate authority (CA). This /// includes information about the class of public key algorithm and the key pair that /// your private CA creates when it issues a certificate. It also includes the signature /// algorithm that it uses when issuing certificates, and its X.500 distinguished name. /// You must specify this information when you call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action. /// </summary> public partial class CertificateAuthorityConfiguration { private CsrExtensions _csrExtensions; private KeyAlgorithm _keyAlgorithm; private SigningAlgorithm _signingAlgorithm; private ASN1Subject _subject; /// <summary> /// Gets and sets the property CsrExtensions. /// <para> /// Specifies information to be added to the extension section of the certificate signing /// request (CSR). /// </para> /// </summary> public CsrExtensions CsrExtensions { get { return this._csrExtensions; } set { this._csrExtensions = value; } } // Check to see if CsrExtensions property is set internal bool IsSetCsrExtensions() { return this._csrExtensions != null; } /// <summary> /// Gets and sets the property KeyAlgorithm. /// <para> /// Type of the public key algorithm and size, in bits, of the key pair that your CA creates /// when it issues a certificate. When you create a subordinate CA, you must use a key /// algorithm supported by the parent CA. /// </para> /// </summary> [AWSProperty(Required=true)] public KeyAlgorithm KeyAlgorithm { get { return this._keyAlgorithm; } set { this._keyAlgorithm = value; } } // Check to see if KeyAlgorithm property is set internal bool IsSetKeyAlgorithm() { return this._keyAlgorithm != null; } /// <summary> /// Gets and sets the property SigningAlgorithm. /// <para> /// Name of the algorithm your private CA uses to sign certificate requests. /// </para> /// /// <para> /// This parameter should not be confused with the <code>SigningAlgorithm</code> parameter /// used to sign certificates when they are issued. /// </para> /// </summary> [AWSProperty(Required=true)] public SigningAlgorithm SigningAlgorithm { get { return this._signingAlgorithm; } set { this._signingAlgorithm = value; } } // Check to see if SigningAlgorithm property is set internal bool IsSetSigningAlgorithm() { return this._signingAlgorithm != null; } /// <summary> /// Gets and sets the property Subject. /// <para> /// Structure that contains X.500 distinguished name information for your private CA. /// </para> /// </summary> [AWSProperty(Required=true)] public ASN1Subject Subject { get { return this._subject; } set { this._subject = value; } } // Check to see if Subject property is set internal bool IsSetSubject() { return this._subject != null; } } }
130
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The certificate authority certificate you are importing does not comply with conditions /// specified in the certificate that signed it. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class CertificateMismatchException : AmazonACMPCAException { /// <summary> /// Constructs a new CertificateMismatchException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public CertificateMismatchException(string message) : base(message) {} /// <summary> /// Construct instance of CertificateMismatchException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public CertificateMismatchException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of CertificateMismatchException /// </summary> /// <param name="innerException"></param> public CertificateMismatchException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of CertificateMismatchException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CertificateMismatchException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of CertificateMismatchException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public CertificateMismatchException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the CertificateMismatchException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected CertificateMismatchException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A previous update to your private CA is still ongoing. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ConcurrentModificationException : AmazonACMPCAException { /// <summary> /// Constructs a new ConcurrentModificationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ConcurrentModificationException(string message) : base(message) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ConcurrentModificationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="innerException"></param> public ConcurrentModificationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConcurrentModificationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ConcurrentModificationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ConcurrentModificationException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ConcurrentModificationException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ConcurrentModificationException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the CreateCertificateAuthorityAuditReport operation. /// Creates an audit report that lists every time that your CA private key is used. The /// report is saved in the Amazon S3 bucket that you specify on input. The <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_IssueCertificate.html">IssueCertificate</a> /// and <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html">RevokeCertificate</a> /// actions use the private key. /// /// <note> /// <para> /// Both Amazon Web Services Private CA and the IAM principal must have permission to /// write to the S3 bucket that you specify. If the IAM principal making the call does /// not have permission to write to the bucket, then an exception is thrown. For more /// information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/crl-planning.html#s3-policies">Access /// policies for CRLs in Amazon S3</a>. /// </para> /// </note> /// <para> /// Amazon Web Services Private CA assets that are stored in Amazon S3 can be protected /// with encryption. For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaAuditReport.html#audit-report-encryption">Encrypting /// Your Audit Reports</a>. /// </para> /// <note> /// <para> /// You can generate a maximum of one report every 30 minutes. /// </para> /// </note> /// </summary> public partial class CreateCertificateAuthorityAuditReportRequest : AmazonACMPCARequest { private AuditReportResponseFormat _auditReportResponseFormat; private string _certificateAuthorityArn; private string _s3BucketName; /// <summary> /// Gets and sets the property AuditReportResponseFormat. /// <para> /// The format in which to create the report. This can be either <b>JSON</b> or <b>CSV</b>. /// </para> /// </summary> [AWSProperty(Required=true)] public AuditReportResponseFormat AuditReportResponseFormat { get { return this._auditReportResponseFormat; } set { this._auditReportResponseFormat = value; } } // Check to see if AuditReportResponseFormat property is set internal bool IsSetAuditReportResponseFormat() { return this._auditReportResponseFormat != null; } /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) of the CA to be audited. This is of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property S3BucketName. /// <para> /// The name of the S3 bucket that will contain the audit report. /// </para> /// </summary> [AWSProperty(Required=true, Min=3, Max=63)] public string S3BucketName { get { return this._s3BucketName; } set { this._s3BucketName = value; } } // Check to see if S3BucketName property is set internal bool IsSetS3BucketName() { return this._s3BucketName != null; } } }
127
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the CreateCertificateAuthorityAuditReport operation. /// </summary> public partial class CreateCertificateAuthorityAuditReportResponse : AmazonWebServiceResponse { private string _auditReportId; private string _s3Key; /// <summary> /// Gets and sets the property AuditReportId. /// <para> /// An alphanumeric string that contains a report identifier. /// </para> /// </summary> [AWSProperty(Min=36, Max=36)] public string AuditReportId { get { return this._auditReportId; } set { this._auditReportId = value; } } // Check to see if AuditReportId property is set internal bool IsSetAuditReportId() { return this._auditReportId != null; } /// <summary> /// Gets and sets the property S3Key. /// <para> /// The <b>key</b> that uniquely identifies the report file in your S3 bucket. /// </para> /// </summary> [AWSProperty(Max=1024)] public string S3Key { get { return this._s3Key; } set { this._s3Key = value; } } // Check to see if S3Key property is set internal bool IsSetS3Key() { return this._s3Key != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the CreateCertificateAuthority operation. /// Creates a root or subordinate private certificate authority (CA). You must specify /// the CA configuration, an optional configuration for Online Certificate Status Protocol /// (OCSP) and/or a certificate revocation list (CRL), the CA type, and an optional idempotency /// token to avoid accidental creation of multiple CAs. The CA configuration specifies /// the name of the algorithm and key size to be used to create the CA private key, the /// type of signing algorithm that the CA uses, and X.500 subject information. The OCSP /// configuration can optionally specify a custom URL for the OCSP responder. The CRL /// configuration specifies the CRL expiration period in days (the validity period of /// the CRL), the Amazon S3 bucket that will contain the CRL, and a CNAME alias for the /// S3 bucket that is included in certificates issued by the CA. If successful, this action /// returns the Amazon Resource Name (ARN) of the CA. /// /// <note> /// <para> /// Both Amazon Web Services Private CA and the IAM principal must have permission to /// write to the S3 bucket that you specify. If the IAM principal making the call does /// not have permission to write to the bucket, then an exception is thrown. For more /// information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/crl-planning.html#s3-policies">Access /// policies for CRLs in Amazon S3</a>. /// </para> /// </note> /// <para> /// Amazon Web Services Private CA assets that are stored in Amazon S3 can be protected /// with encryption. For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaCreateCa.html#crl-encryption">Encrypting /// Your CRLs</a>. /// </para> /// </summary> public partial class CreateCertificateAuthorityRequest : AmazonACMPCARequest { private CertificateAuthorityConfiguration _certificateAuthorityConfiguration; private CertificateAuthorityType _certificateAuthorityType; private string _idempotencyToken; private KeyStorageSecurityStandard _keyStorageSecurityStandard; private RevocationConfiguration _revocationConfiguration; private List<Tag> _tags = new List<Tag>(); private CertificateAuthorityUsageMode _usageMode; /// <summary> /// Gets and sets the property CertificateAuthorityConfiguration. /// <para> /// Name and bit size of the private key algorithm, the name of the signing algorithm, /// and X.500 certificate subject information. /// </para> /// </summary> [AWSProperty(Required=true)] 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; } /// <summary> /// Gets and sets the property CertificateAuthorityType. /// <para> /// The type of the certificate authority. /// </para> /// </summary> [AWSProperty(Required=true)] public CertificateAuthorityType CertificateAuthorityType { get { return this._certificateAuthorityType; } set { this._certificateAuthorityType = value; } } // Check to see if CertificateAuthorityType property is set internal bool IsSetCertificateAuthorityType() { return this._certificateAuthorityType != null; } /// <summary> /// Gets and sets the property IdempotencyToken. /// <para> /// Custom string that can be used to distinguish between calls to the <b>CreateCertificateAuthority</b> /// action. Idempotency tokens for <b>CreateCertificateAuthority</b> time out after five /// minutes. Therefore, if you call <b>CreateCertificateAuthority</b> multiple times with /// the same idempotency token within five minutes, Amazon Web Services Private CA recognizes /// that you are requesting only certificate authority and will issue only one. If you /// change the idempotency token for each call, Amazon Web Services Private CA recognizes /// that you are requesting multiple certificate authorities. /// </para> /// </summary> [AWSProperty(Min=1, Max=36)] public string IdempotencyToken { get { return this._idempotencyToken; } set { this._idempotencyToken = value; } } // Check to see if IdempotencyToken property is set internal bool IsSetIdempotencyToken() { return this._idempotencyToken != null; } /// <summary> /// Gets and sets the property KeyStorageSecurityStandard. /// <para> /// Specifies a cryptographic key management compliance standard used for handling CA /// keys. /// </para> /// /// <para> /// Default: FIPS_140_2_LEVEL_3_OR_HIGHER /// </para> /// <note> /// <para> /// Some Amazon Web Services Regions do not support the default. When creating a CA in /// these Regions, you must provide <code>FIPS_140_2_LEVEL_2_OR_HIGHER</code> as the argument /// for <code>KeyStorageSecurityStandard</code>. Failure to do this results in an <code>InvalidArgsException</code> /// with the message, "A certificate authority cannot be created in this region with the /// specified security standard." /// </para> /// /// <para> /// For information about security standard support in various Regions, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/data-protection.html#private-keys">Storage /// and security compliance of Amazon Web Services Private CA private keys</a>. /// </para> /// </note> /// </summary> 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; } /// <summary> /// Gets and sets the property RevocationConfiguration. /// <para> /// Contains information to enable Online Certificate Status Protocol (OCSP) support, /// to enable a certificate revocation list (CRL), to enable both, or to enable neither. /// The default is for both certificate validation mechanisms to be disabled. /// </para> /// <note> /// <para> /// The following requirements apply to revocation configurations. /// </para> /// <ul> <li> /// <para> /// A configuration disabling CRLs or OCSP must contain only the <code>Enabled=False</code> /// parameter, and will fail if other parameters such as <code>CustomCname</code> or <code>ExpirationInDays</code> /// are included. /// </para> /// </li> <li> /// <para> /// In a CRL configuration, the <code>S3BucketName</code> parameter must conform to <a /// href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon /// S3 bucket naming rules</a>. /// </para> /// </li> <li> /// <para> /// A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP /// must conform to <a href="https://www.ietf.org/rfc/rfc2396.txt">RFC2396</a> restrictions /// on the use of special characters in a CNAME. /// </para> /// </li> <li> /// <para> /// In a CRL or OCSP configuration, the value of a CNAME parameter must not include a /// protocol prefix such as "http://" or "https://". /// </para> /// </li> </ul> </note> /// <para> /// For more information, see the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_OcspConfiguration.html">OcspConfiguration</a> /// and <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CrlConfiguration.html">CrlConfiguration</a> /// types. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Tags. /// <para> /// Key-value pairs that will be attached to the new private CA. You can associate up /// to 50 tags with a private CA. For information using tags with IAM to manage permissions, /// see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_iam-tags.html">Controlling /// Access Using IAM Tags</a>. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } /// <summary> /// Gets and sets the property UsageMode. /// <para> /// 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. /// </para> /// /// <para> /// The default value is GENERAL_PURPOSE. /// </para> /// </summary> 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; } } }
272
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the CreateCertificateAuthority operation. /// </summary> public partial class CreateCertificateAuthorityResponse : AmazonWebServiceResponse { private string _certificateAuthorityArn; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// If successful, the Amazon Resource Name (ARN) of the certificate authority (CA). This /// is of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [AWSProperty(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; } } }
64
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the CreatePermission operation. /// Grants one or more permissions on a private CA to the Certificate Manager (ACM) service /// principal (<code>acm.amazonaws.com</code>). These permissions allow ACM to issue and /// renew ACM certificates that reside in the same Amazon Web Services account as the /// CA. /// /// /// <para> /// You can list current permissions with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListPermissions.html">ListPermissions</a> /// action and revoke them with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeletePermission.html">DeletePermission</a> /// action. /// </para> /// <p class="title"> <b>About Permissions</b> /// </para> /// <ul> <li> /// <para> /// If the private CA and the certificates it issues reside in the same account, you can /// use <code>CreatePermission</code> to grant permissions for ACM to carry out automatic /// certificate renewals. /// </para> /// </li> <li> /// <para> /// For automatic certificate renewal to succeed, the ACM service principal needs permissions /// to create, retrieve, and list certificates. /// </para> /// </li> <li> /// <para> /// If the private CA and the ACM certificates reside in different accounts, then permissions /// cannot be used to enable automatic renewals. Instead, the ACM certificate owner must /// set up a resource-based policy to enable cross-account issuance and renewals. For /// more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-rbp.html">Using /// a Resource Based Policy with Amazon Web Services Private CA</a>. /// </para> /// </li> </ul> /// </summary> public partial class CreatePermissionRequest : AmazonACMPCARequest { private List<string> _actions = new List<string>(); private string _certificateAuthorityArn; private string _principal; private string _sourceAccount; /// <summary> /// Gets and sets the property Actions. /// <para> /// The actions that the specified Amazon Web Services service principal can use. These /// include <code>IssueCertificate</code>, <code>GetCertificate</code>, and <code>ListPermissions</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=3)] public List<string> Actions { get { return this._actions; } set { this._actions = value; } } // Check to see if Actions property is set internal bool IsSetActions() { return this._actions != null && this._actions.Count > 0; } /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) of the CA that grants the permissions. You can find /// the ARN by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// action. This must have the following form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Principal. /// <para> /// The Amazon Web Services service or identity that receives the permission. At this /// time, the only valid principal is <code>acm.amazonaws.com</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Principal { get { return this._principal; } set { this._principal = value; } } // Check to see if Principal property is set internal bool IsSetPrincipal() { return this._principal != null; } /// <summary> /// Gets and sets the property SourceAccount. /// <para> /// The ID of the calling account. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string SourceAccount { get { return this._sourceAccount; } set { this._sourceAccount = value; } } // Check to see if SourceAccount property is set internal bool IsSetSourceAccount() { return this._sourceAccount != null; } } }
160
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the CreatePermission operation. /// </summary> public partial class CreatePermissionResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Contains configuration information for a certificate revocation list (CRL). Your private /// certificate authority (CA) creates base CRLs. Delta CRLs are not supported. You can /// enable CRLs for your new or an existing private CA by setting the <b>Enabled</b> parameter /// to <code>true</code>. Your private CA writes CRLs to an S3 bucket that you specify /// in the <b>S3BucketName</b> parameter. You can hide the name of your bucket by specifying /// a value for the <b>CustomCname</b> parameter. Your private CA copies the CNAME or /// the S3 bucket name to the <b>CRL Distribution Points</b> extension of each certificate /// it issues. Your S3 bucket policy must give write permission to Amazon Web Services /// Private CA. /// /// /// <para> /// Amazon Web Services Private CA assets that are stored in Amazon S3 can be protected /// with encryption. For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaCreateCa.html#crl-encryption">Encrypting /// Your CRLs</a>. /// </para> /// /// <para> /// Your private CA uses the value in the <b>ExpirationInDays</b> parameter to calculate /// the <b>nextUpdate</b> field in the CRL. The CRL is refreshed prior to a certificate's /// expiration date or when a certificate is revoked. When a certificate is revoked, it /// appears in the CRL until the certificate expires, and then in one additional CRL after /// expiration, and it always appears in the audit report. /// </para> /// /// <para> /// A CRL is typically updated approximately 30 minutes after a certificate is revoked. /// If for any reason a CRL update fails, Amazon Web Services Private CA makes further /// attempts every 15 minutes. /// </para> /// /// <para> /// CRLs contain the following fields: /// </para> /// <ul> <li> /// <para> /// <b>Version</b>: The current version number defined in RFC 5280 is V2. The integer /// value is 0x1. /// </para> /// </li> <li> /// <para> /// <b>Signature Algorithm</b>: The name of the algorithm used to sign the CRL. /// </para> /// </li> <li> /// <para> /// <b>Issuer</b>: The X.500 distinguished name of your private CA that issued the CRL. /// </para> /// </li> <li> /// <para> /// <b>Last Update</b>: The issue date and time of this CRL. /// </para> /// </li> <li> /// <para> /// <b>Next Update</b>: The day and time by which the next CRL will be issued. /// </para> /// </li> <li> /// <para> /// <b>Revoked Certificates</b>: List of revoked certificates. Each list item contains /// the following information. /// </para> /// <ul> <li> /// <para> /// <b>Serial Number</b>: The serial number, in hexadecimal format, of the revoked certificate. /// </para> /// </li> <li> /// <para> /// <b>Revocation Date</b>: Date and time the certificate was revoked. /// </para> /// </li> <li> /// <para> /// <b>CRL Entry Extensions</b>: Optional extensions for the CRL entry. /// </para> /// <ul> <li> /// <para> /// <b>X509v3 CRL Reason Code</b>: Reason the certificate was revoked. /// </para> /// </li> </ul> </li> </ul> </li> <li> /// <para> /// <b>CRL Extensions</b>: Optional extensions for the CRL. /// </para> /// <ul> <li> /// <para> /// <b>X509v3 Authority Key Identifier</b>: Identifies the public key associated with /// the private key used to sign the certificate. /// </para> /// </li> <li> /// <para> /// <b>X509v3 CRL Number:</b>: Decimal sequence number for the CRL. /// </para> /// </li> </ul> </li> <li> /// <para> /// <b>Signature Algorithm</b>: Algorithm used by your private CA to sign the CRL. /// </para> /// </li> <li> /// <para> /// <b>Signature Value</b>: Signature computed over the CRL. /// </para> /// </li> </ul> /// <para> /// Certificate revocation lists created by Amazon Web Services Private CA are DER-encoded. /// You can use the following OpenSSL command to list a CRL. /// </para> /// /// <para> /// <code>openssl crl -inform DER -text -in <i>crl_path</i> -noout</code> /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/crl-planning.html">Planning /// a certificate revocation list (CRL)</a> in the <i>Amazon Web Services Private Certificate /// Authority User Guide</i> /// </para> /// </summary> public partial class CrlConfiguration { private string _customCname; private bool? _enabled; private int? _expirationInDays; private string _s3BucketName; private S3ObjectAcl _s3ObjectAcl; /// <summary> /// Gets and sets the property CustomCname. /// <para> /// Name inserted into the certificate <b>CRL Distribution Points</b> extension that enables /// the use of an alias for the CRL distribution point. Use this value if you don't want /// the name of your S3 bucket to be public. /// </para> /// <note> /// <para> /// The content of a Canonical Name (CNAME) record must conform to <a href="https://www.ietf.org/rfc/rfc2396.txt">RFC2396</a> /// restrictions on the use of special characters in URIs. Additionally, the value of /// the CNAME must not include a protocol prefix such as "http://" or "https://". /// </para> /// </note> /// </summary> [AWSProperty(Min=0, Max=253)] public string CustomCname { get { return this._customCname; } set { this._customCname = value; } } // Check to see if CustomCname property is set internal bool IsSetCustomCname() { return this._customCname != null; } /// <summary> /// Gets and sets the property Enabled. /// <para> /// Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. /// You can use this value to enable certificate revocation for a new CA when you call /// the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action or for an existing CA when you call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> /// action. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property ExpirationInDays. /// <para> /// Validity period of the CRL in days. /// </para> /// </summary> [AWSProperty(Min=1, Max=5000)] public int ExpirationInDays { get { return this._expirationInDays.GetValueOrDefault(); } set { this._expirationInDays = value; } } // Check to see if ExpirationInDays property is set internal bool IsSetExpirationInDays() { return this._expirationInDays.HasValue; } /// <summary> /// Gets and sets the property S3BucketName. /// <para> /// Name of the S3 bucket that contains the CRL. If you do not provide a value for the /// <b>CustomCname</b> argument, the name of your S3 bucket is placed into the <b>CRL /// Distribution Points</b> extension of the issued certificate. You can change the name /// of your bucket by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> /// operation. You must specify a <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaCreateCa.html#s3-policies">bucket /// policy</a> that allows Amazon Web Services Private CA to write the CRL to your bucket. /// </para> /// <note> /// <para> /// The <code>S3BucketName</code> parameter must conform to the <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">S3 /// bucket naming rules</a>. /// </para> /// </note> /// </summary> [AWSProperty(Min=3, Max=255)] public string S3BucketName { get { return this._s3BucketName; } set { this._s3BucketName = value; } } // Check to see if S3BucketName property is set internal bool IsSetS3BucketName() { return this._s3BucketName != null; } /// <summary> /// Gets and sets the property S3ObjectAcl. /// <para> /// Determines whether the CRL will be publicly readable or privately held in the CRL /// Amazon S3 bucket. If you choose PUBLIC_READ, the CRL will be accessible over the public /// internet. If you choose BUCKET_OWNER_FULL_CONTROL, only the owner of the CRL S3 bucket /// can access the CRL, and your PKI clients may need an alternative method of access. /// /// </para> /// /// <para> /// If no value is specified, the default is <code>PUBLIC_READ</code>. /// </para> /// /// <para> /// <i>Note:</i> This default can cause CA creation to fail in some circumstances. If /// you have have enabled the Block Public Access (BPA) feature in your S3 account, then /// you must specify the value of this parameter as <code>BUCKET_OWNER_FULL_CONTROL</code>, /// and not doing so results in an error. If you have disabled BPA in S3, then you can /// specify either <code>BUCKET_OWNER_FULL_CONTROL</code> or <code>PUBLIC_READ</code> /// as the value. /// </para> /// /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaCreateCa.html#s3-bpa">Blocking /// public access to the S3 bucket</a>. /// </para> /// </summary> public S3ObjectAcl S3ObjectAcl { get { return this._s3ObjectAcl; } set { this._s3ObjectAcl = value; } } // Check to see if S3ObjectAcl property is set internal bool IsSetS3ObjectAcl() { return this._s3ObjectAcl != null; } } }
294
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes the certificate extensions to be added to the certificate signing request /// (CSR). /// </summary> public partial class CsrExtensions { private KeyUsage _keyUsage; private List<AccessDescription> _subjectInformationAccess = new List<AccessDescription>(); /// <summary> /// Gets and sets the property KeyUsage. /// <para> /// Indicates the purpose of the certificate and of the key contained in the certificate. /// </para> /// </summary> public KeyUsage KeyUsage { get { return this._keyUsage; } set { this._keyUsage = value; } } // Check to see if KeyUsage property is set internal bool IsSetKeyUsage() { return this._keyUsage != null; } /// <summary> /// Gets and sets the property SubjectInformationAccess. /// <para> /// For CA certificates, provides a path to additional information pertaining to the CA, /// such as revocation and policy. For more information, see <a href="https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.2.2">Subject /// Information Access</a> in RFC 5280. /// </para> /// </summary> public List<AccessDescription> SubjectInformationAccess { get { return this._subjectInformationAccess; } set { this._subjectInformationAccess = value; } } // Check to see if SubjectInformationAccess property is set internal bool IsSetSubjectInformationAccess() { return this._subjectInformationAccess != null && this._subjectInformationAccess.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Defines the X.500 relative distinguished name (RDN). /// </summary> public partial class CustomAttribute { private string _objectIdentifier; private string _value; /// <summary> /// Gets and sets the property ObjectIdentifier. /// <para> /// Specifies the object identifier (OID) of the attribute type of the relative distinguished /// name (RDN). /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=64)] public string ObjectIdentifier { get { return this._objectIdentifier; } set { this._objectIdentifier = value; } } // Check to see if ObjectIdentifier property is set internal bool IsSetObjectIdentifier() { return this._objectIdentifier != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// Specifies the attribute value of relative distinguished name (RDN). /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=256)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Specifies the X.509 extension information for a certificate. /// /// /// <para> /// Extensions present in <code>CustomExtensions</code> follow the <code>ApiPassthrough</code> /// <a href="https://docs.aws.amazon.com/privateca/latest/userguide/UsingTemplates.html#template-order-of-operations">template /// rules</a>. /// </para> /// </summary> public partial class CustomExtension { private bool? _critical; private string _objectIdentifier; private string _value; /// <summary> /// Gets and sets the property Critical. /// <para> /// Specifies the critical flag of the X.509 extension. /// </para> /// </summary> public bool Critical { get { return this._critical.GetValueOrDefault(); } set { this._critical = value; } } // Check to see if Critical property is set internal bool IsSetCritical() { return this._critical.HasValue; } /// <summary> /// Gets and sets the property ObjectIdentifier. /// <para> /// Specifies the object identifier (OID) of the X.509 extension. For more information, /// see the <a href="https://oidref.com/2.5.29">Global OID reference database.</a> /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=64)] public string ObjectIdentifier { get { return this._objectIdentifier; } set { this._objectIdentifier = value; } } // Check to see if ObjectIdentifier property is set internal bool IsSetObjectIdentifier() { return this._objectIdentifier != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// Specifies the base64-encoded value of the X.509 extension. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=4096)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
105
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// 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 <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// action. /// /// <note> /// <para> /// Deleting a CA will invalidate other CAs and certificates below it in your CA hierarchy. /// </para> /// </note> /// <para> /// Before you can delete a CA that you have created and activated, you must disable it. /// To do this, call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> /// action and set the <b>CertificateAuthorityStatus</b> parameter to <code>DISABLED</code>. /// /// </para> /// /// <para> /// Additionally, you can delete a CA if you are waiting for it to be created (that is, /// the status of the CA is <code>CREATING</code>). 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 <code>PENDING_CERTIFICATE</code>). /// </para> /// /// <para> /// When you successfully call <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeleteCertificateAuthority.html">DeleteCertificateAuthority</a>, /// the CA's status changes to <code>DELETED</code>. However, the CA won't be permanently /// deleted until the restoration period has passed. By default, if you do not set the /// <code>PermanentDeletionTimeInDays</code> parameter, the CA remains restorable for /// 30 days. You can set the parameter from 7 to 30 days. The <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DescribeCertificateAuthority.html">DescribeCertificateAuthority</a> /// action returns the time remaining in the restoration window of a private CA in the /// <code>DELETED</code> state. To restore an eligible CA, call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_RestoreCertificateAuthority.html">RestoreCertificateAuthority</a> /// action. /// </para> /// </summary> public partial class DeleteCertificateAuthorityRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private int? _permanentDeletionTimeInDays; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. /// This must have the following form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property PermanentDeletionTimeInDays. /// <para> /// 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. /// </para> /// </summary> [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; } } }
119
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the DeleteCertificateAuthority operation. /// </summary> public partial class DeleteCertificateAuthorityResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the DeletePermission operation. /// Revokes permissions on a private CA granted to the Certificate Manager (ACM) service /// principal (acm.amazonaws.com). /// /// /// <para> /// These permissions allow ACM to issue and renew ACM certificates that reside in the /// same Amazon Web Services account as the CA. If you revoke these permissions, ACM will /// no longer renew the affected certificates automatically. /// </para> /// /// <para> /// Permissions can be granted with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreatePermission.html">CreatePermission</a> /// action and listed with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListPermissions.html">ListPermissions</a> /// action. /// </para> /// <p class="title"> <b>About Permissions</b> /// </para> /// <ul> <li> /// <para> /// If the private CA and the certificates it issues reside in the same account, you can /// use <code>CreatePermission</code> to grant permissions for ACM to carry out automatic /// certificate renewals. /// </para> /// </li> <li> /// <para> /// For automatic certificate renewal to succeed, the ACM service principal needs permissions /// to create, retrieve, and list certificates. /// </para> /// </li> <li> /// <para> /// If the private CA and the ACM certificates reside in different accounts, then permissions /// cannot be used to enable automatic renewals. Instead, the ACM certificate owner must /// set up a resource-based policy to enable cross-account issuance and renewals. For /// more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-rbp.html">Using /// a Resource Based Policy with Amazon Web Services Private CA</a>. /// </para> /// </li> </ul> /// </summary> public partial class DeletePermissionRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private string _principal; private string _sourceAccount; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Number (ARN) of the private CA that issued the permissions. You /// can find the CA's ARN by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// action. This must have the following form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Principal. /// <para> /// The Amazon Web Services service or identity that will have its CA permissions revoked. /// At this time, the only valid service principal is <code>acm.amazonaws.com</code> /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string Principal { get { return this._principal; } set { this._principal = value; } } // Check to see if Principal property is set internal bool IsSetPrincipal() { return this._principal != null; } /// <summary> /// Gets and sets the property SourceAccount. /// <para> /// The Amazon Web Services account that calls this action. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string SourceAccount { get { return this._sourceAccount; } set { this._sourceAccount = value; } } // Check to see if SourceAccount property is set internal bool IsSetSourceAccount() { return this._sourceAccount != null; } } }
143
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the DeletePermission operation. /// </summary> public partial class DeletePermissionResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the DeletePolicy operation. /// Deletes the resource-based policy attached to a private CA. Deletion will remove any /// access that the policy has granted. If there is no policy attached to the private /// CA, this action will return successful. /// /// /// <para> /// If you delete a policy that was applied through Amazon Web Services Resource Access /// Manager (RAM), the CA will be removed from all shares in which it was included. /// </para> /// /// <para> /// The Certificate Manager Service Linked Role that the policy supports is not affected /// when you delete the policy. /// </para> /// /// <para> /// The current policy can be shown with <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_GetPolicy.html">GetPolicy</a> /// and updated with <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_PutPolicy.html">PutPolicy</a>. /// </para> /// <p class="title"> <b>About Policies</b> /// </para> /// <ul> <li> /// <para> /// A policy grants access on a private CA to an Amazon Web Services customer account, /// to Amazon Web Services Organizations, or to an Amazon Web Services Organizations unit. /// Policies are under the control of a CA administrator. For more information, see <a /// href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-rbp.html">Using a /// Resource Based Policy with Amazon Web Services Private CA</a>. /// </para> /// </li> <li> /// <para> /// A policy permits a user of Certificate Manager (ACM) to issue ACM certificates signed /// by a CA in another account. /// </para> /// </li> <li> /// <para> /// For ACM to manage automatic renewal of these certificates, the ACM user must configure /// a Service Linked Role (SLR). The SLR allows the ACM service to assume the identity /// of the user, subject to confirmation against the Amazon Web Services Private CA policy. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-slr.html">Using /// a Service Linked Role with ACM</a>. /// </para> /// </li> <li> /// <para> /// Updates made in Amazon Web Services Resource Manager (RAM) are reflected in policies. /// For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-ram.html">Attach /// a Policy for Cross-Account Access</a>. /// </para> /// </li> </ul> /// </summary> public partial class DeletePolicyRequest : AmazonACMPCARequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Number (ARN) of the private CA that will have its policy deleted. /// You can find the CA's ARN by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// action. The ARN value must have the form <code>arn:aws:acm-pca:region:account:certificate-authority/01234567-89ab-cdef-0123-0123456789ab</code>. /// /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=200)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
110
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the DeletePolicy operation. /// </summary> public partial class DeletePolicyResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the DescribeCertificateAuthorityAuditReport operation. /// Lists information about a specific audit report created by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a> /// action. Audit information is created every time the certificate authority (CA) private /// key is used. The private key is used when you call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_IssueCertificate.html">IssueCertificate</a> /// action or the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html">RevokeCertificate</a> /// action. /// </summary> public partial class DescribeCertificateAuthorityAuditReportRequest : AmazonACMPCARequest { private string _auditReportId; private string _certificateAuthorityArn; /// <summary> /// Gets and sets the property AuditReportId. /// <para> /// The report ID returned by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a> /// action. /// </para> /// </summary> [AWSProperty(Required=true, Min=36, Max=36)] public string AuditReportId { get { return this._auditReportId; } set { this._auditReportId = value; } } // Check to see if AuditReportId property is set internal bool IsSetAuditReportId() { return this._auditReportId != null; } /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) of the private CA. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } } }
89
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the DescribeCertificateAuthorityAuditReport operation. /// </summary> public partial class DescribeCertificateAuthorityAuditReportResponse : AmazonWebServiceResponse { private AuditReportStatus _auditReportStatus; private DateTime? _createdAt; private string _s3BucketName; private string _s3Key; /// <summary> /// Gets and sets the property AuditReportStatus. /// <para> /// Specifies whether report creation is in progress, has succeeded, or has failed. /// </para> /// </summary> public AuditReportStatus AuditReportStatus { get { return this._auditReportStatus; } set { this._auditReportStatus = value; } } // Check to see if AuditReportStatus property is set internal bool IsSetAuditReportStatus() { return this._auditReportStatus != null; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The date and time at which the report was created. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property S3BucketName. /// <para> /// Name of the S3 bucket that contains the report. /// </para> /// </summary> [AWSProperty(Min=3, Max=63)] public string S3BucketName { get { return this._s3BucketName; } set { this._s3BucketName = value; } } // Check to see if S3BucketName property is set internal bool IsSetS3BucketName() { return this._s3BucketName != null; } /// <summary> /// Gets and sets the property S3Key. /// <para> /// S3 <b>key</b> that uniquely identifies the report file in your S3 bucket. /// </para> /// </summary> [AWSProperty(Max=1024)] public string S3Key { get { return this._s3Key; } set { this._s3Key = value; } } // Check to see if S3Key property is set internal bool IsSetS3Key() { return this._s3Key != null; } } }
116
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the DescribeCertificateAuthority operation. /// Lists information about your private certificate authority (CA) or one that has been /// shared with you. You specify the private CA on input by its ARN (Amazon Resource Name). /// The output contains the status of your CA. This can be any of the following: /// /// <ul> <li> /// <para> /// <code>CREATING</code> - Amazon Web Services Private CA is creating your private certificate /// authority. /// </para> /// </li> <li> /// <para> /// <code>PENDING_CERTIFICATE</code> - The certificate is pending. You must use your /// Amazon Web Services Private CA-hosted or on-premises root or subordinate CA to sign /// your private CA CSR and then import it into Amazon Web Services Private CA. /// </para> /// </li> <li> /// <para> /// <code>ACTIVE</code> - Your private CA is active. /// </para> /// </li> <li> /// <para> /// <code>DISABLED</code> - Your private CA has been disabled. /// </para> /// </li> <li> /// <para> /// <code>EXPIRED</code> - Your private CA certificate has expired. /// </para> /// </li> <li> /// <para> /// <code>FAILED</code> - Your private CA has failed. Your CA can fail because of problems /// such a network outage or back-end Amazon Web Services failure or other errors. A failed /// CA can never return to the pending state. You must create a new CA. /// </para> /// </li> <li> /// <para> /// <code>DELETED</code> - Your private CA is within the restoration period, after which /// it is permanently deleted. The length of time remaining in the CA's restoration period /// is also included in this action's output. /// </para> /// </li> </ul> /// </summary> public partial class DescribeCertificateAuthorityRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } } }
104
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the DescribeCertificateAuthority operation. /// </summary> public partial class DescribeCertificateAuthorityResponse : AmazonWebServiceResponse { private CertificateAuthority _certificateAuthority; /// <summary> /// Gets and sets the property CertificateAuthority. /// <para> /// A <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CertificateAuthority.html">CertificateAuthority</a> /// structure that contains information about your private CA. /// </para> /// </summary> public CertificateAuthority CertificateAuthority { get { return this._certificateAuthority; } set { this._certificateAuthority = value; } } // Check to see if CertificateAuthority property is set internal bool IsSetCertificateAuthority() { return this._certificateAuthority != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes an Electronic Data Interchange (EDI) entity as described in as defined in /// <a href="https://datatracker.ietf.org/doc/html/rfc5280">Subject Alternative Name</a> /// in RFC 5280. /// </summary> public partial class EdiPartyName { private string _nameAssigner; private string _partyName; /// <summary> /// Gets and sets the property NameAssigner. /// <para> /// Specifies the name assigner. /// </para> /// </summary> [AWSProperty(Min=0, Max=256)] public string NameAssigner { get { return this._nameAssigner; } set { this._nameAssigner = value; } } // Check to see if NameAssigner property is set internal bool IsSetNameAssigner() { return this._nameAssigner != null; } /// <summary> /// Gets and sets the property PartyName. /// <para> /// Specifies the party name. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=256)] public string PartyName { get { return this._partyName; } set { this._partyName = value; } } // Check to see if PartyName property is set internal bool IsSetPartyName() { return this._partyName != null; } } }
80
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Specifies additional purposes for which the certified public key may be used other /// than basic purposes indicated in the <code>KeyUsage</code> extension. /// </summary> public partial class ExtendedKeyUsage { private string _extendedKeyUsageObjectIdentifier; private ExtendedKeyUsageType _extendedKeyUsageType; /// <summary> /// Gets and sets the property ExtendedKeyUsageObjectIdentifier. /// <para> /// Specifies a custom <code>ExtendedKeyUsage</code> with an object identifier (OID). /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string ExtendedKeyUsageObjectIdentifier { get { return this._extendedKeyUsageObjectIdentifier; } set { this._extendedKeyUsageObjectIdentifier = value; } } // Check to see if ExtendedKeyUsageObjectIdentifier property is set internal bool IsSetExtendedKeyUsageObjectIdentifier() { return this._extendedKeyUsageObjectIdentifier != null; } /// <summary> /// Gets and sets the property ExtendedKeyUsageType. /// <para> /// Specifies a standard <code>ExtendedKeyUsage</code> as defined as in <a href="https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.12">RFC /// 5280</a>. /// </para> /// </summary> public ExtendedKeyUsageType ExtendedKeyUsageType { get { return this._extendedKeyUsageType; } set { this._extendedKeyUsageType = value; } } // Check to see if ExtendedKeyUsageType property is set internal bool IsSetExtendedKeyUsageType() { return this._extendedKeyUsageType != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Contains X.509 extension information for a certificate. /// </summary> public partial class Extensions { private List<PolicyInformation> _certificatePolicies = new List<PolicyInformation>(); private List<CustomExtension> _customExtensions = new List<CustomExtension>(); private List<ExtendedKeyUsage> _extendedKeyUsage = new List<ExtendedKeyUsage>(); private KeyUsage _keyUsage; private List<GeneralName> _subjectAlternativeNames = new List<GeneralName>(); /// <summary> /// Gets and sets the property CertificatePolicies. /// <para> /// Contains a sequence of one or more policy information terms, each of which consists /// of an object identifier (OID) and optional qualifiers. For more information, see NIST's /// definition of <a href="https://csrc.nist.gov/glossary/term/Object_Identifier">Object /// Identifier (OID)</a>. /// </para> /// /// <para> /// In an end-entity certificate, these terms indicate the policy under which the certificate /// was issued and the purposes for which it may be used. In a CA certificate, these terms /// limit the set of policies for certification paths that include this certificate. /// </para> /// </summary> [AWSProperty(Min=1, Max=20)] public List<PolicyInformation> CertificatePolicies { get { return this._certificatePolicies; } set { this._certificatePolicies = value; } } // Check to see if CertificatePolicies property is set internal bool IsSetCertificatePolicies() { return this._certificatePolicies != null && this._certificatePolicies.Count > 0; } /// <summary> /// Gets and sets the property CustomExtensions. /// <para> /// Contains a sequence of one or more X.509 extensions, each of which consists of an /// object identifier (OID), a base64-encoded value, and the critical flag. For more information, /// see the <a href="https://oidref.com/2.5.29">Global OID reference database.</a> /// </para> /// </summary> [AWSProperty(Min=1, Max=20)] public List<CustomExtension> CustomExtensions { get { return this._customExtensions; } set { this._customExtensions = value; } } // Check to see if CustomExtensions property is set internal bool IsSetCustomExtensions() { return this._customExtensions != null && this._customExtensions.Count > 0; } /// <summary> /// Gets and sets the property ExtendedKeyUsage. /// <para> /// Specifies additional purposes for which the certified public key may be used other /// than basic purposes indicated in the <code>KeyUsage</code> extension. /// </para> /// </summary> [AWSProperty(Min=1, Max=20)] public List<ExtendedKeyUsage> ExtendedKeyUsage { get { return this._extendedKeyUsage; } set { this._extendedKeyUsage = value; } } // Check to see if ExtendedKeyUsage property is set internal bool IsSetExtendedKeyUsage() { return this._extendedKeyUsage != null && this._extendedKeyUsage.Count > 0; } /// <summary> /// Gets and sets the property KeyUsage. /// </summary> public KeyUsage KeyUsage { get { return this._keyUsage; } set { this._keyUsage = value; } } // Check to see if KeyUsage property is set internal bool IsSetKeyUsage() { return this._keyUsage != null; } /// <summary> /// Gets and sets the property SubjectAlternativeNames. /// <para> /// The subject alternative name extension allows identities to be bound to the subject /// of the certificate. These identities may be included in addition to or in place of /// the identity in the subject field of the certificate. /// </para> /// </summary> [AWSProperty(Min=1, Max=20)] public List<GeneralName> SubjectAlternativeNames { get { return this._subjectAlternativeNames; } set { this._subjectAlternativeNames = value; } } // Check to see if SubjectAlternativeNames property is set internal bool IsSetSubjectAlternativeNames() { return this._subjectAlternativeNames != null && this._subjectAlternativeNames.Count > 0; } } }
148
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Describes an ASN.1 X.400 <code>GeneralName</code> as defined in <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC /// 5280</a>. Only one of the following naming options should be provided. Providing more /// than one option results in an <code>InvalidArgsException</code> error. /// </summary> public partial class GeneralName { private ASN1Subject _directoryName; private string _dnsName; private EdiPartyName _ediPartyName; private string _ipAddress; private OtherName _otherName; private string _registeredId; private string _rfc822Name; private string _uniformResourceIdentifier; /// <summary> /// Gets and sets the property DirectoryName. /// </summary> public ASN1Subject DirectoryName { get { return this._directoryName; } set { this._directoryName = value; } } // Check to see if DirectoryName property is set internal bool IsSetDirectoryName() { return this._directoryName != null; } /// <summary> /// Gets and sets the property DnsName. /// <para> /// Represents <code>GeneralName</code> as a DNS name. /// </para> /// </summary> [AWSProperty(Min=0, Max=253)] public string DnsName { get { return this._dnsName; } set { this._dnsName = value; } } // Check to see if DnsName property is set internal bool IsSetDnsName() { return this._dnsName != null; } /// <summary> /// Gets and sets the property EdiPartyName. /// <para> /// Represents <code>GeneralName</code> as an <code>EdiPartyName</code> object. /// </para> /// </summary> public EdiPartyName EdiPartyName { get { return this._ediPartyName; } set { this._ediPartyName = value; } } // Check to see if EdiPartyName property is set internal bool IsSetEdiPartyName() { return this._ediPartyName != null; } /// <summary> /// Gets and sets the property IpAddress. /// <para> /// Represents <code>GeneralName</code> as an IPv4 or IPv6 address. /// </para> /// </summary> [AWSProperty(Min=0, Max=39)] public string IpAddress { get { return this._ipAddress; } set { this._ipAddress = value; } } // Check to see if IpAddress property is set internal bool IsSetIpAddress() { return this._ipAddress != null; } /// <summary> /// Gets and sets the property OtherName. /// <para> /// Represents <code>GeneralName</code> using an <code>OtherName</code> object. /// </para> /// </summary> public OtherName OtherName { get { return this._otherName; } set { this._otherName = value; } } // Check to see if OtherName property is set internal bool IsSetOtherName() { return this._otherName != null; } /// <summary> /// Gets and sets the property RegisteredId. /// <para> /// Represents <code>GeneralName</code> as an object identifier (OID). /// </para> /// </summary> [AWSProperty(Min=0, Max=64)] public string RegisteredId { get { return this._registeredId; } set { this._registeredId = value; } } // Check to see if RegisteredId property is set internal bool IsSetRegisteredId() { return this._registeredId != null; } /// <summary> /// Gets and sets the property Rfc822Name. /// <para> /// Represents <code>GeneralName</code> as an <a href="https://datatracker.ietf.org/doc/html/rfc822">RFC /// 822</a> email address. /// </para> /// </summary> [AWSProperty(Min=0, Max=256)] public string Rfc822Name { get { return this._rfc822Name; } set { this._rfc822Name = value; } } // Check to see if Rfc822Name property is set internal bool IsSetRfc822Name() { return this._rfc822Name != null; } /// <summary> /// Gets and sets the property UniformResourceIdentifier. /// <para> /// Represents <code>GeneralName</code> as a URI. /// </para> /// </summary> [AWSProperty(Min=0, Max=253)] public string UniformResourceIdentifier { get { return this._uniformResourceIdentifier; } set { this._uniformResourceIdentifier = value; } } // Check to see if UniformResourceIdentifier property is set internal bool IsSetUniformResourceIdentifier() { return this._uniformResourceIdentifier != null; } } }
195
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetCertificateAuthorityCertificate operation. /// Retrieves the certificate and certificate chain for your private certificate authority /// (CA) or one that has been shared with you. Both the certificate and the chain are /// base64 PEM-encoded. The chain does not include the CA certificate. Each certificate /// in the chain signs the one before it. /// </summary> public partial class GetCertificateAuthorityCertificateRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) of your private CA. This is of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } } }
67
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the GetCertificateAuthorityCertificate operation. /// </summary> public partial class GetCertificateAuthorityCertificateResponse : AmazonWebServiceResponse { private string _certificate; private string _certificateChain; /// <summary> /// Gets and sets the property Certificate. /// <para> /// Base64-encoded certificate authority (CA) certificate. /// </para> /// </summary> public string Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// <summary> /// Gets and sets the property CertificateChain. /// <para> /// Base64-encoded certificate chain that includes any intermediate certificates and chains /// up to root certificate that you used to sign your private CA certificate. The chain /// does not include your private CA certificate. If this is a root CA, the value will /// be null. /// </para> /// </summary> public string CertificateChain { get { return this._certificateChain; } set { this._certificateChain = value; } } // Check to see if CertificateChain property is set internal bool IsSetCertificateChain() { return this._certificateChain != null; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetCertificateAuthorityCsr operation. /// Retrieves the certificate signing request (CSR) for your private certificate authority /// (CA). The CSR is created when you call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action. Sign the CSR with your Amazon Web Services Private CA-hosted or on-premises /// root or subordinate CA. Then import the signed certificate back into Amazon Web Services /// Private CA by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ImportCertificateAuthorityCertificate.html">ImportCertificateAuthorityCertificate</a> /// action. The CSR is returned as a base64 PEM-encoded string. /// </summary> public partial class GetCertificateAuthorityCsrRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } } }
70
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the GetCertificateAuthorityCsr operation. /// </summary> public partial class GetCertificateAuthorityCsrResponse : AmazonWebServiceResponse { private string _csr; /// <summary> /// Gets and sets the property Csr. /// <para> /// The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate. /// </para> /// </summary> public string Csr { get { return this._csr; } set { this._csr = value; } } // Check to see if Csr property is set internal bool IsSetCsr() { return this._csr != null; } } }
57
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetCertificate operation. /// Retrieves a certificate from your private CA or one that has been shared with you. /// The ARN of the certificate is returned when you call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_IssueCertificate.html">IssueCertificate</a> /// action. You must specify both the ARN of your private CA and the ARN of the issued /// certificate when calling the <b>GetCertificate</b> action. You can retrieve the certificate /// if it is in the <b>ISSUED</b> state. You can call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a> /// action to create a report that contains information about all of the certificates /// issued and revoked by your private CA. /// </summary> public partial class GetCertificateRequest : AmazonACMPCARequest { private string _certificateArn; private string _certificateAuthorityArn; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// The ARN of the issued certificate. The ARN contains the certificate serial number /// and must be in the following form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i>/certificate/<i>286535153982981100925020015808220737245</i> /// </code> /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=200)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code>. /// </para> /// </summary> [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; } } }
97
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the GetCertificate operation. /// </summary> public partial class GetCertificateResponse : AmazonWebServiceResponse { private string _certificate; private string _certificateChain; /// <summary> /// Gets and sets the property Certificate. /// <para> /// The base64 PEM-encoded certificate specified by the <code>CertificateArn</code> parameter. /// </para> /// </summary> public string Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// <summary> /// Gets and sets the property CertificateChain. /// <para> /// The base64 PEM-encoded certificate chain that chains up to the root CA certificate /// that you used to sign your private CA certificate. /// </para> /// </summary> public string CertificateChain { get { return this._certificateChain; } set { this._certificateChain = value; } } // Check to see if CertificateChain property is set internal bool IsSetCertificateChain() { return this._certificateChain != null; } } }
77
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the GetPolicy operation. /// Retrieves the resource-based policy attached to a private CA. If either the private /// CA resource or the policy cannot be found, this action returns a <code>ResourceNotFoundException</code>. /// /// /// /// <para> /// The policy can be attached or updated with <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_PutPolicy.html">PutPolicy</a> /// and removed with <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeletePolicy.html">DeletePolicy</a>. /// </para> /// <p class="title"> <b>About Policies</b> /// </para> /// <ul> <li> /// <para> /// A policy grants access on a private CA to an Amazon Web Services customer account, /// to Amazon Web Services Organizations, or to an Amazon Web Services Organizations unit. /// Policies are under the control of a CA administrator. For more information, see <a /// href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-rbp.html">Using a /// Resource Based Policy with Amazon Web Services Private CA</a>. /// </para> /// </li> <li> /// <para> /// A policy permits a user of Certificate Manager (ACM) to issue ACM certificates signed /// by a CA in another account. /// </para> /// </li> <li> /// <para> /// For ACM to manage automatic renewal of these certificates, the ACM user must configure /// a Service Linked Role (SLR). The SLR allows the ACM service to assume the identity /// of the user, subject to confirmation against the Amazon Web Services Private CA policy. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-slr.html">Using /// a Service Linked Role with ACM</a>. /// </para> /// </li> <li> /// <para> /// Updates made in Amazon Web Services Resource Manager (RAM) are reflected in policies. /// For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-ram.html">Attach /// a Policy for Cross-Account Access</a>. /// </para> /// </li> </ul> /// </summary> public partial class GetPolicyRequest : AmazonACMPCARequest { private string _resourceArn; /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Number (ARN) of the private CA that will have its policy retrieved. /// You can find the CA's ARN by calling the ListCertificateAuthorities action. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=200)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
98
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the GetPolicy operation. /// </summary> public partial class GetPolicyResponse : AmazonWebServiceResponse { private string _policy; /// <summary> /// Gets and sets the property Policy. /// <para> /// The policy attached to the private CA as a JSON document. /// </para> /// </summary> [AWSProperty(Min=1, Max=20480)] public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } } }
58
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the ImportCertificateAuthorityCertificate operation. /// Imports a signed private CA certificate into Amazon Web Services Private CA. This /// action is used when you are using a chain of trust whose root is located outside Amazon /// Web Services Private CA. Before you can call this action, the following preparations /// must in place: /// /// <ol> <li> /// <para> /// In Amazon Web Services Private CA, call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action to create the private CA that you plan to back with the imported certificate. /// </para> /// </li> <li> /// <para> /// Call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_GetCertificateAuthorityCsr.html">GetCertificateAuthorityCsr</a> /// action to generate a certificate signing request (CSR). /// </para> /// </li> <li> /// <para> /// Sign the CSR using a root or intermediate CA hosted by either an on-premises PKI hierarchy /// or by a commercial CA. /// </para> /// </li> <li> /// <para> /// Create a certificate chain and copy the signed certificate and the certificate chain /// to your working directory. /// </para> /// </li> </ol> /// <para> /// Amazon Web Services Private CA supports three scenarios for installing a CA certificate: /// </para> /// <ul> <li> /// <para> /// Installing a certificate for a root CA hosted by Amazon Web Services Private CA. /// </para> /// </li> <li> /// <para> /// Installing a subordinate CA certificate whose parent authority is hosted by Amazon /// Web Services Private CA. /// </para> /// </li> <li> /// <para> /// Installing a subordinate CA certificate whose parent authority is externally hosted. /// </para> /// </li> </ul> /// <para> /// The following additional requirements apply when you import a CA certificate. /// </para> /// <ul> <li> /// <para> /// Only a self-signed certificate can be imported as a root CA. /// </para> /// </li> <li> /// <para> /// A self-signed certificate cannot be imported as a subordinate CA. /// </para> /// </li> <li> /// <para> /// Your certificate chain must not include the private CA certificate that you are importing. /// </para> /// </li> <li> /// <para> /// Your root CA must be the last certificate in your chain. The subordinate certificate, /// if any, that your root CA signed must be next to last. The subordinate certificate /// signed by the preceding subordinate CA must come next, and so on until your chain /// is built. /// </para> /// </li> <li> /// <para> /// The chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The maximum allowed size of a certificate is 32 KB. /// </para> /// </li> <li> /// <para> /// The maximum allowed size of a certificate chain is 2 MB. /// </para> /// </li> </ul> /// <para> /// <i>Enforcement of Critical Constraints</i> /// </para> /// /// <para> /// Amazon Web Services Private CA allows the following extensions to be marked critical /// in the imported CA certificate or chain. /// </para> /// <ul> <li> /// <para> /// Basic constraints (<i>must</i> be marked critical) /// </para> /// </li> <li> /// <para> /// Subject alternative names /// </para> /// </li> <li> /// <para> /// Key usage /// </para> /// </li> <li> /// <para> /// Extended key usage /// </para> /// </li> <li> /// <para> /// Authority key identifier /// </para> /// </li> <li> /// <para> /// Subject key identifier /// </para> /// </li> <li> /// <para> /// Issuer alternative name /// </para> /// </li> <li> /// <para> /// Subject directory attributes /// </para> /// </li> <li> /// <para> /// Subject information access /// </para> /// </li> <li> /// <para> /// Certificate policies /// </para> /// </li> <li> /// <para> /// Policy mappings /// </para> /// </li> <li> /// <para> /// Inhibit anyPolicy /// </para> /// </li> </ul> /// <para> /// Amazon Web Services Private CA rejects the following extensions when they are marked /// critical in an imported CA certificate or chain. /// </para> /// <ul> <li> /// <para> /// Name constraints /// </para> /// </li> <li> /// <para> /// Policy constraints /// </para> /// </li> <li> /// <para> /// CRL distribution points /// </para> /// </li> <li> /// <para> /// Authority information access /// </para> /// </li> <li> /// <para> /// Freshest CRL /// </para> /// </li> <li> /// <para> /// Any other extension /// </para> /// </li> </ul> /// </summary> public partial class ImportCertificateAuthorityCertificateRequest : AmazonACMPCARequest { private MemoryStream _certificate; private string _certificateAuthorityArn; private MemoryStream _certificateChain; /// <summary> /// Gets and sets the property Certificate. /// <para> /// The PEM-encoded certificate for a private CA. This may be a self-signed certificate /// in the case of a root CA, or it may be signed by another CA that you control. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=32768)] public MemoryStream Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property CertificateChain. /// <para> /// A PEM-encoded file that contains all of your certificates, other than the certificate /// you're importing, chaining up to your root CA. Your Amazon Web Services Private CA-hosted /// or on-premises root certificate is the last in the chain, and each certificate in /// the chain signs the one preceding. /// </para> /// /// <para> /// This parameter must be supplied when you import a subordinate CA. When you import /// a root CA, there is no chain. /// </para> /// </summary> [AWSProperty(Min=0, Max=2097152)] public MemoryStream CertificateChain { get { return this._certificateChain; } set { this._certificateChain = value; } } // Check to see if CertificateChain property is set internal bool IsSetCertificateChain() { return this._certificateChain != null; } } }
277
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the ImportCertificateAuthorityCertificate operation. /// </summary> public partial class ImportCertificateAuthorityCertificateResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// One or more of the specified arguments was not valid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidArgsException : AmazonACMPCAException { /// <summary> /// Constructs a new InvalidArgsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidArgsException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidArgsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidArgsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidArgsException /// </summary> /// <param name="innerException"></param> public InvalidArgsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidArgsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidArgsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidArgsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidArgsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidArgsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidArgsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidArnException : AmazonACMPCAException { /// <summary> /// Constructs a new InvalidArnException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidArnException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidArnException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidArnException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidArnException /// </summary> /// <param name="innerException"></param> public InvalidArnException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidArnException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidArnException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidArnException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidArnException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidArnException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidArnException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The token specified in the <code>NextToken</code> argument is not valid. Use the token /// returned from your previous call to <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidNextTokenException : AmazonACMPCAException { /// <summary> /// Constructs a new InvalidNextTokenException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidNextTokenException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidNextTokenException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </summary> /// <param name="innerException"></param> public InvalidNextTokenException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidNextTokenException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidNextTokenException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidNextTokenException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidNextTokenException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidNextTokenException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The resource policy is invalid or is missing a required statement. For general information /// about IAM policy and statement structure, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json">Overview /// of JSON Policies</a>. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidPolicyException : AmazonACMPCAException { /// <summary> /// Constructs a new InvalidPolicyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidPolicyException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidPolicyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidPolicyException /// </summary> /// <param name="innerException"></param> public InvalidPolicyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidPolicyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidPolicyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidPolicyException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidPolicyException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidPolicyException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
126
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The request action cannot be performed or is prohibited. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidRequestException : AmazonACMPCAException { /// <summary> /// Constructs a new InvalidRequestException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidRequestException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidRequestException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="innerException"></param> public InvalidRequestException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidRequestException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidRequestException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidRequestException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidRequestException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidRequestException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The state of the private CA does not allow this action to occur. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidStateException : AmazonACMPCAException { /// <summary> /// Constructs a new InvalidStateException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidStateException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidStateException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="innerException"></param> public InvalidStateException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidStateException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidStateException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidStateException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidStateException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidStateException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The tag associated with the CA is not valid. The invalid argument is contained in /// the message field. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class InvalidTagException : AmazonACMPCAException { /// <summary> /// Constructs a new InvalidTagException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public InvalidTagException(string message) : base(message) {} /// <summary> /// Construct instance of InvalidTagException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public InvalidTagException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of InvalidTagException /// </summary> /// <param name="innerException"></param> public InvalidTagException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of InvalidTagException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidTagException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of InvalidTagException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public InvalidTagException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the InvalidTagException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected InvalidTagException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the IssueCertificate operation. /// </summary> public partial class IssueCertificateResponse : AmazonWebServiceResponse { private string _certificateArn; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// The Amazon Resource Name (ARN) of the issued certificate and the certificate serial /// number. This is of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i>/certificate/<i>286535153982981100925020015808220737245</i> /// </code> /// </para> /// </summary> [AWSProperty(Min=5, Max=200)] public string CertificateArn { get { return this._certificateArn; } set { this._certificateArn = value; } } // Check to see if CertificateArn property is set internal bool IsSetCertificateArn() { return this._certificateArn != null; } } }
64
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Defines one or more purposes for which the key contained in the certificate can be /// used. Default value for each option is false. /// </summary> public partial class KeyUsage { private bool? _crlSign; private bool? _dataEncipherment; private bool? _decipherOnly; private bool? _digitalSignature; private bool? _encipherOnly; private bool? _keyAgreement; private bool? _keyCertSign; private bool? _keyEncipherment; private bool? _nonRepudiation; /// <summary> /// Gets and sets the property CRLSign. /// <para> /// Key can be used to sign CRLs. /// </para> /// </summary> public bool CRLSign { get { return this._crlSign.GetValueOrDefault(); } set { this._crlSign = value; } } // Check to see if CRLSign property is set internal bool IsSetCRLSign() { return this._crlSign.HasValue; } /// <summary> /// Gets and sets the property DataEncipherment. /// <para> /// Key can be used to decipher data. /// </para> /// </summary> public bool DataEncipherment { get { return this._dataEncipherment.GetValueOrDefault(); } set { this._dataEncipherment = value; } } // Check to see if DataEncipherment property is set internal bool IsSetDataEncipherment() { return this._dataEncipherment.HasValue; } /// <summary> /// Gets and sets the property DecipherOnly. /// <para> /// Key can be used only to decipher data. /// </para> /// </summary> public bool DecipherOnly { get { return this._decipherOnly.GetValueOrDefault(); } set { this._decipherOnly = value; } } // Check to see if DecipherOnly property is set internal bool IsSetDecipherOnly() { return this._decipherOnly.HasValue; } /// <summary> /// Gets and sets the property DigitalSignature. /// <para> /// Key can be used for digital signing. /// </para> /// </summary> public bool DigitalSignature { get { return this._digitalSignature.GetValueOrDefault(); } set { this._digitalSignature = value; } } // Check to see if DigitalSignature property is set internal bool IsSetDigitalSignature() { return this._digitalSignature.HasValue; } /// <summary> /// Gets and sets the property EncipherOnly. /// <para> /// Key can be used only to encipher data. /// </para> /// </summary> public bool EncipherOnly { get { return this._encipherOnly.GetValueOrDefault(); } set { this._encipherOnly = value; } } // Check to see if EncipherOnly property is set internal bool IsSetEncipherOnly() { return this._encipherOnly.HasValue; } /// <summary> /// Gets and sets the property KeyAgreement. /// <para> /// Key can be used in a key-agreement protocol. /// </para> /// </summary> public bool KeyAgreement { get { return this._keyAgreement.GetValueOrDefault(); } set { this._keyAgreement = value; } } // Check to see if KeyAgreement property is set internal bool IsSetKeyAgreement() { return this._keyAgreement.HasValue; } /// <summary> /// Gets and sets the property KeyCertSign. /// <para> /// Key can be used to sign certificates. /// </para> /// </summary> public bool KeyCertSign { get { return this._keyCertSign.GetValueOrDefault(); } set { this._keyCertSign = value; } } // Check to see if KeyCertSign property is set internal bool IsSetKeyCertSign() { return this._keyCertSign.HasValue; } /// <summary> /// Gets and sets the property KeyEncipherment. /// <para> /// Key can be used to encipher data. /// </para> /// </summary> public bool KeyEncipherment { get { return this._keyEncipherment.GetValueOrDefault(); } set { this._keyEncipherment = value; } } // Check to see if KeyEncipherment property is set internal bool IsSetKeyEncipherment() { return this._keyEncipherment.HasValue; } /// <summary> /// Gets and sets the property NonRepudiation. /// <para> /// Key can be used for non-repudiation. /// </para> /// </summary> public bool NonRepudiation { get { return this._nonRepudiation.GetValueOrDefault(); } set { this._nonRepudiation = value; } } // Check to see if NonRepudiation property is set internal bool IsSetNonRepudiation() { return this._nonRepudiation.HasValue; } } }
210
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// An Amazon Web Services Private CA quota has been exceeded. See the exception message /// returned to determine the quota that was exceeded. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class LimitExceededException : AmazonACMPCAException { /// <summary> /// Constructs a new LimitExceededException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public LimitExceededException(string message) : base(message) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public LimitExceededException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="innerException"></param> public LimitExceededException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of LimitExceededException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LimitExceededException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the LimitExceededException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected LimitExceededException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the ListCertificateAuthorities operation. /// Lists the private certificate authorities that you created by using the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action. /// </summary> public partial class ListCertificateAuthoritiesRequest : AmazonACMPCARequest { private int? _maxResults; private string _nextToken; private ResourceOwner _resourceOwner; /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Use this parameter when paginating results to specify the maximum number of items /// to return in the response on each page. If additional items exist beyond the number /// you specify, the <code>NextToken</code> element is sent in the response. Use this /// <code>NextToken</code> value in a subsequent request to retrieve additional items. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// Use this parameter when paginating results in a subsequent request after you receive /// a response with truncated results. Set it to the value of the <code>NextToken</code> /// parameter from the response you just received. /// </para> /// </summary> [AWSProperty(Min=1, Max=500)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property ResourceOwner. /// <para> /// Use this parameter to filter the returned set of certificate authorities based on /// their owner. The default is SELF. /// </para> /// </summary> public ResourceOwner ResourceOwner { get { return this._resourceOwner; } set { this._resourceOwner = value; } } // Check to see if ResourceOwner property is set internal bool IsSetResourceOwner() { return this._resourceOwner != null; } } }
105
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the ListCertificateAuthorities operation. /// </summary> public partial class ListCertificateAuthoritiesResponse : AmazonWebServiceResponse { private List<CertificateAuthority> _certificateAuthorities = new List<CertificateAuthority>(); private string _nextToken; /// <summary> /// Gets and sets the property CertificateAuthorities. /// <para> /// Summary information about each certificate authority you have created. /// </para> /// </summary> public List<CertificateAuthority> CertificateAuthorities { get { return this._certificateAuthorities; } set { this._certificateAuthorities = value; } } // Check to see if CertificateAuthorities property is set internal bool IsSetCertificateAuthorities() { return this._certificateAuthorities != null && this._certificateAuthorities.Count > 0; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// When the list is truncated, this value is present and should be used for the <code>NextToken</code> /// parameter in a subsequent pagination request. /// </para> /// </summary> [AWSProperty(Min=1, Max=500)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the ListPermissions operation. /// List all permissions on a private CA, if any, granted to the Certificate Manager (ACM) /// service principal (acm.amazonaws.com). /// /// /// <para> /// These permissions allow ACM to issue and renew ACM certificates that reside in the /// same Amazon Web Services account as the CA. /// </para> /// /// <para> /// Permissions can be granted with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreatePermission.html">CreatePermission</a> /// action and revoked with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeletePermission.html">DeletePermission</a> /// action. /// </para> /// <p class="title"> <b>About Permissions</b> /// </para> /// <ul> <li> /// <para> /// If the private CA and the certificates it issues reside in the same account, you can /// use <code>CreatePermission</code> to grant permissions for ACM to carry out automatic /// certificate renewals. /// </para> /// </li> <li> /// <para> /// For automatic certificate renewal to succeed, the ACM service principal needs permissions /// to create, retrieve, and list certificates. /// </para> /// </li> <li> /// <para> /// If the private CA and the ACM certificates reside in different accounts, then permissions /// cannot be used to enable automatic renewals. Instead, the ACM certificate owner must /// set up a resource-based policy to enable cross-account issuance and renewals. For /// more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-rbp.html">Using /// a Resource Based Policy with Amazon Web Services Private CA</a>. /// </para> /// </li> </ul> /// </summary> public partial class ListPermissionsRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Number (ARN) of the private CA to inspect. You can find the ARN /// by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// action. This must be of the form: <code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code> /// You can get a private CA's ARN by running the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// action. /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// When paginating results, use this parameter to specify the maximum number of items /// to return in the response. If additional items exist beyond the number you specify, /// the <b>NextToken</b> element is sent in the response. Use this <b>NextToken</b> value /// in a subsequent request to retrieve additional items. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// When paginating results, use this parameter in a subsequent request after you receive /// a response with truncated results. Set it to the value of <b>NextToken</b> from the /// response you just received. /// </para> /// </summary> [AWSProperty(Min=1, Max=500)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
143
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the ListPermissions operation. /// </summary> public partial class ListPermissionsResponse : AmazonWebServiceResponse { private string _nextToken; private List<Permission> _permissions = new List<Permission>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// When the list is truncated, this value is present and should be used for the <b>NextToken</b> /// parameter in a subsequent pagination request. /// </para> /// </summary> [AWSProperty(Min=1, Max=500)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property Permissions. /// <para> /// Summary information about each permission assigned by the specified private CA, including /// the action enabled, the policy provided, and the time of creation. /// </para> /// </summary> [AWSProperty(Min=0)] public List<Permission> Permissions { get { return this._permissions; } set { this._permissions = value; } } // Check to see if Permissions property is set internal bool IsSetPermissions() { return this._permissions != null && this._permissions.Count > 0; } } }
80
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the ListTags operation. /// Lists the tags, if any, that are associated with your private CA or one that has been /// shared with you. Tags are labels that you can use to identify and organize your CAs. /// Each tag consists of a key and an optional value. Call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_TagCertificateAuthority.html">TagCertificateAuthority</a> /// action to add one or more tags to your CA. Call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UntagCertificateAuthority.html">UntagCertificateAuthority</a> /// action to remove tags. /// </summary> public partial class ListTagsRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private int? _maxResults; private string _nextToken; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property MaxResults. /// <para> /// Use this parameter when paginating results to specify the maximum number of items /// to return in the response. If additional items exist beyond the number you specify, /// the <b>NextToken</b> element is sent in the response. Use this <b>NextToken</b> value /// in a subsequent request to retrieve additional items. /// </para> /// </summary> [AWSProperty(Min=1, Max=1000)] public int MaxResults { get { return this._maxResults.GetValueOrDefault(); } set { this._maxResults = value; } } // Check to see if MaxResults property is set internal bool IsSetMaxResults() { return this._maxResults.HasValue; } /// <summary> /// Gets and sets the property NextToken. /// <para> /// Use this parameter when paginating results in a subsequent request after you receive /// a response with truncated results. Set it to the value of <b>NextToken</b> from the /// response you just received. /// </para> /// </summary> [AWSProperty(Min=1, Max=500)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } } }
114
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the ListTags operation. /// </summary> public partial class ListTagsResponse : AmazonWebServiceResponse { private string _nextToken; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property NextToken. /// <para> /// When the list is truncated, this value is present and should be used for the <b>NextToken</b> /// parameter in a subsequent pagination request. /// </para> /// </summary> [AWSProperty(Min=1, Max=500)] public string NextToken { get { return this._nextToken; } set { this._nextToken = value; } } // Check to see if NextToken property is set internal bool IsSetNextToken() { return this._nextToken != null; } /// <summary> /// Gets and sets the property Tags. /// <para> /// The tags associated with your private CA. /// </para> /// </summary> [AWSProperty(Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
79
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The current action was prevented because it would lock the caller out from performing /// subsequent actions. Verify that the specified parameters would not result in the caller /// being denied access to the resource. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class LockoutPreventedException : AmazonACMPCAException { /// <summary> /// Constructs a new LockoutPreventedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public LockoutPreventedException(string message) : base(message) {} /// <summary> /// Construct instance of LockoutPreventedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public LockoutPreventedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of LockoutPreventedException /// </summary> /// <param name="innerException"></param> public LockoutPreventedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of LockoutPreventedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LockoutPreventedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of LockoutPreventedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public LockoutPreventedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the LockoutPreventedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected LockoutPreventedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
126
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// One or more fields in the certificate are invalid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class MalformedCertificateException : AmazonACMPCAException { /// <summary> /// Constructs a new MalformedCertificateException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public MalformedCertificateException(string message) : base(message) {} /// <summary> /// Construct instance of MalformedCertificateException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public MalformedCertificateException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of MalformedCertificateException /// </summary> /// <param name="innerException"></param> public MalformedCertificateException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of MalformedCertificateException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public MalformedCertificateException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of MalformedCertificateException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public MalformedCertificateException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the MalformedCertificateException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected MalformedCertificateException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The certificate signing request is invalid. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class MalformedCSRException : AmazonACMPCAException { /// <summary> /// Constructs a new MalformedCSRException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public MalformedCSRException(string message) : base(message) {} /// <summary> /// Construct instance of MalformedCSRException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public MalformedCSRException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of MalformedCSRException /// </summary> /// <param name="innerException"></param> public MalformedCSRException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of MalformedCSRException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public MalformedCSRException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of MalformedCSRException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public MalformedCSRException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the MalformedCSRException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected MalformedCSRException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Contains information to enable and configure Online Certificate Status Protocol (OCSP) /// for validating certificate revocation status. /// /// /// <para> /// When you revoke a certificate, OCSP responses may take up to 60 minutes to reflect /// the new status. /// </para> /// </summary> public partial class OcspConfiguration { private bool? _enabled; private string _ocspCustomCname; /// <summary> /// Gets and sets the property Enabled. /// <para> /// Flag enabling use of the Online Certificate Status Protocol (OCSP) for validating /// certificate revocation status. /// </para> /// </summary> [AWSProperty(Required=true)] public bool Enabled { get { return this._enabled.GetValueOrDefault(); } set { this._enabled = value; } } // Check to see if Enabled property is set internal bool IsSetEnabled() { return this._enabled.HasValue; } /// <summary> /// Gets and sets the property OcspCustomCname. /// <para> /// By default, Amazon Web Services Private CA injects an Amazon Web Services domain into /// certificates being validated by the Online Certificate Status Protocol (OCSP). A customer /// can alternatively use this object to define a CNAME specifying a customized OCSP domain. /// </para> /// <note> /// <para> /// The content of a Canonical Name (CNAME) record must conform to <a href="https://www.ietf.org/rfc/rfc2396.txt">RFC2396</a> /// restrictions on the use of special characters in URIs. Additionally, the value of /// the CNAME must not include a protocol prefix such as "http://" or "https://". /// </para> /// </note> /// <para> /// For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/ocsp-customize.html">Customizing /// Online Certificate Status Protocol (OCSP) </a> in the <i>Amazon Web Services Private /// Certificate Authority User Guide</i>. /// </para> /// </summary> [AWSProperty(Min=0, Max=253)] public string OcspCustomCname { get { return this._ocspCustomCname; } set { this._ocspCustomCname = value; } } // Check to see if OcspCustomCname property is set internal bool IsSetOcspCustomCname() { return this._ocspCustomCname != null; } } }
100
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Defines a custom ASN.1 X.400 <code>GeneralName</code> using an object identifier (OID) /// and value. The OID must satisfy the regular expression shown below. For more information, /// see NIST's definition of <a href="https://csrc.nist.gov/glossary/term/Object_Identifier">Object /// Identifier (OID)</a>. /// </summary> public partial class OtherName { private string _typeId; private string _value; /// <summary> /// Gets and sets the property TypeId. /// <para> /// Specifies an OID. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=64)] public string TypeId { get { return this._typeId; } set { this._typeId = value; } } // Check to see if TypeId property is set internal bool IsSetTypeId() { return this._typeId != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// Specifies an OID value. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=256)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
81
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Permissions designate which private CA actions can be performed by an Amazon Web Services /// service or entity. In order for ACM to automatically renew private certificates, you /// must give the ACM service principal all available permissions (<code>IssueCertificate</code>, /// <code>GetCertificate</code>, and <code>ListPermissions</code>). Permissions can be /// assigned with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreatePermission.html">CreatePermission</a> /// action, removed with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeletePermission.html">DeletePermission</a> /// action, and listed with the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListPermissions.html">ListPermissions</a> /// action. /// </summary> public partial class Permission { private List<string> _actions = new List<string>(); private string _certificateAuthorityArn; private DateTime? _createdAt; private string _policy; private string _principal; private string _sourceAccount; /// <summary> /// Gets and sets the property Actions. /// <para> /// The private CA actions that can be performed by the designated Amazon Web Services /// service. /// </para> /// </summary> [AWSProperty(Min=1, Max=3)] public List<string> Actions { get { return this._actions; } set { this._actions = value; } } // Check to see if Actions property is set internal bool IsSetActions() { return this._actions != null && this._actions.Count > 0; } /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Number (ARN) of the private CA from which the permission was issued. /// </para> /// </summary> [AWSProperty(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; } /// <summary> /// Gets and sets the property CreatedAt. /// <para> /// The time at which the permission was created. /// </para> /// </summary> 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; } /// <summary> /// Gets and sets the property Policy. /// <para> /// The name of the policy that is associated with the permission. /// </para> /// </summary> [AWSProperty(Min=1, Max=20480)] public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// <summary> /// Gets and sets the property Principal. /// <para> /// The Amazon Web Services service or entity that holds the permission. At this time, /// the only valid principal is <code>acm.amazonaws.com</code>. /// </para> /// </summary> [AWSProperty(Min=0, Max=128)] public string Principal { get { return this._principal; } set { this._principal = value; } } // Check to see if Principal property is set internal bool IsSetPrincipal() { return this._principal != null; } /// <summary> /// Gets and sets the property SourceAccount. /// <para> /// The ID of the account that assigned the permission. /// </para> /// </summary> [AWSProperty(Min=12, Max=12)] public string SourceAccount { get { return this._sourceAccount; } set { this._sourceAccount = value; } } // Check to see if SourceAccount property is set internal bool IsSetSourceAccount() { return this._sourceAccount != null; } } }
166
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The designated permission has already been given to the user. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class PermissionAlreadyExistsException : AmazonACMPCAException { /// <summary> /// Constructs a new PermissionAlreadyExistsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public PermissionAlreadyExistsException(string message) : base(message) {} /// <summary> /// Construct instance of PermissionAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public PermissionAlreadyExistsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of PermissionAlreadyExistsException /// </summary> /// <param name="innerException"></param> public PermissionAlreadyExistsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of PermissionAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public PermissionAlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of PermissionAlreadyExistsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public PermissionAlreadyExistsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the PermissionAlreadyExistsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected PermissionAlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Defines the X.509 <code>CertificatePolicies</code> extension. /// </summary> public partial class PolicyInformation { private string _certPolicyId; private List<PolicyQualifierInfo> _policyQualifiers = new List<PolicyQualifierInfo>(); /// <summary> /// Gets and sets the property CertPolicyId. /// <para> /// Specifies the object identifier (OID) of the certificate policy under which the certificate /// was issued. For more information, see NIST's definition of <a href="https://csrc.nist.gov/glossary/term/Object_Identifier">Object /// Identifier (OID)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=64)] public string CertPolicyId { get { return this._certPolicyId; } set { this._certPolicyId = value; } } // Check to see if CertPolicyId property is set internal bool IsSetCertPolicyId() { return this._certPolicyId != null; } /// <summary> /// Gets and sets the property PolicyQualifiers. /// <para> /// Modifies the given <code>CertPolicyId</code> with a qualifier. Amazon Web Services /// Private CA supports the certification practice statement (CPS) qualifier. /// </para> /// </summary> [AWSProperty(Min=1, Max=20)] public List<PolicyQualifierInfo> PolicyQualifiers { get { return this._policyQualifiers; } set { this._policyQualifiers = value; } } // Check to see if PolicyQualifiers property is set internal bool IsSetPolicyQualifiers() { return this._policyQualifiers != null && this._policyQualifiers.Count > 0; } } }
81
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Modifies the <code>CertPolicyId</code> of a <code>PolicyInformation</code> object /// with a qualifier. Amazon Web Services Private CA supports the certification practice /// statement (CPS) qualifier. /// </summary> public partial class PolicyQualifierInfo { private PolicyQualifierId _policyQualifierId; private Qualifier _qualifier; /// <summary> /// Gets and sets the property PolicyQualifierId. /// <para> /// Identifies the qualifier modifying a <code>CertPolicyId</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public PolicyQualifierId PolicyQualifierId { get { return this._policyQualifierId; } set { this._policyQualifierId = value; } } // Check to see if PolicyQualifierId property is set internal bool IsSetPolicyQualifierId() { return this._policyQualifierId != null; } /// <summary> /// Gets and sets the property Qualifier. /// <para> /// Defines the qualifier type. Amazon Web Services Private CA supports the use of a URI /// for a CPS qualifier in this field. /// </para> /// </summary> [AWSProperty(Required=true)] public Qualifier Qualifier { get { return this._qualifier; } set { this._qualifier = value; } } // Check to see if Qualifier property is set internal bool IsSetQualifier() { return this._qualifier != null; } } }
81
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the PutPolicy operation. /// Attaches a resource-based policy to a private CA. /// /// /// <para> /// A policy can also be applied by sharing a private CA through Amazon Web Services Resource /// Access Manager (RAM). For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-ram.html">Attach /// a Policy for Cross-Account Access</a>. /// </para> /// /// <para> /// The policy can be displayed with <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_GetPolicy.html">GetPolicy</a> /// and removed with <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeletePolicy.html">DeletePolicy</a>. /// </para> /// <p class="title"> <b>About Policies</b> /// </para> /// <ul> <li> /// <para> /// A policy grants access on a private CA to an Amazon Web Services customer account, /// to Amazon Web Services Organizations, or to an Amazon Web Services Organizations unit. /// Policies are under the control of a CA administrator. For more information, see <a /// href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-rbp.html">Using a /// Resource Based Policy with Amazon Web Services Private CA</a>. /// </para> /// </li> <li> /// <para> /// A policy permits a user of Certificate Manager (ACM) to issue ACM certificates signed /// by a CA in another account. /// </para> /// </li> <li> /// <para> /// For ACM to manage automatic renewal of these certificates, the ACM user must configure /// a Service Linked Role (SLR). The SLR allows the ACM service to assume the identity /// of the user, subject to confirmation against the Amazon Web Services Private CA policy. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-slr.html">Using /// a Service Linked Role with ACM</a>. /// </para> /// </li> <li> /// <para> /// Updates made in Amazon Web Services Resource Manager (RAM) are reflected in policies. /// For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/pca-ram.html">Attach /// a Policy for Cross-Account Access</a>. /// </para> /// </li> </ul> /// </summary> public partial class PutPolicyRequest : AmazonACMPCARequest { private string _policy; private string _resourceArn; /// <summary> /// Gets and sets the property Policy. /// <para> /// The path and file name of a JSON-formatted IAM policy to attach to the specified private /// CA resource. If this policy does not contain all required statements or if it includes /// any statement that is not allowed, the <code>PutPolicy</code> action returns an <code>InvalidPolicyException</code>. /// For information about IAM policy and statement structure, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#access_policies-json">Overview /// of JSON Policies</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=20480)] public string Policy { get { return this._policy; } set { this._policy = value; } } // Check to see if Policy property is set internal bool IsSetPolicy() { return this._policy != null; } /// <summary> /// Gets and sets the property ResourceArn. /// <para> /// The Amazon Resource Number (ARN) of the private CA to associate with the policy. The /// ARN of the CA can be found by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// action. /// </para> /// </summary> [AWSProperty(Required=true, Min=5, Max=200)] public string ResourceArn { get { return this._resourceArn; } set { this._resourceArn = value; } } // Check to see if ResourceArn property is set internal bool IsSetResourceArn() { return this._resourceArn != null; } } }
127
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the PutPolicy operation. /// </summary> public partial class PutPolicyResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Defines a <code>PolicyInformation</code> qualifier. Amazon Web Services Private CA /// supports the <a href="https://datatracker.ietf.org/doc/html/rfc5280#section-4.2.1.4">certification /// practice statement (CPS) qualifier</a> defined in RFC 5280. /// </summary> public partial class Qualifier { private string _cpsUri; /// <summary> /// Gets and sets the property CpsUri. /// <para> /// Contains a pointer to a certification practice statement (CPS) published by the CA. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=256)] public string CpsUri { get { return this._cpsUri; } set { this._cpsUri = value; } } // Check to see if CpsUri property is set internal bool IsSetCpsUri() { return this._cpsUri != null; } } }
60
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Your request has already been completed. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RequestAlreadyProcessedException : AmazonACMPCAException { /// <summary> /// Constructs a new RequestAlreadyProcessedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RequestAlreadyProcessedException(string message) : base(message) {} /// <summary> /// Construct instance of RequestAlreadyProcessedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RequestAlreadyProcessedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RequestAlreadyProcessedException /// </summary> /// <param name="innerException"></param> public RequestAlreadyProcessedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RequestAlreadyProcessedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RequestAlreadyProcessedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RequestAlreadyProcessedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RequestAlreadyProcessedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the RequestAlreadyProcessedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected RequestAlreadyProcessedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// The request has failed for an unspecified reason. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RequestFailedException : AmazonACMPCAException { /// <summary> /// Constructs a new RequestFailedException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RequestFailedException(string message) : base(message) {} /// <summary> /// Construct instance of RequestFailedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RequestFailedException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RequestFailedException /// </summary> /// <param name="innerException"></param> public RequestFailedException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RequestFailedException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RequestFailedException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RequestFailedException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RequestFailedException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the RequestFailedException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected RequestFailedException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Your request is already in progress. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RequestInProgressException : AmazonACMPCAException { /// <summary> /// Constructs a new RequestInProgressException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public RequestInProgressException(string message) : base(message) {} /// <summary> /// Construct instance of RequestInProgressException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public RequestInProgressException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of RequestInProgressException /// </summary> /// <param name="innerException"></param> public RequestInProgressException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of RequestInProgressException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RequestInProgressException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of RequestInProgressException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public RequestInProgressException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the RequestInProgressException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected RequestInProgressException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
124
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// A resource such as a private CA, S3 bucket, certificate, audit report, or policy cannot /// be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonACMPCAException { /// <summary> /// Constructs a new ResourceNotFoundException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceNotFoundException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceNotFoundException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="innerException"></param> public ResourceNotFoundException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceNotFoundException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceNotFoundException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the ResourceNotFoundException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected ResourceNotFoundException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the RestoreCertificateAuthority operation. /// Restores a certificate authority (CA) that is in the <code>DELETED</code> state. You /// can restore a CA during the period that you defined in the <b>PermanentDeletionTimeInDays</b> /// parameter of the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DeleteCertificateAuthority.html">DeleteCertificateAuthority</a> /// action. Currently, you can specify 7 to 30 days. If you did not specify a <b>PermanentDeletionTimeInDays</b> /// value, by default you can restore the CA at any time in a 30 day period. You can check /// the time remaining in the restoration period of a private CA in the <code>DELETED</code> /// state by calling the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_DescribeCertificateAuthority.html">DescribeCertificateAuthority</a> /// or <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListCertificateAuthorities.html">ListCertificateAuthorities</a> /// actions. The status of a restored CA is set to its pre-deletion status when the <b>RestoreCertificateAuthority</b> /// action returns. To change its status to <code>ACTIVE</code>, call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> /// action. If the private CA was in the <code>PENDING_CERTIFICATE</code> state at deletion, /// you must use the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ImportCertificateAuthorityCertificate.html">ImportCertificateAuthorityCertificate</a> /// action to import a certificate authority into the private CA before it can be activated. /// You cannot restore a CA after the restoration period has ended. /// </summary> public partial class RestoreCertificateAuthorityRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// action. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } } }
78
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the RestoreCertificateAuthority operation. /// </summary> public partial class RestoreCertificateAuthorityResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Certificate revocation information used by the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a> /// and <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UpdateCertificateAuthority.html">UpdateCertificateAuthority</a> /// actions. Your private certificate authority (CA) can configure Online Certificate /// Status Protocol (OCSP) support and/or maintain a certificate revocation list (CRL). /// OCSP returns validation information about certificates as requested by clients, and /// a CRL contains an updated list of certificates revoked by your CA. For more information, /// see <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_RevokeCertificate.html">RevokeCertificate</a> /// and <a href="https://docs.aws.amazon.com/privateca/latest/userguide/revocation-setup.html">Setting /// up a certificate revocation method</a> in the <i>Amazon Web Services Private Certificate /// Authority User Guide</i>. /// </summary> public partial class RevocationConfiguration { private CrlConfiguration _crlConfiguration; private OcspConfiguration _ocspConfiguration; /// <summary> /// Gets and sets the property CrlConfiguration. /// <para> /// Configuration of the certificate revocation list (CRL), if any, maintained by your /// private CA. A CRL is typically updated approximately 30 minutes after a certificate /// is revoked. If for any reason a CRL update fails, Amazon Web Services Private CA makes /// further attempts every 15 minutes. /// </para> /// </summary> public CrlConfiguration CrlConfiguration { get { return this._crlConfiguration; } set { this._crlConfiguration = value; } } // Check to see if CrlConfiguration property is set internal bool IsSetCrlConfiguration() { return this._crlConfiguration != null; } /// <summary> /// Gets and sets the property OcspConfiguration. /// <para> /// Configuration of Online Certificate Status Protocol (OCSP) support, if any, maintained /// by your private CA. When you revoke a certificate, OCSP responses may take up to 60 /// minutes to reflect the new status. /// </para> /// </summary> public OcspConfiguration OcspConfiguration { get { return this._ocspConfiguration; } set { this._ocspConfiguration = value; } } // Check to see if OcspConfiguration property is set internal bool IsSetOcspConfiguration() { return this._ocspConfiguration != null; } } }
90
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the RevokeCertificate operation. /// Revokes a certificate that was issued inside Amazon Web Services Private CA. If you /// enable a certificate revocation list (CRL) when you create or update your private /// CA, information about the revoked certificates will be included in the CRL. Amazon /// Web Services Private CA writes the CRL to an S3 bucket that you specify. A CRL is /// typically updated approximately 30 minutes after a certificate is revoked. If for /// any reason the CRL update fails, Amazon Web Services Private CA attempts makes further /// attempts every 15 minutes. With Amazon CloudWatch, you can create alarms for the metrics /// <code>CRLGenerated</code> and <code>MisconfiguredCRLBucket</code>. For more information, /// see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaCloudWatch.html">Supported /// CloudWatch Metrics</a>. /// /// <note> /// <para> /// Both Amazon Web Services Private CA and the IAM principal must have permission to /// write to the S3 bucket that you specify. If the IAM principal making the call does /// not have permission to write to the bucket, then an exception is thrown. For more /// information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/crl-planning.html#s3-policies">Access /// policies for CRLs in Amazon S3</a>. /// </para> /// </note> /// <para> /// Amazon Web Services Private CA also writes revocation information to the audit report. /// For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthorityAuditReport.html">CreateCertificateAuthorityAuditReport</a>. /// </para> /// <note> /// <para> /// You cannot revoke a root CA self-signed certificate. /// </para> /// </note> /// </summary> public partial class RevokeCertificateRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private string _certificateSerial; private RevocationReason _revocationReason; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property CertificateSerial. /// <para> /// Serial number of the certificate to be revoked. This must be in hexadecimal format. /// You can retrieve the serial number by calling <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_GetCertificate.html">GetCertificate</a> /// with the Amazon Resource Name (ARN) of the certificate you want and the ARN of your /// private CA. The <b>GetCertificate</b> action retrieves the certificate in the PEM /// format. You can use the following OpenSSL command to list the certificate in text /// format and copy the hexadecimal serial number. /// </para> /// /// <para> /// <code>openssl x509 -in <i>file_path</i> -text -noout</code> /// </para> /// /// <para> /// You can also copy the serial number from the console or use the <a href="https://docs.aws.amazon.com/acm/latest/APIReference/API_DescribeCertificate.html">DescribeCertificate</a> /// action in the <i>Certificate Manager API Reference</i>. /// </para> /// </summary> [AWSProperty(Required=true, Min=0, Max=128)] public string CertificateSerial { get { return this._certificateSerial; } set { this._certificateSerial = value; } } // Check to see if CertificateSerial property is set internal bool IsSetCertificateSerial() { return this._certificateSerial != null; } /// <summary> /// Gets and sets the property RevocationReason. /// <para> /// Specifies why you revoked the certificate. /// </para> /// </summary> [AWSProperty(Required=true)] public RevocationReason RevocationReason { get { return this._revocationReason; } set { this._revocationReason = value; } } // Check to see if RevocationReason property is set internal bool IsSetRevocationReason() { return this._revocationReason != null; } } }
147
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the RevokeCertificate operation. /// </summary> public partial class RevokeCertificateResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Tags are labels that you can use to identify and organize your private CAs. Each tag /// consists of a key and an optional value. You can associate up to 50 tags with a private /// CA. To add one or more tags to a private CA, call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_TagCertificateAuthority.html">TagCertificateAuthority</a> /// action. To remove a tag, call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UntagCertificateAuthority.html">UntagCertificateAuthority</a> /// action. /// </summary> public partial class Tag { private string _key; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// Key (name) of the tag. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=128)] public string Key { get { return this._key; } set { this._key = value; } } // Check to see if Key property is set internal bool IsSetKey() { return this._key != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// Value of the tag. /// </para> /// </summary> [AWSProperty(Min=0, Max=256)] public string Value { get { return this._value; } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value != null; } } }
82
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the TagCertificateAuthority operation. /// Adds one or more tags to your private CA. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a key and an /// optional value. You specify the private CA on input by its Amazon Resource Name (ARN). /// You specify the tag by using a key-value pair. You can apply a tag to just one private /// CA if you want to identify a specific characteristic of that CA, or you can apply /// the same tag to multiple private CAs if you want to filter for a common relationship /// among those CAs. To remove one or more tags, use the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_UntagCertificateAuthority.html">UntagCertificateAuthority</a> /// action. Call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListTags.html">ListTags</a> /// action to see what tags are associated with your CA. /// /// <note> /// <para> /// To attach tags to a private CA during the creation procedure, a CA administrator must /// first associate an inline IAM policy with the <code>CreateCertificateAuthority</code> /// action and explicitly allow tagging. For more information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/auth-InlinePolicies.html#policy-tag-ca">Attaching /// tags to a CA at the time of creation</a>. /// </para> /// </note> /// </summary> public partial class TagCertificateAuthorityRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Tags. /// <para> /// List of tags to be associated with the CA. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
102
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the TagCertificateAuthority operation. /// </summary> public partial class TagCertificateAuthorityResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// You can associate up to 50 tags with a private CA. Exception information is contained /// in the exception message field. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class TooManyTagsException : AmazonACMPCAException { /// <summary> /// Constructs a new TooManyTagsException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public TooManyTagsException(string message) : base(message) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public TooManyTagsException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="innerException"></param> public TooManyTagsException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public TooManyTagsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of TooManyTagsException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public TooManyTagsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) {} #if !NETSTANDARD /// <summary> /// Constructs a new instance of the TooManyTagsException class with serialized data. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception> /// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception> protected TooManyTagsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } /// <summary> /// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception. /// </summary> /// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param> /// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param> /// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception> #if BCL35 [System.Security.Permissions.SecurityPermission( System.Security.Permissions.SecurityAction.LinkDemand, Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)] #endif [System.Security.SecurityCritical] // These FxCop rules are giving false-positives for this method [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")] [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")] public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) { base.GetObjectData(info, context); } #endif } }
125
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UntagCertificateAuthority operation. /// Remove one or more tags from your private CA. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this action, the tag /// will be removed regardless of value. If you specify a value, the tag is removed only /// if it is associated with the specified value. To add tags to a private CA, use the /// <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_TagCertificateAuthority.html">TagCertificateAuthority</a>. /// Call the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_ListTags.html">ListTags</a> /// action to see what tags are associated with your CA. /// </summary> public partial class UntagCertificateAuthorityRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) that was returned when you called <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CreateCertificateAuthority.html">CreateCertificateAuthority</a>. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property Tags. /// <para> /// List of tags to be removed from the CA. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=50)] public List<Tag> Tags { get { return this._tags; } set { this._tags = value; } } // Check to see if Tags property is set internal bool IsSetTags() { return this._tags != null && this._tags.Count > 0; } } }
91
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UntagCertificateAuthority operation. /// </summary> public partial class UntagCertificateAuthorityResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Container for the parameters to the UpdateCertificateAuthority operation. /// Updates the status or configuration of a private certificate authority (CA). Your /// private CA must be in the <code>ACTIVE</code> or <code>DISABLED</code> state before /// you can update it. You can disable a private CA that is in the <code>ACTIVE</code> /// state or make a CA that is in the <code>DISABLED</code> state active again. /// /// <note> /// <para> /// Both Amazon Web Services Private CA and the IAM principal must have permission to /// write to the S3 bucket that you specify. If the IAM principal making the call does /// not have permission to write to the bucket, then an exception is thrown. For more /// information, see <a href="https://docs.aws.amazon.com/privateca/latest/userguide/crl-planning.html#s3-policies">Access /// policies for CRLs in Amazon S3</a>. /// </para> /// </note> /// </summary> public partial class UpdateCertificateAuthorityRequest : AmazonACMPCARequest { private string _certificateAuthorityArn; private RevocationConfiguration _revocationConfiguration; private CertificateAuthorityStatus _status; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// Amazon Resource Name (ARN) of the private CA that issued the certificate to be revoked. /// This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:<i>region</i>:<i>account</i>:certificate-authority/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [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; } /// <summary> /// Gets and sets the property RevocationConfiguration. /// <para> /// Contains information to enable Online Certificate Status Protocol (OCSP) support, /// to enable a certificate revocation list (CRL), to enable both, or to enable neither. /// If this parameter is not supplied, existing capibilites remain unchanged. For more /// information, see the <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_OcspConfiguration.html">OcspConfiguration</a> /// and <a href="https://docs.aws.amazon.com/privateca/latest/APIReference/API_CrlConfiguration.html">CrlConfiguration</a> /// types. /// </para> /// <note> /// <para> /// The following requirements apply to revocation configurations. /// </para> /// <ul> <li> /// <para> /// A configuration disabling CRLs or OCSP must contain only the <code>Enabled=False</code> /// parameter, and will fail if other parameters such as <code>CustomCname</code> or <code>ExpirationInDays</code> /// are included. /// </para> /// </li> <li> /// <para> /// In a CRL configuration, the <code>S3BucketName</code> parameter must conform to <a /// href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/bucketnamingrules.html">Amazon /// S3 bucket naming rules</a>. /// </para> /// </li> <li> /// <para> /// A configuration containing a custom Canonical Name (CNAME) parameter for CRLs or OCSP /// must conform to <a href="https://www.ietf.org/rfc/rfc2396.txt">RFC2396</a> restrictions /// on the use of special characters in a CNAME. /// </para> /// </li> <li> /// <para> /// In a CRL or OCSP configuration, the value of a CNAME parameter must not include a /// protocol prefix such as "http://" or "https://". /// </para> /// </li> </ul> </note> /// </summary> 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; } /// <summary> /// Gets and sets the property Status. /// <para> /// Status of your private CA. /// </para> /// </summary> 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; } } }
149
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// This is the response object from the UpdateCertificateAuthority operation. /// </summary> public partial class UpdateCertificateAuthorityResponse : AmazonWebServiceResponse { } }
38
aws-sdk-net
aws
C#
/* * 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 { /// <summary> /// Validity specifies the period of time during which a certificate is valid. Validity /// can be expressed as an explicit date and time when the validity of a certificate starts /// or expires, or as a span of time after issuance, stated in days, months, or years. /// For more information, see <a href="https://tools.ietf.org/html/rfc5280#section-4.1.2.5">Validity</a> /// in RFC 5280. /// /// /// <para> /// Amazon Web Services Private CA API consumes the <code>Validity</code> data type differently /// in two distinct parameters of the <code>IssueCertificate</code> action. The required /// parameter <code>IssueCertificate</code>:<code>Validity</code> specifies the end of /// a certificate's validity period. The optional parameter <code>IssueCertificate</code>:<code>ValidityNotBefore</code> /// specifies a customized starting time for the validity period. /// </para> /// </summary> public partial class Validity { private ValidityPeriodType _type; private long? _value; /// <summary> /// Gets and sets the property Type. /// <para> /// Determines how <i>Amazon Web Services Private CA</i> interprets the <code>Value</code> /// parameter, an integer. Supported validity types include those listed below. Type definitions /// with values include a sample input value and the resulting output. /// </para> /// /// <para> /// <code>END_DATE</code>: The specific date and time when the certificate will expire, /// expressed using UTCTime (YYMMDDHHMMSS) or GeneralizedTime (YYYYMMDDHHMMSS) format. /// When UTCTime is used, if the year field (YY) is greater than or equal to 50, the year /// is interpreted as 19YY. If the year field is less than 50, the year is interpreted /// as 20YY. /// </para> /// <ul> <li> /// <para> /// Sample input value: 491231235959 (UTCTime format) /// </para> /// </li> <li> /// <para> /// Output expiration date/time: 12/31/2049 23:59:59 /// </para> /// </li> </ul> /// <para> /// <code>ABSOLUTE</code>: The specific date and time when the validity of a certificate /// will start or expire, expressed in seconds since the Unix Epoch. /// </para> /// <ul> <li> /// <para> /// Sample input value: 2524608000 /// </para> /// </li> <li> /// <para> /// Output expiration date/time: 01/01/2050 00:00:00 /// </para> /// </li> </ul> /// <para> /// <code>DAYS</code>, <code>MONTHS</code>, <code>YEARS</code>: The relative time from /// the moment of issuance until the certificate will expire, expressed in days, months, /// or years. /// </para> /// /// <para> /// Example if <code>DAYS</code>, issued on 10/12/2020 at 12:34:54 UTC: /// </para> /// <ul> <li> /// <para> /// Sample input value: 90 /// </para> /// </li> <li> /// <para> /// Output expiration date: 01/10/2020 12:34:54 UTC /// </para> /// </li> </ul> /// <para> /// The minimum validity duration for a certificate using relative time (<code>DAYS</code>) /// is one day. The minimum validity for a certificate using absolute time (<code>ABSOLUTE</code> /// or <code>END_DATE</code>) is one second. /// </para> /// </summary> [AWSProperty(Required=true)] public ValidityPeriodType Type { get { return this._type; } set { this._type = value; } } // Check to see if Type property is set internal bool IsSetType() { return this._type != null; } /// <summary> /// Gets and sets the property Value. /// <para> /// A long integer interpreted according to the value of <code>Type</code>, below. /// </para> /// </summary> [AWSProperty(Required=true, Min=1)] public long Value { get { return this._value.GetValueOrDefault(); } set { this._value = value; } } // Check to see if Value property is set internal bool IsSetValue() { return this._value.HasValue; } } }
146
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// AccessDescription Marshaller /// </summary> public class AccessDescriptionMarshaller : IRequestMarshaller<AccessDescription, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AccessDescription requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessLocation()) { context.Writer.WritePropertyName("AccessLocation"); context.Writer.WriteObjectStart(); var marshaller = GeneralNameMarshaller.Instance; marshaller.Marshall(requestObject.AccessLocation, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetAccessMethod()) { context.Writer.WritePropertyName("AccessMethod"); context.Writer.WriteObjectStart(); var marshaller = AccessMethodMarshaller.Instance; marshaller.Marshall(requestObject.AccessMethod, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AccessDescriptionMarshaller Instance = new AccessDescriptionMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDescription Object /// </summary> public class AccessDescriptionUnmarshaller : IUnmarshaller<AccessDescription, XmlUnmarshallerContext>, IUnmarshaller<AccessDescription, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AccessDescription IUnmarshaller<AccessDescription, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDescription Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AccessDescription unmarshalledObject = new AccessDescription(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccessLocation", targetDepth)) { var unmarshaller = GeneralNameUnmarshaller.Instance; unmarshalledObject.AccessLocation = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("AccessMethod", targetDepth)) { var unmarshaller = AccessMethodUnmarshaller.Instance; unmarshalledObject.AccessMethod = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AccessDescriptionUnmarshaller _instance = new AccessDescriptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDescriptionUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// AccessMethod Marshaller /// </summary> public class AccessMethodMarshaller : IRequestMarshaller<AccessMethod, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(AccessMethod requestObject, JsonMarshallerContext context) { if(requestObject.IsSetAccessMethodType()) { context.Writer.WritePropertyName("AccessMethodType"); context.Writer.Write(requestObject.AccessMethodType); } if(requestObject.IsSetCustomObjectIdentifier()) { context.Writer.WritePropertyName("CustomObjectIdentifier"); context.Writer.Write(requestObject.CustomObjectIdentifier); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static AccessMethodMarshaller Instance = new AccessMethodMarshaller(); } }
68
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessMethod Object /// </summary> public class AccessMethodUnmarshaller : IUnmarshaller<AccessMethod, XmlUnmarshallerContext>, IUnmarshaller<AccessMethod, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> AccessMethod IUnmarshaller<AccessMethod, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessMethod Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; AccessMethod unmarshalledObject = new AccessMethod(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("AccessMethodType", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.AccessMethodType = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomObjectIdentifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CustomObjectIdentifier = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static AccessMethodUnmarshaller _instance = new AccessMethodUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessMethodUnmarshaller Instance { get { return _instance; } } } }
98
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// ApiPassthrough Marshaller /// </summary> public class ApiPassthroughMarshaller : IRequestMarshaller<ApiPassthrough, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ApiPassthrough requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExtensions()) { context.Writer.WritePropertyName("Extensions"); context.Writer.WriteObjectStart(); var marshaller = ExtensionsMarshaller.Instance; marshaller.Marshall(requestObject.Extensions, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetSubject()) { context.Writer.WritePropertyName("Subject"); context.Writer.WriteObjectStart(); var marshaller = ASN1SubjectMarshaller.Instance; marshaller.Marshall(requestObject.Subject, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ApiPassthroughMarshaller Instance = new ApiPassthroughMarshaller(); } }
78
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// ASN1Subject Marshaller /// </summary> public class ASN1SubjectMarshaller : IRequestMarshaller<ASN1Subject, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(ASN1Subject requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCommonName()) { context.Writer.WritePropertyName("CommonName"); context.Writer.Write(requestObject.CommonName); } if(requestObject.IsSetCountry()) { context.Writer.WritePropertyName("Country"); context.Writer.Write(requestObject.Country); } if(requestObject.IsSetCustomAttributes()) { context.Writer.WritePropertyName("CustomAttributes"); context.Writer.WriteArrayStart(); foreach(var requestObjectCustomAttributesListValue in requestObject.CustomAttributes) { context.Writer.WriteObjectStart(); var marshaller = CustomAttributeMarshaller.Instance; marshaller.Marshall(requestObjectCustomAttributesListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetDistinguishedNameQualifier()) { context.Writer.WritePropertyName("DistinguishedNameQualifier"); context.Writer.Write(requestObject.DistinguishedNameQualifier); } if(requestObject.IsSetGenerationQualifier()) { context.Writer.WritePropertyName("GenerationQualifier"); context.Writer.Write(requestObject.GenerationQualifier); } if(requestObject.IsSetGivenName()) { context.Writer.WritePropertyName("GivenName"); context.Writer.Write(requestObject.GivenName); } if(requestObject.IsSetInitials()) { context.Writer.WritePropertyName("Initials"); context.Writer.Write(requestObject.Initials); } if(requestObject.IsSetLocality()) { context.Writer.WritePropertyName("Locality"); context.Writer.Write(requestObject.Locality); } if(requestObject.IsSetOrganization()) { context.Writer.WritePropertyName("Organization"); context.Writer.Write(requestObject.Organization); } if(requestObject.IsSetOrganizationalUnit()) { context.Writer.WritePropertyName("OrganizationalUnit"); context.Writer.Write(requestObject.OrganizationalUnit); } if(requestObject.IsSetPseudonym()) { context.Writer.WritePropertyName("Pseudonym"); context.Writer.Write(requestObject.Pseudonym); } if(requestObject.IsSetSerialNumber()) { context.Writer.WritePropertyName("SerialNumber"); context.Writer.Write(requestObject.SerialNumber); } if(requestObject.IsSetState()) { context.Writer.WritePropertyName("State"); context.Writer.Write(requestObject.State); } if(requestObject.IsSetSurname()) { context.Writer.WritePropertyName("Surname"); context.Writer.Write(requestObject.Surname); } if(requestObject.IsSetTitle()) { context.Writer.WritePropertyName("Title"); context.Writer.Write(requestObject.Title); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ASN1SubjectMarshaller Instance = new ASN1SubjectMarshaller(); } }
156
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ASN1Subject Object /// </summary> public class ASN1SubjectUnmarshaller : IUnmarshaller<ASN1Subject, XmlUnmarshallerContext>, IUnmarshaller<ASN1Subject, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ASN1Subject IUnmarshaller<ASN1Subject, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ASN1Subject Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ASN1Subject unmarshalledObject = new ASN1Subject(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CommonName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CommonName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Country", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Country = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CustomAttributes", targetDepth)) { var unmarshaller = new ListUnmarshaller<CustomAttribute, CustomAttributeUnmarshaller>(CustomAttributeUnmarshaller.Instance); unmarshalledObject.CustomAttributes = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DistinguishedNameQualifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DistinguishedNameQualifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GenerationQualifier", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.GenerationQualifier = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("GivenName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.GivenName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Initials", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Initials = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Locality", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Locality = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Organization", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Organization = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OrganizationalUnit", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OrganizationalUnit = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Pseudonym", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Pseudonym = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SerialNumber", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SerialNumber = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("State", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.State = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Surname", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Surname = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Title", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Title = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ASN1SubjectUnmarshaller _instance = new ASN1SubjectUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ASN1SubjectUnmarshaller Instance { get { return _instance; } } } }
176
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// CertificateAuthorityConfiguration Marshaller /// </summary> public class CertificateAuthorityConfigurationMarshaller : IRequestMarshaller<CertificateAuthorityConfiguration, JsonMarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="requestObject"></param> /// <param name="context"></param> /// <returns></returns> public void Marshall(CertificateAuthorityConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCsrExtensions()) { context.Writer.WritePropertyName("CsrExtensions"); context.Writer.WriteObjectStart(); var marshaller = CsrExtensionsMarshaller.Instance; marshaller.Marshall(requestObject.CsrExtensions, context); context.Writer.WriteObjectEnd(); } if(requestObject.IsSetKeyAlgorithm()) { context.Writer.WritePropertyName("KeyAlgorithm"); context.Writer.Write(requestObject.KeyAlgorithm); } if(requestObject.IsSetSigningAlgorithm()) { context.Writer.WritePropertyName("SigningAlgorithm"); context.Writer.Write(requestObject.SigningAlgorithm); } if(requestObject.IsSetSubject()) { context.Writer.WritePropertyName("Subject"); context.Writer.WriteObjectStart(); var marshaller = ASN1SubjectMarshaller.Instance; marshaller.Marshall(requestObject.Subject, context); context.Writer.WriteObjectEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CertificateAuthorityConfigurationMarshaller Instance = new CertificateAuthorityConfigurationMarshaller(); } }
90
aws-sdk-net
aws
C#
/* * 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.Globalization; using System.IO; using System.Net; using System.Text; using System.Xml.Serialization; using Amazon.ACMPCA.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.ACMPCA.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CertificateAuthorityConfiguration Object /// </summary> public class CertificateAuthorityConfigurationUnmarshaller : IUnmarshaller<CertificateAuthorityConfiguration, XmlUnmarshallerContext>, IUnmarshaller<CertificateAuthorityConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CertificateAuthorityConfiguration IUnmarshaller<CertificateAuthorityConfiguration, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context) { throw new NotImplementedException(); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public CertificateAuthorityConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CertificateAuthorityConfiguration unmarshalledObject = new CertificateAuthorityConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CsrExtensions", targetDepth)) { var unmarshaller = CsrExtensionsUnmarshaller.Instance; unmarshalledObject.CsrExtensions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KeyAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KeyAlgorithm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SigningAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SigningAlgorithm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Subject", targetDepth)) { var unmarshaller = ASN1SubjectUnmarshaller.Instance; unmarshalledObject.Subject = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CertificateAuthorityConfigurationUnmarshaller _instance = new CertificateAuthorityConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CertificateAuthorityConfigurationUnmarshaller Instance { get { return _instance; } } } }
110