list_traffic_policy_instances_by_hosted_zone
¶
list_traffic_policy_instances_by_hosted_zone(
hosted_zone_id: ResourceId,
*,
config_overrides: Optional[Route53ClientConfig] = None,
traffic_policy_instance_name_marker: Optional[DNSName] = None,
traffic_policy_instance_type_marker: Optional[RRType] = None,
max_items: Optional[int] = None,
) -> ListTrafficPolicyInstancesByHostedZoneResponse
Gets information about the traffic policy instances that you created in a specified hosted zone.
After you submit a CreateTrafficPolicyInstance or 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(ResourceId) –The ID of the hosted zone that you want to list traffic policy instances for.
-
traffic_policy_instance_name_marker(Optional[DNSName], default:None) –If the value of
IsTruncatedin the previous response is true, 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 is true, 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 to be included in the response body for this request. If you have more than
MaxItemstraffic policy instances, the value of theIsTruncatedelement in the response istrue, and the values ofHostedZoneIdMarker,TrafficPolicyInstanceNameMarker, andTrafficPolicyInstanceTypeMarkerrepresent the first traffic policy instance that Amazon Route 53 will return if you submit another request.
Raises:
-
InvalidInput–The input is not valid.
-
NoSuchHostedZone–No hosted zone exists with the ID that you specified.
-
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
3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 | |