libZSservicesZSamazonka-macieZSamazonka-macie
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.Macie.ListS3Resources

Description

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

  • memberAccountId :: Maybe Text

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

  • nextToken :: Maybe Text

    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.

  • maxResults :: Maybe Int

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

Instances

Instances details
Eq ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Read ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Show ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Generic ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Associated Types

type Rep ListS3Resources :: Type -> Type #

NFData ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Methods

rnf :: ListS3Resources -> () #

Hashable ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

ToJSON 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 #

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

type Rep ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

type Rep ListS3Resources = D1 ('MetaData "ListS3Resources" "Amazonka.Macie.ListS3Resources" "libZSservicesZSamazonka-macieZSamazonka-macie" 'False) (C1 ('MetaCons "ListS3Resources'" 'PrefixI 'True) (S1 ('MetaSel ('Just "memberAccountId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))))
type AWSResponse ListS3Resources Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

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:memberAccountId:ListS3Resources', listS3Resources_memberAccountId - The Amazon Macie Classic member account ID whose associated S3 resources you want to list.

$sel:nextToken:ListS3Resources', listS3Resources_nextToken - 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.

$sel:maxResults:ListS3Resources', listS3Resources_maxResults - Use this parameter to indicate the maximum number of items that you want in the response. The default value is 250.

Request Lenses

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

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

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

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.

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

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

Destructuring the Response

data ListS3ResourcesResponse Source #

See: newListS3ResourcesResponse smart constructor.

Constructors

ListS3ResourcesResponse' 

Fields

  • nextToken :: Maybe Text

    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]

    A list of the associated S3 resources returned by the action.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Read ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Show ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Generic ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Associated Types

type Rep ListS3ResourcesResponse :: Type -> Type #

NFData ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

Methods

rnf :: ListS3ResourcesResponse -> () #

type Rep ListS3ResourcesResponse Source # 
Instance details

Defined in Amazonka.Macie.ListS3Resources

type Rep ListS3ResourcesResponse = D1 ('MetaData "ListS3ResourcesResponse" "Amazonka.Macie.ListS3Resources" "libZSservicesZSamazonka-macieZSamazonka-macie" '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:

$sel:nextToken:ListS3Resources', listS3ResourcesResponse_nextToken - 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 - 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 #

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 #

A list of the associated S3 resources returned by the action.