python - boto3:无法使用 list_distributions 找到 CloudFront key

标签 python amazon-web-services boto amazon-cloudfront boto3

根据boto3 documentation ,调用list_distributions()时应该有键HttpVersionIsIPV6Enabled

运行以下命令:

import boto3
client = boto3.client('cloudfront')
dists = client.list_distributions()
dists['DistributionList']['Items'][0].keys()

仅列出以下键:

[u'Status', u'CacheBehaviors', u'Restrictions', u'Origins', 
u'DomainName', u'WebACLId', u'PriceClass', u'Enabled', 
u'DefaultCacheBehavior', u'Comment', u'ViewerCertificate', 
u'CustomErrorResponses', u'LastModifiedTime', u'Id', u'ARN', u'Aliases']

文档是否不正确或者我在这里遗漏了什么?

我使用 Python 2.7.12 以及 boto3 (1.4.4) 和 botocore (1.5.4) 来执行此操作。

谢谢

最佳答案

事实证明,这是从 AWS 发送响应数据时出现的错误 - 在与 AWS 支持讨论后,该错误已得到修复。

关于python - boto3:无法使用 list_distributions 找到 CloudFront key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41909059/

相关文章:

linux - 如何从AWS linux卸载tomcat?

python - 获取所有可用的存储桶并打印但仅使用存储桶名称

python - Boto3:WAITINGS3流式上传完成

python - TeX 输入的引号字符串

python - Pandas Dataframe 浮点精度

python - pymongo DuplicateKeyError - 在 upsert 期间

boto - boto代表什么

python - SQLAlchemy + Postgres + Python 完整性错误

r - Ubuntu-没有名为 shinydashboard 的软件包?

amazon-web-services - 使用QuickSight制作累加总和图