Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
AWS Region can be attached
to Lightsail distributions. Lightsail distributions are global resources
that can reference an origin in any AWS Region, and distribute its
content globally. However, all distributions are located in the
us-east-1
Region.
Synopsis
- data AttachCertificateToDistribution = AttachCertificateToDistribution' {}
- newAttachCertificateToDistribution :: Text -> Text -> AttachCertificateToDistribution
- attachCertificateToDistribution_distributionName :: Lens' AttachCertificateToDistribution Text
- attachCertificateToDistribution_certificateName :: Lens' AttachCertificateToDistribution Text
- data AttachCertificateToDistributionResponse = AttachCertificateToDistributionResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newAttachCertificateToDistributionResponse :: Int -> AttachCertificateToDistributionResponse
- attachCertificateToDistributionResponse_operation :: Lens' AttachCertificateToDistributionResponse (Maybe Operation)
- attachCertificateToDistributionResponse_httpStatus :: Lens' AttachCertificateToDistributionResponse Int
Creating a Request
data AttachCertificateToDistribution Source #
See: newAttachCertificateToDistribution
smart constructor.
AttachCertificateToDistribution' | |
|
Instances
newAttachCertificateToDistribution Source #
Create a value of AttachCertificateToDistribution
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:distributionName:AttachCertificateToDistribution'
, attachCertificateToDistribution_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.
$sel:certificateName:AttachCertificateToDistribution'
, attachCertificateToDistribution_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
.
Request Lenses
attachCertificateToDistribution_distributionName :: Lens' AttachCertificateToDistribution Text Source #
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.
attachCertificateToDistribution_certificateName :: Lens' AttachCertificateToDistribution Text Source #
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
.
Destructuring the Response
data AttachCertificateToDistributionResponse Source #
See: newAttachCertificateToDistributionResponse
smart constructor.
AttachCertificateToDistributionResponse' | |
|
Instances
newAttachCertificateToDistributionResponse Source #
Create a value of AttachCertificateToDistributionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:operation:AttachCertificateToDistributionResponse'
, attachCertificateToDistributionResponse_operation
- An object that describes the result of the action, such as the status of
the request, the timestamp of the request, and the resources affected by
the request.
$sel:httpStatus:AttachCertificateToDistributionResponse'
, attachCertificateToDistributionResponse_httpStatus
- The response's http status code.
Response Lenses
attachCertificateToDistributionResponse_operation :: Lens' AttachCertificateToDistributionResponse (Maybe Operation) Source #
An object that describes the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
attachCertificateToDistributionResponse_httpStatus :: Lens' AttachCertificateToDistributionResponse Int Source #
The response's http status code.