libZSservicesZSamazonka-lightsailZSamazonka-lightsail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data CreateDomainEntry Source #

See: newCreateDomainEntry smart constructor.

Constructors

CreateDomainEntry' 

Fields

  • domainName :: Text

    The domain name (e.g., example.com) for which you want to create the domain entry.

  • domainEntry :: DomainEntry

    An array of key-value pairs containing information about the domain entry request.

Instances

Instances details
Eq CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Read CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Show CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Generic CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Associated Types

type Rep CreateDomainEntry :: Type -> Type #

NFData CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Methods

rnf :: CreateDomainEntry -> () #

Hashable CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

ToJSON CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

AWSRequest CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Associated Types

type AWSResponse CreateDomainEntry #

ToHeaders CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

ToPath CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

ToQuery CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

type Rep CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

type Rep CreateDomainEntry = D1 ('MetaData "CreateDomainEntry" "Amazonka.Lightsail.CreateDomainEntry" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateDomainEntry'" 'PrefixI 'True) (S1 ('MetaSel ('Just "domainName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "domainEntry") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DomainEntry)))
type AWSResponse CreateDomainEntry Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

newCreateDomainEntry Source #

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:

$sel:domainName: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

  • operation :: Maybe 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.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateDomainEntryResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Read CreateDomainEntryResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Show CreateDomainEntryResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Generic CreateDomainEntryResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

Associated Types

type Rep CreateDomainEntryResponse :: Type -> Type #

NFData CreateDomainEntryResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

type Rep CreateDomainEntryResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomainEntry

type Rep CreateDomainEntryResponse = D1 ('MetaData "CreateDomainEntryResponse" "Amazonka.Lightsail.CreateDomainEntry" "libZSservicesZSamazonka-lightsailZSamazonka-lightsail" 'False) (C1 ('MetaCons "CreateDomainEntryResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "operation") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Operation)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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.