在与python集成时,在AWS中,get_service_last_accessed_details_与_实体中的服务名称空间是什么?
为了使用python boto3库从AWS api获取响应(该api是获取\u服务\u上次访问\u详细信息\u和\u实体),它需要一个名为service\u namespace的必需参数 获取响应的语法如下所示:在与python集成时,在AWS中,get_service_last_accessed_details_与_实体中的服务名称空间是什么?,python,mongodb,amazon-web-services,pymongo,boto3,Python,Mongodb,Amazon Web Services,Pymongo,Boto3,为了使用python boto3库从AWS api获取响应(该api是获取\u服务\u上次访问\u详细信息\u和\u实体),它需要一个名为service\u namespace的必需参数 获取响应的语法如下所示: response = client.get_service_last_accessed_details_with_entities(JobId="IhavethejobID",ServiceNamespace='string') 在serviceNamespace中,我应该添加什么值
response = client.get_service_last_accessed_details_with_entities(JobId="IhavethejobID",ServiceNamespace='string')
在serviceNamespace中,我应该添加什么值才能获得响应?您可以在他们的
AWS云开发工具包中找到。这是您在AWS中使用的服务。如ECS、EC2等
enum ServiceNamespace : The service that supports Application AutoScaling.
Members
Name Description
ECS Elastic Container Service.
ELASTIC_MAP_REDUCE Elastic Map Reduce.
EC2 Elastic Compute Cloud.
APPSTREAM App Stream.
DYNAMODB Dynamo DB.
RDS Relational Database Service.
SAGEMAKER SageMaker.
CUSTOM_RESOURCE Custom Resource.
LAMBDA Lambda.
COMPREHEND Comprehend.
我会说这是你使用的服务?ECS、EC2等…只需给出像ServiceNamespace='ECS'?@Bernardostarnsreiseni这样的字符串就可以了,我在这里找到了这些信息…将此作为答案发布,我会接受的。“这是正确的方法。”伯纳德·奥斯塔恩斯雷森说