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

Description

Lists trails that are in the current account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListTrails Source #

See: newListTrails smart constructor.

Constructors

ListTrails' 

Fields

  • nextToken :: Maybe Text

    The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

Instances

Instances details
ToJSON ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

ToHeaders ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Methods

toHeaders :: ListTrails -> [Header] #

ToPath ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

ToQuery ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

AWSPager ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

AWSRequest ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Associated Types

type AWSResponse ListTrails #

Generic ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Associated Types

type Rep ListTrails :: Type -> Type #

Read ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Show ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

NFData ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Methods

rnf :: ListTrails -> () #

Eq ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Hashable ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

type AWSResponse ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

type Rep ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

type Rep ListTrails = D1 ('MetaData "ListTrails" "Amazonka.CloudTrail.ListTrails" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "ListTrails'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newListTrails :: ListTrails Source #

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

ListTrails, listTrails_nextToken - The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

Request Lenses

listTrails_nextToken :: Lens' ListTrails (Maybe Text) Source #

The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

Destructuring the Response

data ListTrailsResponse Source #

See: newListTrailsResponse smart constructor.

Constructors

ListTrailsResponse' 

Fields

  • nextToken :: Maybe Text

    The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

  • trails :: Maybe [TrailInfo]

    Returns the name, ARN, and home region of trails in the current account.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Associated Types

type Rep ListTrailsResponse :: Type -> Type #

Read ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Show ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

NFData ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Methods

rnf :: ListTrailsResponse -> () #

Eq ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

type Rep ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

type Rep ListTrailsResponse = D1 ('MetaData "ListTrailsResponse" "Amazonka.CloudTrail.ListTrails" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "ListTrailsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "trails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [TrailInfo])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListTrailsResponse Source #

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

ListTrails, listTrailsResponse_nextToken - The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

$sel:trails:ListTrailsResponse', listTrailsResponse_trails - Returns the name, ARN, and home region of trails in the current account.

$sel:httpStatus:ListTrailsResponse', listTrailsResponse_httpStatus - The response's http status code.

Response Lenses

listTrailsResponse_nextToken :: Lens' ListTrailsResponse (Maybe Text) Source #

The token to use to get the next page of results after a previous API call. If the token does not appear, there are no more results to return. The token must be passed in with the same parameters as the previous call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.

listTrailsResponse_trails :: Lens' ListTrailsResponse (Maybe [TrailInfo]) Source #

Returns the name, ARN, and home region of trails in the current account.