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.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 type in this release is 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 Insights types that you want to log on a trail. The valid Insights type in this release is ApiCallRateInsight.

Instances

Instances details
Eq PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Read PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Show PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Generic PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Associated Types

type Rep PutInsightSelectors :: Type -> Type #

NFData PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Methods

rnf :: PutInsightSelectors -> () #

Hashable PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

ToJSON PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

AWSRequest PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Associated Types

type AWSResponse 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

type Rep PutInsightSelectors Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

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

Defined in Amazonka.CloudTrail.PutInsightSelectors

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.

$sel:insightSelectors:PutInsightSelectors', putInsightSelectors_insightSelectors - A JSON string that contains the Insights types that you want to log on a trail. The valid Insights type in this release is ApiCallRateInsight.

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 Insights types that you want to log on a trail. The valid Insights type in this release is ApiCallRateInsight.

Destructuring the Response

data PutInsightSelectorsResponse Source #

See: newPutInsightSelectorsResponse smart constructor.

Constructors

PutInsightSelectorsResponse' 

Fields

  • trailARN :: Maybe Text

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

  • insightSelectors :: Maybe [InsightSelector]

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Read PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Show PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Generic PutInsightSelectorsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.PutInsightSelectors

Associated Types

type Rep PutInsightSelectorsResponse :: Type -> Type #

NFData 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" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "PutInsightSelectorsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trailARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "insightSelectors") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InsightSelector])) :*: 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:

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

$sel:insightSelectors:PutInsightSelectors', putInsightSelectorsResponse_insightSelectors - A JSON string that contains the Insights event types that you want to log on a trail. The valid Insights type in this release is ApiCallRateInsight.

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

Response Lenses

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.

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 type in this release is ApiCallRateInsight.