libZSservicesZSamazonka-inspectorZSamazonka-inspector
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.Inspector.GetExclusionsPreview

Description

Retrieves the exclusions preview (a list of ExclusionPreview objects) specified by the preview token. You can obtain the preview token by running the CreateExclusionsPreview API.

Synopsis

Creating a Request

data GetExclusionsPreview Source #

See: newGetExclusionsPreview smart constructor.

Constructors

GetExclusionsPreview' 

Fields

  • locale :: Maybe Locale

    The locale into which you want to translate the exclusion's title, description, and recommendation.

  • nextToken :: Maybe Text

    You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

  • maxResults :: Maybe Int

    You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.

  • assessmentTemplateArn :: Text

    The ARN that specifies the assessment template for which the exclusions preview was requested.

  • previewToken :: Text

    The unique identifier associated of the exclusions preview.

Instances

Instances details
Eq GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Read GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Show GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Generic GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Associated Types

type Rep GetExclusionsPreview :: Type -> Type #

NFData GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Methods

rnf :: GetExclusionsPreview -> () #

Hashable GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

ToJSON GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

AWSRequest GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Associated Types

type AWSResponse GetExclusionsPreview #

ToHeaders GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

ToPath GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

ToQuery GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

type Rep GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

type Rep GetExclusionsPreview = D1 ('MetaData "GetExclusionsPreview" "Amazonka.Inspector.GetExclusionsPreview" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "GetExclusionsPreview'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "locale") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Locale)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "assessmentTemplateArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "previewToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetExclusionsPreview Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

newGetExclusionsPreview Source #

Create a value of GetExclusionsPreview 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:locale:GetExclusionsPreview', getExclusionsPreview_locale - The locale into which you want to translate the exclusion's title, description, and recommendation.

$sel:nextToken:GetExclusionsPreview', getExclusionsPreview_nextToken - You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

$sel:maxResults:GetExclusionsPreview', getExclusionsPreview_maxResults - You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.

$sel:assessmentTemplateArn:GetExclusionsPreview', getExclusionsPreview_assessmentTemplateArn - The ARN that specifies the assessment template for which the exclusions preview was requested.

$sel:previewToken:GetExclusionsPreview', getExclusionsPreview_previewToken - The unique identifier associated of the exclusions preview.

Request Lenses

getExclusionsPreview_locale :: Lens' GetExclusionsPreview (Maybe Locale) Source #

The locale into which you want to translate the exclusion's title, description, and recommendation.

getExclusionsPreview_nextToken :: Lens' GetExclusionsPreview (Maybe Text) Source #

You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the GetExclusionsPreviewRequest action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

getExclusionsPreview_maxResults :: Lens' GetExclusionsPreview (Maybe Int) Source #

You can use this parameter to indicate the maximum number of items you want in the response. The default value is 100. The maximum value is 500.

getExclusionsPreview_assessmentTemplateArn :: Lens' GetExclusionsPreview Text Source #

The ARN that specifies the assessment template for which the exclusions preview was requested.

getExclusionsPreview_previewToken :: Lens' GetExclusionsPreview Text Source #

The unique identifier associated of the exclusions preview.

Destructuring the Response

data GetExclusionsPreviewResponse Source #

See: newGetExclusionsPreviewResponse smart constructor.

Constructors

GetExclusionsPreviewResponse' 

Fields

  • exclusionPreviews :: Maybe [ExclusionPreview]

    Information about the exclusions included in the preview.

  • nextToken :: Maybe Text

    When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

  • httpStatus :: Int

    The response's http status code.

  • previewStatus :: PreviewStatus

    Specifies the status of the request to generate an exclusions preview.

Instances

Instances details
Eq GetExclusionsPreviewResponse Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Read GetExclusionsPreviewResponse Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Show GetExclusionsPreviewResponse Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Generic GetExclusionsPreviewResponse Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

Associated Types

type Rep GetExclusionsPreviewResponse :: Type -> Type #

NFData GetExclusionsPreviewResponse Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

type Rep GetExclusionsPreviewResponse Source # 
Instance details

Defined in Amazonka.Inspector.GetExclusionsPreview

type Rep GetExclusionsPreviewResponse = D1 ('MetaData "GetExclusionsPreviewResponse" "Amazonka.Inspector.GetExclusionsPreview" "libZSservicesZSamazonka-inspectorZSamazonka-inspector" 'False) (C1 ('MetaCons "GetExclusionsPreviewResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "exclusionPreviews") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ExclusionPreview])) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "previewStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 PreviewStatus))))

newGetExclusionsPreviewResponse Source #

Create a value of GetExclusionsPreviewResponse 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:exclusionPreviews:GetExclusionsPreviewResponse', getExclusionsPreviewResponse_exclusionPreviews - Information about the exclusions included in the preview.

$sel:nextToken:GetExclusionsPreview', getExclusionsPreviewResponse_nextToken - When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

$sel:httpStatus:GetExclusionsPreviewResponse', getExclusionsPreviewResponse_httpStatus - The response's http status code.

$sel:previewStatus:GetExclusionsPreviewResponse', getExclusionsPreviewResponse_previewStatus - Specifies the status of the request to generate an exclusions preview.

Response Lenses

getExclusionsPreviewResponse_nextToken :: Lens' GetExclusionsPreviewResponse (Maybe Text) Source #

When a response is generated, if there is more data to be listed, this parameters is present in the response and contains the value to use for the nextToken parameter in a subsequent pagination request. If there is no more data to be listed, this parameter is set to null.

getExclusionsPreviewResponse_previewStatus :: Lens' GetExclusionsPreviewResponse PreviewStatus Source #

Specifies the status of the request to generate an exclusions preview.