| 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 |
Amazonka.Lightsail.CreateDomainEntry
Description
Creates one of the following domain name system (DNS) records in a domain DNS zone: Address (A), canonical name (CNAME), mail exchanger (MX), name server (NS), start of authority (SOA), service locator (SRV), or text (TXT).
The create domain entry operation supports tag-based access control
via resource tags applied to the resource identified by domain name.
For more information, see the
Amazon Lightsail Developer Guide.
Synopsis
- data CreateDomainEntry = CreateDomainEntry' {}
- newCreateDomainEntry :: Text -> DomainEntry -> CreateDomainEntry
- createDomainEntry_domainName :: Lens' CreateDomainEntry Text
- createDomainEntry_domainEntry :: Lens' CreateDomainEntry DomainEntry
- data CreateDomainEntryResponse = CreateDomainEntryResponse' {
- operation :: Maybe Operation
- httpStatus :: Int
- newCreateDomainEntryResponse :: Int -> CreateDomainEntryResponse
- createDomainEntryResponse_operation :: Lens' CreateDomainEntryResponse (Maybe Operation)
- createDomainEntryResponse_httpStatus :: Lens' CreateDomainEntryResponse Int
Creating a Request
data CreateDomainEntry Source #
See: newCreateDomainEntry smart constructor.
Constructors
| CreateDomainEntry' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> DomainEntry | |
| -> CreateDomainEntry |
Create a value of CreateDomainEntry 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:
CreateDomainEntry, createDomainEntry_domainName - The domain name (e.g., example.com) for which you want to create the
domain entry.
$sel:domainEntry:CreateDomainEntry', createDomainEntry_domainEntry - An array of key-value pairs containing information about the domain
entry request.
Request Lenses
createDomainEntry_domainName :: Lens' CreateDomainEntry Text Source #
The domain name (e.g., example.com) for which you want to create the
domain entry.
createDomainEntry_domainEntry :: Lens' CreateDomainEntry DomainEntry Source #
An array of key-value pairs containing information about the domain entry request.
Destructuring the Response
data CreateDomainEntryResponse Source #
See: newCreateDomainEntryResponse smart constructor.
Constructors
| CreateDomainEntryResponse' | |
Fields
| |
Instances
newCreateDomainEntryResponse Source #
Create a value of CreateDomainEntryResponse 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:CreateDomainEntryResponse', createDomainEntryResponse_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:CreateDomainEntryResponse', createDomainEntryResponse_httpStatus - The response's http status code.
Response Lenses
createDomainEntryResponse_operation :: Lens' CreateDomainEntryResponse (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.
createDomainEntryResponse_httpStatus :: Lens' CreateDomainEntryResponse Int Source #
The response's http status code.