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

Description

Returns settings information for a specified trail.

Synopsis

Creating a Request

data GetTrail Source #

See: newGetTrail smart constructor.

Constructors

GetTrail' 

Fields

  • name :: Text

    The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.

Instances

Instances details
ToJSON GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

ToHeaders GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Methods

toHeaders :: GetTrail -> [Header] #

ToPath GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

ToQuery GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

AWSRequest GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Associated Types

type AWSResponse GetTrail #

Generic GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Associated Types

type Rep GetTrail :: Type -> Type #

Methods

from :: GetTrail -> Rep GetTrail x #

to :: Rep GetTrail x -> GetTrail #

Read GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Show GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

NFData GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Methods

rnf :: GetTrail -> () #

Eq GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Hashable GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Methods

hashWithSalt :: Int -> GetTrail -> Int #

hash :: GetTrail -> Int #

type AWSResponse GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

type Rep GetTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

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

newGetTrail Source #

Arguments

:: Text

GetTrail

-> GetTrail 

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

GetTrail, getTrail_name - The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.

Request Lenses

getTrail_name :: Lens' GetTrail Text Source #

The name or the Amazon Resource Name (ARN) of the trail for which you want to retrieve settings information.

Destructuring the Response

data GetTrailResponse Source #

See: newGetTrailResponse smart constructor.

Constructors

GetTrailResponse' 

Fields

Instances

Instances details
Generic GetTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Associated Types

type Rep GetTrailResponse :: Type -> Type #

Read GetTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Show GetTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

NFData GetTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

Methods

rnf :: GetTrailResponse -> () #

Eq GetTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

type Rep GetTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.GetTrail

type Rep GetTrailResponse = D1 ('MetaData "GetTrailResponse" "Amazonka.CloudTrail.GetTrail" "amazonka-cloudtrail-2.0-6vmpMB1YeZzDIMmexWGsF3" 'False) (C1 ('MetaCons "GetTrailResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trail") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Trail)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetTrailResponse Source #

Create a value of GetTrailResponse 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:trail:GetTrailResponse', getTrailResponse_trail - Undocumented member.

$sel:httpStatus:GetTrailResponse', getTrailResponse_httpStatus - The response's http status code.

Response Lenses

getTrailResponse_httpStatus :: Lens' GetTrailResponse Int Source #

The response's http status code.