amazonka-ec2-2.0: Amazon Elastic Compute Cloud SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.EC2.DeleteTrafficMirrorTarget

Description

Deletes the specified Traffic Mirror target.

You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.

Synopsis

Creating a Request

data DeleteTrafficMirrorTarget Source #

See: newDeleteTrafficMirrorTarget smart constructor.

Constructors

DeleteTrafficMirrorTarget' 

Fields

  • dryRun :: Maybe Bool

    Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

  • trafficMirrorTargetId :: Text

    The ID of the Traffic Mirror target.

Instances

Instances details
ToHeaders DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

ToPath DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

ToQuery DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

AWSRequest DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Generic DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Associated Types

type Rep DeleteTrafficMirrorTarget :: Type -> Type #

Read DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Show DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

NFData DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Eq DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Hashable DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

type AWSResponse DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

type Rep DeleteTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

type Rep DeleteTrafficMirrorTarget = D1 ('MetaData "DeleteTrafficMirrorTarget" "Amazonka.EC2.DeleteTrafficMirrorTarget" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteTrafficMirrorTarget'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "trafficMirrorTargetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newDeleteTrafficMirrorTarget Source #

Create a value of DeleteTrafficMirrorTarget 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:dryRun:DeleteTrafficMirrorTarget', deleteTrafficMirrorTarget_dryRun - Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

DeleteTrafficMirrorTarget, deleteTrafficMirrorTarget_trafficMirrorTargetId - The ID of the Traffic Mirror target.

Request Lenses

deleteTrafficMirrorTarget_dryRun :: Lens' DeleteTrafficMirrorTarget (Maybe Bool) Source #

Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is DryRunOperation. Otherwise, it is UnauthorizedOperation.

Destructuring the Response

data DeleteTrafficMirrorTargetResponse Source #

See: newDeleteTrafficMirrorTargetResponse smart constructor.

Constructors

DeleteTrafficMirrorTargetResponse' 

Fields

Instances

Instances details
Generic DeleteTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Associated Types

type Rep DeleteTrafficMirrorTargetResponse :: Type -> Type #

Read DeleteTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Show DeleteTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

NFData DeleteTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

Eq DeleteTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

type Rep DeleteTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.DeleteTrafficMirrorTarget

type Rep DeleteTrafficMirrorTargetResponse = D1 ('MetaData "DeleteTrafficMirrorTargetResponse" "Amazonka.EC2.DeleteTrafficMirrorTarget" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DeleteTrafficMirrorTargetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trafficMirrorTargetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDeleteTrafficMirrorTargetResponse Source #

Create a value of DeleteTrafficMirrorTargetResponse 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:

DeleteTrafficMirrorTarget, deleteTrafficMirrorTargetResponse_trafficMirrorTargetId - The ID of the deleted Traffic Mirror target.

$sel:httpStatus:DeleteTrafficMirrorTargetResponse', deleteTrafficMirrorTargetResponse_httpStatus - The response's http status code.

Response Lenses