| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Route53.DeleteTrafficPolicy
Description
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.
Synopsis
- data DeleteTrafficPolicy = DeleteTrafficPolicy' {}
- newDeleteTrafficPolicy :: Text -> Natural -> DeleteTrafficPolicy
- deleteTrafficPolicy_id :: Lens' DeleteTrafficPolicy Text
- deleteTrafficPolicy_version :: Lens' DeleteTrafficPolicy Natural
- data DeleteTrafficPolicyResponse = DeleteTrafficPolicyResponse' {
- httpStatus :: Int
- newDeleteTrafficPolicyResponse :: Int -> DeleteTrafficPolicyResponse
- deleteTrafficPolicyResponse_httpStatus :: Lens' DeleteTrafficPolicyResponse Int
Creating a Request
data DeleteTrafficPolicy Source #
A request to delete a specified traffic policy version.
See: newDeleteTrafficPolicy smart constructor.
Constructors
| DeleteTrafficPolicy' | |
Instances
newDeleteTrafficPolicy Source #
Arguments
| :: Text | |
| -> Natural | |
| -> DeleteTrafficPolicy |
Create a value of DeleteTrafficPolicy with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
DeleteTrafficPolicy, deleteTrafficPolicy_id - The ID of the traffic policy that you want to delete.
DeleteTrafficPolicy, deleteTrafficPolicy_version - The version number of the traffic policy that you want to delete.
Request Lenses
deleteTrafficPolicy_id :: Lens' DeleteTrafficPolicy Text Source #
The ID of the traffic policy that you want to delete.
deleteTrafficPolicy_version :: Lens' DeleteTrafficPolicy Natural Source #
The version number of the traffic policy that you want to delete.
Destructuring the Response
data DeleteTrafficPolicyResponse Source #
An empty element.
See: newDeleteTrafficPolicyResponse smart constructor.
Constructors
| DeleteTrafficPolicyResponse' | |
Fields
| |
Instances
newDeleteTrafficPolicyResponse Source #
Create a value of DeleteTrafficPolicyResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:DeleteTrafficPolicyResponse', deleteTrafficPolicyResponse_httpStatus - The response's http status code.
Response Lenses
deleteTrafficPolicyResponse_httpStatus :: Lens' DeleteTrafficPolicyResponse Int Source #
The response's http status code.