libZSservicesZSamazonka-route53ZSamazonka-route53
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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

Creating a Request

data DeleteTrafficPolicy Source #

A request to delete a specified traffic policy version.

See: newDeleteTrafficPolicy smart constructor.

Constructors

DeleteTrafficPolicy' 

Fields

  • id :: Text

    The ID of the traffic policy that you want to delete.

  • version :: Natural

    The version number of the traffic policy that you want to delete.

Instances

Instances details
Eq DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Read DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Show DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Generic DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Associated Types

type Rep DeleteTrafficPolicy :: Type -> Type #

NFData DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Methods

rnf :: DeleteTrafficPolicy -> () #

Hashable DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

AWSRequest DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Associated Types

type AWSResponse DeleteTrafficPolicy #

ToHeaders DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

ToPath DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

ToQuery DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

type Rep DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

type Rep DeleteTrafficPolicy = D1 ('MetaData "DeleteTrafficPolicy" "Amazonka.Route53.DeleteTrafficPolicy" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "DeleteTrafficPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "version") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))
type AWSResponse DeleteTrafficPolicy Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

newDeleteTrafficPolicy Source #

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:

$sel:id:DeleteTrafficPolicy', deleteTrafficPolicy_id - The ID of the traffic policy that you want to delete.

$sel:version: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

Instances details
Eq DeleteTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Read DeleteTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Show DeleteTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Generic DeleteTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

Associated Types

type Rep DeleteTrafficPolicyResponse :: Type -> Type #

NFData DeleteTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

type Rep DeleteTrafficPolicyResponse Source # 
Instance details

Defined in Amazonka.Route53.DeleteTrafficPolicy

type Rep DeleteTrafficPolicyResponse = D1 ('MetaData "DeleteTrafficPolicyResponse" "Amazonka.Route53.DeleteTrafficPolicy" "libZSservicesZSamazonka-route53ZSamazonka-route53" 'False) (C1 ('MetaCons "DeleteTrafficPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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