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.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 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
Eq ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Read ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Show ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Generic ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Associated Types

type Rep ListTrails :: Type -> Type #

NFData ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Methods

rnf :: ListTrails -> () #

Hashable ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

ToJSON 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 #

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

type Rep ListTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

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

Defined in Amazonka.CloudTrail.ListTrails

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:

$sel:nextToken: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 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 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
Eq ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Read ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Show ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Generic ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Associated Types

type Rep ListTrailsResponse :: Type -> Type #

NFData ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

Methods

rnf :: ListTrailsResponse -> () #

type Rep ListTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.ListTrails

type Rep ListTrailsResponse = D1 ('MetaData "ListTrailsResponse" "Amazonka.CloudTrail.ListTrails" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" '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:

$sel:nextToken: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.