Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Returns settings information for a specified trail.
Synopsis
- data GetTrail = GetTrail' {}
- newGetTrail :: Text -> GetTrail
- getTrail_name :: Lens' GetTrail Text
- data GetTrailResponse = GetTrailResponse' {
- trail :: Maybe Trail
- httpStatus :: Int
- newGetTrailResponse :: Int -> GetTrailResponse
- getTrailResponse_trail :: Lens' GetTrailResponse (Maybe Trail)
- getTrailResponse_httpStatus :: Lens' GetTrailResponse Int
Creating a Request
See: newGetTrail
smart constructor.
Instances
Eq GetTrail Source # | |
Read GetTrail Source # | |
Show GetTrail Source # | |
Generic GetTrail Source # | |
NFData GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail | |
Hashable GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail | |
ToJSON GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail | |
AWSRequest GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail type AWSResponse GetTrail # request :: GetTrail -> Request GetTrail # response :: MonadResource m => Logger -> Service -> Proxy GetTrail -> ClientResponse ClientBody -> m (Either Error (ClientResponse (AWSResponse GetTrail))) # | |
ToHeaders GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail | |
ToPath GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail toPath :: GetTrail -> ByteString # | |
ToQuery GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail toQuery :: GetTrail -> QueryString # | |
type Rep GetTrail Source # | |
Defined in Amazonka.CloudTrail.GetTrail | |
type AWSResponse GetTrail Source # | |
Defined in Amazonka.CloudTrail.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:
$sel:name: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.
GetTrailResponse' | |
|
Instances
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_trail :: Lens' GetTrailResponse (Maybe Trail) Source #
Undocumented member.
getTrailResponse_httpStatus :: Lens' GetTrailResponse Int Source #
The response's http status code.