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

Description

Lets you enable Insights event logging by specifying the Insights selectors that you want to enable on an existing trail. You also use PutInsightSelectors to turn off Insights event logging, by passing an empty list of insight types. The valid Insights event types in this release are ApiErrorRateInsight and ApiCallRateInsight.

Synopsis

Creating a Request

data PutInsightSelectors Source #

See: newPutInsightSelectors smart constructor.

Constructors

PutInsightSelectors' 

Fields

  • trailName :: Text

    The name of the CloudTrail trail for which you want to change or add Insights selectors.

  • insightSelectors :: [InsightSelector]

    A JSON string that contains the insight types you want to log on a trail. ApiCallRateInsight and ApiErrorRateInsight are valid insight types.

Instances

Instances details
ToJSON PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

ToHeaders PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

ToPath PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

ToQuery PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

AWSRequest PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Associated Types

type AWSResponse PutInsightSelectors #

Generic PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Associated Types

type Rep PutInsightSelectors :: Type -> Type #

Read PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Show PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

NFData PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Methods

rnf :: PutInsightSelectors -> () #

Eq PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Hashable PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

type AWSResponse PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

type Rep PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

type Rep PutInsightSelectors = D1 ('MetaData "PutInsightSelectors" "Amazonka.CloudTrail.PutInsightSelectors" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "PutInsightSelectors'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trailName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "insightSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [InsightSelector])))

newPutInsightSelectors Source #

Create a value of PutInsightSelectors 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:PutInsightSelectors', putInsightSelectors_trailName - The name of the CloudTrail trail for which you want to change or add Insights selectors.

PutInsightSelectors, putInsightSelectors_insightSelectors - A JSON string that contains the insight types you want to log on a trail. ApiCallRateInsight and ApiErrorRateInsight are valid insight types.

Request Lenses

putInsightSelectors_trailName :: Lens' PutInsightSelectors Text Source #

The name of the CloudTrail trail for which you want to change or add Insights selectors.

putInsightSelectors_insightSelectors :: Lens' PutInsightSelectors [InsightSelector] Source #

A JSON string that contains the insight types you want to log on a trail. ApiCallRateInsight and ApiErrorRateInsight are valid insight types.

Destructuring the Response

data PutInsightSelectorsResponse Source #

See: newPutInsightSelectorsResponse smart constructor.

Constructors

PutInsightSelectorsResponse' 

Fields

  • insightSelectors :: Maybe [InsightSelector]

    A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in this release are ApiErrorRateInsight and ApiCallRateInsight.

  • trailARN :: Maybe Text

    The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Associated Types

type Rep PutInsightSelectorsResponse :: Type -> Type #

Read PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Show PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

NFData PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Eq PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

type Rep PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

type Rep PutInsightSelectorsResponse = D1 ('MetaData "PutInsightSelectorsResponse" "Amazonka.CloudTrail.PutInsightSelectors" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "PutInsightSelectorsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "insightSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InsightSelector])) :*: (S1 ('MetaSel ('Just "trailARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newPutInsightSelectorsResponse Source #

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

PutInsightSelectors, putInsightSelectorsResponse_insightSelectors - A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in this release are ApiErrorRateInsight and ApiCallRateInsight.

PutInsightSelectorsResponse, putInsightSelectorsResponse_trailARN - The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.

$sel:httpStatus:PutInsightSelectorsResponse', putInsightSelectorsResponse_httpStatus - The response's http status code.

Response Lenses

putInsightSelectorsResponse_insightSelectors :: Lens' PutInsightSelectorsResponse (Maybe [InsightSelector]) Source #

A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights types in this release are ApiErrorRateInsight and ApiCallRateInsight.

putInsightSelectorsResponse_trailARN :: Lens' PutInsightSelectorsResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of a trail for which you want to change or add Insights selectors.