libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer
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.AccessAnalyzer.Types.Trail

Description

 
Synopsis

Documentation

data Trail Source #

Contains details about the CloudTrail trail being analyzed to generate a policy.

See: newTrail smart constructor.

Constructors

Trail' 

Fields

  • regions :: Maybe [Text]

    A list of regions to get CloudTrail data from and analyze to generate a policy.

  • allRegions :: Maybe Bool

    Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.

  • cloudTrailArn :: Text

    Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.

Instances

Instances details
Eq Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

Methods

(==) :: Trail -> Trail -> Bool #

(/=) :: Trail -> Trail -> Bool #

Read Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

Show Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

Methods

showsPrec :: Int -> Trail -> ShowS #

show :: Trail -> String #

showList :: [Trail] -> ShowS #

Generic Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

Associated Types

type Rep Trail :: Type -> Type #

Methods

from :: Trail -> Rep Trail x #

to :: Rep Trail x -> Trail #

NFData Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

Methods

rnf :: Trail -> () #

Hashable Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

Methods

hashWithSalt :: Int -> Trail -> Int #

hash :: Trail -> Int #

ToJSON Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

type Rep Trail Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.Types.Trail

type Rep Trail = D1 ('MetaData "Trail" "Amazonka.AccessAnalyzer.Types.Trail" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "Trail'" 'PrefixI 'True) (S1 ('MetaSel ('Just "regions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "allRegions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "cloudTrailArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newTrail Source #

Create a value of Trail 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:regions:Trail', trail_regions - A list of regions to get CloudTrail data from and analyze to generate a policy.

$sel:allRegions:Trail', trail_allRegions - Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.

$sel:cloudTrailArn:Trail', trail_cloudTrailArn - Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.

trail_regions :: Lens' Trail (Maybe [Text]) Source #

A list of regions to get CloudTrail data from and analyze to generate a policy.

trail_allRegions :: Lens' Trail (Maybe Bool) Source #

Possible values are true or false. If set to true, IAM Access Analyzer retrieves CloudTrail data from all regions to analyze and generate a policy.

trail_cloudTrailArn :: Lens' Trail Text Source #

Specifies the ARN of the trail. The format of a trail ARN is arn:aws:cloudtrail:us-east-2:123456789012:trail/MyTrail.