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.CreateTrafficMirrorTarget

Description

Creates a target for your Traffic Mirror session.

A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.

A Traffic Mirror target can be a network interface, a Network Load Balancer, or a Gateway Load Balancer endpoint.

To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession.

Synopsis

Creating a Request

data CreateTrafficMirrorTarget Source #

See: newCreateTrafficMirrorTarget smart constructor.

Constructors

CreateTrafficMirrorTarget' 

Fields

Instances

Instances details
ToHeaders CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

ToPath CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

ToQuery CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

AWSRequest CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Generic CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Associated Types

type Rep CreateTrafficMirrorTarget :: Type -> Type #

Read CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Show CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

NFData CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Eq CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Hashable CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

type AWSResponse CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

type Rep CreateTrafficMirrorTarget Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

type Rep CreateTrafficMirrorTarget = D1 ('MetaData "CreateTrafficMirrorTarget" "Amazonka.EC2.CreateTrafficMirrorTarget" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateTrafficMirrorTarget'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "gatewayLoadBalancerEndpointId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "networkInterfaceId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "networkLoadBalancerArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tagSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagSpecification]))))))

newCreateTrafficMirrorTarget :: CreateTrafficMirrorTarget Source #

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

CreateTrafficMirrorTarget, createTrafficMirrorTarget_clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

CreateTrafficMirrorTarget, createTrafficMirrorTarget_description - The description of the Traffic Mirror target.

$sel:dryRun:CreateTrafficMirrorTarget', createTrafficMirrorTarget_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.

CreateTrafficMirrorTarget, createTrafficMirrorTarget_gatewayLoadBalancerEndpointId - The ID of the Gateway Load Balancer endpoint.

CreateTrafficMirrorTarget, createTrafficMirrorTarget_networkInterfaceId - The network interface ID that is associated with the target.

CreateTrafficMirrorTarget, createTrafficMirrorTarget_networkLoadBalancerArn - The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.

CreateTrafficMirrorTarget, createTrafficMirrorTarget_tagSpecifications - The tags to assign to the Traffic Mirror target.

Request Lenses

createTrafficMirrorTarget_clientToken :: Lens' CreateTrafficMirrorTarget (Maybe Text) Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

createTrafficMirrorTarget_description :: Lens' CreateTrafficMirrorTarget (Maybe Text) Source #

The description of the Traffic Mirror target.

createTrafficMirrorTarget_dryRun :: Lens' CreateTrafficMirrorTarget (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.

createTrafficMirrorTarget_networkInterfaceId :: Lens' CreateTrafficMirrorTarget (Maybe Text) Source #

The network interface ID that is associated with the target.

createTrafficMirrorTarget_networkLoadBalancerArn :: Lens' CreateTrafficMirrorTarget (Maybe Text) Source #

The Amazon Resource Name (ARN) of the Network Load Balancer that is associated with the target.

Destructuring the Response

data CreateTrafficMirrorTargetResponse Source #

See: newCreateTrafficMirrorTargetResponse smart constructor.

Constructors

CreateTrafficMirrorTargetResponse' 

Fields

Instances

Instances details
Generic CreateTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Associated Types

type Rep CreateTrafficMirrorTargetResponse :: Type -> Type #

Read CreateTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Show CreateTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

NFData CreateTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

Eq CreateTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

type Rep CreateTrafficMirrorTargetResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorTarget

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

newCreateTrafficMirrorTargetResponse Source #

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

CreateTrafficMirrorTarget, createTrafficMirrorTargetResponse_clientToken - Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.

$sel:trafficMirrorTarget:CreateTrafficMirrorTargetResponse', createTrafficMirrorTargetResponse_trafficMirrorTarget - Information about the Traffic Mirror target.

$sel:httpStatus:CreateTrafficMirrorTargetResponse', createTrafficMirrorTargetResponse_httpStatus - The response's http status code.

Response Lenses

createTrafficMirrorTargetResponse_clientToken :: Lens' CreateTrafficMirrorTargetResponse (Maybe Text) Source #

Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see How to ensure idempotency.