{"type":"rich","provider_url":"https://hatena.blog","title":"boto3\u3067\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u308b | AWS SDK for Python","author_url":"https://blog.hatena.ne.jp/BioErrorLog/","categories":["AWS","boto3","AWS SDK","Python","\u30af\u30e9\u30a6\u30c9"],"description":"boto3\u3067\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b\u65b9\u6cd5\u3092\u6574\u7406\u3057\u307e\u3059\u3002 \u306f\u3058\u3081\u306b boto3\u3067\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b client.exceptions botocore.exceptions \u30b3\u30fc\u30c9\u4f8b \u304a\u308f\u308a\u306b \u53c2\u8003 \u306f\u3058\u3081\u306b boto3\u3067\u767a\u751f\u3059\u308b\u30a8\u30e9\u30fc\u3092catch\u3057\u3088\u3046\u3068\u3057\u305f\u3068\u304d\u306b\u3001\u5c11\u3057\u30cf\u30de\u3063\u305f\u3053\u3068\u304c\u3042\u308a\u307e\u3057\u305f\u3002 \u4f8b\u3048\u3070\u4ee5\u4e0b\u306e\u30b3\u30fc\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001examplebucket\u3068\u3044\u3046\u540d\u524d\u306eS3\u30d0\u30b1\u30c3\u30c8\u304c\u65e2\u306b\u5b58\u5728\u3057\u3066\u3044\u308b\u305f\u3081\u3001BucketAlreadyExists\u30a8\u30e9\u30fc\u304c\u5410\u304b\u308c\u307e\u3059\u3002 import boto3 client = boto3.client('s3') client.create_bucket( Buc\u2026","width":"100%","provider_name":"Hatena Blog","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fwww.bioerrorlog.work%2Fentry%2Fcatch-boto3-exceptions\" title=\"boto3\u3067\u30a8\u30e9\u30fc\u30cf\u30f3\u30c9\u30ea\u30f3\u30b0\u3059\u308b\u65b9\u6cd5\u3092\u307e\u3068\u3081\u308b | AWS SDK for Python - BioErrorLog Tech Blog\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","url":"https://www.bioerrorlog.work/entry/catch-boto3-exceptions","height":"190","image_url":"https://cdn-ak.f.st-hatena.com/images/fotolife/B/BioErrorLog/20211017/20211017151950.png","blog_url":"https://www.bioerrorlog.work/","blog_title":"BioErrorLog Tech Blog","published":"2021-10-17 15:21:39","author_name":"BioErrorLog"}