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 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:
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.
CreateDomain
, createDomain_domainName
- The domain name to manage (e.g., example.com
).
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
).
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.