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.StartLogging

Description

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

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.

Constructors

StartLogging' 

Fields

  • name :: Text

    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

Instances

Instances details
Eq StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Read StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Show StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Generic StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Associated Types

type Rep StartLogging :: Type -> Type #

NFData StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Methods

rnf :: StartLogging -> () #

Hashable StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

ToJSON StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

AWSRequest StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Associated Types

type AWSResponse StartLogging #

ToHeaders StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

ToPath StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

ToQuery StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

type Rep StartLogging Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

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

Defined in Amazonka.CloudTrail.StartLogging

newStartLogging Source #

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.

Constructors

StartLoggingResponse' 

Fields

Instances

Instances details
Eq StartLoggingResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Read StartLoggingResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Show StartLoggingResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Generic StartLoggingResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Associated Types

type Rep StartLoggingResponse :: Type -> Type #

NFData StartLoggingResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

Methods

rnf :: StartLoggingResponse -> () #

type Rep StartLoggingResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.StartLogging

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

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