libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudTrail.GetEventSelectors

Description

Describes the settings for the event selectors that you configured for your trail. The information returned for your event selectors includes the following:

  • If your event selector includes read-only events, write-only events, or all events. This applies to both management events and data events.
  • If your event selector includes management events.
  • If your event selector includes data events, the resources on which you are logging data events.

For more information, see Logging Data and Management Events for Trails in the CloudTrail User Guide.

Synopsis

Creating a Request

data GetEventSelectors Source #

See: newGetEventSelectors smart constructor.

Constructors

GetEventSelectors' 

Fields

  • trailName :: Text

    Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

    • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
    • Start with a letter or number, and end with a letter or number
    • Be between 3 and 128 characters
    • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are not valid.
    • Not be in IP address format (for example, 192.168.5.4)

    If you specify a trail ARN, it must be in the format:

    arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Instances

Instances details
Eq GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Read GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Show GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Generic GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Associated Types

type Rep GetEventSelectors :: Type -> Type #

NFData GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Methods

rnf :: GetEventSelectors -> () #

Hashable GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

ToJSON GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

AWSRequest GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Associated Types

type AWSResponse GetEventSelectors #

ToHeaders GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

ToPath GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

ToQuery GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

type Rep GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

type Rep GetEventSelectors = D1 ('MetaData "GetEventSelectors" "Amazonka.CloudTrail.GetEventSelectors" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "GetEventSelectors'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trailName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

newGetEventSelectors Source #

Create a value of GetEventSelectors 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:trailName:GetEventSelectors', getEventSelectors_trailName - Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
  • Start with a letter or number, and end with a letter or number
  • Be between 3 and 128 characters
  • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are not valid.
  • Not be in IP address format (for example, 192.168.5.4)

If you specify a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Request Lenses

getEventSelectors_trailName :: Lens' GetEventSelectors Text Source #

Specifies the name of the trail or trail ARN. If you specify a trail name, the string must meet the following requirements:

  • Contain only ASCII letters (a-z, A-Z), numbers (0-9), periods (.), underscores (_), or dashes (-)
  • Start with a letter or number, and end with a letter or number
  • Be between 3 and 128 characters
  • Have no adjacent periods, underscores or dashes. Names like my-_namespace and my--namespace are not valid.
  • Not be in IP address format (for example, 192.168.5.4)

If you specify a trail ARN, it must be in the format:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

Destructuring the Response

data GetEventSelectorsResponse Source #

See: newGetEventSelectorsResponse smart constructor.

Constructors

GetEventSelectorsResponse' 

Fields

Instances

Instances details
Eq GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Read GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Show GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Generic GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Associated Types

type Rep GetEventSelectorsResponse :: Type -> Type #

NFData GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

type Rep GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

type Rep GetEventSelectorsResponse = D1 ('MetaData "GetEventSelectorsResponse" "Amazonka.CloudTrail.GetEventSelectors" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "GetEventSelectorsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "trailARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "eventSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EventSelector]))) :*: (S1 ('MetaSel ('Just "advancedEventSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AdvancedEventSelector])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newGetEventSelectorsResponse Source #

Create a value of GetEventSelectorsResponse 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:trailARN:GetEventSelectorsResponse', getEventSelectorsResponse_trailARN - The specified trail ARN that has the event selectors.

$sel:eventSelectors:GetEventSelectorsResponse', getEventSelectorsResponse_eventSelectors - The event selectors that are configured for the trail.

$sel:advancedEventSelectors:GetEventSelectorsResponse', getEventSelectorsResponse_advancedEventSelectors - The advanced event selectors that are configured for the trail.

$sel:httpStatus:GetEventSelectorsResponse', getEventSelectorsResponse_httpStatus - The response's http status code.

Response Lenses

getEventSelectorsResponse_trailARN :: Lens' GetEventSelectorsResponse (Maybe Text) Source #

The specified trail ARN that has the event selectors.

getEventSelectorsResponse_eventSelectors :: Lens' GetEventSelectorsResponse (Maybe [EventSelector]) Source #

The event selectors that are configured for the trail.

getEventSelectorsResponse_advancedEventSelectors :: Lens' GetEventSelectorsResponse (Maybe [AdvancedEventSelector]) Source #

The advanced event selectors that are configured for the trail.