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

Description

Creates an access preview that allows you to preview IAM Access Analyzer findings for your resource before deploying resource permissions.

Synopsis

Creating a Request

data CreateAccessPreview Source #

See: newCreateAccessPreview smart constructor.

Constructors

CreateAccessPreview' 

Fields

  • clientToken :: Maybe Text

    A client token.

  • analyzerArn :: Text

    The ARN of the account analyzer used to generate the access preview. You can only create an access preview for analyzers with an Account type and Active status.

  • configurations :: HashMap Text Configuration

    Access control configuration for your resource that is used to generate the access preview. The access preview includes findings for external access allowed to the resource with the proposed access control configuration. The configuration must contain exactly one element.

Instances

Instances details
Eq CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Read CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Show CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Generic CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Associated Types

type Rep CreateAccessPreview :: Type -> Type #

NFData CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Methods

rnf :: CreateAccessPreview -> () #

Hashable CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

ToJSON CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

AWSRequest CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Associated Types

type AWSResponse CreateAccessPreview #

ToHeaders CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

ToPath CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

ToQuery CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

type Rep CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

type Rep CreateAccessPreview = D1 ('MetaData "CreateAccessPreview" "Amazonka.AccessAnalyzer.CreateAccessPreview" "libZSservicesZSamazonka-accessanalyzerZSamazonka-accessanalyzer" 'False) (C1 ('MetaCons "CreateAccessPreview'" 'PrefixI 'True) (S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "analyzerArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "configurations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Configuration)))))
type AWSResponse CreateAccessPreview Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

newCreateAccessPreview Source #

Create a value of CreateAccessPreview 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:CreateAccessPreview', createAccessPreview_clientToken - A client token.

$sel:analyzerArn:CreateAccessPreview', createAccessPreview_analyzerArn - The ARN of the account analyzer used to generate the access preview. You can only create an access preview for analyzers with an Account type and Active status.

$sel:configurations:CreateAccessPreview', createAccessPreview_configurations - Access control configuration for your resource that is used to generate the access preview. The access preview includes findings for external access allowed to the resource with the proposed access control configuration. The configuration must contain exactly one element.

Request Lenses

createAccessPreview_analyzerArn :: Lens' CreateAccessPreview Text Source #

The ARN of the account analyzer used to generate the access preview. You can only create an access preview for analyzers with an Account type and Active status.

createAccessPreview_configurations :: Lens' CreateAccessPreview (HashMap Text Configuration) Source #

Access control configuration for your resource that is used to generate the access preview. The access preview includes findings for external access allowed to the resource with the proposed access control configuration. The configuration must contain exactly one element.

Destructuring the Response

data CreateAccessPreviewResponse Source #

See: newCreateAccessPreviewResponse smart constructor.

Constructors

CreateAccessPreviewResponse' 

Fields

  • httpStatus :: Int

    The response's http status code.

  • id :: Text

    The unique ID for the access preview.

Instances

Instances details
Eq CreateAccessPreviewResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Read CreateAccessPreviewResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Show CreateAccessPreviewResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Generic CreateAccessPreviewResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

Associated Types

type Rep CreateAccessPreviewResponse :: Type -> Type #

NFData CreateAccessPreviewResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

type Rep CreateAccessPreviewResponse Source # 
Instance details

Defined in Amazonka.AccessAnalyzer.CreateAccessPreview

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

newCreateAccessPreviewResponse Source #

Create a value of CreateAccessPreviewResponse 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:CreateAccessPreviewResponse', createAccessPreviewResponse_httpStatus - The response's http status code.

$sel:id:CreateAccessPreviewResponse', createAccessPreviewResponse_id - The unique ID for the access preview.

Response Lenses