/*
* 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 lightsail-2016-11-28.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.Lightsail.Model
{
///
/// Container for the parameters to the AttachCertificateToDistribution operation.
/// Attaches an SSL/TLS certificate to your Amazon Lightsail content delivery network
/// (CDN) distribution.
///
///
///
/// After the certificate is attached, your distribution accepts HTTPS traffic for all
/// of the domains that are associated with the certificate.
///
///
///
/// Use the CreateCertificate
action to create a certificate that you can
/// attach to your distribution.
///
///
///
/// Only certificates created in the us-east-1
Amazon Web Services Region
/// can be attached to Lightsail distributions. Lightsail distributions are global resources
/// that can reference an origin in any Amazon Web Services Region, and distribute its
/// content globally. However, all distributions are located in the us-east-1
/// Region.
///
///
///
public partial class AttachCertificateToDistributionRequest : AmazonLightsailRequest
{
private string _certificateName;
private string _distributionName;
///
/// Gets and sets the property CertificateName.
///
/// The name of the certificate to attach to a distribution.
///
///
///
/// Only certificates with a status of ISSUED
can be attached to a distribution.
///
///
///
/// Use the GetCertificates
action to get a list of certificate names that
/// you can specify.
///
///
///
/// This is the name of the certificate resource type and is used only to reference the
/// certificate in other API actions. It can be different than the domain name of the
/// certificate. For example, your certificate name might be WordPress-Blog-Certificate
/// and the domain name of the certificate might be example.com
.
///
///
///
[AWSProperty(Required=true)]
public string CertificateName
{
get { return this._certificateName; }
set { this._certificateName = value; }
}
// Check to see if CertificateName property is set
internal bool IsSetCertificateName()
{
return this._certificateName != null;
}
///
/// Gets and sets the property DistributionName.
///
/// The name of the distribution that the certificate will be attached to.
///
///
///
/// Use the GetDistributions
action to get a list of distribution names that
/// you can specify.
///
///
[AWSProperty(Required=true)]
public string DistributionName
{
get { return this._distributionName; }
set { this._distributionName = value; }
}
// Check to see if DistributionName property is set
internal bool IsSetDistributionName()
{
return this._distributionName != null;
}
}
}