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.CreateDomain

Description

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

Creating a Request

data CreateDomain Source #

See: newCreateDomain smart constructor.

Constructors

CreateDomain' 

Fields

  • tags :: Maybe [Tag]

    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.

  • domainName :: Text

    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.

Instances

Instances details
Eq CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Read CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Show CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Generic CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Associated Types

type Rep CreateDomain :: Type -> Type #

NFData CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Methods

rnf :: CreateDomain -> () #

Hashable CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

ToJSON CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

AWSRequest CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Associated Types

type AWSResponse CreateDomain #

ToHeaders CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

ToPath CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

ToQuery CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

type Rep CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

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

Defined in Amazonka.Lightsail.CreateDomain

newCreateDomain Source #

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.

Constructors

CreateDomainResponse' 

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 CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Read CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Show CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Generic CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Associated Types

type Rep CreateDomainResponse :: Type -> Type #

NFData CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Methods

rnf :: CreateDomainResponse -> () #

type Rep CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

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

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.