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 |
Starts the recording of Amazon Web Services API calls and log file delivery for a trail. For a trail that is enabled in all regions, this operation must be called from the region in which the trail was created. This operation cannot be called on the shadow trails (replicated trails in other regions) of a trail that is enabled in all regions.
Synopsis
- data StartLogging = StartLogging' {}
- newStartLogging :: Text -> StartLogging
- startLogging_name :: Lens' StartLogging Text
- data StartLoggingResponse = StartLoggingResponse' {
- httpStatus :: Int
- newStartLoggingResponse :: Int -> StartLoggingResponse
- startLoggingResponse_httpStatus :: Lens' StartLoggingResponse Int
Creating a Request
data StartLogging Source #
The request to CloudTrail to start logging Amazon Web Services API calls for an account.
See: newStartLogging
smart constructor.
Instances
Create a value of StartLogging
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:StartLogging'
, startLogging_name
- Specifies the name or the CloudTrail ARN of the trail for which
CloudTrail logs Amazon Web Services API calls. The following is the
format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Request Lenses
startLogging_name :: Lens' StartLogging Text Source #
Specifies the name or the CloudTrail ARN of the trail for which CloudTrail logs Amazon Web Services API calls. The following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Destructuring the Response
data StartLoggingResponse Source #
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: newStartLoggingResponse
smart constructor.
StartLoggingResponse' | |
|
Instances
newStartLoggingResponse Source #
Create a value of StartLoggingResponse
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:httpStatus:StartLoggingResponse'
, startLoggingResponse_httpStatus
- The response's http status code.
Response Lenses
startLoggingResponse_httpStatus :: Lens' StartLoggingResponse Int Source #
The response's http status code.