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 |
Creates an SSL/TLS certificate for an Amazon Lightsail content delivery network (CDN) distribution and a container service.
After the certificate is valid, use the
AttachCertificateToDistribution
action to use the certificate and its
domains with your distribution. Or use the UpdateContainerService
action to use the certificate and its domains with your container
service.
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 CreateCertificate = CreateCertificate' {
- subjectAlternativeNames :: Maybe [Text]
- tags :: Maybe [Tag]
- certificateName :: Text
- domainName :: Text
- newCreateCertificate :: Text -> Text -> CreateCertificate
- createCertificate_subjectAlternativeNames :: Lens' CreateCertificate (Maybe [Text])
- createCertificate_tags :: Lens' CreateCertificate (Maybe [Tag])
- createCertificate_certificateName :: Lens' CreateCertificate Text
- createCertificate_domainName :: Lens' CreateCertificate Text
- data CreateCertificateResponse = CreateCertificateResponse' {}
- newCreateCertificateResponse :: Int -> CreateCertificateResponse
- createCertificateResponse_certificate :: Lens' CreateCertificateResponse (Maybe CertificateSummary)
- createCertificateResponse_operations :: Lens' CreateCertificateResponse (Maybe [Operation])
- createCertificateResponse_httpStatus :: Lens' CreateCertificateResponse Int
Creating a Request
data CreateCertificate Source #
See: newCreateCertificate
smart constructor.
CreateCertificate' | |
|
Instances
:: Text | |
-> Text | |
-> CreateCertificate |
Create a value of CreateCertificate
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:subjectAlternativeNames:CreateCertificate'
, createCertificate_subjectAlternativeNames
- An array of strings that specify the alternate domains (e.g.,
example2.com
) and subdomains (e.g., blog.example.com
) for the
certificate.
You can specify a maximum of nine alternate domains (in addition to the primary domain name).
Wildcard domain entries (e.g., *.example.com
) are not supported.
$sel:tags:CreateCertificate'
, createCertificate_tags
- The tag keys and optional values to add to the certificate during
create.
Use the TagResource
action to tag a resource after it's created.
$sel:certificateName:CreateCertificate'
, createCertificate_certificateName
- The name for the certificate.
$sel:domainName:CreateCertificate'
, createCertificate_domainName
- The domain name (e.g., example.com
) for the certificate.
Request Lenses
createCertificate_subjectAlternativeNames :: Lens' CreateCertificate (Maybe [Text]) Source #
An array of strings that specify the alternate domains (e.g.,
example2.com
) and subdomains (e.g., blog.example.com
) for the
certificate.
You can specify a maximum of nine alternate domains (in addition to the primary domain name).
Wildcard domain entries (e.g., *.example.com
) are not supported.
createCertificate_tags :: Lens' CreateCertificate (Maybe [Tag]) Source #
The tag keys and optional values to add to the certificate during create.
Use the TagResource
action to tag a resource after it's created.
createCertificate_certificateName :: Lens' CreateCertificate Text Source #
The name for the certificate.
createCertificate_domainName :: Lens' CreateCertificate Text Source #
The domain name (e.g., example.com
) for the certificate.
Destructuring the Response
data CreateCertificateResponse Source #
See: newCreateCertificateResponse
smart constructor.
CreateCertificateResponse' | |
|
Instances
newCreateCertificateResponse Source #
Create a value of CreateCertificateResponse
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:certificate:CreateCertificateResponse'
, createCertificateResponse_certificate
- An object that describes the certificate created.
$sel:operations:CreateCertificateResponse'
, createCertificateResponse_operations
- An array of objects that describe 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:CreateCertificateResponse'
, createCertificateResponse_httpStatus
- The response's http status code.
Response Lenses
createCertificateResponse_certificate :: Lens' CreateCertificateResponse (Maybe CertificateSummary) Source #
An object that describes the certificate created.
createCertificateResponse_operations :: Lens' CreateCertificateResponse (Maybe [Operation]) Source #
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
createCertificateResponse_httpStatus :: Lens' CreateCertificateResponse Int Source #
The response's http status code.