Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ListBucketMetricsConfigurations = ListBucketMetricsConfigurations' {}
- newListBucketMetricsConfigurations :: BucketName -> ListBucketMetricsConfigurations
- listBucketMetricsConfigurations_continuationToken :: Lens' ListBucketMetricsConfigurations (Maybe Text)
- listBucketMetricsConfigurations_expectedBucketOwner :: Lens' ListBucketMetricsConfigurations (Maybe Text)
- listBucketMetricsConfigurations_bucket :: Lens' ListBucketMetricsConfigurations BucketName
- data ListBucketMetricsConfigurationsResponse = ListBucketMetricsConfigurationsResponse' {}
- newListBucketMetricsConfigurationsResponse :: Int -> ListBucketMetricsConfigurationsResponse
- listBucketMetricsConfigurationsResponse_continuationToken :: Lens' ListBucketMetricsConfigurationsResponse (Maybe Text)
- listBucketMetricsConfigurationsResponse_metricsConfigurationList :: Lens' ListBucketMetricsConfigurationsResponse (Maybe [MetricsConfiguration])
- listBucketMetricsConfigurationsResponse_nextContinuationToken :: Lens' ListBucketMetricsConfigurationsResponse (Maybe Text)
- listBucketMetricsConfigurationsResponse_isTruncated :: Lens' ListBucketMetricsConfigurationsResponse (Maybe Bool)
- listBucketMetricsConfigurationsResponse_httpStatus :: Lens' ListBucketMetricsConfigurationsResponse Int
Creating a Request
data ListBucketMetricsConfigurations Source #
See: newListBucketMetricsConfigurations
smart constructor.
ListBucketMetricsConfigurations' | |
|
Instances
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 #
See: newListBucketMetricsConfigurationsResponse
smart constructor.
ListBucketMetricsConfigurationsResponse' | |
|
Instances
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_metricsConfigurationList :: Lens' ListBucketMetricsConfigurationsResponse (Maybe [MetricsConfiguration]) Source #
The list of metrics configurations for a bucket.
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.
listBucketMetricsConfigurationsResponse_httpStatus :: Lens' ListBucketMetricsConfigurationsResponse Int Source #
The response's http status code.