创建设备池,返回无响应-AWSCLI [英] Create Device Pool returning None repsonse - AWSCLI

查看:88
本文介绍了创建设备池,返回无响应-AWSCLI的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用如下所示的AWS CLI创建设备池

I am creating a devicepool using AWS CLI as below

aws devicefarm create-device-pool --project-arn arn:aws:devicefarm:us-west-2:826601527641:project:90cbdcb5-4dab-438e-8ff6-e0680b376619 --name Devicepool_viago_android_0310201614131457612089 --description Devicepool_viago_android_0310201614131457612089 --rules '[{"attribute": "ARN", "operator": "EQUALS", "value":"arn:aws:devicefarm:us-west-2::device:C66D1BC946634884A129A4456EBA0239"}]'

我只想创建一个只有一个设备的设备池。

I want to create a device pool with only one device.

我遇到如下错误

A server error (InternalFailure) occurred when calling the CreateDevicePool operation: None

我尝试了其他论坛中提到的解决方案,但无法成功生成设备池

I tried the solutions mentioned in other forums but I am not able to succeed in generating a device pool

推荐答案

规则值应该被字符串化。不幸的是,AWS Device Farm文档中没有正确显示此信息。我们正在努力使其在文档和API响应中更加明显。由于您正在使用AWS CLI,请查看设备场的CLI入门博客文章。

Rule values should be stringified. Unfortunately, this information isn't properly surfaced in the AWS Device Farm documentation. We are working on making this more visible in the documentation and the API response. Since you're using the AWS CLI, have a look at the Getting Started with the CLI for Device Farm blog post.

这应该起作用:
aws devicefarm create-device-pool --project-arn PROJECT_ARN --name POOL_NAME --rules'[{ attribute: ARN,运算符: IN,值: \ DEVICE_ARN\}]'

这篇关于创建设备池,返回无响应-AWSCLI的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆