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 a domain resource for the specified domain (e.g., example.com).
The create domain
operation supports tag-based access control via
request tags. For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data CreateDomain = CreateDomain' {
- tags :: Maybe [Tag]
- domainName :: Text
- newCreateDomain :: Text -> CreateDomain
- createDomain_tags :: Lens' CreateDomain (Maybe [Tag])
- createDomain_domainName :: Lens' CreateDomain Text
- data CreateDomainResponse = CreateDomainResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newCreateDomainResponse :: Int -> CreateDomainResponse
- createDomainResponse_operation :: Lens' CreateDomainResponse (Maybe Operation)
- createDomainResponse_httpStatus :: Lens' CreateDomainResponse Int
Creating a Request
data CreateDomain Source #
See: newCreateDomain
smart constructor.
CreateDomain' | |
|
Instances
Create a value of CreateDomain
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:tags:CreateDomain'
, createDomain_tags
- The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
$sel:domainName:CreateDomain'
, createDomain_domainName
- The domain name to manage (e.g., example.com
).
You cannot register a new domain name using Lightsail. You must register a domain name using Amazon Route 53 or another domain name registrar. If you have already registered your domain, you can enter its name in this parameter to manage the DNS records for that domain using Lightsail.
Request Lenses
createDomain_tags :: Lens' CreateDomain (Maybe [Tag]) Source #
The tag keys and optional values to add to the resource during create.
Use the TagResource
action to tag a resource after it's created.
createDomain_domainName :: Lens' CreateDomain Text Source #
The domain name to manage (e.g., example.com
).
You cannot register a new domain name using Lightsail. You must register a domain name using Amazon Route 53 or another domain name registrar. If you have already registered your domain, you can enter its name in this parameter to manage the DNS records for that domain using Lightsail.
Destructuring the Response
data CreateDomainResponse Source #
See: newCreateDomainResponse
smart constructor.
CreateDomainResponse' | |
|
Instances
newCreateDomainResponse Source #
Create a value of CreateDomainResponse
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:CreateDomainResponse'
, createDomainResponse_operation
- 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:CreateDomainResponse'
, createDomainResponse_httpStatus
- The response's http status code.
Response Lenses
createDomainResponse_operation :: Lens' CreateDomainResponse (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.
createDomainResponse_httpStatus :: Lens' CreateDomainResponse Int Source #
The response's http status code.