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

Description

Creates a Traffic Mirror filter rule.

A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.

You need the Traffic Mirror filter ID when you create the rule.

Synopsis

Creating a Request

data CreateTrafficMirrorFilterRule Source #

See: newCreateTrafficMirrorFilterRule smart constructor.

Constructors

CreateTrafficMirrorFilterRule' 

Fields

Instances

Instances details
ToHeaders CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

ToPath CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

ToQuery CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

AWSRequest CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Generic CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Associated Types

type Rep CreateTrafficMirrorFilterRule :: Type -> Type #

Read CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Show CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

NFData CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Eq CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Hashable CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

type AWSResponse CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

type Rep CreateTrafficMirrorFilterRule Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

type Rep CreateTrafficMirrorFilterRule = D1 ('MetaData "CreateTrafficMirrorFilterRule" "Amazonka.EC2.CreateTrafficMirrorFilterRule" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "CreateTrafficMirrorFilterRule'" '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 "destinationPortRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TrafficMirrorPortRangeRequest)))) :*: (S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "protocol") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "sourcePortRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TrafficMirrorPortRangeRequest))))) :*: ((S1 ('MetaSel ('Just "trafficMirrorFilterId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "trafficDirection") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TrafficDirection) :*: S1 ('MetaSel ('Just "ruleNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) :*: (S1 ('MetaSel ('Just "ruleAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 TrafficMirrorRuleAction) :*: (S1 ('MetaSel ('Just "destinationCidrBlock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "sourceCidrBlock") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))))

newCreateTrafficMirrorFilterRule Source #

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

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

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_description - The description of the Traffic Mirror rule.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_destinationPortRange - The destination port range.

$sel:dryRun:CreateTrafficMirrorFilterRule', createTrafficMirrorFilterRule_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.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_protocol - The protocol, for example UDP, to assign to the Traffic Mirror rule.

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_sourcePortRange - The source port range.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_trafficMirrorFilterId - The ID of the filter that this rule is associated with.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_trafficDirection - The type of traffic.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_ruleNumber - The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_ruleAction - The action to take on the filtered traffic.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_destinationCidrBlock - The destination CIDR block to assign to the Traffic Mirror rule.

CreateTrafficMirrorFilterRule, createTrafficMirrorFilterRule_sourceCidrBlock - The source CIDR block to assign to the Traffic Mirror rule.

Request Lenses

createTrafficMirrorFilterRule_clientToken :: Lens' CreateTrafficMirrorFilterRule (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.

createTrafficMirrorFilterRule_dryRun :: Lens' CreateTrafficMirrorFilterRule (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.

createTrafficMirrorFilterRule_protocol :: Lens' CreateTrafficMirrorFilterRule (Maybe Int) Source #

The protocol, for example UDP, to assign to the Traffic Mirror rule.

For information about the protocol value, see Protocol Numbers on the Internet Assigned Numbers Authority (IANA) website.

createTrafficMirrorFilterRule_ruleNumber :: Lens' CreateTrafficMirrorFilterRule Int Source #

The number of the Traffic Mirror rule. This number must be unique for each Traffic Mirror rule in a given direction. The rules are processed in ascending order by rule number.

createTrafficMirrorFilterRule_destinationCidrBlock :: Lens' CreateTrafficMirrorFilterRule Text Source #

The destination CIDR block to assign to the Traffic Mirror rule.

createTrafficMirrorFilterRule_sourceCidrBlock :: Lens' CreateTrafficMirrorFilterRule Text Source #

The source CIDR block to assign to the Traffic Mirror rule.

Destructuring the Response

data CreateTrafficMirrorFilterRuleResponse Source #

Constructors

CreateTrafficMirrorFilterRuleResponse' 

Fields

Instances

Instances details
Generic CreateTrafficMirrorFilterRuleResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Read CreateTrafficMirrorFilterRuleResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Show CreateTrafficMirrorFilterRuleResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

NFData CreateTrafficMirrorFilterRuleResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

Eq CreateTrafficMirrorFilterRuleResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

type Rep CreateTrafficMirrorFilterRuleResponse Source # 
Instance details

Defined in Amazonka.EC2.CreateTrafficMirrorFilterRule

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

newCreateTrafficMirrorFilterRuleResponse Source #

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

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

$sel:trafficMirrorFilterRule:CreateTrafficMirrorFilterRuleResponse', createTrafficMirrorFilterRuleResponse_trafficMirrorFilterRule - The Traffic Mirror rule.

$sel:httpStatus:CreateTrafficMirrorFilterRuleResponse', createTrafficMirrorFilterRuleResponse_httpStatus - The response's http status code.

Response Lenses

createTrafficMirrorFilterRuleResponse_clientToken :: Lens' CreateTrafficMirrorFilterRuleResponse (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.