/* * 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 { /// /// Container for the parameters to the ImportCertificate operation. /// Imports a certificate into Certificate Manager (ACM) to use with services that are /// integrated with ACM. Note that integrated /// services 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 Importing /// Certificates in the Certificate Manager User Guide. /// /// /// /// ACM does not provide managed /// renewal for certificates that you import. /// /// /// /// Note the following guidelines when importing third party certificates: /// /// /// /// This operation returns the Amazon /// Resource Name (ARN) of the imported certificate. /// /// public partial class ImportCertificateRequest : AmazonCertificateManagerRequest { private MemoryStream _certificate; private string _certificateArn; private MemoryStream _certificateChain; private MemoryStream _privateKey; private List _tags = new List(); /// /// Gets and sets the property Certificate. /// /// The certificate to import. /// /// [AWSProperty(Required=true, Min=1, Max=32768)] public MemoryStream Certificate { get { return this._certificate; } set { this._certificate = value; } } // Check to see if Certificate property is set internal bool IsSetCertificate() { return this._certificate != null; } /// /// Gets and sets the property CertificateArn. /// /// The Amazon /// Resource Name (ARN) of an imported certificate to replace. To import a new certificate, /// omit this field. /// /// [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; } /// /// Gets and sets the property CertificateChain. /// /// The PEM encoded certificate chain. /// /// [AWSProperty(Min=1, Max=2097152)] public MemoryStream CertificateChain { get { return this._certificateChain; } set { this._certificateChain = value; } } // Check to see if CertificateChain property is set internal bool IsSetCertificateChain() { return this._certificateChain != null; } /// /// Gets and sets the property PrivateKey. /// /// The private key that matches the public key in the certificate. /// /// [AWSProperty(Required=true, Sensitive=true, Min=1, Max=5120)] public MemoryStream PrivateKey { get { return this._privateKey; } set { this._privateKey = value; } } // Check to see if PrivateKey property is set internal bool IsSetPrivateKey() { return this._privateKey != null; } /// /// Gets and sets the property Tags. /// /// One or more resource tags to associate with the imported certificate. /// /// /// /// Note: You cannot apply tags when reimporting a certificate. /// /// [AWSProperty(Min=1, Max=50)] public List 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; } } }