list_traffic_policy_instances_by_policy
async
¶
list_traffic_policy_instances_by_policy(
traffic_policy_id: TrafficPolicyId,
traffic_policy_version: TrafficPolicyVersion,
*,
config_overrides: Optional[AsyncRoute53ClientConfig] = 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/async_route53.py
3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 | |