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

Description

Creates an analyzer for your account.

Synopsis

Creating a Request

data CreateAnalyzer Source #

Creates an analyzer.

See: newCreateAnalyzer smart constructor.

Constructors

CreateAnalyzer' 

Fields

  • clientToken :: Maybe Text

    A client token.

  • archiveRules :: Maybe [InlineArchiveRule]

    Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.

  • tags :: Maybe (HashMap Text Text)

    The tags to apply to the analyzer.

  • analyzerName :: Text

    The name of the analyzer to create.

  • type' :: Type

    The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.

Instances

Instances details
Eq CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Read CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Show CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Generic CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Associated Types

type Rep CreateAnalyzer :: Type -> Type #

NFData CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Methods

rnf :: CreateAnalyzer -> () #

Hashable CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

ToJSON CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

AWSRequest CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Associated Types

type AWSResponse CreateAnalyzer #

ToHeaders CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

ToPath CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

ToQuery CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

type Rep CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

type Rep CreateAnalyzer = D1 ('MetaData "CreateAnalyzer" "Amazonka.AccessAnalyzer.CreateAnalyzer" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "CreateAnalyzer'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "archiveRules") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InlineArchiveRule]))) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: (S1 ('MetaSel ('Just "analyzerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Type)))))
type AWSResponse CreateAnalyzer Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

newCreateAnalyzer Source #

Create a value of CreateAnalyzer 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:clientToken:CreateAnalyzer', createAnalyzer_clientToken - A client token.

$sel:archiveRules:CreateAnalyzer', createAnalyzer_archiveRules - Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.

$sel:tags:CreateAnalyzer', createAnalyzer_tags - The tags to apply to the analyzer.

$sel:analyzerName:CreateAnalyzer', createAnalyzer_analyzerName - The name of the analyzer to create.

$sel:type':CreateAnalyzer', createAnalyzer_type - The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.

Request Lenses

createAnalyzer_archiveRules :: Lens' CreateAnalyzer (Maybe [InlineArchiveRule]) Source #

Specifies the archive rules to add for the analyzer. Archive rules automatically archive findings that meet the criteria you define for the rule.

createAnalyzer_tags :: Lens' CreateAnalyzer (Maybe (HashMap Text Text)) Source #

The tags to apply to the analyzer.

createAnalyzer_analyzerName :: Lens' CreateAnalyzer Text Source #

The name of the analyzer to create.

createAnalyzer_type :: Lens' CreateAnalyzer Type Source #

The type of analyzer to create. Only ACCOUNT and ORGANIZATION analyzers are supported. You can create only one analyzer per account per Region. You can create up to 5 analyzers per organization per Region.

Destructuring the Response

data CreateAnalyzerResponse Source #

The response to the request to create an analyzer.

See: newCreateAnalyzerResponse smart constructor.

Constructors

CreateAnalyzerResponse' 

Fields

Instances

Instances details
Eq CreateAnalyzerResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Read CreateAnalyzerResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Show CreateAnalyzerResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Generic CreateAnalyzerResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Associated Types

type Rep CreateAnalyzerResponse :: Type -> Type #

NFData CreateAnalyzerResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

Methods

rnf :: CreateAnalyzerResponse -> () #

type Rep CreateAnalyzerResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAnalyzer

type Rep CreateAnalyzerResponse = D1 ('MetaData "CreateAnalyzerResponse" "Amazonka.AccessAnalyzer.CreateAnalyzer" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "CreateAnalyzerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateAnalyzerResponse Source #

Create a value of CreateAnalyzerResponse 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:arn:CreateAnalyzerResponse', createAnalyzerResponse_arn - The ARN of the analyzer that was created by the request.

$sel:httpStatus:CreateAnalyzerResponse', createAnalyzerResponse_httpStatus - The response's http status code.

Response Lenses

createAnalyzerResponse_arn :: Lens' CreateAnalyzerResponse (Maybe Text) Source #

The ARN of the analyzer that was created by the request.