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

Description

Lists the metrics configurations for the bucket. The metrics configurations are only for the request metrics of the bucket and do not provide information on daily storage metrics. You can have up to 1,000 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:GetMetricsConfiguration 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 more information about metrics configurations and CloudWatch request metrics, see Monitoring Metrics with Amazon CloudWatch.

The following operations are related to ListBucketMetricsConfigurations:

Synopsis

Creating a Request

data ListBucketMetricsConfigurations Source #

See: newListBucketMetricsConfigurations smart constructor.

Constructors

ListBucketMetricsConfigurations' 

Fields

  • continuationToken :: Maybe Text

    The marker that is used to continue a metrics 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 metrics configurations to retrieve.

Instances

Instances details
Eq ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Read ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Show ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Generic ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Associated Types

type Rep ListBucketMetricsConfigurations :: Type -> Type #

NFData ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Hashable ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

AWSRequest ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

ToHeaders ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

ToPath ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

ToQuery ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

type Rep ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

type Rep ListBucketMetricsConfigurations = D1 ('MetaData "ListBucketMetricsConfigurations" "Amazonka.S3.ListBucketMetricsConfigurations" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "ListBucketMetricsConfigurations'" '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 ListBucketMetricsConfigurations Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

newListBucketMetricsConfigurations Source #

Create a value of ListBucketMetricsConfigurations 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:ListBucketMetricsConfigurations', listBucketMetricsConfigurations_continuationToken - The marker that is used to continue a metrics 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:ListBucketMetricsConfigurations', listBucketMetricsConfigurations_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:ListBucketMetricsConfigurations', listBucketMetricsConfigurations_bucket - The name of the bucket containing the metrics configurations to retrieve.

Request Lenses

listBucketMetricsConfigurations_continuationToken :: Lens' ListBucketMetricsConfigurations (Maybe Text) Source #

The marker that is used to continue a metrics 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.

listBucketMetricsConfigurations_expectedBucketOwner :: Lens' ListBucketMetricsConfigurations (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.

listBucketMetricsConfigurations_bucket :: Lens' ListBucketMetricsConfigurations BucketName Source #

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

Destructuring the Response

data ListBucketMetricsConfigurationsResponse Source #

Constructors

ListBucketMetricsConfigurationsResponse' 

Fields

  • continuationToken :: Maybe Text

    The marker that is used as a starting point for this metrics configuration list response. This value is present if it was sent in the request.

  • metricsConfigurationList :: Maybe [MetricsConfiguration]

    The list of metrics configurations for a bucket.

  • nextContinuationToken :: Maybe Text

    The marker used to continue a metrics 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.

  • isTruncated :: Maybe Bool

    Indicates whether the returned list of metrics configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken will be provided for a subsequent request.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListBucketMetricsConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Read ListBucketMetricsConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Show ListBucketMetricsConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

Generic ListBucketMetricsConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

NFData ListBucketMetricsConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

type Rep ListBucketMetricsConfigurationsResponse Source # 
Instance details

Defined in Amazonka.S3.ListBucketMetricsConfigurations

type Rep ListBucketMetricsConfigurationsResponse = D1 ('MetaData "ListBucketMetricsConfigurationsResponse" "Amazonka.S3.ListBucketMetricsConfigurations" "libZSservicesZSamazonka-s3ZSamazonka-s3" 'False) (C1 ('MetaCons "ListBucketMetricsConfigurationsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "continuationToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "metricsConfigurationList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricsConfiguration]))) :*: (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)))))

newListBucketMetricsConfigurationsResponse Source #

Create a value of ListBucketMetricsConfigurationsResponse 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:ListBucketMetricsConfigurations', listBucketMetricsConfigurationsResponse_continuationToken - The marker that is used as a starting point for this metrics configuration list response. This value is present if it was sent in the request.

$sel:metricsConfigurationList:ListBucketMetricsConfigurationsResponse', listBucketMetricsConfigurationsResponse_metricsConfigurationList - The list of metrics configurations for a bucket.

$sel:nextContinuationToken:ListBucketMetricsConfigurationsResponse', listBucketMetricsConfigurationsResponse_nextContinuationToken - The marker used to continue a metrics 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:isTruncated:ListBucketMetricsConfigurationsResponse', listBucketMetricsConfigurationsResponse_isTruncated - Indicates whether the returned list of metrics configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken will be provided for a subsequent request.

$sel:httpStatus:ListBucketMetricsConfigurationsResponse', listBucketMetricsConfigurationsResponse_httpStatus - The response's http status code.

Response Lenses

listBucketMetricsConfigurationsResponse_continuationToken :: Lens' ListBucketMetricsConfigurationsResponse (Maybe Text) Source #

The marker that is used as a starting point for this metrics configuration list response. This value is present if it was sent in the request.

listBucketMetricsConfigurationsResponse_nextContinuationToken :: Lens' ListBucketMetricsConfigurationsResponse (Maybe Text) Source #

The marker used to continue a metrics 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.

listBucketMetricsConfigurationsResponse_isTruncated :: Lens' ListBucketMetricsConfigurationsResponse (Maybe Bool) Source #

Indicates whether the returned list of metrics configurations is complete. A value of true indicates that the list is not complete and the NextContinuationToken will be provided for a subsequent request.