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 |
Deletes a trail. This operation must be called from the region in which
the trail was created. DeleteTrail
cannot be called on the shadow
trails (replicated trails in other regions) of a trail that is enabled
in all regions.
Synopsis
Creating a Request
data DeleteTrail Source #
The request that specifies the name of a trail to delete.
See: newDeleteTrail
smart constructor.
Instances
Create a value of DeleteTrail
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:DeleteTrail'
, deleteTrail_name
- Specifies the name or the CloudTrail ARN of the trail to be deleted. The
following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Request Lenses
deleteTrail_name :: Lens' DeleteTrail Text Source #
Specifies the name or the CloudTrail ARN of the trail to be deleted. The
following is the format of a trail ARN.
arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail
Destructuring the Response
data DeleteTrailResponse Source #
Returns the objects or data listed below if successful. Otherwise, returns an error.
See: newDeleteTrailResponse
smart constructor.
DeleteTrailResponse' | |
|
Instances
newDeleteTrailResponse Source #
Create a value of DeleteTrailResponse
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:DeleteTrailResponse'
, deleteTrailResponse_httpStatus
- The response's http status code.
Response Lenses
deleteTrailResponse_httpStatus :: Lens' DeleteTrailResponse Int Source #
The response's http status code.