list_traffic_policy_instances
¶
list_traffic_policy_instances(
*,
config_overrides: Optional[Route53ClientConfig] = None,
hosted_zone_id_marker: Optional[ResourceId] = None,
traffic_policy_instance_name_marker: Optional[DNSName] = None,
traffic_policy_instance_type_marker: Optional[RRType] = None,
max_items: Optional[int] = None,
) -> ListTrafficPolicyInstancesResponse
Gets information about the traffic policy instances that you created by using the current Amazon Web Services account.
After you submit an UpdateTrafficPolicyInstance request, there's a brief delay while Amazon Route 53 creates the resource record sets that are specified in the traffic policy definition. For more information, see the State response element.
Route 53 returns a maximum of 100 items in each response. If you have a lot of traffic policy instances, you can use the MaxItems parameter to list them in groups of up to 100.
Parameters:
-
hosted_zone_id_marker(Optional[ResourceId], default:None) –If the value of
IsTruncatedin the previous response wastrue, you have more traffic policy instances. To get more traffic policy instances, submit anotherListTrafficPolicyInstancesrequest. For the value ofHostedZoneId, specify the value ofHostedZoneIdMarkerfrom the previous response, which is the hosted zone ID of the first traffic policy instance in the next group of traffic policy instances.If the value of
IsTruncatedin the previous response wasfalse, there are no more traffic policy instances to get. -
traffic_policy_instance_name_marker(Optional[DNSName], default:None) –If the value of
IsTruncatedin the previous response wastrue, you have more traffic policy instances. To get more traffic policy instances, submit anotherListTrafficPolicyInstancesrequest. For the value oftrafficpolicyinstancename, specify the value ofTrafficPolicyInstanceNameMarkerfrom the previous response, which is the name of the first traffic policy instance in the next group of traffic policy instances.If the value of
IsTruncatedin the previous response wasfalse, there are no more traffic policy instances to get. -
traffic_policy_instance_type_marker(Optional[RRType], default:None) –If the value of
IsTruncatedin the previous response wastrue, you have more traffic policy instances. To get more traffic policy instances, submit anotherListTrafficPolicyInstancesrequest. For the value oftrafficpolicyinstancetype, specify the value ofTrafficPolicyInstanceTypeMarkerfrom the previous response, which is the type of the first traffic policy instance in the next group of traffic policy instances.If the value of
IsTruncatedin the previous response wasfalse, there are no more traffic policy instances to get. -
max_items(Optional[int], default:None) –The maximum number of traffic policy instances that you want Amazon Route 53 to return in response to a
ListTrafficPolicyInstancesrequest. If you have more thanMaxItemstraffic policy instances, the value of theIsTruncatedelement in the response istrue, and the values ofHostedZoneIdMarker,TrafficPolicyInstanceNameMarker, andTrafficPolicyInstanceTypeMarkerrepresent the first traffic policy instance in the next group ofMaxItemstraffic policy instances.
Raises:
-
InvalidInput–The input is not valid.
-
NoSuchTrafficPolicyInstance–No traffic policy instance exists with the specified ID.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_route_53/_services/route53.py
3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 | |