amazonka-macie-2.0: Amazon Macie SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.Macie.ListS3Resources

Description

(Discontinued) Lists all the S3 resources associated with Amazon Macie Classic. If memberAccountId isn't specified, the action lists the S3 resources associated with Macie Classic for the current Macie Classic administrator account. If memberAccountId is specified, the action lists the S3 resources associated with Macie Classic for the specified member account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListS3Resources Source #

See: newListS3Resources smart constructor.

Constructors

ListS3Resources' 

Fields

  • maxResults :: Maybe Int

    (Discontinued) Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.

  • memberAccountId :: Maybe Text

    (Discontinued) The Amazon Macie Classic member account ID whose associated S3 resources you want to list.

  • nextToken :: Maybe Text

    (Discontinued) Use this parameter when paginating results. Set its value to null on your first call to the ListS3Resources action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

Instances

Instances details
ToJSON ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

ToHeaders ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

ToPath ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

ToQuery ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

AWSPager ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

AWSRequest ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Associated Types

type AWSResponse ListS3Resources #

Generic ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Associated Types

type Rep ListS3Resources :: Type -> Type #

Read ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Show ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

NFData ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Methods

rnf :: ListS3Resources -> () #

Eq ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Hashable ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

type AWSResponse ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

type Rep ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

type Rep ListS3Resources = D1 ('MetaData "ListS3Resources" "Amazonka.Macie.ListS3Resources" "amazonka-macie-2.0-6zQjUC5IKQtkmzh23qe2R" 'False) (C1 ('MetaCons "ListS3Resources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "memberAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListS3Resources :: ListS3Resources Source #

Create a value of ListS3Resources 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:maxResults:ListS3Resources', listS3Resources_maxResults - (Discontinued) Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.

$sel:memberAccountId:ListS3Resources', listS3Resources_memberAccountId - (Discontinued) The Amazon Macie Classic member account ID whose associated S3 resources you want to list.

ListS3Resources, listS3Resources_nextToken - (Discontinued) Use this parameter when paginating results. Set its value to null on your first call to the ListS3Resources action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

Request Lenses

listS3Resources_maxResults :: Lens' ListS3Resources (Maybe Int) Source #

(Discontinued) Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.

listS3Resources_memberAccountId :: Lens' ListS3Resources (Maybe Text) Source #

(Discontinued) The Amazon Macie Classic member account ID whose associated S3 resources you want to list.

listS3Resources_nextToken :: Lens' ListS3Resources (Maybe Text) Source #

(Discontinued) Use this parameter when paginating results. Set its value to null on your first call to the ListS3Resources action. Subsequent calls to the action fill nextToken in the request with the value of nextToken from the previous response to continue listing data.

Destructuring the Response

data ListS3ResourcesResponse Source #

See: newListS3ResourcesResponse smart constructor.

Constructors

ListS3ResourcesResponse' 

Fields

  • nextToken :: Maybe Text

    (Discontinued) When a response is generated, if there is more data to be listed, this parameter 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.

  • s3Resources :: Maybe [S3ResourceClassification]

    (Discontinued) A list of the associated S3 resources returned by the action.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Associated Types

type Rep ListS3ResourcesResponse :: Type -> Type #

Read ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Show ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

NFData ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Methods

rnf :: ListS3ResourcesResponse -> () #

Eq ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

type Rep ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

type Rep ListS3ResourcesResponse = D1 ('MetaData "ListS3ResourcesResponse" "Amazonka.Macie.ListS3Resources" "amazonka-macie-2.0-6zQjUC5IKQtkmzh23qe2R" 'False) (C1 ('MetaCons "ListS3ResourcesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "s3Resources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [S3ResourceClassification])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListS3ResourcesResponse Source #

Create a value of ListS3ResourcesResponse 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:

ListS3Resources, listS3ResourcesResponse_nextToken - (Discontinued) When a response is generated, if there is more data to be listed, this parameter 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:s3Resources:ListS3ResourcesResponse', listS3ResourcesResponse_s3Resources - (Discontinued) A list of the associated S3 resources returned by the action.

$sel:httpStatus:ListS3ResourcesResponse', listS3ResourcesResponse_httpStatus - The response's http status code.

Response Lenses

listS3ResourcesResponse_nextToken :: Lens' ListS3ResourcesResponse (Maybe Text) Source #

(Discontinued) When a response is generated, if there is more data to be listed, this parameter 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.

listS3ResourcesResponse_s3Resources :: Lens' ListS3ResourcesResponse (Maybe [S3ResourceClassification]) Source #

(Discontinued) A list of the associated S3 resources returned by the action.