Skip to content

Commit 7661fa3

Browse files
author
AWS
committed
AWS Device Farm Update: Add support for environment variables and an IAM execution role.
1 parent 7979036 commit 7661fa3

File tree

2 files changed

+90
-3
lines changed

2 files changed

+90
-3
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS Device Farm",
4+
"contributor": "",
5+
"description": "Add support for environment variables and an IAM execution role."
6+
}

services/devicefarm/src/main/resources/codegen-resources/service-2.json

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1296,6 +1296,12 @@
12961296
"type":"list",
12971297
"member":{"shape":"AmazonResourceName"}
12981298
},
1299+
"AmazonRoleResourceName":{
1300+
"type":"string",
1301+
"max":2048,
1302+
"min":20,
1303+
"pattern":"^arn:aws:iam::[0-9]{12}:role/.+"
1304+
},
12991305
"AndroidPaths":{
13001306
"type":"list",
13011307
"member":{"shape":"String"}
@@ -1619,6 +1625,14 @@
16191625
"vpcConfig":{
16201626
"shape":"VpcConfig",
16211627
"documentation":"<p>The VPC security groups and subnets that are attached to a project.</p>"
1628+
},
1629+
"environmentVariables":{
1630+
"shape":"EnvironmentVariables",
1631+
"documentation":"<p> A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file. </p> <p> For more information about using test spec files, please see <a href=\"https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html\">Custom test environments </a> in <i>AWS Device Farm.</i> </p>"
1632+
},
1633+
"executionRoleArn":{
1634+
"shape":"AmazonRoleResourceName",
1635+
"documentation":"<p>An IAM role to be assumed by the test host for all runs in the project.</p>"
16221636
}
16231637
},
16241638
"documentation":"<p>Represents a request to the create project operation.</p>"
@@ -2376,6 +2390,41 @@
23762390
"member":{"shape":"Device"}
23772391
},
23782392
"Double":{"type":"double"},
2393+
"EnvironmentVariable":{
2394+
"type":"structure",
2395+
"required":[
2396+
"name",
2397+
"value"
2398+
],
2399+
"members":{
2400+
"name":{
2401+
"shape":"EnvironmentVariableName",
2402+
"documentation":"<p>The name of the environment variable.</p>"
2403+
},
2404+
"value":{
2405+
"shape":"EnvironmentVariableValue",
2406+
"documentation":"<p>The value of the environment variable.</p>"
2407+
}
2408+
},
2409+
"documentation":"<p>Information about an environment variable for a project or a run.</p>"
2410+
},
2411+
"EnvironmentVariableName":{
2412+
"type":"string",
2413+
"max":256,
2414+
"min":1,
2415+
"pattern":"[a-zA-Z_][a-zA-Z_0-9]*"
2416+
},
2417+
"EnvironmentVariableValue":{
2418+
"type":"string",
2419+
"max":256,
2420+
"min":1
2421+
},
2422+
"EnvironmentVariables":{
2423+
"type":"list",
2424+
"member":{"shape":"EnvironmentVariable"},
2425+
"max":32,
2426+
"min":1
2427+
},
23792428
"ExceptionMessage":{"type":"string"},
23802429
"ExecutionConfiguration":{
23812430
"type":"structure",
@@ -3490,7 +3539,7 @@
34903539
"members":{
34913540
"ResourceARN":{
34923541
"shape":"DeviceFarmArn",
3493-
"documentation":"<p>The Amazon Resource Name (ARN) of the resource or resources for which to list tags. You can associate tags with the following Device Farm resources: <code>PROJECT</code>, <code>RUN</code>, <code>NETWORK_PROFILE</code>, <code>INSTANCE_PROFILE</code>, <code>DEVICE_INSTANCE</code>, <code>SESSION</code>, <code>DEVICE_POOL</code>, <code>DEVICE</code>, and <code>VPCE_CONFIGURATION</code>.</p>"
3542+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource or resources for which to list tags. You can associate tags with the following Device Farm resources: <code>PROJECT</code>, <code>TESTGRID_PROJECT</code>, <code>RUN</code>, <code>NETWORK_PROFILE</code>, <code>INSTANCE_PROFILE</code>, <code>DEVICE_INSTANCE</code>, <code>SESSION</code>, <code>DEVICE_POOL</code>, <code>DEVICE</code>, and <code>VPCE_CONFIGURATION</code>.</p>"
34943543
}
34953544
}
34963545
},
@@ -4127,6 +4176,14 @@
41274176
"vpcConfig":{
41284177
"shape":"VpcConfig",
41294178
"documentation":"<p>The VPC security groups and subnets that are attached to a project.</p>"
4179+
},
4180+
"environmentVariables":{
4181+
"shape":"EnvironmentVariables",
4182+
"documentation":"<p>Environment variables associated with the project.</p>"
4183+
},
4184+
"executionRoleArn":{
4185+
"shape":"AmazonRoleResourceName",
4186+
"documentation":"<p>The IAM execution role associated with the project.</p>"
41304187
}
41314188
},
41324189
"documentation":"<p>Represents an operating-system neutral workspace for running and managing tests.</p>"
@@ -4552,6 +4609,14 @@
45524609
"vpcConfig":{
45534610
"shape":"VpcConfig",
45544611
"documentation":"<p>The VPC security groups and subnets that are attached to a project.</p>"
4612+
},
4613+
"executionRoleArn":{
4614+
"shape":"AmazonRoleResourceName",
4615+
"documentation":"<p>The IAM role associated with the run.</p>"
4616+
},
4617+
"environmentVariables":{
4618+
"shape":"EnvironmentVariables",
4619+
"documentation":"<p>Environment variables associated with the run.</p>"
45554620
}
45564621
},
45574622
"documentation":"<p>Represents a test run on a set of devices with a given app package, test parameters, and so on.</p>"
@@ -4646,6 +4711,14 @@
46464711
"billingMethod":{
46474712
"shape":"BillingMethod",
46484713
"documentation":"<p>Specifies the billing method for a test run: <code>metered</code> or <code>unmetered</code>. If the parameter is not specified, the default value is <code>metered</code>.</p> <note> <p>If you have purchased unmetered device slots, you must set this parameter to <code>unmetered</code> to make use of them. Otherwise, your run counts against your metered time.</p> </note>"
4714+
},
4715+
"environmentVariables":{
4716+
"shape":"EnvironmentVariables",
4717+
"documentation":"<p>Environment variables associated with the run.</p>"
4718+
},
4719+
"executionRoleArn":{
4720+
"shape":"AmazonRoleResourceName",
4721+
"documentation":"<p>An IAM role to be assumed by the test host for the run.</p>"
46494722
}
46504723
},
46514724
"documentation":"<p>Represents the settings for a run. Includes things like location, radio states, auxiliary apps, and network profiles.</p>"
@@ -4956,7 +5029,7 @@
49565029
"members":{
49575030
"ResourceARN":{
49585031
"shape":"DeviceFarmArn",
4959-
"documentation":"<p>The Amazon Resource Name (ARN) of the resource or resources to which to add tags. You can associate tags with the following Device Farm resources: <code>PROJECT</code>, <code>RUN</code>, <code>NETWORK_PROFILE</code>, <code>INSTANCE_PROFILE</code>, <code>DEVICE_INSTANCE</code>, <code>SESSION</code>, <code>DEVICE_POOL</code>, <code>DEVICE</code>, and <code>VPCE_CONFIGURATION</code>.</p>"
5032+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource or resources to which to add tags. You can associate tags with the following Device Farm resources: <code>PROJECT</code>, <code>TESTGRID_PROJECT</code>, <code>RUN</code>, <code>NETWORK_PROFILE</code>, <code>INSTANCE_PROFILE</code>, <code>DEVICE_INSTANCE</code>, <code>SESSION</code>, <code>DEVICE_POOL</code>, <code>DEVICE</code>, and <code>VPCE_CONFIGURATION</code>.</p>"
49605033
},
49615034
"Tags":{
49625035
"shape":"TagList",
@@ -5282,7 +5355,7 @@
52825355
"members":{
52835356
"ResourceARN":{
52845357
"shape":"DeviceFarmArn",
5285-
"documentation":"<p>The Amazon Resource Name (ARN) of the resource or resources from which to delete tags. You can associate tags with the following Device Farm resources: <code>PROJECT</code>, <code>RUN</code>, <code>NETWORK_PROFILE</code>, <code>INSTANCE_PROFILE</code>, <code>DEVICE_INSTANCE</code>, <code>SESSION</code>, <code>DEVICE_POOL</code>, <code>DEVICE</code>, and <code>VPCE_CONFIGURATION</code>.</p>"
5358+
"documentation":"<p>The Amazon Resource Name (ARN) of the resource or resources from which to delete tags. You can associate tags with the following Device Farm resources: <code>PROJECT</code>, <code>TESTGRID_PROJECT</code>, <code>RUN</code>, <code>NETWORK_PROFILE</code>, <code>INSTANCE_PROFILE</code>, <code>DEVICE_INSTANCE</code>, <code>SESSION</code>, <code>DEVICE_POOL</code>, <code>DEVICE</code>, and <code>VPCE_CONFIGURATION</code>.</p>"
52865359
},
52875360
"TagKeys":{
52885361
"shape":"TagKeyList",
@@ -5483,6 +5556,14 @@
54835556
"vpcConfig":{
54845557
"shape":"VpcConfig",
54855558
"documentation":"<p>The VPC security groups and subnets that are attached to a project.</p>"
5559+
},
5560+
"environmentVariables":{
5561+
"shape":"EnvironmentVariables",
5562+
"documentation":"<p> A set of environment variables which are used by default for all runs in the project. These environment variables are applied to the test run during the execution of a test spec file. </p> <p> For more information about using test spec files, please see <a href=\"https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html\">Custom test environments </a> in <i>AWS Device Farm.</i> </p>"
5563+
},
5564+
"executionRoleArn":{
5565+
"shape":"AmazonRoleResourceName",
5566+
"documentation":"<p>An IAM role to be assumed by the test host for all runs in the project.</p>"
54865567
}
54875568
},
54885569
"documentation":"<p>Represents a request to the update project operation.</p>"

0 commit comments

Comments
 (0)