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

Description

Creates a Traffic Mirror filter.

A Traffic Mirror filter is a set of rules that defines the traffic to mirror.

By default, no traffic is mirrored. To mirror traffic, use CreateTrafficMirrorFilterRule to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored. You can also use ModifyTrafficMirrorFilterNetworkServices to mirror supported network services.

Synopsis

Creating a Request

data CreateTrafficMirrorFilter Source #

See: newCreateTrafficMirrorFilter smart constructor.

Constructors

CreateTrafficMirrorFilter' 

Fields

  • clientToken :: Maybe Text

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

  • description :: Maybe Text

    The description of the Traffic Mirror filter.

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

  • tagSpecifications :: Maybe [TagSpecification]

    The tags to assign to a Traffic Mirror filter.

Instances

Instances details
ToHeaders CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

ToPath CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

ToQuery CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

AWSRequest CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Generic CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Associated Types

type Rep CreateTrafficMirrorFilter :: Type -> Type #

Read CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Show CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

NFData CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Eq CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Hashable CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

type AWSResponse CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

type Rep CreateTrafficMirrorFilter Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

type Rep CreateTrafficMirrorFilter = D1 ('MetaData "CreateTrafficMirrorFilter" "Amazonka.EC2.CreateTrafficMirrorFilter" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateTrafficMirrorFilter'" '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 "tagSpecifications") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TagSpecification])))))

newCreateTrafficMirrorFilter :: CreateTrafficMirrorFilter Source #

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

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

CreateTrafficMirrorFilter, createTrafficMirrorFilter_description - The description of the Traffic Mirror filter.

$sel:dryRun:CreateTrafficMirrorFilter', createTrafficMirrorFilter_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.

CreateTrafficMirrorFilter, createTrafficMirrorFilter_tagSpecifications - The tags to assign to a Traffic Mirror filter.

Request Lenses

createTrafficMirrorFilter_clientToken :: Lens' CreateTrafficMirrorFilter (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.

createTrafficMirrorFilter_description :: Lens' CreateTrafficMirrorFilter (Maybe Text) Source #

The description of the Traffic Mirror filter.

createTrafficMirrorFilter_dryRun :: Lens' CreateTrafficMirrorFilter (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 CreateTrafficMirrorFilterResponse Source #

See: newCreateTrafficMirrorFilterResponse smart constructor.

Constructors

CreateTrafficMirrorFilterResponse' 

Fields

Instances

Instances details
Generic CreateTrafficMirrorFilterResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Associated Types

type Rep CreateTrafficMirrorFilterResponse :: Type -> Type #

Read CreateTrafficMirrorFilterResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Show CreateTrafficMirrorFilterResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

NFData CreateTrafficMirrorFilterResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

Eq CreateTrafficMirrorFilterResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

type Rep CreateTrafficMirrorFilterResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilter

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

newCreateTrafficMirrorFilterResponse Source #

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

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

$sel:trafficMirrorFilter:CreateTrafficMirrorFilterResponse', createTrafficMirrorFilterResponse_trafficMirrorFilter - Information about the Traffic Mirror filter.

$sel:httpStatus:CreateTrafficMirrorFilterResponse', createTrafficMirrorFilterResponse_httpStatus - The response's http status code.

Response Lenses

createTrafficMirrorFilterResponse_clientToken :: Lens' CreateTrafficMirrorFilterResponse (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.