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

Description

Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.

This operation returns paginated results.

Synopsis

Creating a Request

data DescribeTrafficMirrorSessions Source #

See: newDescribeTrafficMirrorSessions smart constructor.

Constructors

DescribeTrafficMirrorSessions' 

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.

  • filters :: Maybe [Filter]

    One or more filters. The possible values are:

    • description: The Traffic Mirror session description.
    • network-interface-id: The ID of the Traffic Mirror session network interface.
    • owner-id: The ID of the account that owns the Traffic Mirror session.
    • packet-length: The assigned number of packets to mirror.
    • session-number: The assigned session number.
    • traffic-mirror-filter-id: The ID of the Traffic Mirror filter.
    • traffic-mirror-session-id: The ID of the Traffic Mirror session.
    • traffic-mirror-target-id: The ID of the Traffic Mirror target.
    • virtual-network-id: The virtual network ID of the Traffic Mirror session.
  • maxResults :: Maybe Natural

    The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

  • nextToken :: Maybe Text

    The token for the next page of results.

  • trafficMirrorSessionIds :: Maybe [Text]

    The ID of the Traffic Mirror session.

Instances

Instances details
ToHeaders DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

ToPath DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

ToQuery DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

AWSPager DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

AWSRequest DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Generic DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Associated Types

type Rep DescribeTrafficMirrorSessions :: Type -> Type #

Read DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Show DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

NFData DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Eq DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Hashable DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

type AWSResponse DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

type Rep DescribeTrafficMirrorSessions Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

type Rep DescribeTrafficMirrorSessions = D1 ('MetaData "DescribeTrafficMirrorSessions" "Amazonka.EC2.DescribeTrafficMirrorSessions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeTrafficMirrorSessions'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "dryRun") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Filter]))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "trafficMirrorSessionIds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))))

newDescribeTrafficMirrorSessions :: DescribeTrafficMirrorSessions Source #

Create a value of DescribeTrafficMirrorSessions 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:DescribeTrafficMirrorSessions', describeTrafficMirrorSessions_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.

$sel:filters:DescribeTrafficMirrorSessions', describeTrafficMirrorSessions_filters - One or more filters. The possible values are:

  • description: The Traffic Mirror session description.
  • network-interface-id: The ID of the Traffic Mirror session network interface.
  • owner-id: The ID of the account that owns the Traffic Mirror session.
  • packet-length: The assigned number of packets to mirror.
  • session-number: The assigned session number.
  • traffic-mirror-filter-id: The ID of the Traffic Mirror filter.
  • traffic-mirror-session-id: The ID of the Traffic Mirror session.
  • traffic-mirror-target-id: The ID of the Traffic Mirror target.
  • virtual-network-id: The virtual network ID of the Traffic Mirror session.

$sel:maxResults:DescribeTrafficMirrorSessions', describeTrafficMirrorSessions_maxResults - The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

DescribeTrafficMirrorSessions, describeTrafficMirrorSessions_nextToken - The token for the next page of results.

$sel:trafficMirrorSessionIds:DescribeTrafficMirrorSessions', describeTrafficMirrorSessions_trafficMirrorSessionIds - The ID of the Traffic Mirror session.

Request Lenses

describeTrafficMirrorSessions_dryRun :: Lens' DescribeTrafficMirrorSessions (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.

describeTrafficMirrorSessions_filters :: Lens' DescribeTrafficMirrorSessions (Maybe [Filter]) Source #

One or more filters. The possible values are:

  • description: The Traffic Mirror session description.
  • network-interface-id: The ID of the Traffic Mirror session network interface.
  • owner-id: The ID of the account that owns the Traffic Mirror session.
  • packet-length: The assigned number of packets to mirror.
  • session-number: The assigned session number.
  • traffic-mirror-filter-id: The ID of the Traffic Mirror filter.
  • traffic-mirror-session-id: The ID of the Traffic Mirror session.
  • traffic-mirror-target-id: The ID of the Traffic Mirror target.
  • virtual-network-id: The virtual network ID of the Traffic Mirror session.

describeTrafficMirrorSessions_maxResults :: Lens' DescribeTrafficMirrorSessions (Maybe Natural) Source #

The maximum number of results to return with a single call. To retrieve the remaining results, make another call with the returned nextToken value.

Destructuring the Response

data DescribeTrafficMirrorSessionsResponse Source #

Constructors

DescribeTrafficMirrorSessionsResponse' 

Fields

Instances

Instances details
Generic DescribeTrafficMirrorSessionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Read DescribeTrafficMirrorSessionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Show DescribeTrafficMirrorSessionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

NFData DescribeTrafficMirrorSessionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

Eq DescribeTrafficMirrorSessionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

type Rep DescribeTrafficMirrorSessionsResponse Source # 
Instance details

Defined in Amazonka.EC2.DescribeTrafficMirrorSessions

type Rep DescribeTrafficMirrorSessionsResponse = D1 ('MetaData "DescribeTrafficMirrorSessionsResponse" "Amazonka.EC2.DescribeTrafficMirrorSessions" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "DescribeTrafficMirrorSessionsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "trafficMirrorSessions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TrafficMirrorSession])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newDescribeTrafficMirrorSessionsResponse Source #

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

DescribeTrafficMirrorSessions, describeTrafficMirrorSessionsResponse_nextToken - The token to use to retrieve the next page of results. The value is null when there are no more results to return.

$sel:trafficMirrorSessions:DescribeTrafficMirrorSessionsResponse', describeTrafficMirrorSessionsResponse_trafficMirrorSessions - Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.

$sel:httpStatus:DescribeTrafficMirrorSessionsResponse', describeTrafficMirrorSessionsResponse_httpStatus - The response's http status code.

Response Lenses

describeTrafficMirrorSessionsResponse_nextToken :: Lens' DescribeTrafficMirrorSessionsResponse (Maybe Text) Source #

The token to use to retrieve the next page of results. The value is null when there are no more results to return.

describeTrafficMirrorSessionsResponse_trafficMirrorSessions :: Lens' DescribeTrafficMirrorSessionsResponse (Maybe [TrafficMirrorSession]) Source #

Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.