list_traffic_policy_instances_by_policy
¶
list_traffic_policy_instances_by_policy(
traffic_policy_id: TrafficPolicyId,
traffic_policy_version: TrafficPolicyVersion,
*,
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,
) -> ListTrafficPolicyInstancesByPolicyResponse
Gets information about the traffic policy instances that you created by using a specify traffic policy version.
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:
-
traffic_policy_id(TrafficPolicyId) –The ID of the traffic policy for which you want to list traffic policy instances.
-
traffic_policy_version(TrafficPolicyVersion) –The version of the traffic policy for which you want to list traffic policy instances. The version must be associated with the traffic policy that is specified by
TrafficPolicyId. -
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 anotherListTrafficPolicyInstancesByPolicyrequest.For the value of
hostedzoneid, specify the value ofHostedZoneIdMarkerfrom the previous response, which is the hosted zone ID of the first traffic policy instance that Amazon Route 53 will return if you submit another request.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 anotherListTrafficPolicyInstancesByPolicyrequest.For the value of
trafficpolicyinstancename, specify the value ofTrafficPolicyInstanceNameMarkerfrom the previous response, which is the name of the first traffic policy instance that Amazon Route 53 will return if you submit another request.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 anotherListTrafficPolicyInstancesByPolicyrequest.For the value of
trafficpolicyinstancetype, specify the value ofTrafficPolicyInstanceTypeMarkerfrom the previous response, which is the name of the first traffic policy instance that Amazon Route 53 will return if you submit another request.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.
-
NoSuchTrafficPolicy–No traffic policy exists with the specified ID.
-
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
3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 | |