amazonka-lightsail-2.0: Amazon Lightsail SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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

Instances

Instances details
ToJSON CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.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

AWSRequest CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Associated Types

type AWSResponse CreateDomain #

Generic CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Associated Types

type Rep CreateDomain :: Type -> Type #

Read CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Show CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

NFData CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Methods

rnf :: CreateDomain -> () #

Eq CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Hashable CreateDomain Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

type AWSResponse 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" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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)))

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:

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.

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

Defined in Amazonka.Lightsail.CreateDomain

Associated Types

type Rep CreateDomainResponse :: Type -> Type #

Read CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Show CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

NFData CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

Methods

rnf :: CreateDomainResponse -> () #

Eq CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

type Rep CreateDomainResponse Source # 
Instance details

Defined in Amazonka.Lightsail.CreateDomain

type Rep CreateDomainResponse = D1 ('MetaData "CreateDomainResponse" "Amazonka.Lightsail.CreateDomain" "amazonka-lightsail-2.0-77hvsZhtZFxFduYae8QaN0" '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.