delete_traffic_policy
async
¶
delete_traffic_policy(
id: TrafficPolicyId,
version: TrafficPolicyVersion,
*,
config_overrides: Optional[AsyncRoute53ClientConfig] = None,
) -> DeleteTrafficPolicyResponse
Deletes a traffic policy.
When you delete a traffic policy, Route 53 sets a flag on the policy to indicate that it has been deleted. However, Route 53 never fully deletes the traffic policy. Note the following:
-
Deleted traffic policies aren't listed if you run ListTrafficPolicies.
-
There's no way to get a list of deleted policies.
-
If you retain the ID of the policy, you can get information about the policy, including the traffic policy document, by running GetTrafficPolicy.
Parameters:
-
id(TrafficPolicyId) –The ID of the traffic policy that you want to delete.
-
version(TrafficPolicyVersion) –The version number of the traffic policy that you want to delete.
Raises:
-
ConcurrentModification–Another user submitted a request to create, update, or delete the object at the same time that you did. Retry the request.
-
InvalidInput–The input is not valid.
-
NoSuchTrafficPolicy–No traffic policy exists with the specified ID.
-
TrafficPolicyInUse–One or more traffic policy instances were created by using the specified traffic policy.
-
UnknownServiceError–The service returned an error code this client does not model.