Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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
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.
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
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:
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.
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.
CreateCertificate
, createCertificate_certificateName
- The name for the certificate.
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.