Skip to content

s3 client. list_bucket_metrics_configurations() does not return documented response #1344

Open
@jonathanwcrane

Description

@jonathanwcrane

Hi there. So I'm doing (approximately)

session = boto3.Session(profile_name=opts_dict['profile'],region_name=opts_dict['region'])
s3_client = session.client('s3')
res = s3_client.list_buckets()
for b in res['Buckets']:
	bn = b['Name']
	print("---------------------------------------")
	print(bn)
	res = s3_client.list_bucket_metrics_configurations(Bucket=bn)
	print(res)

and for all 14 buckets in my account, I get a response that looks like this:

{'ResponseMetadata': {'RequestId': '047D2D7A74F939C6', 'HostId': 'ka0BBTFI7G1mIMZutxKIyAxpgVkDA0viv3yajzwi09valCoLXdwK9hZxqlJhKSVvIfgl7yU01jA=', 'HTTPStatusCode': 200, 'HTTPHeaders': {'x-amz-id-2': 'ka0BBTFI7G1mIMZutxKIyAxpgVkDA0viv3yajzwi09valCoLXdwK9hZxqlJhKSVvIfgl7yU01jA=', 'x-amz-request-id': '047D2D7A74F939C6', 'date': 'Thu, 09 Nov 2017 14:33:44 GMT', 'content-length': '185', 'server': 'AmazonS3'}, 'RetryAttempts': 0}, 'IsTruncated': False}

I'm expecting an element called 'MetricsConfigurationList' in that dict, per this documentation: http://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.list_bucket_metrics_configurations but it's not there.

Is this an error in the documentation, boto3 itself, or in my understanding of how list_bucket_metrics_configurations() is supposed to work?

Edit:

boto3 version: 1.4.4
botocore version: 1.7.43
OS: Sierra 10.12.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    automation-exemptdocumentationThis is a problem with documentation.feature-requestThis issue requests a feature.p3This is a minor priority issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions