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-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the RemoveTagsFromCertificate operation. /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> public partial class RemoveTagsFromCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; private List<Tag> _tags = new List<Tag>(); /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains the ARN of the ACM Certificate with one or more tags that you /// want to remove. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] 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 Tags. /// <para> /// The key-value pair that defines the tag to remove. /// </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; } } }
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the RemoveTagsFromCertificate operation. /// </summary> public partial class RemoveTagsFromCertificateResponse : 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-2015-12-08.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.CertificateManager.Model { /// <summary> /// Contains information about the status of ACM's <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for the certificate. This structure exists only when the certificate type /// is <code>AMAZON_ISSUED</code>. /// </summary> public partial class RenewalSummary { private List<DomainValidation> _domainValidationOptions = new List<DomainValidation>(); private RenewalStatus _renewalStatus; private FailureReason _renewalStatusReason; private DateTime? _updatedAt; /// <summary> /// Gets and sets the property DomainValidationOptions. /// <para> /// Contains information about the validation of each domain name in the certificate, /// as it pertains to ACM's <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a>. This is different from the initial validation that occurs as a result /// of the <a>RequestCertificate</a> request. This field exists only when the certificate /// type is <code>AMAZON_ISSUED</code>. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=1000)] public List<DomainValidation> DomainValidationOptions { get { return this._domainValidationOptions; } set { this._domainValidationOptions = value; } } // Check to see if DomainValidationOptions property is set internal bool IsSetDomainValidationOptions() { return this._domainValidationOptions != null && this._domainValidationOptions.Count > 0; } /// <summary> /// Gets and sets the property RenewalStatus. /// <para> /// The status of ACM's <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> of the certificate. /// </para> /// </summary> [AWSProperty(Required=true)] public RenewalStatus RenewalStatus { get { return this._renewalStatus; } set { this._renewalStatus = value; } } // Check to see if RenewalStatus property is set internal bool IsSetRenewalStatus() { return this._renewalStatus != null; } /// <summary> /// Gets and sets the property RenewalStatusReason. /// <para> /// The reason that a renewal request was unsuccessful. /// </para> /// </summary> public FailureReason RenewalStatusReason { get { return this._renewalStatusReason; } set { this._renewalStatusReason = value; } } // Check to see if RenewalStatusReason property is set internal bool IsSetRenewalStatusReason() { return this._renewalStatusReason != null; } /// <summary> /// Gets and sets the property UpdatedAt. /// <para> /// The time at which the renewal summary was last updated. /// </para> /// </summary> [AWSProperty(Required=true)] public DateTime UpdatedAt { get { return this._updatedAt.GetValueOrDefault(); } set { this._updatedAt = value; } } // Check to see if UpdatedAt property is set internal bool IsSetUpdatedAt() { return this._updatedAt.HasValue; } } }
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the RenewCertificate operation. /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> public partial class RenewCertificateRequest : AmazonCertificateManagerRequest { private string _certificateArn; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains the ARN of the ACM certificate to be renewed. This must be of /// the form: /// </para> /// /// <para> /// <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// /// <para> /// For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Names (ARNs)</a>. /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] 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; } } }
74
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the RenewCertificate operation. /// </summary> public partial class RenewCertificateResponse : 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-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the RequestCertificate operation. /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> public partial class RequestCertificateRequest : AmazonCertificateManagerRequest { private string _certificateAuthorityArn; private string _domainName; private List<DomainValidationOption> _domainValidationOptions = new List<DomainValidationOption>(); private string _idempotencyToken; private KeyAlgorithm _keyAlgorithm; private CertificateOptions _options; private List<string> _subjectAlternativeNames = new List<string>(); private List<Tag> _tags = new List<Tag>(); private ValidationMethod _validationMethod; /// <summary> /// Gets and sets the property CertificateAuthorityArn. /// <para> /// The Amazon Resource Name (ARN) of the private certificate authority (CA) that will /// be used to issue the certificate. If you do not provide an ARN and you are trying /// to request a private certificate, ACM will attempt to issue a public certificate. /// For more information about private CAs, see the <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaWelcome.html">Amazon /// Web Services Private Certificate Authority</a> user guide. The ARN must have the following /// form: /// </para> /// /// <para> /// <code>arn:aws:acm-pca:region:account:certificate-authority/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] 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 DomainName. /// <para> /// Fully qualified domain name (FQDN), such as www.example.com, that you want to secure /// with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that /// protects several sites in the same domain. For example, *.example.com protects www.example.com, /// site.example.com, and images.example.com. /// </para> /// /// <para> /// In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, /// the length of the domain name (technically, the Common Name) that you provide cannot /// exceed 64 octets (characters), including periods. To add a longer domain name, specify /// it in the Subject Alternative Name field, which supports names up to 253 octets in /// length. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=253)] public string DomainName { get { return this._domainName; } set { this._domainName = value; } } // Check to see if DomainName property is set internal bool IsSetDomainName() { return this._domainName != null; } /// <summary> /// Gets and sets the property DomainValidationOptions. /// <para> /// The domain name that you want ACM to use to send you emails so that you can validate /// domain ownership. /// </para> /// </summary> [AWSProperty(Min=1, Max=100)] public List<DomainValidationOption> DomainValidationOptions { get { return this._domainValidationOptions; } set { this._domainValidationOptions = value; } } // Check to see if DomainValidationOptions property is set internal bool IsSetDomainValidationOptions() { return this._domainValidationOptions != null && this._domainValidationOptions.Count > 0; } /// <summary> /// Gets and sets the property IdempotencyToken. /// <para> /// Customer chosen string that can be used to distinguish between calls to <code>RequestCertificate</code>. /// Idempotency tokens time out after one hour. Therefore, if you call <code>RequestCertificate</code> /// multiple times with the same idempotency token within one hour, ACM recognizes that /// you are requesting only one certificate and will issue only one. If you change the /// idempotency token for each call, ACM recognizes that you are requesting multiple certificates. /// </para> /// </summary> [AWSProperty(Min=1, Max=32)] 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 KeyAlgorithm. /// <para> /// Specifies the algorithm of the public and private key pair that your certificate uses /// to encrypt data. RSA is the default key algorithm for ACM certificates. Elliptic Curve /// Digital Signature Algorithm (ECDSA) keys are smaller, offering security comparable /// to RSA keys but with greater computing efficiency. However, ECDSA is not supported /// by all network clients. Some AWS services may require RSA keys, or only support ECDSA /// keys of a particular size, while others allow the use of either RSA and ECDSA keys /// to ensure that compatibility is not broken. Check the requirements for the AWS service /// where you plan to deploy your certificate. /// </para> /// /// <para> /// Default: RSA_2048 /// </para> /// </summary> 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 Options. /// <para> /// Currently, you can use this parameter to specify whether to add the certificate to /// a certificate transparency log. Certificate transparency makes it possible to detect /// SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates /// that have not been logged typically produce an error message in a browser. For more /// information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency">Opting /// Out of Certificate Transparency Logging</a>. /// </para> /// </summary> public CertificateOptions Options { get { return this._options; } set { this._options = value; } } // Check to see if Options property is set internal bool IsSetOptions() { return this._options != null; } /// <summary> /// Gets and sets the property SubjectAlternativeNames. /// <para> /// Additional FQDNs to be included in the Subject Alternative Name extension of the ACM /// certificate. For example, add the name www.example.net to a certificate for which /// the <code>DomainName</code> field is www.example.com if users can reach your site /// by using either name. The maximum number of domain names that you can add to an ACM /// certificate is 100. However, the initial quota is 10 domain names. If you need more /// than 10 names, you must request a quota increase. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-limits.html">Quotas</a>. /// </para> /// /// <para> /// The maximum length of a SAN DNS name is 253 octets. The name is made up of multiple /// labels separated by periods. No label can be longer than 63 octets. Consider the following /// examples: /// </para> /// <ul> <li> /// <para> /// <code>(63 octets).(63 octets).(63 octets).(61 octets)</code> is legal because the /// total length is 253 octets (63+1+63+1+63+1+61) and no label exceeds 63 octets. /// </para> /// </li> <li> /// <para> /// <code>(64 octets).(63 octets).(63 octets).(61 octets)</code> is not legal because /// the total length exceeds 253 octets (64+1+63+1+63+1+61) and the first label exceeds /// 63 octets. /// </para> /// </li> <li> /// <para> /// <code>(63 octets).(63 octets).(63 octets).(62 octets)</code> is not legal because /// the total length of the DNS name (63+1+63+1+63+1+62) exceeds 253 octets. /// </para> /// </li> </ul> /// </summary> [AWSProperty(Min=1, Max=100)] public List<string> 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; } /// <summary> /// Gets and sets the property Tags. /// <para> /// One or more resource tags to associate with the certificate. /// </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 ValidationMethod. /// <para> /// The method you want to use if you are requesting a public certificate to validate /// that you own or control domain. You can <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">validate /// with DNS</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">validate /// with email</a>. We recommend that you use DNS validation. /// </para> /// </summary> public ValidationMethod ValidationMethod { get { return this._validationMethod; } set { this._validationMethod = value; } } // Check to see if ValidationMethod property is set internal bool IsSetValidationMethod() { return this._validationMethod != null; } } }
313
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the RequestCertificate operation. /// </summary> public partial class RequestCertificateResponse : AmazonWebServiceResponse { private string _certificateArn; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains the ARN of the issued certificate. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> [AWSProperty(Min=20, Max=2048)] 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; } } }
63
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class RequestInProgressException : AmazonCertificateManagerException { /// <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 } }
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the ResendValidationEmail operation. /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> public partial class ResendValidationEmailRequest : AmazonCertificateManagerRequest { private string _certificateArn; private string _domain; private string _validationDomain; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// String that contains the ARN of the requested certificate. The certificate ARN is /// generated and returned by the <a>RequestCertificate</a> action as soon as the request /// is made. By default, using this parameter causes email to be sent to all top-level /// domains you specified in the certificate request. The ARN must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm:us-east-1:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> /// /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] 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 Domain. /// <para> /// The fully qualified domain name (FQDN) of the certificate that needs to be validated. /// </para> /// </summary> [AWSProperty(Required=true, Min=1, Max=253)] public string Domain { get { return this._domain; } set { this._domain = value; } } // Check to see if Domain property is set internal bool IsSetDomain() { return this._domain != null; } /// <summary> /// Gets and sets the property ValidationDomain. /// <para> /// The base validation domain that will act as the suffix of the email addresses that /// are used to send the emails. This must be the same as the <code>Domain</code> value /// or a superdomain of the <code>Domain</code> value. For example, if you requested a /// certificate for <code>site.subdomain.example.com</code> and specify a <b>ValidationDomain</b> /// of <code>subdomain.example.com</code>, ACM sends email to the domain registrant, technical /// contact, and administrative contact in WHOIS and the following five addresses: /// </para> /// <ul> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> <li> /// <para> /// [email protected] /// </para> /// </li> </ul> /// </summary> [AWSProperty(Required=true, Min=1, Max=253)] public string ValidationDomain { get { return this._validationDomain; } set { this._validationDomain = value; } } // Check to see if ValidationDomain property is set internal bool IsSetValidationDomain() { return this._validationDomain != null; } } }
142
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the ResendValidationEmail operation. /// </summary> public partial class ResendValidationEmailResponse : 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-2015-12-08.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.CertificateManager.Model { /// <summary> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceInUseException : AmazonCertificateManagerException { /// <summary> /// Constructs a new ResourceInUseException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ResourceInUseException(string message) : base(message) {} /// <summary> /// Construct instance of ResourceInUseException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ResourceInUseException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ResourceInUseException /// </summary> /// <param name="innerException"></param> public ResourceInUseException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ResourceInUseException /// </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 ResourceInUseException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ResourceInUseException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ResourceInUseException(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 ResourceInUseException 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 ResourceInUseException(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-2015-12-08.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.CertificateManager.Model { /// <summary> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ResourceNotFoundException : AmazonCertificateManagerException { /// <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-2015-12-08.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.CertificateManager.Model { /// <summary> /// Contains a DNS record value that you can use to validate ownership or control of a /// domain. This is used by the <a>DescribeCertificate</a> action. /// </summary> public partial class ResourceRecord { private string _name; private RecordType _type; private string _value; /// <summary> /// Gets and sets the property Name. /// <para> /// The name of the DNS record to create in your domain. This is supplied by ACM. /// </para> /// </summary> [AWSProperty(Required=true)] public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// <summary> /// Gets and sets the property Type. /// <para> /// The type of DNS record. Currently this can be <code>CNAME</code>. /// </para> /// </summary> [AWSProperty(Required=true)] public RecordType 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> /// The value of the CNAME record to add to your DNS database. This is supplied by ACM. /// </para> /// </summary> [AWSProperty(Required=true)] 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; } } }
99
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// A key-value pair that identifies or specifies metadata about an ACM resource. /// </summary> public partial class Tag { private string _key; private string _value; /// <summary> /// Gets and sets the property Key. /// <para> /// The key 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> /// The 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; } } }
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// A specified tag did not comply with an existing tag policy and was rejected. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class TagPolicyException : AmazonCertificateManagerException { /// <summary> /// Constructs a new TagPolicyException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public TagPolicyException(string message) : base(message) {} /// <summary> /// Construct instance of TagPolicyException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public TagPolicyException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of TagPolicyException /// </summary> /// <param name="innerException"></param> public TagPolicyException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of TagPolicyException /// </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 TagPolicyException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of TagPolicyException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public TagPolicyException(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 TagPolicyException 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 TagPolicyException(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-2015-12-08.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.CertificateManager.Model { /// <summary> /// The request was denied because it exceeded a quota. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ThrottlingException : AmazonCertificateManagerException { /// <summary> /// Constructs a new ThrottlingException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ThrottlingException(string message) : base(message) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ThrottlingException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="innerException"></param> public ThrottlingException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ThrottlingException /// </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 ThrottlingException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ThrottlingException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ThrottlingException(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 ThrottlingException 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 ThrottlingException(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-2015-12-08.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.CertificateManager.Model { /// <summary> /// The request contains too many tags. Try the request again with fewer tags. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class TooManyTagsException : AmazonCertificateManagerException { /// <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 } }
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-2015-12-08.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.CertificateManager.Model { /// <summary> /// Container for the parameters to the UpdateCertificateOptions operation. /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> public partial class UpdateCertificateOptionsRequest : AmazonCertificateManagerRequest { private string _certificateArn; private CertificateOptions _options; /// <summary> /// Gets and sets the property CertificateArn. /// <para> /// ARN of the requested certificate to update. This must be of the form: /// </para> /// /// <para> /// <code>arn:aws:acm:us-east-1:<i>account</i>:certificate/<i>12345678-1234-1234-1234-123456789012</i> /// </code> /// </para> /// </summary> [AWSProperty(Required=true, Min=20, Max=2048)] 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 Options. /// <para> /// Use to update the options for your certificate. Currently, you can specify whether /// to add your certificate to a transparency log. Certificate transparency makes it possible /// to detect SSL/TLS certificates that have been mistakenly or maliciously issued. Certificates /// that have not been logged typically produce an error message in a browser. /// </para> /// </summary> [AWSProperty(Required=true)] public CertificateOptions Options { get { return this._options; } set { this._options = value; } } // Check to see if Options property is set internal bool IsSetOptions() { return this._options != 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-2015-12-08.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.CertificateManager.Model { /// <summary> /// This is the response object from the UpdateCertificateOptions operation. /// </summary> public partial class UpdateCertificateOptionsResponse : 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-2015-12-08.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.CertificateManager.Model { /// <summary> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class ValidationException : AmazonCertificateManagerException { /// <summary> /// Constructs a new ValidationException with the specified error /// message. /// </summary> /// <param name="message"> /// Describes the error encountered. /// </param> public ValidationException(string message) : base(message) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public ValidationException(string message, Exception innerException) : base(message, innerException) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="innerException"></param> public ValidationException(Exception innerException) : base(innerException) {} /// <summary> /// Construct instance of ValidationException /// </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 ValidationException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) {} /// <summary> /// Construct instance of ValidationException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public ValidationException(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 ValidationException 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 ValidationException(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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AccessDeniedException Object /// </summary> public class AccessDeniedExceptionUnmarshaller : IErrorResponseUnmarshaller<AccessDeniedException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public AccessDeniedException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); AccessDeniedException unmarshalledObject = new AccessDeniedException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static AccessDeniedExceptionUnmarshaller _instance = new AccessDeniedExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static AccessDeniedExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// AddTagsToCertificate Request Marshaller /// </summary> public class AddTagsToCertificateRequestMarshaller : IMarshaller<IRequest, AddTagsToCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((AddTagsToCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(AddTagsToCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.AddTagsToCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static AddTagsToCertificateRequestMarshaller _instance = new AddTagsToCertificateRequestMarshaller(); internal static AddTagsToCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AddTagsToCertificateRequestMarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for AddTagsToCertificate operation /// </summary> public class AddTagsToCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { AddTagsToCertificateResponse response = new AddTagsToCertificateResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTagException")) { return InvalidTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TagPolicyException")) { return TagPolicyExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException")) { return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static AddTagsToCertificateResponseUnmarshaller _instance = new AddTagsToCertificateResponseUnmarshaller(); internal static AddTagsToCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static AddTagsToCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
123
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CertificateDetail Object /// </summary> public class CertificateDetailUnmarshaller : IUnmarshaller<CertificateDetail, XmlUnmarshallerContext>, IUnmarshaller<CertificateDetail, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CertificateDetail IUnmarshaller<CertificateDetail, 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 CertificateDetail Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CertificateDetail unmarshalledObject = new CertificateDetail(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CertificateArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CertificateArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CertificateAuthorityArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CertificateAuthorityArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DomainName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DomainName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DomainValidationOptions", targetDepth)) { var unmarshaller = new ListUnmarshaller<DomainValidation, DomainValidationUnmarshaller>(DomainValidationUnmarshaller.Instance); unmarshalledObject.DomainValidationOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExtendedKeyUsages", targetDepth)) { var unmarshaller = new ListUnmarshaller<ExtendedKeyUsage, ExtendedKeyUsageUnmarshaller>(ExtendedKeyUsageUnmarshaller.Instance); unmarshalledObject.ExtendedKeyUsages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("FailureReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.FailureReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ImportedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ImportedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InUseBy", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.InUseBy = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IssuedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.IssuedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Issuer", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Issuer = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KeyAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KeyAlgorithm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KeyUsages", targetDepth)) { var unmarshaller = new ListUnmarshaller<KeyUsage, KeyUsageUnmarshaller>(KeyUsageUnmarshaller.Instance); unmarshalledObject.KeyUsages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NotAfter", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.NotAfter = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NotBefore", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.NotBefore = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Options", targetDepth)) { var unmarshaller = CertificateOptionsUnmarshaller.Instance; unmarshalledObject.Options = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RenewalEligibility", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RenewalEligibility = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RenewalSummary", targetDepth)) { var unmarshaller = RenewalSummaryUnmarshaller.Instance; unmarshalledObject.RenewalSummary = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RevocationReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RevocationReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RevokedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.RevokedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Serial", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Serial = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SignatureAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.SignatureAlgorithm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Subject", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Subject = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SubjectAlternativeNames", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SubjectAlternativeNames = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CertificateDetailUnmarshaller _instance = new CertificateDetailUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CertificateDetailUnmarshaller Instance { get { return _instance; } } } }
242
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// CertificateOptions Marshaller /// </summary> public class CertificateOptionsMarshaller : IRequestMarshaller<CertificateOptions, 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(CertificateOptions requestObject, JsonMarshallerContext context) { if(requestObject.IsSetCertificateTransparencyLoggingPreference()) { context.Writer.WritePropertyName("CertificateTransparencyLoggingPreference"); context.Writer.Write(requestObject.CertificateTransparencyLoggingPreference); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static CertificateOptionsMarshaller Instance = new CertificateOptionsMarshaller(); } }
62
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CertificateOptions Object /// </summary> public class CertificateOptionsUnmarshaller : IUnmarshaller<CertificateOptions, XmlUnmarshallerContext>, IUnmarshaller<CertificateOptions, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CertificateOptions IUnmarshaller<CertificateOptions, 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 CertificateOptions Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CertificateOptions unmarshalledObject = new CertificateOptions(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CertificateTransparencyLoggingPreference", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CertificateTransparencyLoggingPreference = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CertificateOptionsUnmarshaller _instance = new CertificateOptionsUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CertificateOptionsUnmarshaller Instance { get { return _instance; } } } }
92
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for CertificateSummary Object /// </summary> public class CertificateSummaryUnmarshaller : IUnmarshaller<CertificateSummary, XmlUnmarshallerContext>, IUnmarshaller<CertificateSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> CertificateSummary IUnmarshaller<CertificateSummary, 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 CertificateSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; CertificateSummary unmarshalledObject = new CertificateSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CertificateArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.CertificateArn = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CreatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.CreatedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("DomainName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DomainName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Exported", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.Exported = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ExtendedKeyUsages", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.ExtendedKeyUsages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("HasAdditionalSubjectAlternativeNames", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.HasAdditionalSubjectAlternativeNames = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ImportedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.ImportedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("InUse", targetDepth)) { var unmarshaller = BoolUnmarshaller.Instance; unmarshalledObject.InUse = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("IssuedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.IssuedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KeyAlgorithm", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.KeyAlgorithm = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("KeyUsages", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.KeyUsages = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NotAfter", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.NotAfter = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NotBefore", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.NotBefore = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RenewalEligibility", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RenewalEligibility = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RevokedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.RevokedAt = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Status", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Status = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("SubjectAlternativeNameSummaries", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.SubjectAlternativeNameSummaries = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static CertificateSummaryUnmarshaller _instance = new CertificateSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static CertificateSummaryUnmarshaller Instance { get { return _instance; } } } }
194
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ConflictException Object /// </summary> public class ConflictExceptionUnmarshaller : IErrorResponseUnmarshaller<ConflictException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ConflictException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ConflictException unmarshalledObject = new ConflictException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ConflictExceptionUnmarshaller _instance = new ConflictExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ConflictExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// DeleteCertificate Request Marshaller /// </summary> public class DeleteCertificateRequestMarshaller : IMarshaller<IRequest, DeleteCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DeleteCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DeleteCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.DeleteCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DeleteCertificateRequestMarshaller _instance = new DeleteCertificateRequestMarshaller(); internal static DeleteCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteCertificateRequestMarshaller Instance { get { return _instance; } } } }
103
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DeleteCertificate operation /// </summary> public class DeleteCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DeleteCertificateResponse response = new DeleteCertificateResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceInUseException")) { return ResourceInUseExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DeleteCertificateResponseUnmarshaller _instance = new DeleteCertificateResponseUnmarshaller(); internal static DeleteCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DeleteCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// DescribeCertificate Request Marshaller /// </summary> public class DescribeCertificateRequestMarshaller : IMarshaller<IRequest, DescribeCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((DescribeCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(DescribeCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.DescribeCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static DescribeCertificateRequestMarshaller _instance = new DescribeCertificateRequestMarshaller(); internal static DescribeCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeCertificateRequestMarshaller Instance { get { return _instance; } } } }
103
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DescribeCertificate operation /// </summary> public class DescribeCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { DescribeCertificateResponse response = new DescribeCertificateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Certificate", targetDepth)) { var unmarshaller = CertificateDetailUnmarshaller.Instance; response.Certificate = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static DescribeCertificateResponseUnmarshaller _instance = new DescribeCertificateResponseUnmarshaller(); internal static DescribeCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static DescribeCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// DomainValidationOption Marshaller /// </summary> public class DomainValidationOptionMarshaller : IRequestMarshaller<DomainValidationOption, 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(DomainValidationOption requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDomainName()) { context.Writer.WritePropertyName("DomainName"); context.Writer.Write(requestObject.DomainName); } if(requestObject.IsSetValidationDomain()) { context.Writer.WritePropertyName("ValidationDomain"); context.Writer.Write(requestObject.ValidationDomain); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static DomainValidationOptionMarshaller Instance = new DomainValidationOptionMarshaller(); } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for DomainValidation Object /// </summary> public class DomainValidationUnmarshaller : IUnmarshaller<DomainValidation, XmlUnmarshallerContext>, IUnmarshaller<DomainValidation, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> DomainValidation IUnmarshaller<DomainValidation, 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 DomainValidation Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; DomainValidation unmarshalledObject = new DomainValidation(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DomainName", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.DomainName = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ResourceRecord", targetDepth)) { var unmarshaller = ResourceRecordUnmarshaller.Instance; unmarshalledObject.ResourceRecord = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ValidationDomain", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ValidationDomain = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ValidationEmails", targetDepth)) { var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance); unmarshalledObject.ValidationEmails = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ValidationMethod", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ValidationMethod = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("ValidationStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.ValidationStatus = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static DomainValidationUnmarshaller _instance = new DomainValidationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static DomainValidationUnmarshaller Instance { get { return _instance; } } } }
122
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// ExpiryEventsConfiguration Marshaller /// </summary> public class ExpiryEventsConfigurationMarshaller : IRequestMarshaller<ExpiryEventsConfiguration, 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(ExpiryEventsConfiguration requestObject, JsonMarshallerContext context) { if(requestObject.IsSetDaysBeforeExpiry()) { context.Writer.WritePropertyName("DaysBeforeExpiry"); context.Writer.Write(requestObject.DaysBeforeExpiry); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static ExpiryEventsConfigurationMarshaller Instance = new ExpiryEventsConfigurationMarshaller(); } }
62
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ExpiryEventsConfiguration Object /// </summary> public class ExpiryEventsConfigurationUnmarshaller : IUnmarshaller<ExpiryEventsConfiguration, XmlUnmarshallerContext>, IUnmarshaller<ExpiryEventsConfiguration, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ExpiryEventsConfiguration IUnmarshaller<ExpiryEventsConfiguration, 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 ExpiryEventsConfiguration Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ExpiryEventsConfiguration unmarshalledObject = new ExpiryEventsConfiguration(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DaysBeforeExpiry", targetDepth)) { var unmarshaller = IntUnmarshaller.Instance; unmarshalledObject.DaysBeforeExpiry = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ExpiryEventsConfigurationUnmarshaller _instance = new ExpiryEventsConfigurationUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ExpiryEventsConfigurationUnmarshaller Instance { get { return _instance; } } } }
92
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// ExportCertificate Request Marshaller /// </summary> public class ExportCertificateRequestMarshaller : IMarshaller<IRequest, ExportCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ExportCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ExportCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.ExportCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } if(publicRequest.IsSetPassphrase()) { context.Writer.WritePropertyName("Passphrase"); context.Writer.Write(StringUtils.FromMemoryStream(publicRequest.Passphrase)); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ExportCertificateRequestMarshaller _instance = new ExportCertificateRequestMarshaller(); internal static ExportCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ExportCertificateRequestMarshaller Instance { get { return _instance; } } } }
109
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ExportCertificate operation /// </summary> public class ExportCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ExportCertificateResponse response = new ExportCertificateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Certificate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Certificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CertificateChain", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CertificateChain = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("PrivateKey", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.PrivateKey = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("RequestInProgressException")) { return RequestInProgressExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ExportCertificateResponseUnmarshaller _instance = new ExportCertificateResponseUnmarshaller(); internal static ExportCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ExportCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ExtendedKeyUsage Object /// </summary> public class ExtendedKeyUsageUnmarshaller : IUnmarshaller<ExtendedKeyUsage, XmlUnmarshallerContext>, IUnmarshaller<ExtendedKeyUsage, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ExtendedKeyUsage IUnmarshaller<ExtendedKeyUsage, 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 ExtendedKeyUsage Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ExtendedKeyUsage unmarshalledObject = new ExtendedKeyUsage(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("OID", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.OID = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ExtendedKeyUsageUnmarshaller _instance = new ExtendedKeyUsageUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ExtendedKeyUsageUnmarshaller 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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Filters Marshaller /// </summary> public class FiltersMarshaller : IRequestMarshaller<Filters, 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(Filters requestObject, JsonMarshallerContext context) { if(requestObject.IsSetExtendedKeyUsage()) { context.Writer.WritePropertyName("extendedKeyUsage"); context.Writer.WriteArrayStart(); foreach(var requestObjectExtendedKeyUsageListValue in requestObject.ExtendedKeyUsage) { context.Writer.Write(requestObjectExtendedKeyUsageListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetKeyTypes()) { context.Writer.WritePropertyName("keyTypes"); context.Writer.WriteArrayStart(); foreach(var requestObjectKeyTypesListValue in requestObject.KeyTypes) { context.Writer.Write(requestObjectKeyTypesListValue); } context.Writer.WriteArrayEnd(); } if(requestObject.IsSetKeyUsage()) { context.Writer.WritePropertyName("keyUsage"); context.Writer.WriteArrayStart(); foreach(var requestObjectKeyUsageListValue in requestObject.KeyUsage) { context.Writer.Write(requestObjectKeyUsageListValue); } context.Writer.WriteArrayEnd(); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static FiltersMarshaller Instance = new FiltersMarshaller(); } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// GetAccountConfiguration Request Marshaller /// </summary> public class GetAccountConfigurationRequestMarshaller : IMarshaller<IRequest, GetAccountConfigurationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetAccountConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetAccountConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.GetAccountConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; var content = "{}"; request.Content = System.Text.Encoding.UTF8.GetBytes(content); return request; } private static GetAccountConfigurationRequestMarshaller _instance = new GetAccountConfigurationRequestMarshaller(); internal static GetAccountConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetAccountConfigurationRequestMarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetAccountConfiguration operation /// </summary> public class GetAccountConfigurationResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetAccountConfigurationResponse response = new GetAccountConfigurationResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("ExpiryEvents", targetDepth)) { var unmarshaller = ExpiryEventsConfigurationUnmarshaller.Instance; response.ExpiryEvents = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetAccountConfigurationResponseUnmarshaller _instance = new GetAccountConfigurationResponseUnmarshaller(); internal static GetAccountConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetAccountConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// GetCertificate Request Marshaller /// </summary> public class GetCertificateRequestMarshaller : IMarshaller<IRequest, GetCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((GetCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(GetCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.GetCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static GetCertificateRequestMarshaller _instance = new GetCertificateRequestMarshaller(); internal static GetCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetCertificateRequestMarshaller Instance { get { return _instance; } } } }
103
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for GetCertificate operation /// </summary> public class GetCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { GetCertificateResponse response = new GetCertificateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Certificate", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.Certificate = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("CertificateChain", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CertificateChain = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("RequestInProgressException")) { return RequestInProgressExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static GetCertificateResponseUnmarshaller _instance = new GetCertificateResponseUnmarshaller(); internal static GetCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static GetCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// ImportCertificate Request Marshaller /// </summary> public class ImportCertificateRequestMarshaller : IMarshaller<IRequest, ImportCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ImportCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ImportCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.ImportCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificate()) { context.Writer.WritePropertyName("Certificate"); context.Writer.Write(StringUtils.FromMemoryStream(publicRequest.Certificate)); } if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } if(publicRequest.IsSetCertificateChain()) { context.Writer.WritePropertyName("CertificateChain"); context.Writer.Write(StringUtils.FromMemoryStream(publicRequest.CertificateChain)); } if(publicRequest.IsSetPrivateKey()) { context.Writer.WritePropertyName("PrivateKey"); context.Writer.Write(StringUtils.FromMemoryStream(publicRequest.PrivateKey)); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ImportCertificateRequestMarshaller _instance = new ImportCertificateRequestMarshaller(); internal static ImportCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ImportCertificateRequestMarshaller Instance { get { return _instance; } } } }
137
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ImportCertificate operation /// </summary> public class ImportCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ImportCertificateResponse response = new ImportCertificateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CertificateArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CertificateArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTagException")) { return InvalidTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TagPolicyException")) { return TagPolicyExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException")) { return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ImportCertificateResponseUnmarshaller _instance = new ImportCertificateResponseUnmarshaller(); internal static ImportCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ImportCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidArgsException Object /// </summary> public class InvalidArgsExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidArgsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidArgsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidArgsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidArgsException unmarshalledObject = new InvalidArgsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidArgsExceptionUnmarshaller _instance = new InvalidArgsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidArgsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidArnException Object /// </summary> public class InvalidArnExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidArnException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidArnException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidArnException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidArnException unmarshalledObject = new InvalidArnException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidArnExceptionUnmarshaller _instance = new InvalidArnExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidArnExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidDomainValidationOptionsException Object /// </summary> public class InvalidDomainValidationOptionsExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidDomainValidationOptionsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidDomainValidationOptionsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidDomainValidationOptionsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidDomainValidationOptionsException unmarshalledObject = new InvalidDomainValidationOptionsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidDomainValidationOptionsExceptionUnmarshaller _instance = new InvalidDomainValidationOptionsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidDomainValidationOptionsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidParameterException Object /// </summary> public class InvalidParameterExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidParameterException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidParameterException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidParameterException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidParameterException unmarshalledObject = new InvalidParameterException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidParameterExceptionUnmarshaller _instance = new InvalidParameterExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidParameterExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidStateException Object /// </summary> public class InvalidStateExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidStateException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidStateException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidStateException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidStateException unmarshalledObject = new InvalidStateException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidStateExceptionUnmarshaller _instance = new InvalidStateExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidStateExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for InvalidTagException Object /// </summary> public class InvalidTagExceptionUnmarshaller : IErrorResponseUnmarshaller<InvalidTagException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public InvalidTagException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public InvalidTagException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); InvalidTagException unmarshalledObject = new InvalidTagException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static InvalidTagExceptionUnmarshaller _instance = new InvalidTagExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static InvalidTagExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for KeyUsage Object /// </summary> public class KeyUsageUnmarshaller : IUnmarshaller<KeyUsage, XmlUnmarshallerContext>, IUnmarshaller<KeyUsage, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> KeyUsage IUnmarshaller<KeyUsage, 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 KeyUsage Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; KeyUsage unmarshalledObject = new KeyUsage(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static KeyUsageUnmarshaller _instance = new KeyUsageUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static KeyUsageUnmarshaller Instance { get { return _instance; } } } }
92
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for LimitExceededException Object /// </summary> public class LimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<LimitExceededException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public LimitExceededException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public LimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); LimitExceededException unmarshalledObject = new LimitExceededException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static LimitExceededExceptionUnmarshaller _instance = new LimitExceededExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static LimitExceededExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// ListCertificates Request Marshaller /// </summary> public class ListCertificatesRequestMarshaller : IMarshaller<IRequest, ListCertificatesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListCertificatesRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListCertificatesRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.ListCertificates"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateStatuses()) { context.Writer.WritePropertyName("CertificateStatuses"); context.Writer.WriteArrayStart(); foreach(var publicRequestCertificateStatusesListValue in publicRequest.CertificateStatuses) { context.Writer.Write(publicRequestCertificateStatusesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetIncludes()) { context.Writer.WritePropertyName("Includes"); context.Writer.WriteObjectStart(); var marshaller = FiltersMarshaller.Instance; marshaller.Marshall(publicRequest.Includes, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetMaxItems()) { context.Writer.WritePropertyName("MaxItems"); context.Writer.Write(publicRequest.MaxItems); } if(publicRequest.IsSetNextToken()) { context.Writer.WritePropertyName("NextToken"); context.Writer.Write(publicRequest.NextToken); } if(publicRequest.IsSetSortBy()) { context.Writer.WritePropertyName("SortBy"); context.Writer.Write(publicRequest.SortBy); } if(publicRequest.IsSetSortOrder()) { context.Writer.WritePropertyName("SortOrder"); context.Writer.Write(publicRequest.SortOrder); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListCertificatesRequestMarshaller _instance = new ListCertificatesRequestMarshaller(); internal static ListCertificatesRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListCertificatesRequestMarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListCertificates operation /// </summary> public class ListCertificatesResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListCertificatesResponse response = new ListCertificatesResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CertificateSummaryList", targetDepth)) { var unmarshaller = new ListUnmarshaller<CertificateSummary, CertificateSummaryUnmarshaller>(CertificateSummaryUnmarshaller.Instance); response.CertificateSummaryList = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("NextToken", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.NextToken = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArgsException")) { return InvalidArgsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListCertificatesResponseUnmarshaller _instance = new ListCertificatesResponseUnmarshaller(); internal static ListCertificatesResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListCertificatesResponseUnmarshaller Instance { get { return _instance; } } } }
120
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// ListTagsForCertificate Request Marshaller /// </summary> public class ListTagsForCertificateRequestMarshaller : IMarshaller<IRequest, ListTagsForCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ListTagsForCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ListTagsForCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.ListTagsForCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ListTagsForCertificateRequestMarshaller _instance = new ListTagsForCertificateRequestMarshaller(); internal static ListTagsForCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForCertificateRequestMarshaller Instance { get { return _instance; } } } }
103
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ListTagsForCertificate operation /// </summary> public class ListTagsForCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ListTagsForCertificateResponse response = new ListTagsForCertificateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Tags", targetDepth)) { var unmarshaller = new ListUnmarshaller<Tag, TagUnmarshaller>(TagUnmarshaller.Instance); response.Tags = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ListTagsForCertificateResponseUnmarshaller _instance = new ListTagsForCertificateResponseUnmarshaller(); internal static ListTagsForCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ListTagsForCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// PutAccountConfiguration Request Marshaller /// </summary> public class PutAccountConfigurationRequestMarshaller : IMarshaller<IRequest, PutAccountConfigurationRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((PutAccountConfigurationRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(PutAccountConfigurationRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.PutAccountConfiguration"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetExpiryEvents()) { context.Writer.WritePropertyName("ExpiryEvents"); context.Writer.WriteObjectStart(); var marshaller = ExpiryEventsConfigurationMarshaller.Instance; marshaller.Marshall(publicRequest.ExpiryEvents, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetIdempotencyToken()) { context.Writer.WritePropertyName("IdempotencyToken"); context.Writer.Write(publicRequest.IdempotencyToken); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static PutAccountConfigurationRequestMarshaller _instance = new PutAccountConfigurationRequestMarshaller(); internal static PutAccountConfigurationRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutAccountConfigurationRequestMarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for PutAccountConfiguration operation /// </summary> public class PutAccountConfigurationResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { PutAccountConfigurationResponse response = new PutAccountConfigurationResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("AccessDeniedException")) { return AccessDeniedExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ConflictException")) { return ConflictExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ValidationException")) { return ValidationExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static PutAccountConfigurationResponseUnmarshaller _instance = new PutAccountConfigurationResponseUnmarshaller(); internal static PutAccountConfigurationResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static PutAccountConfigurationResponseUnmarshaller Instance { get { return _instance; } } } }
111
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// RemoveTagsFromCertificate Request Marshaller /// </summary> public class RemoveTagsFromCertificateRequestMarshaller : IMarshaller<IRequest, RemoveTagsFromCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((RemoveTagsFromCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RemoveTagsFromCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.RemoveTagsFromCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static RemoveTagsFromCertificateRequestMarshaller _instance = new RemoveTagsFromCertificateRequestMarshaller(); internal static RemoveTagsFromCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RemoveTagsFromCertificateRequestMarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RemoveTagsFromCertificate operation /// </summary> public class RemoveTagsFromCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { RemoveTagsFromCertificateResponse response = new RemoveTagsFromCertificateResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTagException")) { return InvalidTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TagPolicyException")) { return TagPolicyExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException")) { return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static RemoveTagsFromCertificateResponseUnmarshaller _instance = new RemoveTagsFromCertificateResponseUnmarshaller(); internal static RemoveTagsFromCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RemoveTagsFromCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RenewalSummary Object /// </summary> public class RenewalSummaryUnmarshaller : IUnmarshaller<RenewalSummary, XmlUnmarshallerContext>, IUnmarshaller<RenewalSummary, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> RenewalSummary IUnmarshaller<RenewalSummary, 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 RenewalSummary Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; RenewalSummary unmarshalledObject = new RenewalSummary(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("DomainValidationOptions", targetDepth)) { var unmarshaller = new ListUnmarshaller<DomainValidation, DomainValidationUnmarshaller>(DomainValidationUnmarshaller.Instance); unmarshalledObject.DomainValidationOptions = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RenewalStatus", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RenewalStatus = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("RenewalStatusReason", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.RenewalStatusReason = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("UpdatedAt", targetDepth)) { var unmarshaller = DateTimeUnmarshaller.Instance; unmarshalledObject.UpdatedAt = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static RenewalSummaryUnmarshaller _instance = new RenewalSummaryUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RenewalSummaryUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// RenewCertificate Request Marshaller /// </summary> public class RenewCertificateRequestMarshaller : IMarshaller<IRequest, RenewCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((RenewCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RenewCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.RenewCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static RenewCertificateRequestMarshaller _instance = new RenewCertificateRequestMarshaller(); internal static RenewCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RenewCertificateRequestMarshaller Instance { get { return _instance; } } } }
103
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RenewCertificate operation /// </summary> public class RenewCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { RenewCertificateResponse response = new RenewCertificateResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static RenewCertificateResponseUnmarshaller _instance = new RenewCertificateResponseUnmarshaller(); internal static RenewCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RenewCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
103
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// RequestCertificate Request Marshaller /// </summary> public class RequestCertificateRequestMarshaller : IMarshaller<IRequest, RequestCertificateRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((RequestCertificateRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(RequestCertificateRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.RequestCertificate"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateAuthorityArn()) { context.Writer.WritePropertyName("CertificateAuthorityArn"); context.Writer.Write(publicRequest.CertificateAuthorityArn); } if(publicRequest.IsSetDomainName()) { context.Writer.WritePropertyName("DomainName"); context.Writer.Write(publicRequest.DomainName); } if(publicRequest.IsSetDomainValidationOptions()) { context.Writer.WritePropertyName("DomainValidationOptions"); context.Writer.WriteArrayStart(); foreach(var publicRequestDomainValidationOptionsListValue in publicRequest.DomainValidationOptions) { context.Writer.WriteObjectStart(); var marshaller = DomainValidationOptionMarshaller.Instance; marshaller.Marshall(publicRequestDomainValidationOptionsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetIdempotencyToken()) { context.Writer.WritePropertyName("IdempotencyToken"); context.Writer.Write(publicRequest.IdempotencyToken); } if(publicRequest.IsSetKeyAlgorithm()) { context.Writer.WritePropertyName("KeyAlgorithm"); context.Writer.Write(publicRequest.KeyAlgorithm); } if(publicRequest.IsSetOptions()) { context.Writer.WritePropertyName("Options"); context.Writer.WriteObjectStart(); var marshaller = CertificateOptionsMarshaller.Instance; marshaller.Marshall(publicRequest.Options, context); context.Writer.WriteObjectEnd(); } if(publicRequest.IsSetSubjectAlternativeNames()) { context.Writer.WritePropertyName("SubjectAlternativeNames"); context.Writer.WriteArrayStart(); foreach(var publicRequestSubjectAlternativeNamesListValue in publicRequest.SubjectAlternativeNames) { context.Writer.Write(publicRequestSubjectAlternativeNamesListValue); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetTags()) { context.Writer.WritePropertyName("Tags"); context.Writer.WriteArrayStart(); foreach(var publicRequestTagsListValue in publicRequest.Tags) { context.Writer.WriteObjectStart(); var marshaller = TagMarshaller.Instance; marshaller.Marshall(publicRequestTagsListValue, context); context.Writer.WriteObjectEnd(); } context.Writer.WriteArrayEnd(); } if(publicRequest.IsSetValidationMethod()) { context.Writer.WritePropertyName("ValidationMethod"); context.Writer.Write(publicRequest.ValidationMethod); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static RequestCertificateRequestMarshaller _instance = new RequestCertificateRequestMarshaller(); internal static RequestCertificateRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RequestCertificateRequestMarshaller Instance { get { return _instance; } } } }
181
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RequestCertificate operation /// </summary> public class RequestCertificateResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { RequestCertificateResponse response = new RequestCertificateResponse(); context.Read(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("CertificateArn", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; response.CertificateArn = unmarshaller.Unmarshall(context); continue; } } return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidDomainValidationOptionsException")) { return InvalidDomainValidationOptionsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidParameterException")) { return InvalidParameterExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidTagException")) { return InvalidTagExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TagPolicyException")) { return TagPolicyExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("TooManyTagsException")) { return TooManyTagsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static RequestCertificateResponseUnmarshaller _instance = new RequestCertificateResponseUnmarshaller(); internal static RequestCertificateResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static RequestCertificateResponseUnmarshaller Instance { get { return _instance; } } } }
134
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for RequestInProgressException Object /// </summary> public class RequestInProgressExceptionUnmarshaller : IErrorResponseUnmarshaller<RequestInProgressException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public RequestInProgressException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public RequestInProgressException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); RequestInProgressException unmarshalledObject = new RequestInProgressException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static RequestInProgressExceptionUnmarshaller _instance = new RequestInProgressExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static RequestInProgressExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// ResendValidationEmail Request Marshaller /// </summary> public class ResendValidationEmailRequestMarshaller : IMarshaller<IRequest, ResendValidationEmailRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((ResendValidationEmailRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(ResendValidationEmailRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.ResendValidationEmail"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } if(publicRequest.IsSetDomain()) { context.Writer.WritePropertyName("Domain"); context.Writer.Write(publicRequest.Domain); } if(publicRequest.IsSetValidationDomain()) { context.Writer.WritePropertyName("ValidationDomain"); context.Writer.Write(publicRequest.ValidationDomain); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static ResendValidationEmailRequestMarshaller _instance = new ResendValidationEmailRequestMarshaller(); internal static ResendValidationEmailRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ResendValidationEmailRequestMarshaller Instance { get { return _instance; } } } }
115
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResendValidationEmail operation /// </summary> public class ResendValidationEmailResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { ResendValidationEmailResponse response = new ResendValidationEmailResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidDomainValidationOptionsException")) { return InvalidDomainValidationOptionsExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidStateException")) { return InvalidStateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static ResendValidationEmailResponseUnmarshaller _instance = new ResendValidationEmailResponseUnmarshaller(); internal static ResendValidationEmailResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static ResendValidationEmailResponseUnmarshaller Instance { get { return _instance; } } } }
111
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceInUseException Object /// </summary> public class ResourceInUseExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceInUseException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceInUseException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceInUseException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceInUseException unmarshalledObject = new ResourceInUseException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceInUseExceptionUnmarshaller _instance = new ResourceInUseExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceInUseExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceNotFoundException Object /// </summary> public class ResourceNotFoundExceptionUnmarshaller : IErrorResponseUnmarshaller<ResourceNotFoundException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ResourceNotFoundException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ResourceNotFoundException unmarshalledObject = new ResourceNotFoundException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ResourceNotFoundExceptionUnmarshaller _instance = new ResourceNotFoundExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceNotFoundExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ResourceRecord Object /// </summary> public class ResourceRecordUnmarshaller : IUnmarshaller<ResourceRecord, XmlUnmarshallerContext>, IUnmarshaller<ResourceRecord, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> ResourceRecord IUnmarshaller<ResourceRecord, 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 ResourceRecord Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; ResourceRecord unmarshalledObject = new ResourceRecord(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Name", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Name = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Type", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Type = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static ResourceRecordUnmarshaller _instance = new ResourceRecordUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ResourceRecordUnmarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Tag Marshaller /// </summary> public class TagMarshaller : IRequestMarshaller<Tag, 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(Tag requestObject, JsonMarshallerContext context) { if(requestObject.IsSetKey()) { context.Writer.WritePropertyName("Key"); context.Writer.Write(requestObject.Key); } if(requestObject.IsSetValue()) { context.Writer.WritePropertyName("Value"); context.Writer.Write(requestObject.Value); } } /// <summary> /// Singleton Marshaller. /// </summary> public readonly static TagMarshaller Instance = new TagMarshaller(); } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TagPolicyException Object /// </summary> public class TagPolicyExceptionUnmarshaller : IErrorResponseUnmarshaller<TagPolicyException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TagPolicyException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public TagPolicyException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); TagPolicyException unmarshalledObject = new TagPolicyException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TagPolicyExceptionUnmarshaller _instance = new TagPolicyExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagPolicyExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for Tag Object /// </summary> public class TagUnmarshaller : IUnmarshaller<Tag, XmlUnmarshallerContext>, IUnmarshaller<Tag, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> Tag IUnmarshaller<Tag, 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 Tag Unmarshall(JsonUnmarshallerContext context) { context.Read(); if (context.CurrentTokenType == JsonToken.Null) return null; Tag unmarshalledObject = new Tag(); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { if (context.TestExpression("Key", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Key = unmarshaller.Unmarshall(context); continue; } if (context.TestExpression("Value", targetDepth)) { var unmarshaller = StringUnmarshaller.Instance; unmarshalledObject.Value = unmarshaller.Unmarshall(context); continue; } } return unmarshalledObject; } private static TagUnmarshaller _instance = new TagUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TagUnmarshaller 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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ThrottlingException Object /// </summary> public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ThrottlingExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for TooManyTagsException Object /// </summary> public class TooManyTagsExceptionUnmarshaller : IErrorResponseUnmarshaller<TooManyTagsException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public TooManyTagsException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public TooManyTagsException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); TooManyTagsException unmarshalledObject = new TooManyTagsException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static TooManyTagsExceptionUnmarshaller _instance = new TooManyTagsExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static TooManyTagsExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// UpdateCertificateOptions Request Marshaller /// </summary> public class UpdateCertificateOptionsRequestMarshaller : IMarshaller<IRequest, UpdateCertificateOptionsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest> { /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="input"></param> /// <returns></returns> public IRequest Marshall(AmazonWebServiceRequest input) { return this.Marshall((UpdateCertificateOptionsRequest)input); } /// <summary> /// Marshaller the request object to the HTTP request. /// </summary> /// <param name="publicRequest"></param> /// <returns></returns> public IRequest Marshall(UpdateCertificateOptionsRequest publicRequest) { IRequest request = new DefaultRequest(publicRequest, "Amazon.CertificateManager"); string target = "CertificateManager.UpdateCertificateOptions"; request.Headers["X-Amz-Target"] = target; request.Headers["Content-Type"] = "application/x-amz-json-1.1"; request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2015-12-08"; request.HttpMethod = "POST"; request.ResourcePath = "/"; using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture)) { JsonWriter writer = new JsonWriter(stringWriter); writer.WriteObjectStart(); var context = new JsonMarshallerContext(request, writer); if(publicRequest.IsSetCertificateArn()) { context.Writer.WritePropertyName("CertificateArn"); context.Writer.Write(publicRequest.CertificateArn); } if(publicRequest.IsSetOptions()) { context.Writer.WritePropertyName("Options"); context.Writer.WriteObjectStart(); var marshaller = CertificateOptionsMarshaller.Instance; marshaller.Marshall(publicRequest.Options, context); context.Writer.WriteObjectEnd(); } writer.WriteObjectEnd(); string snippet = stringWriter.ToString(); request.Content = System.Text.Encoding.UTF8.GetBytes(snippet); } return request; } private static UpdateCertificateOptionsRequestMarshaller _instance = new UpdateCertificateOptionsRequestMarshaller(); internal static UpdateCertificateOptionsRequestMarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateCertificateOptionsRequestMarshaller Instance { get { return _instance; } } } }
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for UpdateCertificateOptions operation /// </summary> public class UpdateCertificateOptionsResponseUnmarshaller : JsonResponseUnmarshaller { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context) { UpdateCertificateOptionsResponse response = new UpdateCertificateOptionsResponse(); return response; } /// <summary> /// Unmarshaller error response to exception. /// </summary> /// <param name="context"></param> /// <param name="innerException"></param> /// <param name="statusCode"></param> /// <returns></returns> public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode) { var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context); errorResponse.InnerException = innerException; errorResponse.StatusCode = statusCode; var responseBodyBytes = context.GetResponseBodyBytes(); using (var streamCopy = new MemoryStream(responseBodyBytes)) using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null)) { if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidArnException")) { return InvalidArnExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("InvalidStateException")) { return InvalidStateExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("LimitExceededException")) { return LimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } if (errorResponse.Code != null && errorResponse.Code.Equals("ResourceNotFoundException")) { return ResourceNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse); } } return new AmazonCertificateManagerException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); } private static UpdateCertificateOptionsResponseUnmarshaller _instance = new UpdateCertificateOptionsResponseUnmarshaller(); internal static UpdateCertificateOptionsResponseUnmarshaller GetInstance() { return _instance; } /// <summary> /// Gets the singleton. /// </summary> public static UpdateCertificateOptionsResponseUnmarshaller Instance { get { return _instance; } } } }
111
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-2015-12-08.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.CertificateManager.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Transform; using Amazon.Runtime.Internal.Util; using ThirdParty.Json.LitJson; namespace Amazon.CertificateManager.Model.Internal.MarshallTransformations { /// <summary> /// Response Unmarshaller for ValidationException Object /// </summary> public class ValidationExceptionUnmarshaller : IErrorResponseUnmarshaller<ValidationException, JsonUnmarshallerContext> { /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context) { return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse()); } /// <summary> /// Unmarshaller the response from the service to the response class. /// </summary> /// <param name="context"></param> /// <param name="errorResponse"></param> /// <returns></returns> public ValidationException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse) { context.Read(); ValidationException unmarshalledObject = new ValidationException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode); int targetDepth = context.CurrentDepth; while (context.ReadAtDepth(targetDepth)) { } return unmarshalledObject; } private static ValidationExceptionUnmarshaller _instance = new ValidationExceptionUnmarshaller(); /// <summary> /// Gets the singleton. /// </summary> public static ValidationExceptionUnmarshaller Instance { get { return _instance; } } } }
85
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-2015-12-08.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; namespace Amazon.CertificateManager.Model { /// <summary> /// Paginators for the CertificateManager service ///</summary> public class CertificateManagerPaginatorFactory : ICertificateManagerPaginatorFactory { private readonly IAmazonCertificateManager client; internal CertificateManagerPaginatorFactory(IAmazonCertificateManager client) { this.client = client; } /// <summary> /// Paginator for ListCertificates operation ///</summary> public IListCertificatesPaginator ListCertificates(ListCertificatesRequest request) { return new ListCertificatesPaginator(this.client, request); } } }
46
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-2015-12-08.normal.json service model. */ namespace Amazon.CertificateManager.Model { /// <summary> /// Paginators for the CertificateManager service ///</summary> public interface ICertificateManagerPaginatorFactory { /// <summary> /// Paginator for ListCertificates operation ///</summary> IListCertificatesPaginator ListCertificates(ListCertificatesRequest request); } }
33
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-2015-12-08.normal.json service model. */ using Amazon.Runtime; namespace Amazon.CertificateManager.Model { /// <summary> /// Paginator for the ListCertificates operation ///</summary> public interface IListCertificatesPaginator { /// <summary> /// Enumerable containing all full responses for the operation /// </summary> IPaginatedEnumerable<ListCertificatesResponse> Responses { get; } /// <summary> /// Enumerable containing all of the CertificateSummaryList /// </summary> IPaginatedEnumerable<CertificateSummary> CertificateSummaryList { get; } } }
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-2015-12-08.normal.json service model. */ using System; using System.Collections.Generic; using System.Text; using System.Collections; using System.Threading; using System.Threading.Tasks; using Amazon.Runtime; namespace Amazon.CertificateManager.Model { /// <summary> /// Base class for ListCertificates paginators. /// </summary> internal sealed partial class ListCertificatesPaginator : IPaginator<ListCertificatesResponse>, IListCertificatesPaginator { private readonly IAmazonCertificateManager _client; private readonly ListCertificatesRequest _request; private int _isPaginatorInUse = 0; /// <summary> /// Enumerable containing all full responses for the operation /// </summary> public IPaginatedEnumerable<ListCertificatesResponse> Responses => new PaginatedResponse<ListCertificatesResponse>(this); /// <summary> /// Enumerable containing all of the CertificateSummaryList /// </summary> public IPaginatedEnumerable<CertificateSummary> CertificateSummaryList => new PaginatedResultKeyResponse<ListCertificatesResponse, CertificateSummary>(this, (i) => i.CertificateSummaryList); internal ListCertificatesPaginator(IAmazonCertificateManager client, ListCertificatesRequest request) { this._client = client; this._request = request; } #if BCL IEnumerable<ListCertificatesResponse> IPaginator<ListCertificatesResponse>.Paginate() { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListCertificatesResponse response; do { _request.NextToken = nextToken; response = _client.ListCertificates(_request); nextToken = response.NextToken; yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif #if AWS_ASYNC_ENUMERABLES_API async IAsyncEnumerable<ListCertificatesResponse> IPaginator<ListCertificatesResponse>.PaginateAsync(CancellationToken cancellationToken = default) { if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0) { throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance."); } PaginatorUtils.SetUserAgentAdditionOnRequest(_request); var nextToken = _request.NextToken; ListCertificatesResponse response; do { _request.NextToken = nextToken; response = await _client.ListCertificatesAsync(_request, cancellationToken).ConfigureAwait(false); nextToken = response.NextToken; cancellationToken.ThrowIfCancellationRequested(); yield return response; } while (!string.IsNullOrEmpty(nextToken)); } #endif } }
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-2015-12-08.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using Amazon.CertificateManager.Model; using Amazon.CertificateManager.Model.Internal.MarshallTransformations; using Amazon.CertificateManager.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CertificateManager { /// <summary> /// Implementation for accessing CertificateManager /// /// Certificate Manager /// <para> /// You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon /// Web Services-based websites and applications. For more information about using ACM, /// see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Certificate Manager /// User Guide</a>. /// </para> /// </summary> public partial class AmazonCertificateManagerClient : AmazonServiceClient, IAmazonCertificateManager { private static IServiceMetadata serviceMetadata = new AmazonCertificateManagerMetadata(); #if BCL45 || AWS_ASYNC_ENUMERABLES_API private ICertificateManagerPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICertificateManagerPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CertificateManagerPaginatorFactory(this); } return this._paginators; } } #endif #region Constructors /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCertificateManagerClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(AmazonCertificateManagerConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCertificateManagerClient(AWSCredentials credentials) : this(credentials, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(AWSCredentials credentials, AmazonCertificateManagerConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCertificateManagerConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCertificateManagerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCertificateManagerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCertificateManagerEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddTagsToCertificate /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> public virtual AddTagsToCertificateResponse AddTagsToCertificate(AddTagsToCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToCertificateResponseUnmarshaller.Instance; return Invoke<AddTagsToCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the AddTagsToCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddTagsToCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> public virtual IAsyncResult BeginAddTagsToCertificate(AddTagsToCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the AddTagsToCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddTagsToCertificate.</param> /// /// <returns>Returns a AddTagsToCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> public virtual AddTagsToCertificateResponse EndAddTagsToCertificate(IAsyncResult asyncResult) { return EndInvoke<AddTagsToCertificateResponse>(asyncResult); } #endregion #region DeleteCertificate /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual DeleteCertificateResponse DeleteCertificate(string certificateArn) { var request = new DeleteCertificateRequest(); request.CertificateArn = certificateArn; return DeleteCertificate(request); } /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual DeleteCertificateResponse DeleteCertificate(DeleteCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return Invoke<DeleteCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DeleteCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual IAsyncResult BeginDeleteCertificate(DeleteCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DeleteCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCertificate.</param> /// /// <returns>Returns a DeleteCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual DeleteCertificateResponse EndDeleteCertificate(IAsyncResult asyncResult) { return EndInvoke<DeleteCertificateResponse>(asyncResult); } #endregion #region DescribeCertificate /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual DescribeCertificateResponse DescribeCertificate(string certificateArn) { var request = new DescribeCertificateRequest(); request.CertificateArn = certificateArn; return DescribeCertificate(request); } /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual DescribeCertificateResponse DescribeCertificate(DescribeCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return Invoke<DescribeCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the DescribeCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual IAsyncResult BeginDescribeCertificate(DescribeCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the DescribeCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCertificate.</param> /// /// <returns>Returns a DescribeCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual DescribeCertificateResponse EndDescribeCertificate(IAsyncResult asyncResult) { return EndInvoke<DescribeCertificateResponse>(asyncResult); } #endregion #region ExportCertificate /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> public virtual ExportCertificateResponse ExportCertificate(ExportCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportCertificateResponseUnmarshaller.Instance; return Invoke<ExportCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ExportCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExportCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> public virtual IAsyncResult BeginExportCertificate(ExportCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ExportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ExportCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportCertificate.</param> /// /// <returns>Returns a ExportCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> public virtual ExportCertificateResponse EndExportCertificate(IAsyncResult asyncResult) { return EndInvoke<ExportCertificateResponse>(asyncResult); } #endregion #region GetAccountConfiguration /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> public virtual GetAccountConfigurationResponse GetAccountConfiguration(GetAccountConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountConfigurationResponseUnmarshaller.Instance; return Invoke<GetAccountConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetAccountConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccountConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> public virtual IAsyncResult BeginGetAccountConfiguration(GetAccountConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetAccountConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetAccountConfiguration.</param> /// /// <returns>Returns a GetAccountConfigurationResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> public virtual GetAccountConfigurationResponse EndGetAccountConfiguration(IAsyncResult asyncResult) { return EndInvoke<GetAccountConfigurationResponse>(asyncResult); } #endregion #region GetCertificate /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual GetCertificateResponse GetCertificate(string certificateArn) { var request = new GetCertificateRequest(); request.CertificateArn = certificateArn; return GetCertificate(request); } /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual GetCertificateResponse GetCertificate(GetCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCertificateResponseUnmarshaller.Instance; return Invoke<GetCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the GetCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual IAsyncResult BeginGetCertificate(GetCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the GetCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCertificate.</param> /// /// <returns>Returns a GetCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual GetCertificateResponse EndGetCertificate(IAsyncResult asyncResult) { return EndInvoke<GetCertificateResponse>(asyncResult); } #endregion #region ImportCertificate /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> public virtual ImportCertificateResponse ImportCertificate(ImportCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportCertificateResponseUnmarshaller.Instance; return Invoke<ImportCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ImportCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> public virtual IAsyncResult BeginImportCertificate(ImportCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ImportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ImportCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportCertificate.</param> /// /// <returns>Returns a ImportCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> public virtual ImportCertificateResponse EndImportCertificate(IAsyncResult asyncResult) { return EndInvoke<ImportCertificateResponse>(asyncResult); } #endregion #region ListCertificates /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual ListCertificatesResponse ListCertificates() { return ListCertificates(new ListCertificatesRequest()); } /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual ListCertificatesResponse ListCertificates(ListCertificatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return Invoke<ListCertificatesResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListCertificates operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCertificates operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCertificates /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual IAsyncResult BeginListCertificates(ListCertificatesRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListCertificates operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCertificates.</param> /// /// <returns>Returns a ListCertificatesResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual ListCertificatesResponse EndListCertificates(IAsyncResult asyncResult) { return EndInvoke<ListCertificatesResponse>(asyncResult); } #endregion #region ListTagsForCertificate /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> public virtual ListTagsForCertificateResponse ListTagsForCertificate(ListTagsForCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForCertificateResponseUnmarshaller.Instance; return Invoke<ListTagsForCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ListTagsForCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> public virtual IAsyncResult BeginListTagsForCertificate(ListTagsForCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ListTagsForCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForCertificate.</param> /// /// <returns>Returns a ListTagsForCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> public virtual ListTagsForCertificateResponse EndListTagsForCertificate(IAsyncResult asyncResult) { return EndInvoke<ListTagsForCertificateResponse>(asyncResult); } #endregion #region PutAccountConfiguration /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> public virtual PutAccountConfigurationResponse PutAccountConfiguration(PutAccountConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAccountConfigurationResponseUnmarshaller.Instance; return Invoke<PutAccountConfigurationResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the PutAccountConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutAccountConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> public virtual IAsyncResult BeginPutAccountConfiguration(PutAccountConfigurationRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PutAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAccountConfigurationResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the PutAccountConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutAccountConfiguration.</param> /// /// <returns>Returns a PutAccountConfigurationResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> public virtual PutAccountConfigurationResponse EndPutAccountConfiguration(IAsyncResult asyncResult) { return EndInvoke<PutAccountConfigurationResponse>(asyncResult); } #endregion #region RemoveTagsFromCertificate /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> public virtual RemoveTagsFromCertificateResponse RemoveTagsFromCertificate(RemoveTagsFromCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromCertificateResponseUnmarshaller.Instance; return Invoke<RemoveTagsFromCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RemoveTagsFromCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveTagsFromCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> public virtual IAsyncResult BeginRemoveTagsFromCertificate(RemoveTagsFromCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RemoveTagsFromCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemoveTagsFromCertificate.</param> /// /// <returns>Returns a RemoveTagsFromCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> public virtual RemoveTagsFromCertificateResponse EndRemoveTagsFromCertificate(IAsyncResult asyncResult) { return EndInvoke<RemoveTagsFromCertificateResponse>(asyncResult); } #endregion #region RenewCertificate /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> public virtual RenewCertificateResponse RenewCertificate(RenewCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RenewCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RenewCertificateResponseUnmarshaller.Instance; return Invoke<RenewCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RenewCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RenewCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRenewCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> public virtual IAsyncResult BeginRenewCertificate(RenewCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RenewCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RenewCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RenewCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRenewCertificate.</param> /// /// <returns>Returns a RenewCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> public virtual RenewCertificateResponse EndRenewCertificate(IAsyncResult asyncResult) { return EndInvoke<RenewCertificateResponse>(asyncResult); } #endregion #region RequestCertificate /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual RequestCertificateResponse RequestCertificate(string domainName) { var request = new RequestCertificateRequest(); request.DomainName = domainName; return RequestCertificate(request); } /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual RequestCertificateResponse RequestCertificate(RequestCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RequestCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RequestCertificateResponseUnmarshaller.Instance; return Invoke<RequestCertificateResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RequestCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRequestCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual IAsyncResult BeginRequestCertificate(RequestCertificateRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = RequestCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RequestCertificateResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRequestCertificate.</param> /// /// <returns>Returns a RequestCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual RequestCertificateResponse EndRequestCertificate(IAsyncResult asyncResult) { return EndInvoke<RequestCertificateResponse>(asyncResult); } #endregion #region ResendValidationEmail /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> public virtual ResendValidationEmailResponse ResendValidationEmail(ResendValidationEmailRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResendValidationEmailRequestMarshaller.Instance; options.ResponseUnmarshaller = ResendValidationEmailResponseUnmarshaller.Instance; return Invoke<ResendValidationEmailResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the ResendValidationEmail operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResendValidationEmail /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> public virtual IAsyncResult BeginResendValidationEmail(ResendValidationEmailRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = ResendValidationEmailRequestMarshaller.Instance; options.ResponseUnmarshaller = ResendValidationEmailResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the ResendValidationEmail operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginResendValidationEmail.</param> /// /// <returns>Returns a ResendValidationEmailResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> public virtual ResendValidationEmailResponse EndResendValidationEmail(IAsyncResult asyncResult) { return EndInvoke<ResendValidationEmailResponse>(asyncResult); } #endregion #region UpdateCertificateOptions /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> public virtual UpdateCertificateOptionsResponse UpdateCertificateOptions(UpdateCertificateOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateOptionsResponseUnmarshaller.Instance; return Invoke<UpdateCertificateOptionsResponse>(request, options); } /// <summary> /// Initiates the asynchronous execution of the UpdateCertificateOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCertificateOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> public virtual IAsyncResult BeginUpdateCertificateOptions(UpdateCertificateOptionsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateOptionsResponseUnmarshaller.Instance; return BeginInvoke(request, options, callback, state); } /// <summary> /// Finishes the asynchronous execution of the UpdateCertificateOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCertificateOptions.</param> /// /// <returns>Returns a UpdateCertificateOptionsResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> public virtual UpdateCertificateOptionsResponse EndUpdateCertificateOptions(IAsyncResult asyncResult) { return EndInvoke<UpdateCertificateOptionsResponse>(asyncResult); } #endregion } }
1,676
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-2015-12-08.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CertificateManager.Model; namespace Amazon.CertificateManager { /// <summary> /// Interface for accessing CertificateManager /// /// Certificate Manager /// <para> /// You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon /// Web Services-based websites and applications. For more information about using ACM, /// see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Certificate Manager /// User Guide</a>. /// </para> /// </summary> public partial interface IAmazonCertificateManager : IAmazonService, IDisposable { #if BCL45 || AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICertificateManagerPaginatorFactory Paginators { get; } #endif #region AddTagsToCertificate /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> AddTagsToCertificateResponse AddTagsToCertificate(AddTagsToCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the AddTagsToCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddTagsToCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> IAsyncResult BeginAddTagsToCertificate(AddTagsToCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the AddTagsToCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddTagsToCertificate.</param> /// /// <returns>Returns a AddTagsToCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> AddTagsToCertificateResponse EndAddTagsToCertificate(IAsyncResult asyncResult); #endregion #region DeleteCertificate /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> DeleteCertificateResponse DeleteCertificate(string certificateArn); /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> DeleteCertificateResponse DeleteCertificate(DeleteCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the DeleteCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDeleteCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> IAsyncResult BeginDeleteCertificate(DeleteCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DeleteCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDeleteCertificate.</param> /// /// <returns>Returns a DeleteCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> DeleteCertificateResponse EndDeleteCertificate(IAsyncResult asyncResult); #endregion #region DescribeCertificate /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> DescribeCertificateResponse DescribeCertificate(string certificateArn); /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> DescribeCertificateResponse DescribeCertificate(DescribeCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the DescribeCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> IAsyncResult BeginDescribeCertificate(DescribeCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the DescribeCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCertificate.</param> /// /// <returns>Returns a DescribeCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> DescribeCertificateResponse EndDescribeCertificate(IAsyncResult asyncResult); #endregion #region ExportCertificate /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> ExportCertificateResponse ExportCertificate(ExportCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the ExportCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ExportCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndExportCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> IAsyncResult BeginExportCertificate(ExportCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ExportCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginExportCertificate.</param> /// /// <returns>Returns a ExportCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> ExportCertificateResponse EndExportCertificate(IAsyncResult asyncResult); #endregion #region GetAccountConfiguration /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> GetAccountConfigurationResponse GetAccountConfiguration(GetAccountConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the GetAccountConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetAccountConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> IAsyncResult BeginGetAccountConfiguration(GetAccountConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetAccountConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetAccountConfiguration.</param> /// /// <returns>Returns a GetAccountConfigurationResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> GetAccountConfigurationResponse EndGetAccountConfiguration(IAsyncResult asyncResult); #endregion #region GetCertificate /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> GetCertificateResponse GetCertificate(string certificateArn); /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> GetCertificateResponse GetCertificate(GetCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the GetCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> IAsyncResult BeginGetCertificate(GetCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the GetCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginGetCertificate.</param> /// /// <returns>Returns a GetCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> GetCertificateResponse EndGetCertificate(IAsyncResult asyncResult); #endregion #region ImportCertificate /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> ImportCertificateResponse ImportCertificate(ImportCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the ImportCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ImportCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndImportCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> IAsyncResult BeginImportCertificate(ImportCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ImportCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginImportCertificate.</param> /// /// <returns>Returns a ImportCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> ImportCertificateResponse EndImportCertificate(IAsyncResult asyncResult); #endregion #region ListCertificates /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> ListCertificatesResponse ListCertificates(); /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> ListCertificatesResponse ListCertificates(ListCertificatesRequest request); /// <summary> /// Initiates the asynchronous execution of the ListCertificates operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListCertificates operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListCertificates /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> IAsyncResult BeginListCertificates(ListCertificatesRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListCertificates operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListCertificates.</param> /// /// <returns>Returns a ListCertificatesResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> ListCertificatesResponse EndListCertificates(IAsyncResult asyncResult); #endregion #region ListTagsForCertificate /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> ListTagsForCertificateResponse ListTagsForCertificate(ListTagsForCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the ListTagsForCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndListTagsForCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> IAsyncResult BeginListTagsForCertificate(ListTagsForCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ListTagsForCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginListTagsForCertificate.</param> /// /// <returns>Returns a ListTagsForCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> ListTagsForCertificateResponse EndListTagsForCertificate(IAsyncResult asyncResult); #endregion #region PutAccountConfiguration /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> PutAccountConfigurationResponse PutAccountConfiguration(PutAccountConfigurationRequest request); /// <summary> /// Initiates the asynchronous execution of the PutAccountConfiguration operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutAccountConfiguration /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> IAsyncResult BeginPutAccountConfiguration(PutAccountConfigurationRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the PutAccountConfiguration operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginPutAccountConfiguration.</param> /// /// <returns>Returns a PutAccountConfigurationResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> PutAccountConfigurationResponse EndPutAccountConfiguration(IAsyncResult asyncResult); #endregion #region RemoveTagsFromCertificate /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> RemoveTagsFromCertificateResponse RemoveTagsFromCertificate(RemoveTagsFromCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the RemoveTagsFromCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRemoveTagsFromCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> IAsyncResult BeginRemoveTagsFromCertificate(RemoveTagsFromCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RemoveTagsFromCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRemoveTagsFromCertificate.</param> /// /// <returns>Returns a RemoveTagsFromCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> RemoveTagsFromCertificateResponse EndRemoveTagsFromCertificate(IAsyncResult asyncResult); #endregion #region RenewCertificate /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> RenewCertificateResponse RenewCertificate(RenewCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the RenewCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RenewCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRenewCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> IAsyncResult BeginRenewCertificate(RenewCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RenewCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRenewCertificate.</param> /// /// <returns>Returns a RenewCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> RenewCertificateResponse EndRenewCertificate(IAsyncResult asyncResult); #endregion #region RequestCertificate /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> RequestCertificateResponse RequestCertificate(string domainName); /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> RequestCertificateResponse RequestCertificate(RequestCertificateRequest request); /// <summary> /// Initiates the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RequestCertificate operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRequestCertificate /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> IAsyncResult BeginRequestCertificate(RequestCertificateRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the RequestCertificate operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginRequestCertificate.</param> /// /// <returns>Returns a RequestCertificateResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> RequestCertificateResponse EndRequestCertificate(IAsyncResult asyncResult); #endregion #region ResendValidationEmail /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> ResendValidationEmailResponse ResendValidationEmail(ResendValidationEmailRequest request); /// <summary> /// Initiates the asynchronous execution of the ResendValidationEmail operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResendValidationEmail /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> IAsyncResult BeginResendValidationEmail(ResendValidationEmailRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the ResendValidationEmail operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginResendValidationEmail.</param> /// /// <returns>Returns a ResendValidationEmailResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> ResendValidationEmailResponse EndResendValidationEmail(IAsyncResult asyncResult); #endregion #region UpdateCertificateOptions /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> UpdateCertificateOptionsResponse UpdateCertificateOptions(UpdateCertificateOptionsRequest request); /// <summary> /// Initiates the asynchronous execution of the UpdateCertificateOptions operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions operation on AmazonCertificateManagerClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndUpdateCertificateOptions /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> IAsyncResult BeginUpdateCertificateOptions(UpdateCertificateOptionsRequest request, AsyncCallback callback, object state); /// <summary> /// Finishes the asynchronous execution of the UpdateCertificateOptions operation. /// </summary> /// /// <param name="asyncResult">The IAsyncResult returned by the call to BeginUpdateCertificateOptions.</param> /// /// <returns>Returns a UpdateCertificateOptionsResult from CertificateManager.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> UpdateCertificateOptionsResponse EndUpdateCertificateOptions(IAsyncResult asyncResult); #endregion } }
1,219
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-2015-12-08.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CertificateManager.Model; using Amazon.CertificateManager.Model.Internal.MarshallTransformations; using Amazon.CertificateManager.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CertificateManager { /// <summary> /// Implementation for accessing CertificateManager /// /// Certificate Manager /// <para> /// You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon /// Web Services-based websites and applications. For more information about using ACM, /// see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Certificate Manager /// User Guide</a>. /// </para> /// </summary> public partial class AmazonCertificateManagerClient : AmazonServiceClient, IAmazonCertificateManager { private static IServiceMetadata serviceMetadata = new AmazonCertificateManagerMetadata(); private ICertificateManagerPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICertificateManagerPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CertificateManagerPaginatorFactory(this); } return this._paginators; } } #region Constructors /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCertificateManagerClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(AmazonCertificateManagerConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCertificateManagerClient(AWSCredentials credentials) : this(credentials, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(AWSCredentials credentials, AmazonCertificateManagerConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCertificateManagerConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCertificateManagerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCertificateManagerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customize the pipeline /// </summary> /// <param name="pipeline"></param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCertificateManagerEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddTagsToCertificate /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> public virtual AddTagsToCertificateResponse AddTagsToCertificate(AddTagsToCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToCertificateResponseUnmarshaller.Instance; return Invoke<AddTagsToCertificateResponse>(request, options); } /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> public virtual Task<AddTagsToCertificateResponse> AddTagsToCertificateAsync(AddTagsToCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToCertificateResponseUnmarshaller.Instance; return InvokeAsync<AddTagsToCertificateResponse>(request, options, cancellationToken); } #endregion #region DeleteCertificate /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual DeleteCertificateResponse DeleteCertificate(string certificateArn) { var request = new DeleteCertificateRequest(); request.CertificateArn = certificateArn; return DeleteCertificate(request); } /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual DeleteCertificateResponse DeleteCertificate(DeleteCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return Invoke<DeleteCertificateResponse>(request, options); } /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual Task<DeleteCertificateResponse> DeleteCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteCertificateRequest(); request.CertificateArn = certificateArn; return DeleteCertificateAsync(request, cancellationToken); } /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual Task<DeleteCertificateResponse> DeleteCertificateAsync(DeleteCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return InvokeAsync<DeleteCertificateResponse>(request, options, cancellationToken); } #endregion #region DescribeCertificate /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual DescribeCertificateResponse DescribeCertificate(string certificateArn) { var request = new DescribeCertificateRequest(); request.CertificateArn = certificateArn; return DescribeCertificate(request); } /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual DescribeCertificateResponse DescribeCertificate(DescribeCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return Invoke<DescribeCertificateResponse>(request, options); } /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual Task<DescribeCertificateResponse> DescribeCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeCertificateRequest(); request.CertificateArn = certificateArn; return DescribeCertificateAsync(request, cancellationToken); } /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual Task<DescribeCertificateResponse> DescribeCertificateAsync(DescribeCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return InvokeAsync<DescribeCertificateResponse>(request, options, cancellationToken); } #endregion #region ExportCertificate /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> public virtual ExportCertificateResponse ExportCertificate(ExportCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportCertificateResponseUnmarshaller.Instance; return Invoke<ExportCertificateResponse>(request, options); } /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> public virtual Task<ExportCertificateResponse> ExportCertificateAsync(ExportCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportCertificateResponseUnmarshaller.Instance; return InvokeAsync<ExportCertificateResponse>(request, options, cancellationToken); } #endregion #region GetAccountConfiguration /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> public virtual GetAccountConfigurationResponse GetAccountConfiguration(GetAccountConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountConfigurationResponseUnmarshaller.Instance; return Invoke<GetAccountConfigurationResponse>(request, options); } /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> public virtual Task<GetAccountConfigurationResponse> GetAccountConfigurationAsync(GetAccountConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountConfigurationResponseUnmarshaller.Instance; return InvokeAsync<GetAccountConfigurationResponse>(request, options, cancellationToken); } #endregion #region GetCertificate /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual GetCertificateResponse GetCertificate(string certificateArn) { var request = new GetCertificateRequest(); request.CertificateArn = certificateArn; return GetCertificate(request); } /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual GetCertificateResponse GetCertificate(GetCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCertificateResponseUnmarshaller.Instance; return Invoke<GetCertificateResponse>(request, options); } /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual Task<GetCertificateResponse> GetCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new GetCertificateRequest(); request.CertificateArn = certificateArn; return GetCertificateAsync(request, cancellationToken); } /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual Task<GetCertificateResponse> GetCertificateAsync(GetCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCertificateResponseUnmarshaller.Instance; return InvokeAsync<GetCertificateResponse>(request, options, cancellationToken); } #endregion #region ImportCertificate /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> public virtual ImportCertificateResponse ImportCertificate(ImportCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportCertificateResponseUnmarshaller.Instance; return Invoke<ImportCertificateResponse>(request, options); } /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> public virtual Task<ImportCertificateResponse> ImportCertificateAsync(ImportCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportCertificateResponseUnmarshaller.Instance; return InvokeAsync<ImportCertificateResponse>(request, options, cancellationToken); } #endregion #region ListCertificates /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual ListCertificatesResponse ListCertificates() { return ListCertificates(new ListCertificatesRequest()); } /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual ListCertificatesResponse ListCertificates(ListCertificatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return Invoke<ListCertificatesResponse>(request, options); } /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual Task<ListCertificatesResponse> ListCertificatesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListCertificatesAsync(new ListCertificatesRequest(), cancellationToken); } /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual Task<ListCertificatesResponse> ListCertificatesAsync(ListCertificatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return InvokeAsync<ListCertificatesResponse>(request, options, cancellationToken); } #endregion #region ListTagsForCertificate /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> public virtual ListTagsForCertificateResponse ListTagsForCertificate(ListTagsForCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForCertificateResponseUnmarshaller.Instance; return Invoke<ListTagsForCertificateResponse>(request, options); } /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> public virtual Task<ListTagsForCertificateResponse> ListTagsForCertificateAsync(ListTagsForCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForCertificateResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForCertificateResponse>(request, options, cancellationToken); } #endregion #region PutAccountConfiguration /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> public virtual PutAccountConfigurationResponse PutAccountConfiguration(PutAccountConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAccountConfigurationResponseUnmarshaller.Instance; return Invoke<PutAccountConfigurationResponse>(request, options); } /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> public virtual Task<PutAccountConfigurationResponse> PutAccountConfigurationAsync(PutAccountConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAccountConfigurationResponseUnmarshaller.Instance; return InvokeAsync<PutAccountConfigurationResponse>(request, options, cancellationToken); } #endregion #region RemoveTagsFromCertificate /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> public virtual RemoveTagsFromCertificateResponse RemoveTagsFromCertificate(RemoveTagsFromCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromCertificateResponseUnmarshaller.Instance; return Invoke<RemoveTagsFromCertificateResponse>(request, options); } /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> public virtual Task<RemoveTagsFromCertificateResponse> RemoveTagsFromCertificateAsync(RemoveTagsFromCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromCertificateResponseUnmarshaller.Instance; return InvokeAsync<RemoveTagsFromCertificateResponse>(request, options, cancellationToken); } #endregion #region RenewCertificate /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> public virtual RenewCertificateResponse RenewCertificate(RenewCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RenewCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RenewCertificateResponseUnmarshaller.Instance; return Invoke<RenewCertificateResponse>(request, options); } /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> public virtual Task<RenewCertificateResponse> RenewCertificateAsync(RenewCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RenewCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RenewCertificateResponseUnmarshaller.Instance; return InvokeAsync<RenewCertificateResponse>(request, options, cancellationToken); } #endregion #region RequestCertificate /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual RequestCertificateResponse RequestCertificate(string domainName) { var request = new RequestCertificateRequest(); request.DomainName = domainName; return RequestCertificate(request); } /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual RequestCertificateResponse RequestCertificate(RequestCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RequestCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RequestCertificateResponseUnmarshaller.Instance; return Invoke<RequestCertificateResponse>(request, options); } /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual Task<RequestCertificateResponse> RequestCertificateAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new RequestCertificateRequest(); request.DomainName = domainName; return RequestCertificateAsync(request, cancellationToken); } /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual Task<RequestCertificateResponse> RequestCertificateAsync(RequestCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RequestCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RequestCertificateResponseUnmarshaller.Instance; return InvokeAsync<RequestCertificateResponse>(request, options, cancellationToken); } #endregion #region ResendValidationEmail /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> public virtual ResendValidationEmailResponse ResendValidationEmail(ResendValidationEmailRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResendValidationEmailRequestMarshaller.Instance; options.ResponseUnmarshaller = ResendValidationEmailResponseUnmarshaller.Instance; return Invoke<ResendValidationEmailResponse>(request, options); } /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> public virtual Task<ResendValidationEmailResponse> ResendValidationEmailAsync(ResendValidationEmailRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ResendValidationEmailRequestMarshaller.Instance; options.ResponseUnmarshaller = ResendValidationEmailResponseUnmarshaller.Instance; return InvokeAsync<ResendValidationEmailResponse>(request, options, cancellationToken); } #endregion #region UpdateCertificateOptions /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> public virtual UpdateCertificateOptionsResponse UpdateCertificateOptions(UpdateCertificateOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateOptionsResponseUnmarshaller.Instance; return Invoke<UpdateCertificateOptionsResponse>(request, options); } /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> public virtual Task<UpdateCertificateOptionsResponse> UpdateCertificateOptionsAsync(UpdateCertificateOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateOptionsResponseUnmarshaller.Instance; return InvokeAsync<UpdateCertificateOptionsResponse>(request, options, cancellationToken); } #endregion } }
2,088
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-2015-12-08.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CertificateManager.Model; namespace Amazon.CertificateManager { /// <summary> /// Interface for accessing CertificateManager /// /// Certificate Manager /// <para> /// You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon /// Web Services-based websites and applications. For more information about using ACM, /// see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Certificate Manager /// User Guide</a>. /// </para> /// </summary> public partial interface IAmazonCertificateManager : IAmazonService, IDisposable { /// <summary> /// Paginators for the service /// </summary> ICertificateManagerPaginatorFactory Paginators { get; } #region AddTagsToCertificate /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> AddTagsToCertificateResponse AddTagsToCertificate(AddTagsToCertificateRequest request); /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> Task<AddTagsToCertificateResponse> AddTagsToCertificateAsync(AddTagsToCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteCertificate /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> DeleteCertificateResponse DeleteCertificate(string certificateArn); /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> DeleteCertificateResponse DeleteCertificate(DeleteCertificateRequest request); /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> Task<DeleteCertificateResponse> DeleteCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> Task<DeleteCertificateResponse> DeleteCertificateAsync(DeleteCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeCertificate /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> DescribeCertificateResponse DescribeCertificate(string certificateArn); /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> DescribeCertificateResponse DescribeCertificate(DescribeCertificateRequest request); /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> Task<DescribeCertificateResponse> DescribeCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> Task<DescribeCertificateResponse> DescribeCertificateAsync(DescribeCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExportCertificate /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> ExportCertificateResponse ExportCertificate(ExportCertificateRequest request); /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> Task<ExportCertificateResponse> ExportCertificateAsync(ExportCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetAccountConfiguration /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> GetAccountConfigurationResponse GetAccountConfiguration(GetAccountConfigurationRequest request); /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> Task<GetAccountConfigurationResponse> GetAccountConfigurationAsync(GetAccountConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCertificate /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> GetCertificateResponse GetCertificate(string certificateArn); /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> GetCertificateResponse GetCertificate(GetCertificateRequest request); /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> Task<GetCertificateResponse> GetCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> Task<GetCertificateResponse> GetCertificateAsync(GetCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportCertificate /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> ImportCertificateResponse ImportCertificate(ImportCertificateRequest request); /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> Task<ImportCertificateResponse> ImportCertificateAsync(ImportCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCertificates /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> ListCertificatesResponse ListCertificates(); /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> ListCertificatesResponse ListCertificates(ListCertificatesRequest request); /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> Task<ListCertificatesResponse> ListCertificatesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> Task<ListCertificatesResponse> ListCertificatesAsync(ListCertificatesRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForCertificate /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> ListTagsForCertificateResponse ListTagsForCertificate(ListTagsForCertificateRequest request); /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> Task<ListTagsForCertificateResponse> ListTagsForCertificateAsync(ListTagsForCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutAccountConfiguration /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> PutAccountConfigurationResponse PutAccountConfiguration(PutAccountConfigurationRequest request); /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> Task<PutAccountConfigurationResponse> PutAccountConfigurationAsync(PutAccountConfigurationRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RemoveTagsFromCertificate /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> RemoveTagsFromCertificateResponse RemoveTagsFromCertificate(RemoveTagsFromCertificateRequest request); /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> Task<RemoveTagsFromCertificateResponse> RemoveTagsFromCertificateAsync(RemoveTagsFromCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RenewCertificate /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> RenewCertificateResponse RenewCertificate(RenewCertificateRequest request); /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> Task<RenewCertificateResponse> RenewCertificateAsync(RenewCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RequestCertificate /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> RequestCertificateResponse RequestCertificate(string domainName); /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> RequestCertificateResponse RequestCertificate(RequestCertificateRequest request); /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> Task<RequestCertificateResponse> RequestCertificateAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> Task<RequestCertificateResponse> RequestCertificateAsync(RequestCertificateRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ResendValidationEmail /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> ResendValidationEmailResponse ResendValidationEmail(ResendValidationEmailRequest request); /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> Task<ResendValidationEmailResponse> ResendValidationEmailAsync(ResendValidationEmailRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateCertificateOptions /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> UpdateCertificateOptionsResponse UpdateCertificateOptions(UpdateCertificateOptionsRequest request); /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> Task<UpdateCertificateOptionsResponse> UpdateCertificateOptionsAsync(UpdateCertificateOptionsRequest request, CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
1,619
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-2015-12-08.normal.json service model. */ using System; using System.Runtime.ExceptionServices; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using System.Net; using Amazon.CertificateManager.Model; using Amazon.CertificateManager.Model.Internal.MarshallTransformations; using Amazon.CertificateManager.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.CertificateManager { /// <summary> /// Implementation for accessing CertificateManager /// /// Certificate Manager /// <para> /// You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon /// Web Services-based websites and applications. For more information about using ACM, /// see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Certificate Manager /// User Guide</a>. /// </para> /// </summary> public partial class AmazonCertificateManagerClient : AmazonServiceClient, IAmazonCertificateManager { private static IServiceMetadata serviceMetadata = new AmazonCertificateManagerMetadata(); #region Constructors /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> public AmazonCertificateManagerClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with the credentials loaded from the application's /// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. /// /// Example App.config with credentials set. /// <code> /// &lt;?xml version="1.0" encoding="utf-8" ?&gt; /// &lt;configuration&gt; /// &lt;appSettings&gt; /// &lt;add key="AWSProfileName" value="AWS Default"/&gt; /// &lt;/appSettings&gt; /// &lt;/configuration&gt; /// </code> /// /// </summary> /// <param name="config">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(AmazonCertificateManagerConfig config) : base(FallbackCredentialsFactory.GetCredentials(), config) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> public AmazonCertificateManagerClient(AWSCredentials credentials) : this(credentials, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Credentials and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="credentials">AWS Credentials</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(AWSCredentials credentials, AmazonCertificateManagerConfig clientConfig) : base(credentials, clientConfig) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonCertificateManagerConfig() {RegionEndpoint=region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonCertificateManagerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCertificateManagerConfig()) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID and AWS Secret Key /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="region">The region to connect.</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonCertificateManagerConfig{RegionEndpoint = region}) { } /// <summary> /// Constructs AmazonCertificateManagerClient with AWS Access Key ID, AWS Secret Key and an /// AmazonCertificateManagerClient Configuration object. /// </summary> /// <param name="awsAccessKeyId">AWS Access Key ID</param> /// <param name="awsSecretAccessKey">AWS Secret Access Key</param> /// <param name="awsSessionToken">AWS Session Token</param> /// <param name="clientConfig">The AmazonCertificateManagerClient Configuration Object</param> public AmazonCertificateManagerClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCertificateManagerConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #if AWS_ASYNC_ENUMERABLES_API private ICertificateManagerPaginatorFactory _paginators; /// <summary> /// Paginators for the service /// </summary> public ICertificateManagerPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new CertificateManagerPaginatorFactory(this); } return this._paginators; } } #endif #region Overrides /// <summary> /// Creates the signer for the service. /// </summary> protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// <summary> /// Customizes the runtime pipeline. /// </summary> /// <param name="pipeline">Runtime pipeline for the current client.</param> protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>(); pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonCertificateManagerEndpointResolver()); } /// <summary> /// Capture metadata for the service. /// </summary> protected override IServiceMetadata ServiceMetadata { get { return serviceMetadata; } } #endregion #region Dispose /// <summary> /// Disposes the service client. /// </summary> protected override void Dispose(bool disposing) { base.Dispose(disposing); } #endregion #region AddTagsToCertificate internal virtual AddTagsToCertificateResponse AddTagsToCertificate(AddTagsToCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToCertificateResponseUnmarshaller.Instance; return Invoke<AddTagsToCertificateResponse>(request, options); } /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> public virtual Task<AddTagsToCertificateResponse> AddTagsToCertificateAsync(AddTagsToCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddTagsToCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = AddTagsToCertificateResponseUnmarshaller.Instance; return InvokeAsync<AddTagsToCertificateResponse>(request, options, cancellationToken); } #endregion #region DeleteCertificate internal virtual DeleteCertificateResponse DeleteCertificate(DeleteCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return Invoke<DeleteCertificateResponse>(request, options); } /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual Task<DeleteCertificateResponse> DeleteCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DeleteCertificateRequest(); request.CertificateArn = certificateArn; return DeleteCertificateAsync(request, cancellationToken); } /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> public virtual Task<DeleteCertificateResponse> DeleteCertificateAsync(DeleteCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteCertificateResponseUnmarshaller.Instance; return InvokeAsync<DeleteCertificateResponse>(request, options, cancellationToken); } #endregion #region DescribeCertificate internal virtual DescribeCertificateResponse DescribeCertificate(DescribeCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return Invoke<DescribeCertificateResponse>(request, options); } /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual Task<DescribeCertificateResponse> DescribeCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new DescribeCertificateRequest(); request.CertificateArn = certificateArn; return DescribeCertificateAsync(request, cancellationToken); } /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> public virtual Task<DescribeCertificateResponse> DescribeCertificateAsync(DescribeCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeCertificateResponseUnmarshaller.Instance; return InvokeAsync<DescribeCertificateResponse>(request, options, cancellationToken); } #endregion #region ExportCertificate internal virtual ExportCertificateResponse ExportCertificate(ExportCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ExportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportCertificateResponseUnmarshaller.Instance; return Invoke<ExportCertificateResponse>(request, options); } /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> public virtual Task<ExportCertificateResponse> ExportCertificateAsync(ExportCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ExportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ExportCertificateResponseUnmarshaller.Instance; return InvokeAsync<ExportCertificateResponse>(request, options, cancellationToken); } #endregion #region GetAccountConfiguration internal virtual GetAccountConfigurationResponse GetAccountConfiguration(GetAccountConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountConfigurationResponseUnmarshaller.Instance; return Invoke<GetAccountConfigurationResponse>(request, options); } /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> public virtual Task<GetAccountConfigurationResponse> GetAccountConfigurationAsync(GetAccountConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = GetAccountConfigurationResponseUnmarshaller.Instance; return InvokeAsync<GetAccountConfigurationResponse>(request, options, cancellationToken); } #endregion #region GetCertificate internal virtual GetCertificateResponse GetCertificate(GetCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCertificateResponseUnmarshaller.Instance; return Invoke<GetCertificateResponse>(request, options); } /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual Task<GetCertificateResponse> GetCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new GetCertificateRequest(); request.CertificateArn = certificateArn; return GetCertificateAsync(request, cancellationToken); } /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> public virtual Task<GetCertificateResponse> GetCertificateAsync(GetCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = GetCertificateResponseUnmarshaller.Instance; return InvokeAsync<GetCertificateResponse>(request, options, cancellationToken); } #endregion #region ImportCertificate internal virtual ImportCertificateResponse ImportCertificate(ImportCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ImportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportCertificateResponseUnmarshaller.Instance; return Invoke<ImportCertificateResponse>(request, options); } /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> public virtual Task<ImportCertificateResponse> ImportCertificateAsync(ImportCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ImportCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ImportCertificateResponseUnmarshaller.Instance; return InvokeAsync<ImportCertificateResponse>(request, options, cancellationToken); } #endregion #region ListCertificates internal virtual ListCertificatesResponse ListCertificates() { return ListCertificates(new ListCertificatesRequest()); } internal virtual ListCertificatesResponse ListCertificates(ListCertificatesRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return Invoke<ListCertificatesResponse>(request, options); } /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual Task<ListCertificatesResponse> ListCertificatesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { return ListCertificatesAsync(new ListCertificatesRequest(), cancellationToken); } /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> public virtual Task<ListCertificatesResponse> ListCertificatesAsync(ListCertificatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListCertificatesRequestMarshaller.Instance; options.ResponseUnmarshaller = ListCertificatesResponseUnmarshaller.Instance; return InvokeAsync<ListCertificatesResponse>(request, options, cancellationToken); } #endregion #region ListTagsForCertificate internal virtual ListTagsForCertificateResponse ListTagsForCertificate(ListTagsForCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForCertificateResponseUnmarshaller.Instance; return Invoke<ListTagsForCertificateResponse>(request, options); } /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> public virtual Task<ListTagsForCertificateResponse> ListTagsForCertificateAsync(ListTagsForCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForCertificateResponseUnmarshaller.Instance; return InvokeAsync<ListTagsForCertificateResponse>(request, options, cancellationToken); } #endregion #region PutAccountConfiguration internal virtual PutAccountConfigurationResponse PutAccountConfiguration(PutAccountConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PutAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAccountConfigurationResponseUnmarshaller.Instance; return Invoke<PutAccountConfigurationResponse>(request, options); } /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> public virtual Task<PutAccountConfigurationResponse> PutAccountConfigurationAsync(PutAccountConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PutAccountConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = PutAccountConfigurationResponseUnmarshaller.Instance; return InvokeAsync<PutAccountConfigurationResponse>(request, options, cancellationToken); } #endregion #region RemoveTagsFromCertificate internal virtual RemoveTagsFromCertificateResponse RemoveTagsFromCertificate(RemoveTagsFromCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromCertificateResponseUnmarshaller.Instance; return Invoke<RemoveTagsFromCertificateResponse>(request, options); } /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> public virtual Task<RemoveTagsFromCertificateResponse> RemoveTagsFromCertificateAsync(RemoveTagsFromCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveTagsFromCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveTagsFromCertificateResponseUnmarshaller.Instance; return InvokeAsync<RemoveTagsFromCertificateResponse>(request, options, cancellationToken); } #endregion #region RenewCertificate internal virtual RenewCertificateResponse RenewCertificate(RenewCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RenewCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RenewCertificateResponseUnmarshaller.Instance; return Invoke<RenewCertificateResponse>(request, options); } /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> public virtual Task<RenewCertificateResponse> RenewCertificateAsync(RenewCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RenewCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RenewCertificateResponseUnmarshaller.Instance; return InvokeAsync<RenewCertificateResponse>(request, options, cancellationToken); } #endregion #region RequestCertificate internal virtual RequestCertificateResponse RequestCertificate(RequestCertificateRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RequestCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RequestCertificateResponseUnmarshaller.Instance; return Invoke<RequestCertificateResponse>(request, options); } /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual Task<RequestCertificateResponse> RequestCertificateAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var request = new RequestCertificateRequest(); request.DomainName = domainName; return RequestCertificateAsync(request, cancellationToken); } /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> public virtual Task<RequestCertificateResponse> RequestCertificateAsync(RequestCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RequestCertificateRequestMarshaller.Instance; options.ResponseUnmarshaller = RequestCertificateResponseUnmarshaller.Instance; return InvokeAsync<RequestCertificateResponse>(request, options, cancellationToken); } #endregion #region ResendValidationEmail internal virtual ResendValidationEmailResponse ResendValidationEmail(ResendValidationEmailRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ResendValidationEmailRequestMarshaller.Instance; options.ResponseUnmarshaller = ResendValidationEmailResponseUnmarshaller.Instance; return Invoke<ResendValidationEmailResponse>(request, options); } /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> public virtual Task<ResendValidationEmailResponse> ResendValidationEmailAsync(ResendValidationEmailRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ResendValidationEmailRequestMarshaller.Instance; options.ResponseUnmarshaller = ResendValidationEmailResponseUnmarshaller.Instance; return InvokeAsync<ResendValidationEmailResponse>(request, options, cancellationToken); } #endregion #region UpdateCertificateOptions internal virtual UpdateCertificateOptionsResponse UpdateCertificateOptions(UpdateCertificateOptionsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateOptionsResponseUnmarshaller.Instance; return Invoke<UpdateCertificateOptionsResponse>(request, options); } /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> public virtual Task<UpdateCertificateOptionsResponse> UpdateCertificateOptionsAsync(UpdateCertificateOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateCertificateOptionsRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateCertificateOptionsResponseUnmarshaller.Instance; return InvokeAsync<UpdateCertificateOptionsResponse>(request, options, cancellationToken); } #endregion } }
1,399
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-2015-12-08.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.CertificateManager.Model; namespace Amazon.CertificateManager { /// <summary> /// Interface for accessing CertificateManager /// /// Certificate Manager /// <para> /// You can use Certificate Manager (ACM) to manage SSL/TLS certificates for your Amazon /// Web Services-based websites and applications. For more information about using ACM, /// see the <a href="https://docs.aws.amazon.com/acm/latest/userguide/">Certificate Manager /// User Guide</a>. /// </para> /// </summary> public partial interface IAmazonCertificateManager : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// <summary> /// Paginators for the service /// </summary> ICertificateManagerPaginatorFactory Paginators { get; } #endif #region AddTagsToCertificate /// <summary> /// Adds one or more tags to an ACM certificate. Tags are labels that you can use to identify /// and organize your Amazon Web Services resources. Each tag consists of a <code>key</code> /// and an optional <code>value</code>. You specify the certificate on input by its Amazon /// Resource Name (ARN). You specify the tag by using a key-value pair. /// /// /// <para> /// You can apply a tag to just one certificate if you want to identify a specific characteristic /// of that certificate, or you can apply the same tag to multiple certificates if you /// want to filter for a common relationship among those certificates. Similarly, you /// can apply the same tag to multiple resources if you want to specify a relationship /// among those resources. For example, you can add the same tag to an ACM certificate /// and an Elastic Load Balancing load balancer to indicate that they are both used by /// the same website. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/tags.html">Tagging /// ACM certificates</a>. /// </para> /// /// <para> /// To remove one or more tags, use the <a>RemoveTagsFromCertificate</a> action. To view /// all of the tags that have been applied to the certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the AddTagsToCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the AddTagsToCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/AddTagsToCertificate">REST API Reference for AddTagsToCertificate Operation</seealso> Task<AddTagsToCertificateResponse> AddTagsToCertificateAsync(AddTagsToCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DeleteCertificate /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="certificateArn">String that contains the ARN of the ACM certificate to be deleted. This must be of the form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> Task<DeleteCertificateResponse> DeleteCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Deletes a certificate and its associated private key. If this action succeeds, the /// certificate no longer appears in the list that can be displayed by calling the <a>ListCertificates</a> /// action or be retrieved by calling the <a>GetCertificate</a> action. The certificate /// will not be available for use by Amazon Web Services services integrated with ACM. /// /// /// <note> /// <para> /// You cannot delete an ACM certificate that is being used by another Amazon Web Services /// service. To delete a certificate that is in use, the certificate association must /// first be removed. /// </para> /// </note> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DeleteCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DeleteCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceInUseException"> /// The certificate is in use by another Amazon Web Services service in the caller's account. /// Remove the association and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DeleteCertificate">REST API Reference for DeleteCertificate Operation</seealso> Task<DeleteCertificateResponse> DeleteCertificateAsync(DeleteCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region DescribeCertificate /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="certificateArn">The Amazon Resource Name (ARN) of the ACM certificate. The ARN must have the following form: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> Task<DescribeCertificateResponse> DescribeCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Returns detailed metadata about the specified ACM certificate. /// /// /// <para> /// If you have just created a certificate using the <code>RequestCertificate</code> action, /// there is a delay of several seconds before you can retrieve information about it. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the DescribeCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the DescribeCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/DescribeCertificate">REST API Reference for DescribeCertificate Operation</seealso> Task<DescribeCertificateResponse> DescribeCertificateAsync(DescribeCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ExportCertificate /// <summary> /// Exports a private certificate issued by a private certificate authority (CA) for use /// anywhere. The exported file contains the certificate, the certificate chain, and the /// encrypted private 2048-bit RSA key associated with the public key that is embedded /// in the certificate. For security, you must assign a passphrase for the private key /// when exporting it. /// /// /// <para> /// For information about exporting and formatting a certificate using the ACM console /// or CLI, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-export-private.html">Export /// a Private Certificate</a>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ExportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ExportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ExportCertificate">REST API Reference for ExportCertificate Operation</seealso> Task<ExportCertificateResponse> ExportCertificateAsync(ExportCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetAccountConfiguration /// <summary> /// Returns the account configuration options associated with an Amazon Web Services account. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetAccountConfiguration">REST API Reference for GetAccountConfiguration Operation</seealso> Task<GetAccountConfigurationResponse> GetAccountConfigurationAsync(GetAccountConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetCertificate /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="certificateArn">String that contains a certificate ARN in the following format: <code>arn:aws:acm:region:123456789012:certificate/12345678-1234-1234-1234-123456789012</code> For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a>.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> Task<GetCertificateResponse> GetCertificateAsync(string certificateArn, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves an Amazon-issued certificate and its certificate chain. The chain consists /// of the certificate of the issuing CA and the intermediate certificates of any other /// subordinate CAs. All of the certificates are base64 encoded. You can use <a href="https://wiki.openssl.org/index.php/Command_Line_Utilities">OpenSSL</a> /// to decode the certificates and inspect individual fields. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the GetCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.RequestInProgressException"> /// The certificate request is in process and the certificate in your account has not /// yet been issued. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/GetCertificate">REST API Reference for GetCertificate Operation</seealso> Task<GetCertificateResponse> GetCertificateAsync(GetCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ImportCertificate /// <summary> /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-services.html">integrated /// services</a> allow only certificate types and keys they support to be associated with /// their resources. Further, their support differs depending on whether the certificate /// is imported into IAM or into ACM. For more information, see the documentation for /// each service. For more information about importing certificates into ACM, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/import-certificate.html">Importing /// Certificates</a> in the <i>Certificate Manager User Guide</i>. /// /// <note> /// <para> /// ACM does not provide <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-renewal.html">managed /// renewal</a> for certificates that you import. /// </para> /// </note> /// <para> /// Note the following guidelines when importing third party certificates: /// </para> /// <ul> <li> /// <para> /// You must enter the private key that matches the certificate you are importing. /// </para> /// </li> <li> /// <para> /// The private key must be unencrypted. You cannot import a private key that is protected /// by a password or a passphrase. /// </para> /// </li> <li> /// <para> /// The private key must be no larger than 5 KB (5,120 bytes). /// </para> /// </li> <li> /// <para> /// If the certificate you are importing is not self-signed, you must enter its certificate /// chain. /// </para> /// </li> <li> /// <para> /// If a certificate chain is included, the issuer must be the subject of one of the certificates /// in the chain. /// </para> /// </li> <li> /// <para> /// The certificate, private key, and certificate chain must be PEM-encoded. /// </para> /// </li> <li> /// <para> /// The current time must be between the <code>Not Before</code> and <code>Not After</code> /// certificate fields. /// </para> /// </li> <li> /// <para> /// The <code>Issuer</code> field must not be empty. /// </para> /// </li> <li> /// <para> /// The OCSP authority URL, if present, must not exceed 1000 characters. /// </para> /// </li> <li> /// <para> /// To import a new certificate, omit the <code>CertificateArn</code> argument. Include /// this argument only when you want to replace a previously imported certificate. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using the CLI, you must specify the certificate, /// the certificate chain, and the private key by their file names preceded by <code>fileb://</code>. /// For example, you can specify a certificate saved in the <code>C:\temp</code> folder /// as <code>fileb://C:\temp\certificate_to_import.pem</code>. If you are making an HTTP /// or HTTPS Query request, include these arguments as BLOBs. /// </para> /// </li> <li> /// <para> /// When you import a certificate by using an SDK, you must specify the certificate, the /// certificate chain, and the private key files in the manner required by the programming /// language you're using. /// </para> /// </li> <li> /// <para> /// The cryptographic algorithm of an imported certificate must match the algorithm of /// the signing CA. For example, if the signing CA key type is RSA, then the certificate /// key type must also be RSA. /// </para> /// </li> </ul> /// <para> /// This operation returns the <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon /// Resource Name (ARN)</a> of the imported certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the ImportCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ImportCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ImportCertificate">REST API Reference for ImportCertificate Operation</seealso> Task<ImportCertificateResponse> ImportCertificateAsync(ImportCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListCertificates /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> Task<ListCertificatesResponse> ListCertificatesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Retrieves a list of certificate ARNs and domain names. You can request that only certificates /// that match a specific status be listed. You can also filter by specific attributes /// of the certificate. Default filtering returns only <code>RSA_2048</code> certificates. /// For more information, see <a>Filters</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListCertificates service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListCertificates service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArgsException"> /// One or more of of request parameters specified is not valid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListCertificates">REST API Reference for ListCertificates Operation</seealso> Task<ListCertificatesResponse> ListCertificatesAsync(ListCertificatesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListTagsForCertificate /// <summary> /// Lists the tags that have been applied to the ACM certificate. Use the certificate's /// Amazon Resource Name (ARN) to specify the certificate. To add a tag to an ACM certificate, /// use the <a>AddTagsToCertificate</a> action. To delete a tag, use the <a>RemoveTagsFromCertificate</a> /// action. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ListTagsForCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ListTagsForCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ListTagsForCertificate">REST API Reference for ListTagsForCertificate Operation</seealso> Task<ListTagsForCertificateResponse> ListTagsForCertificateAsync(ListTagsForCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region PutAccountConfiguration /// <summary> /// Adds or modifies account-level configurations in ACM. /// /// /// <para> /// The supported configuration option is <code>DaysBeforeExpiry</code>. This option specifies /// the number of days prior to certificate expiration when ACM starts generating <code>EventBridge</code> /// events. ACM sends one event per day per certificate until the certificate expires. /// By default, accounts receive events starting 45 days before certificate expiration. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutAccountConfiguration service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PutAccountConfiguration service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.AccessDeniedException"> /// You do not have access required to perform this action. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ConflictException"> /// You are trying to update a resource or configuration that is already being created /// or updated. Wait for the previous operation to finish and try again. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ValidationException"> /// The supplied input failed to satisfy constraints of an Amazon Web Services service. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/PutAccountConfiguration">REST API Reference for PutAccountConfiguration Operation</seealso> Task<PutAccountConfigurationResponse> PutAccountConfigurationAsync(PutAccountConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RemoveTagsFromCertificate /// <summary> /// Remove one or more tags from an ACM certificate. A tag consists of a key-value pair. /// If you do not specify the value portion of the tag when calling this function, 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. /// /// /// <para> /// To add tags to a certificate, use the <a>AddTagsToCertificate</a> action. To view /// all of the tags that have been applied to a specific ACM certificate, use the <a>ListTagsForCertificate</a> /// action. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RemoveTagsFromCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RemoveTagsFromCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ThrottlingException"> /// The request was denied because it exceeded a quota. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RemoveTagsFromCertificate">REST API Reference for RemoveTagsFromCertificate Operation</seealso> Task<RemoveTagsFromCertificateResponse> RemoveTagsFromCertificateAsync(RemoveTagsFromCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RenewCertificate /// <summary> /// Renews an eligible ACM certificate. At this time, only exported private certificates /// can be renewed with this operation. In order to renew your Amazon Web Services Private /// CA certificates with ACM, you must first <a href="https://docs.aws.amazon.com/privateca/latest/userguide/PcaPermissions.html">grant /// the ACM service principal permission to do so</a>. For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/manual-renewal.html">Testing /// Managed Renewal</a> in the ACM User Guide. /// </summary> /// <param name="request">Container for the necessary parameters to execute the RenewCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RenewCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RenewCertificate">REST API Reference for RenewCertificate Operation</seealso> Task<RenewCertificateResponse> RenewCertificateAsync(RenewCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region RequestCertificate /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="domainName">Fully qualified domain name (FQDN), such as www.example.com, that you want to secure with an ACM certificate. Use an asterisk (*) to create a wildcard certificate that protects several sites in the same domain. For example, *.example.com protects www.example.com, site.example.com, and images.example.com. In compliance with <a href="https://datatracker.ietf.org/doc/html/rfc5280">RFC 5280</a>, the length of the domain name (technically, the Common Name) that you provide cannot exceed 64 octets (characters), including periods. To add a longer domain name, specify it in the Subject Alternative Name field, which supports names up to 253 octets in length. </param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> Task<RequestCertificateResponse> RequestCertificateAsync(string domainName, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); /// <summary> /// Requests an ACM certificate for use with other Amazon Web Services services. To request /// an ACM certificate, you must specify a fully qualified domain name (FQDN) in the <code>DomainName</code> /// parameter. You can also specify additional FQDNs in the <code>SubjectAlternativeNames</code> /// parameter. /// /// /// <para> /// If you are requesting a private certificate, domain validation is not required. If /// you are requesting a public certificate, each domain name that you specify must be /// validated to verify that you own or control the domain. You can use <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-dns.html">DNS /// validation</a> or <a href="https://docs.aws.amazon.com/acm/latest/userguide/gs-acm-validate-email.html">email /// validation</a>. We recommend that you use DNS validation. ACM issues public certificates /// after receiving approval from the domain owner. /// </para> /// <note> /// <para> /// ACM behavior differs from the <a href="https://datatracker.ietf.org/doc/html/rfc6125#appendix-B.2">RFC /// 6125</a> specification of the certificate validation process. ACM first checks for /// a Subject Alternative Name, and, if it finds one, ignores the common name (CN). /// </para> /// </note> /// <para> /// After successful completion of the <code>RequestCertificate</code> action, there is /// a delay of several seconds before you can retrieve information about the new certificate. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the RequestCertificate service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the RequestCertificate service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidParameterException"> /// An input parameter was invalid. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidTagException"> /// One or both of the values that make up the key-value pair is not valid. For example, /// you cannot specify a tag value that begins with <code>aws:</code>. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TagPolicyException"> /// A specified tag did not comply with an existing tag policy and was rejected. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.TooManyTagsException"> /// The request contains too many tags. Try the request again with fewer tags. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/RequestCertificate">REST API Reference for RequestCertificate Operation</seealso> Task<RequestCertificateResponse> RequestCertificateAsync(RequestCertificateRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ResendValidationEmail /// <summary> /// Resends the email that requests domain ownership validation. The domain owner or an /// authorized representative must approve the ACM certificate before it can be issued. /// The certificate can be approved by clicking a link in the mail to navigate to the /// Amazon certificate approval website and then clicking <b>I Approve</b>. However, the /// validation email can be blocked by spam filters. Therefore, if you do not receive /// the original mail, you can request that the mail be resent within 72 hours of requesting /// the ACM certificate. If more than 72 hours have elapsed since your original request /// or since your last attempt to resend validation mail, you must request a new certificate. /// For more information about setting up your contact email addresses, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/setup-email.html">Configure /// Email for your Domain</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the ResendValidationEmail service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the ResendValidationEmail service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidDomainValidationOptionsException"> /// One or more values in the <a>DomainValidationOption</a> structure is incorrect. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/ResendValidationEmail">REST API Reference for ResendValidationEmail Operation</seealso> Task<ResendValidationEmailResponse> ResendValidationEmailAsync(ResendValidationEmailRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region UpdateCertificateOptions /// <summary> /// Updates a certificate. Currently, you can use this function to specify whether to /// opt in to or out of recording your certificate in a certificate transparency log. /// For more information, see <a href="https://docs.aws.amazon.com/acm/latest/userguide/acm-bestpractices.html#best-practices-transparency"> /// Opting Out of Certificate Transparency Logging</a>. /// </summary> /// <param name="request">Container for the necessary parameters to execute the UpdateCertificateOptions service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the UpdateCertificateOptions service method, as returned by CertificateManager.</returns> /// <exception cref="Amazon.CertificateManager.Model.InvalidArnException"> /// The requested Amazon Resource Name (ARN) does not refer to an existing resource. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.InvalidStateException"> /// Processing has reached an invalid state. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.LimitExceededException"> /// An ACM quota has been exceeded. /// </exception> /// <exception cref="Amazon.CertificateManager.Model.ResourceNotFoundException"> /// The specified certificate cannot be found in the caller's account or the caller's /// account cannot be found. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/acm-2015-12-08/UpdateCertificateOptions">REST API Reference for UpdateCertificateOptions Operation</seealso> Task<UpdateCertificateOptionsResponse> UpdateCertificateOptionsAsync(UpdateCertificateOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }
903
aws-sdk-net
aws
C#
using System; using System.Reflection; using System.Runtime.InteropServices; using System.Runtime.CompilerServices; // General Information about an assembly is controlled through the following // set of attributes. Change these attribute values to modify the information // associated with an assembly. [assembly: AssemblyTitle("AWSSDK.CertificateManager")] #if BCL35 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Certificate Manager. AWS Certificate Manager (ACM) is an AWS service that makes it easier for you to deploy secure SSL based websites and applications on the AWS platform.")] #elif BCL45 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Certificate Manager. AWS Certificate Manager (ACM) is an AWS service that makes it easier for you to deploy secure SSL based websites and applications on the AWS platform.")] #elif NETSTANDARD20 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Certificate Manager. AWS Certificate Manager (ACM) is an AWS service that makes it easier for you to deploy secure SSL based websites and applications on the AWS platform.")] #elif NETCOREAPP3_1 [assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Certificate Manager. AWS Certificate Manager (ACM) is an AWS service that makes it easier for you to deploy secure SSL based websites and applications on the AWS platform.")] #else #error Unknown platform constant - unable to set correct AssemblyDescription #endif [assembly: AssemblyConfiguration("")] [assembly: AssemblyProduct("Amazon Web Services SDK for .NET")] [assembly: AssemblyCompany("Amazon.com, Inc")] [assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] // Setting ComVisible to false makes the types in this assembly not visible // to COM components. If you need to access a type in this assembly from // COM, set the ComVisible attribute to true on that type. [assembly: ComVisible(false)] // Version information for an assembly consists of the following four values: // // Major Version // Minor Version // Build Number // Revision // // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] [assembly: AssemblyVersion("3.3")] [assembly: AssemblyFileVersion("3.7.101.136")] [assembly: System.CLSCompliant(true)] #if BCL [assembly: System.Security.AllowPartiallyTrustedCallers] #endif
51
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 chime-2018-05-01.normal.json service model. */ using System; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Util.Internal; using Amazon.Chime.Internal; namespace Amazon.Chime { /// <summary> /// Configuration for accessing Amazon Chime service /// </summary> [AWSSignerType("v4")] public partial class AmazonChimeConfig : ClientConfig { private static readonly string UserAgentString = InternalSDKUtils.BuildUserAgentString("3.7.102.0"); private string _userAgent = UserAgentString; /// <summary> /// Default constructor /// </summary> public AmazonChimeConfig() : base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonChimeDefaultConfiguration.GetAllConfigurations())) { this.AuthenticationServiceName = "chime"; this.EndpointProvider = new AmazonChimeEndpointProvider(); } /// <summary> /// The constant used to lookup in the region hash the endpoint. /// </summary> public override string RegionEndpointServiceName { get { return "chime"; } } /// <summary> /// Gets the ServiceVersion property. /// </summary> public override string ServiceVersion { get { return "2018-05-01"; } } /// <summary> /// Gets the value of UserAgent property. /// </summary> public override string UserAgent { get { return _userAgent; } } } }
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 chime-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using Amazon.Runtime; namespace Amazon.Chime { /// <summary> /// Configuration for accessing Amazon Chime service /// </summary> public static class AmazonChimeDefaultConfiguration { /// <summary> /// Collection of all <see cref="DefaultConfiguration"/>s supported by /// Chime /// </summary> public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations() { return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration> { Standard, InRegion, CrossRegion, Mobile, Auto, Legacy }); } /// <summary> /// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Standard, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.InRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.CrossRegion, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:03.1 ConnectTimeout = TimeSpan.FromMilliseconds(3100L), // 0:00:03.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p> /// </summary> public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Mobile, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:30 ConnectTimeout = TimeSpan.FromMilliseconds(30000L), // 0:00:30 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p> /// </summary> public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Auto, RetryMode = RequestRetryMode.Standard, StsRegionalEndpoints = StsRegionalEndpointsValue.Regional, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional, // 0:00:01.1 ConnectTimeout = TimeSpan.FromMilliseconds(1100L), // 0:00:01.1 TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L), TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; /// <summary> /// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p> /// </summary> public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration { Name = DefaultConfigurationMode.Legacy, RetryMode = RequestRetryMode.Legacy, StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy, S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy, ConnectTimeout = null, TlsNegotiationTimeout = null, TimeToFirstByteTimeout = null, HttpRequestTimeout = null }; } }
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 chime-2018-05-01.normal.json service model. */ using Amazon.Runtime; using Amazon.Runtime.Endpoints; namespace Amazon.Chime.Endpoints { /// <summary> /// Contains parameters used for resolving Chime endpoints /// Parameters can be sourced from client config and service operations /// Used by internal ChimeEndpointProvider and ChimeEndpointResolver /// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider /// </summary> public class ChimeEndpointParameters : EndpointParameters { /// <summary> /// ChimeEndpointParameters constructor /// </summary> public ChimeEndpointParameters() { UseDualStack = false; UseFIPS = false; } /// <summary> /// Region parameter /// </summary> public string Region { get { return (string)this["Region"]; } set { this["Region"] = value; } } /// <summary> /// UseDualStack parameter /// </summary> public bool? UseDualStack { get { return (bool?)this["UseDualStack"]; } set { this["UseDualStack"] = value; } } /// <summary> /// UseFIPS parameter /// </summary> public bool? UseFIPS { get { return (bool?)this["UseFIPS"]; } set { this["UseFIPS"] = value; } } /// <summary> /// Endpoint parameter /// </summary> public string Endpoint { get { return (string)this["Endpoint"]; } set { this["Endpoint"] = value; } } } }
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 chime-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using System.Net; using System.Text; using Amazon.Runtime; namespace Amazon.Chime { ///<summary> /// Common exception for the Chime service. /// </summary> #if !NETSTANDARD [Serializable] #endif public partial class AmazonChimeException : AmazonServiceException { /// <summary> /// Construct instance of AmazonChimeException /// </summary> /// <param name="message"></param> public AmazonChimeException(string message) : base(message) { } /// <summary> /// Construct instance of AmazonChimeException /// </summary> /// <param name="message"></param> /// <param name="innerException"></param> public AmazonChimeException(string message, Exception innerException) : base(message, innerException) { } /// <summary> /// Construct instance of AmazonChimeException /// </summary> /// <param name="innerException"></param> public AmazonChimeException(Exception innerException) : base(innerException.Message, innerException) { } /// <summary> /// Construct instance of AmazonChimeException /// </summary> /// <param name="message"></param> /// <param name="errorType"></param> /// <param name="errorCode"></param> /// <param name="requestId"></param> /// <param name="statusCode"></param> public AmazonChimeException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, errorType, errorCode, requestId, statusCode) { } /// <summary> /// Construct instance of AmazonChimeException /// </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 AmazonChimeException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode) : base(message, innerException, errorType, errorCode, requestId, statusCode) { } #if !NETSTANDARD /// <summary> /// Constructs a new instance of the AmazonChimeException 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 AmazonChimeException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base(info, context) { } #endif } }
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 chime-2018-05-01.normal.json service model. */ using System; using Amazon.Runtime; namespace Amazon.Chime { /// <summary> /// Constants used for properties of type AccountStatus. /// </summary> public class AccountStatus : ConstantClass { /// <summary> /// Constant Active for AccountStatus /// </summary> public static readonly AccountStatus Active = new AccountStatus("Active"); /// <summary> /// Constant Suspended for AccountStatus /// </summary> public static readonly AccountStatus Suspended = new AccountStatus("Suspended"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public AccountStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static AccountStatus FindValue(string value) { return FindValue<AccountStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator AccountStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AccountType. /// </summary> public class AccountType : ConstantClass { /// <summary> /// Constant EnterpriseDirectory for AccountType /// </summary> public static readonly AccountType EnterpriseDirectory = new AccountType("EnterpriseDirectory"); /// <summary> /// Constant EnterpriseLWA for AccountType /// </summary> public static readonly AccountType EnterpriseLWA = new AccountType("EnterpriseLWA"); /// <summary> /// Constant EnterpriseOIDC for AccountType /// </summary> public static readonly AccountType EnterpriseOIDC = new AccountType("EnterpriseOIDC"); /// <summary> /// Constant Team for AccountType /// </summary> public static readonly AccountType Team = new AccountType("Team"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public AccountType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static AccountType FindValue(string value) { return FindValue<AccountType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator AccountType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AppInstanceDataType. /// </summary> public class AppInstanceDataType : ConstantClass { /// <summary> /// Constant Channel for AppInstanceDataType /// </summary> public static readonly AppInstanceDataType Channel = new AppInstanceDataType("Channel"); /// <summary> /// Constant ChannelMessage for AppInstanceDataType /// </summary> public static readonly AppInstanceDataType ChannelMessage = new AppInstanceDataType("ChannelMessage"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public AppInstanceDataType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static AppInstanceDataType FindValue(string value) { return FindValue<AppInstanceDataType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator AppInstanceDataType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ArtifactsState. /// </summary> public class ArtifactsState : ConstantClass { /// <summary> /// Constant Disabled for ArtifactsState /// </summary> public static readonly ArtifactsState Disabled = new ArtifactsState("Disabled"); /// <summary> /// Constant Enabled for ArtifactsState /// </summary> public static readonly ArtifactsState Enabled = new ArtifactsState("Enabled"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ArtifactsState(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ArtifactsState FindValue(string value) { return FindValue<ArtifactsState>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ArtifactsState(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type AudioMuxType. /// </summary> public class AudioMuxType : ConstantClass { /// <summary> /// Constant AudioOnly for AudioMuxType /// </summary> public static readonly AudioMuxType AudioOnly = new AudioMuxType("AudioOnly"); /// <summary> /// Constant AudioWithActiveSpeakerVideo for AudioMuxType /// </summary> public static readonly AudioMuxType AudioWithActiveSpeakerVideo = new AudioMuxType("AudioWithActiveSpeakerVideo"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public AudioMuxType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static AudioMuxType FindValue(string value) { return FindValue<AudioMuxType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator AudioMuxType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type BotType. /// </summary> public class BotType : ConstantClass { /// <summary> /// Constant ChatBot for BotType /// </summary> public static readonly BotType ChatBot = new BotType("ChatBot"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public BotType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static BotType FindValue(string value) { return FindValue<BotType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator BotType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type CallingNameStatus. /// </summary> public class CallingNameStatus : ConstantClass { /// <summary> /// Constant Unassigned for CallingNameStatus /// </summary> public static readonly CallingNameStatus Unassigned = new CallingNameStatus("Unassigned"); /// <summary> /// Constant UpdateFailed for CallingNameStatus /// </summary> public static readonly CallingNameStatus UpdateFailed = new CallingNameStatus("UpdateFailed"); /// <summary> /// Constant UpdateInProgress for CallingNameStatus /// </summary> public static readonly CallingNameStatus UpdateInProgress = new CallingNameStatus("UpdateInProgress"); /// <summary> /// Constant UpdateSucceeded for CallingNameStatus /// </summary> public static readonly CallingNameStatus UpdateSucceeded = new CallingNameStatus("UpdateSucceeded"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public CallingNameStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static CallingNameStatus FindValue(string value) { return FindValue<CallingNameStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator CallingNameStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type Capability. /// </summary> public class Capability : ConstantClass { /// <summary> /// Constant SMS for Capability /// </summary> public static readonly Capability SMS = new Capability("SMS"); /// <summary> /// Constant Voice for Capability /// </summary> public static readonly Capability Voice = new Capability("Voice"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public Capability(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static Capability FindValue(string value) { return FindValue<Capability>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator Capability(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChannelMembershipType. /// </summary> public class ChannelMembershipType : ConstantClass { /// <summary> /// Constant DEFAULT for ChannelMembershipType /// </summary> public static readonly ChannelMembershipType DEFAULT = new ChannelMembershipType("DEFAULT"); /// <summary> /// Constant HIDDEN for ChannelMembershipType /// </summary> public static readonly ChannelMembershipType HIDDEN = new ChannelMembershipType("HIDDEN"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ChannelMembershipType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ChannelMembershipType FindValue(string value) { return FindValue<ChannelMembershipType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ChannelMembershipType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChannelMessagePersistenceType. /// </summary> public class ChannelMessagePersistenceType : ConstantClass { /// <summary> /// Constant NON_PERSISTENT for ChannelMessagePersistenceType /// </summary> public static readonly ChannelMessagePersistenceType NON_PERSISTENT = new ChannelMessagePersistenceType("NON_PERSISTENT"); /// <summary> /// Constant PERSISTENT for ChannelMessagePersistenceType /// </summary> public static readonly ChannelMessagePersistenceType PERSISTENT = new ChannelMessagePersistenceType("PERSISTENT"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ChannelMessagePersistenceType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ChannelMessagePersistenceType FindValue(string value) { return FindValue<ChannelMessagePersistenceType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ChannelMessagePersistenceType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChannelMessageType. /// </summary> public class ChannelMessageType : ConstantClass { /// <summary> /// Constant CONTROL for ChannelMessageType /// </summary> public static readonly ChannelMessageType CONTROL = new ChannelMessageType("CONTROL"); /// <summary> /// Constant STANDARD for ChannelMessageType /// </summary> public static readonly ChannelMessageType STANDARD = new ChannelMessageType("STANDARD"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ChannelMessageType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ChannelMessageType FindValue(string value) { return FindValue<ChannelMessageType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ChannelMessageType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChannelMode. /// </summary> public class ChannelMode : ConstantClass { /// <summary> /// Constant RESTRICTED for ChannelMode /// </summary> public static readonly ChannelMode RESTRICTED = new ChannelMode("RESTRICTED"); /// <summary> /// Constant UNRESTRICTED for ChannelMode /// </summary> public static readonly ChannelMode UNRESTRICTED = new ChannelMode("UNRESTRICTED"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ChannelMode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ChannelMode FindValue(string value) { return FindValue<ChannelMode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ChannelMode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ChannelPrivacy. /// </summary> public class ChannelPrivacy : ConstantClass { /// <summary> /// Constant PRIVATE for ChannelPrivacy /// </summary> public static readonly ChannelPrivacy PRIVATE = new ChannelPrivacy("PRIVATE"); /// <summary> /// Constant PUBLIC for ChannelPrivacy /// </summary> public static readonly ChannelPrivacy PUBLIC = new ChannelPrivacy("PUBLIC"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ChannelPrivacy(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ChannelPrivacy FindValue(string value) { return FindValue<ChannelPrivacy>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ChannelPrivacy(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ContentMuxType. /// </summary> public class ContentMuxType : ConstantClass { /// <summary> /// Constant ContentOnly for ContentMuxType /// </summary> public static readonly ContentMuxType ContentOnly = new ContentMuxType("ContentOnly"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ContentMuxType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ContentMuxType FindValue(string value) { return FindValue<ContentMuxType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ContentMuxType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type EmailStatus. /// </summary> public class EmailStatus : ConstantClass { /// <summary> /// Constant Failed for EmailStatus /// </summary> public static readonly EmailStatus Failed = new EmailStatus("Failed"); /// <summary> /// Constant NotSent for EmailStatus /// </summary> public static readonly EmailStatus NotSent = new EmailStatus("NotSent"); /// <summary> /// Constant Sent for EmailStatus /// </summary> public static readonly EmailStatus Sent = new EmailStatus("Sent"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public EmailStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static EmailStatus FindValue(string value) { return FindValue<EmailStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator EmailStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ErrorCode. /// </summary> public class ErrorCode : ConstantClass { /// <summary> /// Constant AccessDenied for ErrorCode /// </summary> public static readonly ErrorCode AccessDenied = new ErrorCode("AccessDenied"); /// <summary> /// Constant BadRequest for ErrorCode /// </summary> public static readonly ErrorCode BadRequest = new ErrorCode("BadRequest"); /// <summary> /// Constant Conflict for ErrorCode /// </summary> public static readonly ErrorCode Conflict = new ErrorCode("Conflict"); /// <summary> /// Constant Forbidden for ErrorCode /// </summary> public static readonly ErrorCode Forbidden = new ErrorCode("Forbidden"); /// <summary> /// Constant NotFound for ErrorCode /// </summary> public static readonly ErrorCode NotFound = new ErrorCode("NotFound"); /// <summary> /// Constant PhoneNumberAssociationsExist for ErrorCode /// </summary> public static readonly ErrorCode PhoneNumberAssociationsExist = new ErrorCode("PhoneNumberAssociationsExist"); /// <summary> /// Constant PreconditionFailed for ErrorCode /// </summary> public static readonly ErrorCode PreconditionFailed = new ErrorCode("PreconditionFailed"); /// <summary> /// Constant ResourceLimitExceeded for ErrorCode /// </summary> public static readonly ErrorCode ResourceLimitExceeded = new ErrorCode("ResourceLimitExceeded"); /// <summary> /// Constant ServiceFailure for ErrorCode /// </summary> public static readonly ErrorCode ServiceFailure = new ErrorCode("ServiceFailure"); /// <summary> /// Constant ServiceUnavailable for ErrorCode /// </summary> public static readonly ErrorCode ServiceUnavailable = new ErrorCode("ServiceUnavailable"); /// <summary> /// Constant Throttled for ErrorCode /// </summary> public static readonly ErrorCode Throttled = new ErrorCode("Throttled"); /// <summary> /// Constant Throttling for ErrorCode /// </summary> public static readonly ErrorCode Throttling = new ErrorCode("Throttling"); /// <summary> /// Constant Unauthorized for ErrorCode /// </summary> public static readonly ErrorCode Unauthorized = new ErrorCode("Unauthorized"); /// <summary> /// Constant Unprocessable for ErrorCode /// </summary> public static readonly ErrorCode Unprocessable = new ErrorCode("Unprocessable"); /// <summary> /// Constant VoiceConnectorGroupAssociationsExist for ErrorCode /// </summary> public static readonly ErrorCode VoiceConnectorGroupAssociationsExist = new ErrorCode("VoiceConnectorGroupAssociationsExist"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ErrorCode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ErrorCode FindValue(string value) { return FindValue<ErrorCode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ErrorCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type GeoMatchLevel. /// </summary> public class GeoMatchLevel : ConstantClass { /// <summary> /// Constant AreaCode for GeoMatchLevel /// </summary> public static readonly GeoMatchLevel AreaCode = new GeoMatchLevel("AreaCode"); /// <summary> /// Constant Country for GeoMatchLevel /// </summary> public static readonly GeoMatchLevel Country = new GeoMatchLevel("Country"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public GeoMatchLevel(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static GeoMatchLevel FindValue(string value) { return FindValue<GeoMatchLevel>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator GeoMatchLevel(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type InviteStatus. /// </summary> public class InviteStatus : ConstantClass { /// <summary> /// Constant Accepted for InviteStatus /// </summary> public static readonly InviteStatus Accepted = new InviteStatus("Accepted"); /// <summary> /// Constant Failed for InviteStatus /// </summary> public static readonly InviteStatus Failed = new InviteStatus("Failed"); /// <summary> /// Constant Pending for InviteStatus /// </summary> public static readonly InviteStatus Pending = new InviteStatus("Pending"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public InviteStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static InviteStatus FindValue(string value) { return FindValue<InviteStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator InviteStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type License. /// </summary> public class License : ConstantClass { /// <summary> /// Constant Basic for License /// </summary> public static readonly License Basic = new License("Basic"); /// <summary> /// Constant Plus for License /// </summary> public static readonly License Plus = new License("Plus"); /// <summary> /// Constant Pro for License /// </summary> public static readonly License Pro = new License("Pro"); /// <summary> /// Constant ProTrial for License /// </summary> public static readonly License ProTrial = new License("ProTrial"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public License(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static License FindValue(string value) { return FindValue<License>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator License(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type MediaPipelineSinkType. /// </summary> public class MediaPipelineSinkType : ConstantClass { /// <summary> /// Constant S3Bucket for MediaPipelineSinkType /// </summary> public static readonly MediaPipelineSinkType S3Bucket = new MediaPipelineSinkType("S3Bucket"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public MediaPipelineSinkType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static MediaPipelineSinkType FindValue(string value) { return FindValue<MediaPipelineSinkType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator MediaPipelineSinkType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type MediaPipelineSourceType. /// </summary> public class MediaPipelineSourceType : ConstantClass { /// <summary> /// Constant ChimeSdkMeeting for MediaPipelineSourceType /// </summary> public static readonly MediaPipelineSourceType ChimeSdkMeeting = new MediaPipelineSourceType("ChimeSdkMeeting"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public MediaPipelineSourceType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static MediaPipelineSourceType FindValue(string value) { return FindValue<MediaPipelineSourceType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator MediaPipelineSourceType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type MediaPipelineStatus. /// </summary> public class MediaPipelineStatus : ConstantClass { /// <summary> /// Constant Failed for MediaPipelineStatus /// </summary> public static readonly MediaPipelineStatus Failed = new MediaPipelineStatus("Failed"); /// <summary> /// Constant Initializing for MediaPipelineStatus /// </summary> public static readonly MediaPipelineStatus Initializing = new MediaPipelineStatus("Initializing"); /// <summary> /// Constant InProgress for MediaPipelineStatus /// </summary> public static readonly MediaPipelineStatus InProgress = new MediaPipelineStatus("InProgress"); /// <summary> /// Constant Stopped for MediaPipelineStatus /// </summary> public static readonly MediaPipelineStatus Stopped = new MediaPipelineStatus("Stopped"); /// <summary> /// Constant Stopping for MediaPipelineStatus /// </summary> public static readonly MediaPipelineStatus Stopping = new MediaPipelineStatus("Stopping"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public MediaPipelineStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static MediaPipelineStatus FindValue(string value) { return FindValue<MediaPipelineStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator MediaPipelineStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type MemberType. /// </summary> public class MemberType : ConstantClass { /// <summary> /// Constant Bot for MemberType /// </summary> public static readonly MemberType Bot = new MemberType("Bot"); /// <summary> /// Constant User for MemberType /// </summary> public static readonly MemberType User = new MemberType("User"); /// <summary> /// Constant Webhook for MemberType /// </summary> public static readonly MemberType Webhook = new MemberType("Webhook"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public MemberType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static MemberType FindValue(string value) { return FindValue<MemberType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator MemberType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type NotificationTarget. /// </summary> public class NotificationTarget : ConstantClass { /// <summary> /// Constant EventBridge for NotificationTarget /// </summary> public static readonly NotificationTarget EventBridge = new NotificationTarget("EventBridge"); /// <summary> /// Constant SNS for NotificationTarget /// </summary> public static readonly NotificationTarget SNS = new NotificationTarget("SNS"); /// <summary> /// Constant SQS for NotificationTarget /// </summary> public static readonly NotificationTarget SQS = new NotificationTarget("SQS"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public NotificationTarget(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static NotificationTarget FindValue(string value) { return FindValue<NotificationTarget>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator NotificationTarget(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type NumberSelectionBehavior. /// </summary> public class NumberSelectionBehavior : ConstantClass { /// <summary> /// Constant AvoidSticky for NumberSelectionBehavior /// </summary> public static readonly NumberSelectionBehavior AvoidSticky = new NumberSelectionBehavior("AvoidSticky"); /// <summary> /// Constant PreferSticky for NumberSelectionBehavior /// </summary> public static readonly NumberSelectionBehavior PreferSticky = new NumberSelectionBehavior("PreferSticky"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public NumberSelectionBehavior(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static NumberSelectionBehavior FindValue(string value) { return FindValue<NumberSelectionBehavior>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator NumberSelectionBehavior(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OrderedPhoneNumberStatus. /// </summary> public class OrderedPhoneNumberStatus : ConstantClass { /// <summary> /// Constant Acquired for OrderedPhoneNumberStatus /// </summary> public static readonly OrderedPhoneNumberStatus Acquired = new OrderedPhoneNumberStatus("Acquired"); /// <summary> /// Constant Failed for OrderedPhoneNumberStatus /// </summary> public static readonly OrderedPhoneNumberStatus Failed = new OrderedPhoneNumberStatus("Failed"); /// <summary> /// Constant Processing for OrderedPhoneNumberStatus /// </summary> public static readonly OrderedPhoneNumberStatus Processing = new OrderedPhoneNumberStatus("Processing"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OrderedPhoneNumberStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OrderedPhoneNumberStatus FindValue(string value) { return FindValue<OrderedPhoneNumberStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OrderedPhoneNumberStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type OriginationRouteProtocol. /// </summary> public class OriginationRouteProtocol : ConstantClass { /// <summary> /// Constant TCP for OriginationRouteProtocol /// </summary> public static readonly OriginationRouteProtocol TCP = new OriginationRouteProtocol("TCP"); /// <summary> /// Constant UDP for OriginationRouteProtocol /// </summary> public static readonly OriginationRouteProtocol UDP = new OriginationRouteProtocol("UDP"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public OriginationRouteProtocol(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static OriginationRouteProtocol FindValue(string value) { return FindValue<OriginationRouteProtocol>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator OriginationRouteProtocol(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PhoneNumberAssociationName. /// </summary> public class PhoneNumberAssociationName : ConstantClass { /// <summary> /// Constant AccountId for PhoneNumberAssociationName /// </summary> public static readonly PhoneNumberAssociationName AccountId = new PhoneNumberAssociationName("AccountId"); /// <summary> /// Constant SipRuleId for PhoneNumberAssociationName /// </summary> public static readonly PhoneNumberAssociationName SipRuleId = new PhoneNumberAssociationName("SipRuleId"); /// <summary> /// Constant UserId for PhoneNumberAssociationName /// </summary> public static readonly PhoneNumberAssociationName UserId = new PhoneNumberAssociationName("UserId"); /// <summary> /// Constant VoiceConnectorGroupId for PhoneNumberAssociationName /// </summary> public static readonly PhoneNumberAssociationName VoiceConnectorGroupId = new PhoneNumberAssociationName("VoiceConnectorGroupId"); /// <summary> /// Constant VoiceConnectorId for PhoneNumberAssociationName /// </summary> public static readonly PhoneNumberAssociationName VoiceConnectorId = new PhoneNumberAssociationName("VoiceConnectorId"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PhoneNumberAssociationName(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PhoneNumberAssociationName FindValue(string value) { return FindValue<PhoneNumberAssociationName>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PhoneNumberAssociationName(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PhoneNumberOrderStatus. /// </summary> public class PhoneNumberOrderStatus : ConstantClass { /// <summary> /// Constant Failed for PhoneNumberOrderStatus /// </summary> public static readonly PhoneNumberOrderStatus Failed = new PhoneNumberOrderStatus("Failed"); /// <summary> /// Constant Partial for PhoneNumberOrderStatus /// </summary> public static readonly PhoneNumberOrderStatus Partial = new PhoneNumberOrderStatus("Partial"); /// <summary> /// Constant Processing for PhoneNumberOrderStatus /// </summary> public static readonly PhoneNumberOrderStatus Processing = new PhoneNumberOrderStatus("Processing"); /// <summary> /// Constant Successful for PhoneNumberOrderStatus /// </summary> public static readonly PhoneNumberOrderStatus Successful = new PhoneNumberOrderStatus("Successful"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PhoneNumberOrderStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PhoneNumberOrderStatus FindValue(string value) { return FindValue<PhoneNumberOrderStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PhoneNumberOrderStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PhoneNumberProductType. /// </summary> public class PhoneNumberProductType : ConstantClass { /// <summary> /// Constant BusinessCalling for PhoneNumberProductType /// </summary> public static readonly PhoneNumberProductType BusinessCalling = new PhoneNumberProductType("BusinessCalling"); /// <summary> /// Constant SipMediaApplicationDialIn for PhoneNumberProductType /// </summary> public static readonly PhoneNumberProductType SipMediaApplicationDialIn = new PhoneNumberProductType("SipMediaApplicationDialIn"); /// <summary> /// Constant VoiceConnector for PhoneNumberProductType /// </summary> public static readonly PhoneNumberProductType VoiceConnector = new PhoneNumberProductType("VoiceConnector"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PhoneNumberProductType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PhoneNumberProductType FindValue(string value) { return FindValue<PhoneNumberProductType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PhoneNumberProductType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PhoneNumberStatus. /// </summary> public class PhoneNumberStatus : ConstantClass { /// <summary> /// Constant AcquireFailed for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus AcquireFailed = new PhoneNumberStatus("AcquireFailed"); /// <summary> /// Constant AcquireInProgress for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus AcquireInProgress = new PhoneNumberStatus("AcquireInProgress"); /// <summary> /// Constant Assigned for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus Assigned = new PhoneNumberStatus("Assigned"); /// <summary> /// Constant DeleteFailed for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus DeleteFailed = new PhoneNumberStatus("DeleteFailed"); /// <summary> /// Constant DeleteInProgress for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus DeleteInProgress = new PhoneNumberStatus("DeleteInProgress"); /// <summary> /// Constant ReleaseFailed for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus ReleaseFailed = new PhoneNumberStatus("ReleaseFailed"); /// <summary> /// Constant ReleaseInProgress for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus ReleaseInProgress = new PhoneNumberStatus("ReleaseInProgress"); /// <summary> /// Constant Unassigned for PhoneNumberStatus /// </summary> public static readonly PhoneNumberStatus Unassigned = new PhoneNumberStatus("Unassigned"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PhoneNumberStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PhoneNumberStatus FindValue(string value) { return FindValue<PhoneNumberStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PhoneNumberStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type PhoneNumberType. /// </summary> public class PhoneNumberType : ConstantClass { /// <summary> /// Constant Local for PhoneNumberType /// </summary> public static readonly PhoneNumberType Local = new PhoneNumberType("Local"); /// <summary> /// Constant TollFree for PhoneNumberType /// </summary> public static readonly PhoneNumberType TollFree = new PhoneNumberType("TollFree"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public PhoneNumberType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static PhoneNumberType FindValue(string value) { return FindValue<PhoneNumberType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator PhoneNumberType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type ProxySessionStatus. /// </summary> public class ProxySessionStatus : ConstantClass { /// <summary> /// Constant Closed for ProxySessionStatus /// </summary> public static readonly ProxySessionStatus Closed = new ProxySessionStatus("Closed"); /// <summary> /// Constant InProgress for ProxySessionStatus /// </summary> public static readonly ProxySessionStatus InProgress = new ProxySessionStatus("InProgress"); /// <summary> /// Constant Open for ProxySessionStatus /// </summary> public static readonly ProxySessionStatus Open = new ProxySessionStatus("Open"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public ProxySessionStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static ProxySessionStatus FindValue(string value) { return FindValue<ProxySessionStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator ProxySessionStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RegistrationStatus. /// </summary> public class RegistrationStatus : ConstantClass { /// <summary> /// Constant Registered for RegistrationStatus /// </summary> public static readonly RegistrationStatus Registered = new RegistrationStatus("Registered"); /// <summary> /// Constant Suspended for RegistrationStatus /// </summary> public static readonly RegistrationStatus Suspended = new RegistrationStatus("Suspended"); /// <summary> /// Constant Unregistered for RegistrationStatus /// </summary> public static readonly RegistrationStatus Unregistered = new RegistrationStatus("Unregistered"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public RegistrationStatus(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static RegistrationStatus FindValue(string value) { return FindValue<RegistrationStatus>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator RegistrationStatus(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type RoomMembershipRole. /// </summary> public class RoomMembershipRole : ConstantClass { /// <summary> /// Constant Administrator for RoomMembershipRole /// </summary> public static readonly RoomMembershipRole Administrator = new RoomMembershipRole("Administrator"); /// <summary> /// Constant Member for RoomMembershipRole /// </summary> public static readonly RoomMembershipRole Member = new RoomMembershipRole("Member"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public RoomMembershipRole(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static RoomMembershipRole FindValue(string value) { return FindValue<RoomMembershipRole>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator RoomMembershipRole(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SipRuleTriggerType. /// </summary> public class SipRuleTriggerType : ConstantClass { /// <summary> /// Constant RequestUriHostname for SipRuleTriggerType /// </summary> public static readonly SipRuleTriggerType RequestUriHostname = new SipRuleTriggerType("RequestUriHostname"); /// <summary> /// Constant ToPhoneNumber for SipRuleTriggerType /// </summary> public static readonly SipRuleTriggerType ToPhoneNumber = new SipRuleTriggerType("ToPhoneNumber"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SipRuleTriggerType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SipRuleTriggerType FindValue(string value) { return FindValue<SipRuleTriggerType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SipRuleTriggerType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type SortOrder. /// </summary> public class SortOrder : ConstantClass { /// <summary> /// Constant ASCENDING for SortOrder /// </summary> public static readonly SortOrder ASCENDING = new SortOrder("ASCENDING"); /// <summary> /// Constant DESCENDING for SortOrder /// </summary> public static readonly SortOrder DESCENDING = new SortOrder("DESCENDING"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public SortOrder(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static SortOrder FindValue(string value) { return FindValue<SortOrder>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator SortOrder(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeContentIdentificationType. /// </summary> public class TranscribeContentIdentificationType : ConstantClass { /// <summary> /// Constant PII for TranscribeContentIdentificationType /// </summary> public static readonly TranscribeContentIdentificationType PII = new TranscribeContentIdentificationType("PII"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeContentIdentificationType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeContentIdentificationType FindValue(string value) { return FindValue<TranscribeContentIdentificationType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeContentIdentificationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeContentRedactionType. /// </summary> public class TranscribeContentRedactionType : ConstantClass { /// <summary> /// Constant PII for TranscribeContentRedactionType /// </summary> public static readonly TranscribeContentRedactionType PII = new TranscribeContentRedactionType("PII"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeContentRedactionType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeContentRedactionType FindValue(string value) { return FindValue<TranscribeContentRedactionType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeContentRedactionType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeLanguageCode. /// </summary> public class TranscribeLanguageCode : ConstantClass { /// <summary> /// Constant DeDE for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode DeDE = new TranscribeLanguageCode("de-DE"); /// <summary> /// Constant EnAU for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode EnAU = new TranscribeLanguageCode("en-AU"); /// <summary> /// Constant EnGB for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode EnGB = new TranscribeLanguageCode("en-GB"); /// <summary> /// Constant EnUS for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode EnUS = new TranscribeLanguageCode("en-US"); /// <summary> /// Constant EsUS for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode EsUS = new TranscribeLanguageCode("es-US"); /// <summary> /// Constant FrCA for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode FrCA = new TranscribeLanguageCode("fr-CA"); /// <summary> /// Constant FrFR for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode FrFR = new TranscribeLanguageCode("fr-FR"); /// <summary> /// Constant HiIN for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode HiIN = new TranscribeLanguageCode("hi-IN"); /// <summary> /// Constant ItIT for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode ItIT = new TranscribeLanguageCode("it-IT"); /// <summary> /// Constant JaJP for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode JaJP = new TranscribeLanguageCode("ja-JP"); /// <summary> /// Constant KoKR for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode KoKR = new TranscribeLanguageCode("ko-KR"); /// <summary> /// Constant PtBR for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode PtBR = new TranscribeLanguageCode("pt-BR"); /// <summary> /// Constant ThTH for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode ThTH = new TranscribeLanguageCode("th-TH"); /// <summary> /// Constant ZhCN for TranscribeLanguageCode /// </summary> public static readonly TranscribeLanguageCode ZhCN = new TranscribeLanguageCode("zh-CN"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeLanguageCode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeLanguageCode FindValue(string value) { return FindValue<TranscribeLanguageCode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeLanguageCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeMedicalContentIdentificationType. /// </summary> public class TranscribeMedicalContentIdentificationType : ConstantClass { /// <summary> /// Constant PHI for TranscribeMedicalContentIdentificationType /// </summary> public static readonly TranscribeMedicalContentIdentificationType PHI = new TranscribeMedicalContentIdentificationType("PHI"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeMedicalContentIdentificationType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeMedicalContentIdentificationType FindValue(string value) { return FindValue<TranscribeMedicalContentIdentificationType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeMedicalContentIdentificationType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeMedicalLanguageCode. /// </summary> public class TranscribeMedicalLanguageCode : ConstantClass { /// <summary> /// Constant EnUS for TranscribeMedicalLanguageCode /// </summary> public static readonly TranscribeMedicalLanguageCode EnUS = new TranscribeMedicalLanguageCode("en-US"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeMedicalLanguageCode(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeMedicalLanguageCode FindValue(string value) { return FindValue<TranscribeMedicalLanguageCode>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeMedicalLanguageCode(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeMedicalRegion. /// </summary> public class TranscribeMedicalRegion : ConstantClass { /// <summary> /// Constant ApSoutheast2 for TranscribeMedicalRegion /// </summary> public static readonly TranscribeMedicalRegion ApSoutheast2 = new TranscribeMedicalRegion("ap-southeast-2"); /// <summary> /// Constant Auto for TranscribeMedicalRegion /// </summary> public static readonly TranscribeMedicalRegion Auto = new TranscribeMedicalRegion("auto"); /// <summary> /// Constant CaCentral1 for TranscribeMedicalRegion /// </summary> public static readonly TranscribeMedicalRegion CaCentral1 = new TranscribeMedicalRegion("ca-central-1"); /// <summary> /// Constant EuWest1 for TranscribeMedicalRegion /// </summary> public static readonly TranscribeMedicalRegion EuWest1 = new TranscribeMedicalRegion("eu-west-1"); /// <summary> /// Constant UsEast1 for TranscribeMedicalRegion /// </summary> public static readonly TranscribeMedicalRegion UsEast1 = new TranscribeMedicalRegion("us-east-1"); /// <summary> /// Constant UsEast2 for TranscribeMedicalRegion /// </summary> public static readonly TranscribeMedicalRegion UsEast2 = new TranscribeMedicalRegion("us-east-2"); /// <summary> /// Constant UsWest2 for TranscribeMedicalRegion /// </summary> public static readonly TranscribeMedicalRegion UsWest2 = new TranscribeMedicalRegion("us-west-2"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeMedicalRegion(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeMedicalRegion FindValue(string value) { return FindValue<TranscribeMedicalRegion>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeMedicalRegion(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeMedicalSpecialty. /// </summary> public class TranscribeMedicalSpecialty : ConstantClass { /// <summary> /// Constant CARDIOLOGY for TranscribeMedicalSpecialty /// </summary> public static readonly TranscribeMedicalSpecialty CARDIOLOGY = new TranscribeMedicalSpecialty("CARDIOLOGY"); /// <summary> /// Constant NEUROLOGY for TranscribeMedicalSpecialty /// </summary> public static readonly TranscribeMedicalSpecialty NEUROLOGY = new TranscribeMedicalSpecialty("NEUROLOGY"); /// <summary> /// Constant ONCOLOGY for TranscribeMedicalSpecialty /// </summary> public static readonly TranscribeMedicalSpecialty ONCOLOGY = new TranscribeMedicalSpecialty("ONCOLOGY"); /// <summary> /// Constant PRIMARYCARE for TranscribeMedicalSpecialty /// </summary> public static readonly TranscribeMedicalSpecialty PRIMARYCARE = new TranscribeMedicalSpecialty("PRIMARYCARE"); /// <summary> /// Constant RADIOLOGY for TranscribeMedicalSpecialty /// </summary> public static readonly TranscribeMedicalSpecialty RADIOLOGY = new TranscribeMedicalSpecialty("RADIOLOGY"); /// <summary> /// Constant UROLOGY for TranscribeMedicalSpecialty /// </summary> public static readonly TranscribeMedicalSpecialty UROLOGY = new TranscribeMedicalSpecialty("UROLOGY"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeMedicalSpecialty(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeMedicalSpecialty FindValue(string value) { return FindValue<TranscribeMedicalSpecialty>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeMedicalSpecialty(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeMedicalType. /// </summary> public class TranscribeMedicalType : ConstantClass { /// <summary> /// Constant CONVERSATION for TranscribeMedicalType /// </summary> public static readonly TranscribeMedicalType CONVERSATION = new TranscribeMedicalType("CONVERSATION"); /// <summary> /// Constant DICTATION for TranscribeMedicalType /// </summary> public static readonly TranscribeMedicalType DICTATION = new TranscribeMedicalType("DICTATION"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeMedicalType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeMedicalType FindValue(string value) { return FindValue<TranscribeMedicalType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeMedicalType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribePartialResultsStability. /// </summary> public class TranscribePartialResultsStability : ConstantClass { /// <summary> /// Constant High for TranscribePartialResultsStability /// </summary> public static readonly TranscribePartialResultsStability High = new TranscribePartialResultsStability("high"); /// <summary> /// Constant Low for TranscribePartialResultsStability /// </summary> public static readonly TranscribePartialResultsStability Low = new TranscribePartialResultsStability("low"); /// <summary> /// Constant Medium for TranscribePartialResultsStability /// </summary> public static readonly TranscribePartialResultsStability Medium = new TranscribePartialResultsStability("medium"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribePartialResultsStability(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribePartialResultsStability FindValue(string value) { return FindValue<TranscribePartialResultsStability>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribePartialResultsStability(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeRegion. /// </summary> public class TranscribeRegion : ConstantClass { /// <summary> /// Constant ApNortheast1 for TranscribeRegion /// </summary> public static readonly TranscribeRegion ApNortheast1 = new TranscribeRegion("ap-northeast-1"); /// <summary> /// Constant ApNortheast2 for TranscribeRegion /// </summary> public static readonly TranscribeRegion ApNortheast2 = new TranscribeRegion("ap-northeast-2"); /// <summary> /// Constant ApSoutheast2 for TranscribeRegion /// </summary> public static readonly TranscribeRegion ApSoutheast2 = new TranscribeRegion("ap-southeast-2"); /// <summary> /// Constant Auto for TranscribeRegion /// </summary> public static readonly TranscribeRegion Auto = new TranscribeRegion("auto"); /// <summary> /// Constant CaCentral1 for TranscribeRegion /// </summary> public static readonly TranscribeRegion CaCentral1 = new TranscribeRegion("ca-central-1"); /// <summary> /// Constant EuCentral1 for TranscribeRegion /// </summary> public static readonly TranscribeRegion EuCentral1 = new TranscribeRegion("eu-central-1"); /// <summary> /// Constant EuWest1 for TranscribeRegion /// </summary> public static readonly TranscribeRegion EuWest1 = new TranscribeRegion("eu-west-1"); /// <summary> /// Constant EuWest2 for TranscribeRegion /// </summary> public static readonly TranscribeRegion EuWest2 = new TranscribeRegion("eu-west-2"); /// <summary> /// Constant SaEast1 for TranscribeRegion /// </summary> public static readonly TranscribeRegion SaEast1 = new TranscribeRegion("sa-east-1"); /// <summary> /// Constant UsEast1 for TranscribeRegion /// </summary> public static readonly TranscribeRegion UsEast1 = new TranscribeRegion("us-east-1"); /// <summary> /// Constant UsEast2 for TranscribeRegion /// </summary> public static readonly TranscribeRegion UsEast2 = new TranscribeRegion("us-east-2"); /// <summary> /// Constant UsWest2 for TranscribeRegion /// </summary> public static readonly TranscribeRegion UsWest2 = new TranscribeRegion("us-west-2"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeRegion(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeRegion FindValue(string value) { return FindValue<TranscribeRegion>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeRegion(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type TranscribeVocabularyFilterMethod. /// </summary> public class TranscribeVocabularyFilterMethod : ConstantClass { /// <summary> /// Constant Mask for TranscribeVocabularyFilterMethod /// </summary> public static readonly TranscribeVocabularyFilterMethod Mask = new TranscribeVocabularyFilterMethod("mask"); /// <summary> /// Constant Remove for TranscribeVocabularyFilterMethod /// </summary> public static readonly TranscribeVocabularyFilterMethod Remove = new TranscribeVocabularyFilterMethod("remove"); /// <summary> /// Constant Tag for TranscribeVocabularyFilterMethod /// </summary> public static readonly TranscribeVocabularyFilterMethod Tag = new TranscribeVocabularyFilterMethod("tag"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public TranscribeVocabularyFilterMethod(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static TranscribeVocabularyFilterMethod FindValue(string value) { return FindValue<TranscribeVocabularyFilterMethod>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator TranscribeVocabularyFilterMethod(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type UserType. /// </summary> public class UserType : ConstantClass { /// <summary> /// Constant PrivateUser for UserType /// </summary> public static readonly UserType PrivateUser = new UserType("PrivateUser"); /// <summary> /// Constant SharedDevice for UserType /// </summary> public static readonly UserType SharedDevice = new UserType("SharedDevice"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public UserType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static UserType FindValue(string value) { return FindValue<UserType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator UserType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type VideoMuxType. /// </summary> public class VideoMuxType : ConstantClass { /// <summary> /// Constant VideoOnly for VideoMuxType /// </summary> public static readonly VideoMuxType VideoOnly = new VideoMuxType("VideoOnly"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public VideoMuxType(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static VideoMuxType FindValue(string value) { return FindValue<VideoMuxType>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator VideoMuxType(string value) { return FindValue(value); } } /// <summary> /// Constants used for properties of type VoiceConnectorAwsRegion. /// </summary> public class VoiceConnectorAwsRegion : ConstantClass { /// <summary> /// Constant UsEast1 for VoiceConnectorAwsRegion /// </summary> public static readonly VoiceConnectorAwsRegion UsEast1 = new VoiceConnectorAwsRegion("us-east-1"); /// <summary> /// Constant UsWest2 for VoiceConnectorAwsRegion /// </summary> public static readonly VoiceConnectorAwsRegion UsWest2 = new VoiceConnectorAwsRegion("us-west-2"); /// <summary> /// This constant constructor does not need to be called if the constant /// you are attempting to use is already defined as a static instance of /// this class. /// This constructor should be used to construct constants that are not /// defined as statics, for instance if attempting to use a feature that is /// newer than the current version of the SDK. /// </summary> public VoiceConnectorAwsRegion(string value) : base(value) { } /// <summary> /// Finds the constant for the unique value. /// </summary> /// <param name="value">The unique value for the constant</param> /// <returns>The constant for the unique value</returns> public static VoiceConnectorAwsRegion FindValue(string value) { return FindValue<VoiceConnectorAwsRegion>(value); } /// <summary> /// Utility method to convert strings to the constant class. /// </summary> /// <param name="value">The string value to convert to the constant class.</param> /// <returns></returns> public static implicit operator VoiceConnectorAwsRegion(string value) { return FindValue(value); } } }
2,836
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 chime-2018-05-01.normal.json service model. */ using System; using System.Collections.Generic; using Amazon.Runtime; using Amazon.Runtime.Endpoints; using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn; namespace Amazon.Chime.Internal { /// <summary> /// Amazon Chime endpoint provider. /// Resolves endpoint for given set of ChimeEndpointParameters. /// Can throw AmazonClientException if endpoint resolution is unsuccessful. /// </summary> public class AmazonChimeEndpointProvider : IEndpointProvider { /// <summary> /// Resolve endpoint for ChimeEndpointParameters /// </summary> public Endpoint ResolveEndpoint(EndpointParameters parameters) { if (parameters == null) throw new ArgumentNullException("parameters"); if (parameters["UseDualStack"] == null) throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution"); if (parameters["UseFIPS"] == null) throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution"); var refs = new Dictionary<string, object>() { ["Region"] = parameters["Region"], ["UseDualStack"] = parameters["UseDualStack"], ["UseFIPS"] = parameters["UseFIPS"], ["Endpoint"] = parameters["Endpoint"], }; if (IsSet(refs["Endpoint"])) { if (Equals(refs["UseFIPS"], true)) { throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported"); } if (Equals(refs["UseDualStack"], true)) { throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported"); } return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } if (IsSet(refs["Region"])) { if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null) { if (Equals(GetAttr(refs["PartitionResult"], "name"), "aws") && Equals(refs["UseFIPS"], false) && Equals(refs["UseDualStack"], false)) { return new Endpoint("https://chime.us-east-1.amazonaws.com", InterpolateJson(@"{""authSchemes"":[{""name"":""sigv4"",""signingName"":""chime"",""signingRegion"":""us-east-1""}]}", refs), InterpolateJson(@"", refs)); } if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://chime-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both"); } if (Equals(refs["UseFIPS"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS"))) { return new Endpoint(Interpolate(@"https://chime-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS"); } if (Equals(refs["UseDualStack"], true)) { if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack"))) { return new Endpoint(Interpolate(@"https://chime.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack"); } return new Endpoint(Interpolate(@"https://chime.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs)); } } throw new AmazonClientException("Invalid Configuration: Missing Region"); throw new AmazonClientException("Cannot resolve endpoint"); } } }
107
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 chime-2018-05-01.normal.json service model. */ using System; using Amazon.Chime.Model; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Endpoints; using Amazon.Util; using Amazon.Chime.Endpoints; #pragma warning disable 1591 namespace Amazon.Chime.Internal { /// <summary> /// Amazon Chime endpoint resolver. /// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for Chime service requests. /// Collects values for ChimeEndpointParameters and then tries to resolve endpoint by calling /// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses ChimeEndpointProvider. /// Responsible for setting authentication and http headers provided by resolved endpoint. /// </summary> public class AmazonChimeEndpointResolver : BaseEndpointResolver { protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters) { InjectHostPrefix(executionContext.RequestContext); } protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext) { var config = (AmazonChimeConfig)requestContext.ClientConfig; var result = new ChimeEndpointParameters(); 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 chime-2018-05-01.normal.json service model. */ using Amazon.Runtime.Internal; namespace Amazon.Chime.Internal { /// <summary> /// Service metadata for Amazon Chime service /// </summary> public partial class AmazonChimeMetadata : IServiceMetadata { /// <summary> /// Gets the value of the Service Id. /// </summary> public string ServiceId { get { return "Chime"; } } /// <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