amazonka-cloudtrail-2.0: Amazon CloudTrail 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.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 about logging management and data events, see the following topics 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
ToJSON GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.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

AWSRequest GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Associated Types

type AWSResponse GetEventSelectors #

Generic GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Associated Types

type Rep GetEventSelectors :: Type -> Type #

Read GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Show GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

NFData GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Methods

rnf :: GetEventSelectors -> () #

Eq GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Hashable GetEventSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

type AWSResponse 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" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "GetEventSelectors'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trailName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

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
Generic GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Associated Types

type Rep GetEventSelectorsResponse :: Type -> Type #

Read GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Show GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

NFData GetEventSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetEventSelectors

Eq 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" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "GetEventSelectorsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "advancedEventSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AdvancedEventSelector])) :*: S1 ('MetaSel ('Just "eventSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [EventSelector]))) :*: (S1 ('MetaSel ('Just "trailARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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:

GetEventSelectorsResponse, getEventSelectorsResponse_advancedEventSelectors - The advanced event selectors that are configured for the trail.

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

GetEventSelectorsResponse, getEventSelectorsResponse_trailARN - The specified trail ARN that has the event selectors.

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

Response Lenses

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

The advanced event selectors that are configured for the trail.

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

The event selectors that are configured for the trail.

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

The specified trail ARN that has the event selectors.