{"action":"created","issue":{"url":"https://api.github.com/repos/boto/boto3/issues/1344","repository_url":"https://api.github.com/repos/boto/boto3","labels_url":"https://api.github.com/repos/boto/boto3/issues/1344/labels{/name}","comments_url":"https://api.github.com/repos/boto/boto3/issues/1344/comments","events_url":"https://api.github.com/repos/boto/boto3/issues/1344/events","html_url":"https://github.com/boto/boto3/issues/1344","id":272620539,"number":1344,"title":"s3 client. list_bucket_metrics_configurations() does not return documented response","user":{"login":"jonathanwcrane","id":6143363,"avatar_url":"https://avatars1.githubusercontent.com/u/6143363?v=4","gravatar_id":"","url":"https://api.github.com/users/jonathanwcrane","html_url":"https://github.com/jonathanwcrane","followers_url":"https://api.github.com/users/jonathanwcrane/followers","following_url":"https://api.github.com/users/jonathanwcrane/following{/other_user}","gists_url":"https://api.github.com/users/jonathanwcrane/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanwcrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanwcrane/subscriptions","organizations_url":"https://api.github.com/users/jonathanwcrane/orgs","repos_url":"https://api.github.com/users/jonathanwcrane/repos","events_url":"https://api.github.com/users/jonathanwcrane/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanwcrane/received_events","type":"User","site_admin":false},"labels":[{"id":217065744,"url":"https://api.github.com/repos/boto/boto3/labels/closing-soon-if-no-response","name":"closing-soon-if-no-response","color":"5319e7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-09T16:10:46Z","updated_at":"2017-11-14T21:19:17Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Hi there.  So I'm doing (approximately)\r\n\r\n```python\r\nsession = boto3.Session(profile_name=opts_dict['profile'],region_name=opts_dict['region'])\r\ns3_client = session.client('s3')\r\nres = s3_client.list_buckets()\r\nfor b in res['Buckets']:\r\n\tbn = b['Name']\r\n\tprint(\"---------------------------------------\")\r\n\tprint(bn)\r\n\tres = s3_client.list_bucket_metrics_configurations(Bucket=bn)\r\n\tprint(res)\r\n```\r\nand for all 14 buckets in my account, I get a response that looks like this:\r\n\r\n```\r\n{'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}\r\n```\r\nI'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.\r\n\r\nIs this an error in the documentation, boto3 itself, or in my understanding of how list_bucket_metrics_configurations() is supposed to work?\r\n\r\n\r\nEdit:\r\n\r\nboto3 version: 1.4.4\r\nbotocore version: 1.7.43\r\nOS: Sierra 10.12.6"},"comment":{"url":"https://api.github.com/repos/boto/boto3/issues/comments/344401966","html_url":"https://github.com/boto/boto3/issues/1344#issuecomment-344401966","issue_url":"https://api.github.com/repos/boto/boto3/issues/1344","id":344401966,"user":{"login":"joguSD","id":1935727,"avatar_url":"https://avatars1.githubusercontent.com/u/1935727?v=4","gravatar_id":"","url":"https://api.github.com/users/joguSD","html_url":"https://github.com/joguSD","followers_url":"https://api.github.com/users/joguSD/followers","following_url":"https://api.github.com/users/joguSD/following{/other_user}","gists_url":"https://api.github.com/users/joguSD/gists{/gist_id}","starred_url":"https://api.github.com/users/joguSD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joguSD/subscriptions","organizations_url":"https://api.github.com/users/joguSD/orgs","repos_url":"https://api.github.com/users/joguSD/repos","events_url":"https://api.github.com/users/joguSD/events{/privacy}","received_events_url":"https://api.github.com/users/joguSD/received_events","type":"User","site_admin":false},"created_at":"2017-11-14T21:19:17Z","updated_at":"2017-11-14T21:19:17Z","author_association":"NONE","body":"By other tools I meant the AWS S3 Console or other official AWS SDKs (we have SDKs for many languages such as [ruby](https://github.com/aws/aws-sdk-ruby), [go](https://github.com/aws/aws-sdk-go), etc). I was misunderstanding your issue, I thought you had a metrics configuration setup and were expecting the data to be there. If there is no metrics configuration, that field being omitted from the response is the expected behavior. Sorry for any confusion."}}
{"actor":{"display_login":"joguSD"}}