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

Description

Creates a new version of an existing traffic policy. When you create a new version of a traffic policy, you specify the ID of the traffic policy that you want to update and a JSON-formatted document that describes the new version. You use traffic policies to create multiple DNS resource record sets for one domain name (such as example.com) or one subdomain name (such as www.example.com). You can create a maximum of 1000 versions of a traffic policy. If you reach the limit and need to create another version, you'll need to start a new traffic policy.

Synopsis

Creating a Request

data CreateTrafficPolicyVersion Source #

A complex type that contains information about the traffic policy that you want to create a new version for.

See: newCreateTrafficPolicyVersion smart constructor.

Constructors

CreateTrafficPolicyVersion' 

Fields

  • comment :: Maybe Text

    The comment that you specified in the CreateTrafficPolicyVersion request, if any.

  • id :: Text

    The ID of the traffic policy for which you want to create a new version.

  • document :: Text

    The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion request. For more information about the JSON format, see CreateTrafficPolicy.

Instances

Instances details
Eq CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Read CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Show CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Generic CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Associated Types

type Rep CreateTrafficPolicyVersion :: Type -> Type #

NFData CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Hashable CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

AWSRequest CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

ToHeaders CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

ToPath CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

ToQuery CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

ToElement CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

ToXML CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

type Rep CreateTrafficPolicyVersion Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

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

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

newCreateTrafficPolicyVersion Source #

Create a value of CreateTrafficPolicyVersion 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:CreateTrafficPolicyVersion', createTrafficPolicyVersion_comment - The comment that you specified in the CreateTrafficPolicyVersion request, if any.

$sel:id:CreateTrafficPolicyVersion', createTrafficPolicyVersion_id - The ID of the traffic policy for which you want to create a new version.

$sel:document:CreateTrafficPolicyVersion', createTrafficPolicyVersion_document - The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion request. For more information about the JSON format, see CreateTrafficPolicy.

Request Lenses

createTrafficPolicyVersion_comment :: Lens' CreateTrafficPolicyVersion (Maybe Text) Source #

The comment that you specified in the CreateTrafficPolicyVersion request, if any.

createTrafficPolicyVersion_id :: Lens' CreateTrafficPolicyVersion Text Source #

The ID of the traffic policy for which you want to create a new version.

createTrafficPolicyVersion_document :: Lens' CreateTrafficPolicyVersion Text Source #

The definition of this version of the traffic policy, in JSON format. You specified the JSON in the CreateTrafficPolicyVersion request. For more information about the JSON format, see CreateTrafficPolicy.

Destructuring the Response

data CreateTrafficPolicyVersionResponse Source #

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

See: newCreateTrafficPolicyVersionResponse smart constructor.

Constructors

CreateTrafficPolicyVersionResponse' 

Fields

Instances

Instances details
Eq CreateTrafficPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Read CreateTrafficPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Show CreateTrafficPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Generic CreateTrafficPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

Associated Types

type Rep CreateTrafficPolicyVersionResponse :: Type -> Type #

NFData CreateTrafficPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

type Rep CreateTrafficPolicyVersionResponse Source # 
Instance details

Defined in Amazonka.Route53.CreateTrafficPolicyVersion

type Rep CreateTrafficPolicyVersionResponse = D1 ('MetaData "CreateTrafficPolicyVersionResponse" "Amazonka.Route53.CreateTrafficPolicyVersion" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "CreateTrafficPolicyVersionResponse'" '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))))

newCreateTrafficPolicyVersionResponse Source #

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

$sel:trafficPolicy:CreateTrafficPolicyVersionResponse', createTrafficPolicyVersionResponse_trafficPolicy - A complex type that contains settings for the new version of the traffic policy.

$sel:location:CreateTrafficPolicyVersionResponse', createTrafficPolicyVersionResponse_location - A unique URL that represents a new traffic policy version.

Response Lenses

createTrafficPolicyVersionResponse_trafficPolicy :: Lens' CreateTrafficPolicyVersionResponse TrafficPolicy Source #

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

createTrafficPolicyVersionResponse_location :: Lens' CreateTrafficPolicyVersionResponse Text Source #

A unique URL that represents a new traffic policy version.