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 |
Amazonka.CloudTrail.GetTrail
Description
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.
Constructors
GetTrail' | |
Instances
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.
Constructors
GetTrailResponse' | |
Fields
|
Instances
Arguments
:: Int | |
-> GetTrailResponse |
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.