libZSservicesZSamazonka-route53ZSamazonka-route53
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.Route53.CreateTrafficPolicy

Description

Creates a traffic policy, which you use to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com).

Synopsis

Creating a Request

data CreateTrafficPolicy Source #

A complex type that contains information about the traffic policy that you want to create.

See: newCreateTrafficPolicy smart constructor.

Constructors

CreateTrafficPolicy' 

Fields

Instances

Instances details
Eq CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Read CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Show CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Generic CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Associated Types

type Rep CreateTrafficPolicy :: Type -> Type #

NFData CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Methods

rnf :: CreateTrafficPolicy -> () #

Hashable CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

AWSRequest CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Associated Types

type AWSResponse CreateTrafficPolicy #

ToHeaders CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

ToPath CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

ToQuery CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

ToElement CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

ToXML CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

type Rep CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

type Rep CreateTrafficPolicy = D1 ('MetaData "CreateTrafficPolicy" "Amazonka.Route53.CreateTrafficPolicy" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "CreateTrafficPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "comment") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "document") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

newCreateTrafficPolicy Source #

Create a value of CreateTrafficPolicy 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:comment:CreateTrafficPolicy', createTrafficPolicy_comment - (Optional) Any comments that you want to include about the traffic policy.

$sel:name:CreateTrafficPolicy', createTrafficPolicy_name - The name of the traffic policy.

$sel:document:CreateTrafficPolicy', createTrafficPolicy_document - The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.

Request Lenses

createTrafficPolicy_comment :: Lens' CreateTrafficPolicy (Maybe Text) Source #

(Optional) Any comments that you want to include about the traffic policy.

createTrafficPolicy_document :: Lens' CreateTrafficPolicy Text Source #

The definition of this traffic policy in JSON format. For more information, see Traffic Policy Document Format.

Destructuring the Response

data CreateTrafficPolicyResponse Source #

A complex type that contains the response information for the CreateTrafficPolicy request.

See: newCreateTrafficPolicyResponse smart constructor.

Constructors

CreateTrafficPolicyResponse' 

Fields

Instances

Instances details
Eq CreateTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Read CreateTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Show CreateTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Generic CreateTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

Associated Types

type Rep CreateTrafficPolicyResponse :: Type -> Type #

NFData CreateTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

type Rep CreateTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicy

type Rep CreateTrafficPolicyResponse = D1 ('MetaData "CreateTrafficPolicyResponse" "Amazonka.Route53.CreateTrafficPolicy" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "CreateTrafficPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: (S1 ('MetaSel ('Just "trafficPolicy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TrafficPolicy) :*: S1 ('MetaSel ('Just "location") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newCreateTrafficPolicyResponse Source #

Create a value of CreateTrafficPolicyResponse 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:httpStatus:CreateTrafficPolicyResponse', createTrafficPolicyResponse_httpStatus - The response's http status code.

$sel:trafficPolicy:CreateTrafficPolicyResponse', createTrafficPolicyResponse_trafficPolicy - A complex type that contains settings for the new traffic policy.

$sel:location:CreateTrafficPolicyResponse', createTrafficPolicyResponse_location - A unique URL that represents a new traffic policy.

Response Lenses

createTrafficPolicyResponse_trafficPolicy :: Lens' CreateTrafficPolicyResponse TrafficPolicy Source #

A complex type that contains settings for the new traffic policy.

createTrafficPolicyResponse_location :: Lens' CreateTrafficPolicyResponse Text Source #

A unique URL that represents a new traffic policy.