Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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:
- 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.
- 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.
- Route 53 deletes the old group of resource record sets that are associated with the root resource record set name.
Synopsis
- data UpdateTrafficPolicyInstance = UpdateTrafficPolicyInstance' {
- id :: Text
- ttl :: Natural
- trafficPolicyId :: Text
- trafficPolicyVersion :: Natural
- newUpdateTrafficPolicyInstance :: Text -> Natural -> Text -> Natural -> UpdateTrafficPolicyInstance
- updateTrafficPolicyInstance_id :: Lens' UpdateTrafficPolicyInstance Text
- updateTrafficPolicyInstance_ttl :: Lens' UpdateTrafficPolicyInstance Natural
- updateTrafficPolicyInstance_trafficPolicyId :: Lens' UpdateTrafficPolicyInstance Text
- updateTrafficPolicyInstance_trafficPolicyVersion :: Lens' UpdateTrafficPolicyInstance Natural
- data UpdateTrafficPolicyInstanceResponse = UpdateTrafficPolicyInstanceResponse' {}
- newUpdateTrafficPolicyInstanceResponse :: Int -> TrafficPolicyInstance -> UpdateTrafficPolicyInstanceResponse
- updateTrafficPolicyInstanceResponse_httpStatus :: Lens' UpdateTrafficPolicyInstanceResponse Int
- updateTrafficPolicyInstanceResponse_trafficPolicyInstance :: Lens' UpdateTrafficPolicyInstanceResponse TrafficPolicyInstance
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.
UpdateTrafficPolicyInstance' | |
|
Instances
newUpdateTrafficPolicyInstance Source #
:: Text | |
-> Natural | |
-> Text | |
-> Natural | |
-> UpdateTrafficPolicyInstance |
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.
UpdateTrafficPolicyInstanceResponse' | |
|
Instances
Eq UpdateTrafficPolicyInstanceResponse Source # | |
Read UpdateTrafficPolicyInstanceResponse Source # | |
Show UpdateTrafficPolicyInstanceResponse Source # | |
Generic UpdateTrafficPolicyInstanceResponse Source # | |
NFData UpdateTrafficPolicyInstanceResponse Source # | |
Defined in Amazonka.Route53.UpdateTrafficPolicyInstance rnf :: UpdateTrafficPolicyInstanceResponse -> () # | |
type Rep UpdateTrafficPolicyInstanceResponse Source # | |
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 #
:: Int | |
-> TrafficPolicyInstance |
|
-> UpdateTrafficPolicyInstanceResponse |
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_httpStatus :: Lens' UpdateTrafficPolicyInstanceResponse Int Source #
The response's http status code.
updateTrafficPolicyInstanceResponse_trafficPolicyInstance :: Lens' UpdateTrafficPolicyInstanceResponse TrafficPolicyInstance Source #
A complex type that contains settings for the updated traffic policy instance.