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

Description

Updates the resource record sets in a specified hosted zone that were created based on the settings in a specified traffic policy version.

When you update a traffic policy instance, Amazon Route 53 continues to respond to DNS queries for the root resource record set name (such as example.com) while it replaces one group of resource record sets with another. Route 53 performs the following operations:

  1. Route 53 creates a new group of resource record sets based on the specified traffic policy. This is true regardless of how significant the differences are between the existing resource record sets and the new resource record sets.
  2. When all of the new resource record sets have been created, Route 53 starts to respond to DNS queries for the root resource record set name (such as example.com) by using the new resource record sets.
  3. Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.
Synopsis

Creating a Request

data UpdateTrafficPolicyInstance Source #

A complex type that contains information about the resource record sets that you want to update based on a specified traffic policy instance.

See: newUpdateTrafficPolicyInstance smart constructor.

Constructors

UpdateTrafficPolicyInstance' 

Fields

  • id :: Text

    The ID of the traffic policy instance that you want to update.

  • ttl :: Natural

    The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.

  • trafficPolicyId :: Text

    The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

  • trafficPolicyVersion :: Natural

    The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

Instances

Instances details
Eq UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Read UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Show UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Generic UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Associated Types

type Rep UpdateTrafficPolicyInstance :: Type -> Type #

NFData UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Hashable UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

AWSRequest UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

ToHeaders UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

ToPath UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

ToQuery UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

ToElement UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

ToXML UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

type Rep UpdateTrafficPolicyInstance Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

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

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

newUpdateTrafficPolicyInstance Source #

Create a value of UpdateTrafficPolicyInstance 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:id:UpdateTrafficPolicyInstance', updateTrafficPolicyInstance_id - The ID of the traffic policy instance that you want to update.

$sel:ttl:UpdateTrafficPolicyInstance', updateTrafficPolicyInstance_ttl - The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.

$sel:trafficPolicyId:UpdateTrafficPolicyInstance', updateTrafficPolicyInstance_trafficPolicyId - The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

$sel:trafficPolicyVersion:UpdateTrafficPolicyInstance', updateTrafficPolicyInstance_trafficPolicyVersion - The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

Request Lenses

updateTrafficPolicyInstance_id :: Lens' UpdateTrafficPolicyInstance Text Source #

The ID of the traffic policy instance that you want to update.

updateTrafficPolicyInstance_ttl :: Lens' UpdateTrafficPolicyInstance Natural Source #

The TTL that you want Amazon Route 53 to assign to all of the updated resource record sets.

updateTrafficPolicyInstance_trafficPolicyId :: Lens' UpdateTrafficPolicyInstance Text Source #

The ID of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

updateTrafficPolicyInstance_trafficPolicyVersion :: Lens' UpdateTrafficPolicyInstance Natural Source #

The version of the traffic policy that you want Amazon Route 53 to use to update resource record sets for the specified traffic policy instance.

Destructuring the Response

data UpdateTrafficPolicyInstanceResponse Source #

A complex type that contains information about the resource record sets that Amazon Route 53 created based on a specified traffic policy.

See: newUpdateTrafficPolicyInstanceResponse smart constructor.

Constructors

UpdateTrafficPolicyInstanceResponse' 

Fields

Instances

Instances details
Eq UpdateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Read UpdateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Show UpdateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

Generic UpdateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

NFData UpdateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

type Rep UpdateTrafficPolicyInstanceResponse Source # 
Instance details

Defined in Amazonka.Route53.UpdateTrafficPolicyInstance

type Rep UpdateTrafficPolicyInstanceResponse = D1 ('MetaData "UpdateTrafficPolicyInstanceResponse" "Amazonka.Route53.UpdateTrafficPolicyInstance" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "UpdateTrafficPolicyInstanceResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "trafficPolicyInstance") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TrafficPolicyInstance)))

newUpdateTrafficPolicyInstanceResponse Source #

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

$sel:trafficPolicyInstance:UpdateTrafficPolicyInstanceResponse', updateTrafficPolicyInstanceResponse_trafficPolicyInstance - A complex type that contains settings for the updated traffic policy instance.

Response Lenses

updateTrafficPolicyInstanceResponse_trafficPolicyInstance :: Lens' UpdateTrafficPolicyInstanceResponse TrafficPolicyInstance Source #

A complex type that contains settings for the updated traffic policy instance.