【发布时间】:2020-06-17 01:36:09
【问题描述】:
下面给出了我的 lambda 函数的代码
import boto3
client = boto3.client('neptune') response =
client.stop_db_cluster(DBClusterIdentifier='qa-n1-cluster')
输出如下
Response: { "errorMessage": "'Neptune' 对象没有属性 “stop_db_cluster”、“errorType”:“AttributeError”、“stackTrace”:[ " File \"/var/lang/lib/python3.8/imp.py\", line 234, in load_module\n return load_source(name, filename, file)\n", " File \"/var/lang/lib/python3.8/imp.py\",第 171 行,在 load_source\n 模块 = _load(spec)\n", " 文件 \"\",第 702 行,在 _load\n" 中, " 文件 \"\",第 671 行,在 _load_unlocked\n", " 文件 \"\",第 783 行,在 exec_module\n" 中, " 文件 \"\",第 219 行,在 _call_with_frames_removed\n" 中, " File \"/var/task/lambda_function.py\",第 4 行,在 \n 响应 = client.stop_db_cluster(DBClusterIdentifier='qa-n1-cluster')\n", " File \"/var/runtime/botocore/client.py\",第 514 行,在 getattr\n raise AttributeError(\n" ] }
【问题讨论】:
标签: python aws-sdk boto3 amazon-neptune