libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CloudTrail.DeleteTrail

Description

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.

Constructors

DeleteTrail' 

Fields

  • name :: Text

    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

Instances

Instances details
Eq DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Read DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Show DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Generic DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Associated Types

type Rep DeleteTrail :: Type -> Type #

NFData DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Methods

rnf :: DeleteTrail -> () #

Hashable DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

ToJSON DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

AWSRequest DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Associated Types

type AWSResponse DeleteTrail #

ToHeaders DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Methods

toHeaders :: DeleteTrail -> [Header] #

ToPath DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

ToQuery DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

type Rep DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

type Rep DeleteTrail = D1 ('MetaData "DeleteTrail" "Amazonka.CloudTrail.DeleteTrail" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "DeleteTrail'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))
type AWSResponse DeleteTrail Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

newDeleteTrail Source #

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.

Constructors

DeleteTrailResponse' 

Fields

Instances

Instances details
Eq DeleteTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Read DeleteTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Show DeleteTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Generic DeleteTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Associated Types

type Rep DeleteTrailResponse :: Type -> Type #

NFData DeleteTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

Methods

rnf :: DeleteTrailResponse -> () #

type Rep DeleteTrailResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DeleteTrail

type Rep DeleteTrailResponse = D1 ('MetaData "DeleteTrailResponse" "Amazonka.CloudTrail.DeleteTrail" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "DeleteTrailResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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