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

Description

Retrieves settings for one or more trails associated with the current region for your account.

Synopsis

Creating a Request

data DescribeTrails Source #

Returns information about the trail.

See: newDescribeTrails smart constructor.

Constructors

DescribeTrails' 

Fields

  • includeShadowTrails :: Maybe Bool

    Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and region replication trails will not be returned. The default is true.

  • trailNameList :: Maybe [Text]

    Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:

    arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

    If an empty list is specified, information for the trail in the current region is returned.

    • If an empty list is specified and IncludeShadowTrails is false, then information for all trails in the current region is returned.
    • If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.

    If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.

Instances

Instances details
Eq DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Read DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Show DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Generic DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Associated Types

type Rep DescribeTrails :: Type -> Type #

NFData DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Methods

rnf :: DescribeTrails -> () #

Hashable DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

ToJSON DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

AWSRequest DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Associated Types

type AWSResponse DescribeTrails #

ToHeaders DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

ToPath DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

ToQuery DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

type Rep DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

type Rep DescribeTrails = D1 ('MetaData "DescribeTrails" "Amazonka.CloudTrail.DescribeTrails" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "DescribeTrails'" 'PrefixI 'True) (S1 ('MetaSel ('Just "includeShadowTrails") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "trailNameList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))))
type AWSResponse DescribeTrails Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

newDescribeTrails :: DescribeTrails Source #

Create a value of DescribeTrails 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:includeShadowTrails:DescribeTrails', describeTrails_includeShadowTrails - Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and region replication trails will not be returned. The default is true.

$sel:trailNameList:DescribeTrails', describeTrails_trailNameList - Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

If an empty list is specified, information for the trail in the current region is returned.

  • If an empty list is specified and IncludeShadowTrails is false, then information for all trails in the current region is returned.
  • If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.

If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.

Request Lenses

describeTrails_includeShadowTrails :: Lens' DescribeTrails (Maybe Bool) Source #

Specifies whether to include shadow trails in the response. A shadow trail is the replication in a region of a trail that was created in a different region, or in the case of an organization trail, the replication of an organization trail in member accounts. If you do not include shadow trails, organization trails in a member account and region replication trails will not be returned. The default is true.

describeTrails_trailNameList :: Lens' DescribeTrails (Maybe [Text]) Source #

Specifies a list of trail names, trail ARNs, or both, of the trails to describe. The format of a trail ARN is:

arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail

If an empty list is specified, information for the trail in the current region is returned.

  • If an empty list is specified and IncludeShadowTrails is false, then information for all trails in the current region is returned.
  • If an empty list is specified and IncludeShadowTrails is null or true, then information for all trails in the current region and any associated shadow trails in other regions is returned.

If one or more trail names are specified, information is returned only if the names match the names of trails belonging only to the current region. To return information about a trail in another region, you must specify its trail ARN.

Destructuring the Response

data DescribeTrailsResponse Source #

Returns the objects or data listed below if successful. Otherwise, returns an error.

See: newDescribeTrailsResponse smart constructor.

Constructors

DescribeTrailsResponse' 

Fields

  • trailList :: Maybe [Trail]

    The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq DescribeTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Read DescribeTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Show DescribeTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Generic DescribeTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Associated Types

type Rep DescribeTrailsResponse :: Type -> Type #

NFData DescribeTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

Methods

rnf :: DescribeTrailsResponse -> () #

type Rep DescribeTrailsResponse Source # 
Instance details

Defined in Amazonka.CloudTrail.DescribeTrails

type Rep DescribeTrailsResponse = D1 ('MetaData "DescribeTrailsResponse" "Amazonka.CloudTrail.DescribeTrails" "libZSservicesZSamazonka-cloudtrailZSamazonka-cloudtrail" 'False) (C1 ('MetaCons "DescribeTrailsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "trailList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Trail])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newDescribeTrailsResponse Source #

Create a value of DescribeTrailsResponse 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:trailList:DescribeTrailsResponse', describeTrailsResponse_trailList - The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.

$sel:httpStatus:DescribeTrailsResponse', describeTrailsResponse_httpStatus - The response's http status code.

Response Lenses

describeTrailsResponse_trailList :: Lens' DescribeTrailsResponse (Maybe [Trail]) Source #

The list of trail objects. Trail objects with string values are only returned if values for the objects exist in a trail's configuration. For example, SNSTopicName and SNSTopicARN are only returned in results if a trail is configured to send SNS notifications. Similarly, KMSKeyId only appears in results if a trail's log files are encrypted with KMS customer managed keys.