libZSservicesZSamazonka-s3ZSamazonka-s3
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.S3.ListBucketInventoryConfigurations

Description

Returns a list of inventory configurations for the bucket. You can have up to 1,000 analytics configurations per bucket.

This action supports list pagination and does not return more than 100 configurations at a time. Always check the IsTruncated element in the response. If there are no more configurations to list, IsTruncated is set to false. If there are more configurations to list, IsTruncated is set to true, and there is a value in NextContinuationToken. You use the NextContinuationToken value to continue the pagination of the list by passing the value in continuation-token in the request to GET the next page.

To use this operation, you must have permissions to perform the s3:GetInventoryConfiguration action. The bucket owner has this permission by default. The bucket owner can grant this permission to others. For more information about permissions, see Permissions Related to Bucket Subresource Operations and Managing Access Permissions to Your Amazon S3 Resources.

For information about the Amazon S3 inventory feature, see Amazon S3 Inventory

The following operations are related to ListBucketInventoryConfigurations:

Synopsis

Creating a Request

data ListBucketInventoryConfigurations Source #

See: newListBucketInventoryConfigurations smart constructor.

Constructors

ListBucketInventoryConfigurations' 

Fields

  • continuationToken :: Maybe Text

    The marker used to continue an inventory configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.

  • expectedBucketOwner :: Maybe Text

    The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

  • bucket :: BucketName

    The name of the bucket containing the inventory configurations to retrieve.

Instances

Instances details
Eq ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

Read ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

Show ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

Generic ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

Associated Types

type Rep ListBucketInventoryConfigurations :: Type -> Type #

NFData ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

Hashable ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

AWSRequest ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

ToHeaders ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

ToPath ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

ToQuery ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

type Rep ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

type Rep ListBucketInventoryConfigurations = D1 ('MetaData "ListBucketInventoryConfigurations" "Amazonka.S3.ListBucketInventoryConfigurations" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "ListBucketInventoryConfigurations'" 'PrefixI 'True) (S1 ('MetaSel ('Just "continuationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "expectedBucketOwner") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "bucket") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BucketName))))
type AWSResponse ListBucketInventoryConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

newListBucketInventoryConfigurations Source #

Create a value of ListBucketInventoryConfigurations 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:continuationToken:ListBucketInventoryConfigurations', listBucketInventoryConfigurations_continuationToken - The marker used to continue an inventory configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.

$sel:expectedBucketOwner:ListBucketInventoryConfigurations', listBucketInventoryConfigurations_expectedBucketOwner - The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

$sel:bucket:ListBucketInventoryConfigurations', listBucketInventoryConfigurations_bucket - The name of the bucket containing the inventory configurations to retrieve.

Request Lenses

listBucketInventoryConfigurations_continuationToken :: Lens' ListBucketInventoryConfigurations (Maybe Text) Source #

The marker used to continue an inventory configuration listing that has been truncated. Use the NextContinuationToken from a previously truncated list response to continue the listing. The continuation token is an opaque value that Amazon S3 understands.

listBucketInventoryConfigurations_expectedBucketOwner :: Lens' ListBucketInventoryConfigurations (Maybe Text) Source #

The account ID of the expected bucket owner. If the bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

listBucketInventoryConfigurations_bucket :: Lens' ListBucketInventoryConfigurations BucketName Source #

The name of the bucket containing the inventory configurations to retrieve.

Destructuring the Response

data ListBucketInventoryConfigurationsResponse Source #

Constructors

ListBucketInventoryConfigurationsResponse' 

Fields

  • continuationToken :: Maybe Text

    If sent in the request, the marker that is used as a starting point for this inventory configuration list response.

  • inventoryConfigurationList :: Maybe [InventoryConfiguration]

    The list of inventory configurations for a bucket.

  • nextContinuationToken :: Maybe Text

    The marker used to continue this inventory configuration listing. Use the NextContinuationToken from this response to continue the listing in a subsequent request. The continuation token is an opaque value that Amazon S3 understands.

  • isTruncated :: Maybe Bool

    Tells whether the returned list of inventory configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken is provided for a subsequent request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListBucketInventoryConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

Show ListBucketInventoryConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

Generic ListBucketInventoryConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

NFData ListBucketInventoryConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

type Rep ListBucketInventoryConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketInventoryConfigurations

type Rep ListBucketInventoryConfigurationsResponse = D1 ('MetaData "ListBucketInventoryConfigurationsResponse" "Amazonka.S3.ListBucketInventoryConfigurations" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "ListBucketInventoryConfigurationsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "continuationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "inventoryConfigurationList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [InventoryConfiguration]))) :*: (S1 ('MetaSel ('Just "nextContinuationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "isTruncated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newListBucketInventoryConfigurationsResponse Source #

Create a value of ListBucketInventoryConfigurationsResponse 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:continuationToken:ListBucketInventoryConfigurations', listBucketInventoryConfigurationsResponse_continuationToken - If sent in the request, the marker that is used as a starting point for this inventory configuration list response.

$sel:inventoryConfigurationList:ListBucketInventoryConfigurationsResponse', listBucketInventoryConfigurationsResponse_inventoryConfigurationList - The list of inventory configurations for a bucket.

$sel:nextContinuationToken:ListBucketInventoryConfigurationsResponse', listBucketInventoryConfigurationsResponse_nextContinuationToken - The marker used to continue this inventory configuration listing. Use the NextContinuationToken from this response to continue the listing in a subsequent request. The continuation token is an opaque value that Amazon S3 understands.

$sel:isTruncated:ListBucketInventoryConfigurationsResponse', listBucketInventoryConfigurationsResponse_isTruncated - Tells whether the returned list of inventory configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken is provided for a subsequent request.

$sel:httpStatus:ListBucketInventoryConfigurationsResponse', listBucketInventoryConfigurationsResponse_httpStatus - The response's http status code.

Response Lenses

listBucketInventoryConfigurationsResponse_continuationToken :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Text) Source #

If sent in the request, the marker that is used as a starting point for this inventory configuration list response.

listBucketInventoryConfigurationsResponse_nextContinuationToken :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Text) Source #

The marker used to continue this inventory configuration listing. Use the NextContinuationToken from this response to continue the listing in a subsequent request. The continuation token is an opaque value that Amazon S3 understands.

listBucketInventoryConfigurationsResponse_isTruncated :: Lens' ListBucketInventoryConfigurationsResponse (Maybe Bool) Source #

Tells whether the returned list of inventory configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken is provided for a subsequent request.