aws-sdk-devicefarm 1.97.0 → 1.98.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6608eb1f7a0aef56f43de292658bd2e1f8201c55eac1073bbc0c3b929e7365ae
4
- data.tar.gz: 396e236ce01c3189f2f5466d0951a10427e967915d6bd50a23d3a6aeb363969b
3
+ metadata.gz: 81b449dbe880e3dd168d68c5517d1e98600057010a84d388bcf5e5d78fe3ce96
4
+ data.tar.gz: fd9121551032663b8e145463699509bcb5d8b4379d147a34c02f6f4b9f74e6b6
5
5
  SHA512:
6
- metadata.gz: efd786d962bea2969f76da850378ac38f23e064a97bc1e7e508374d114b3b3db5f164415383f505402d5c597a4a92d05673218e4e8c52b49d1d09e54c0521e12
7
- data.tar.gz: 62329e23cf43e0d9623692fa12e5e084671e0b23bd21ee48367c1e299df409175277cb27f5074b4eafde3ad5bd3851efa2903fdcb77e6709d4f700da0e800287
6
+ metadata.gz: 8010c377913c33d64424e2d0b5aafba1ef76eea6d2e1eb9c9ae09272c095244b6f163438bf37bcd8ca8ec473af027ff043962d57d7498ff7cd2b5b7d9d28732c
7
+ data.tar.gz: 23e88d4cf5a0cbaafbdd38201721efb0217593f4b26aaf9ac96120270cdaaa2382c5f4df802948a35c427f833cd35f7e50cfaacd3e44529532fb511aab3a3644
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.98.0 (2025-11-20)
5
+ ------------------
6
+
7
+ * Feature - Add support for environment variables and an IAM execution role.
8
+
4
9
  1.97.0 (2025-11-17)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.97.0
1
+ 1.98.0
@@ -729,6 +729,22 @@ module Aws::DeviceFarm
729
729
  # @option params [Types::VpcConfig] :vpc_config
730
730
  # The VPC security groups and subnets that are attached to a project.
731
731
  #
732
+ # @option params [Array<Types::EnvironmentVariable>] :environment_variables
733
+ # A set of environment variables which are used by default for all runs
734
+ # in the project. These environment variables are applied to the test
735
+ # run during the execution of a test spec file.
736
+ #
737
+ # For more information about using test spec files, please see [Custom
738
+ # test environments ][1] in *AWS Device Farm.*
739
+ #
740
+ #
741
+ #
742
+ # [1]: https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html
743
+ #
744
+ # @option params [String] :execution_role_arn
745
+ # An IAM role to be assumed by the test host for all runs in the
746
+ # project.
747
+ #
732
748
  # @return [Types::CreateProjectResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
733
749
  #
734
750
  # * {Types::CreateProjectResult#project #project} => Types::Project
@@ -761,6 +777,13 @@ module Aws::DeviceFarm
761
777
  # subnet_ids: ["SubnetId"], # required
762
778
  # vpc_id: "NonEmptyString", # required
763
779
  # },
780
+ # environment_variables: [
781
+ # {
782
+ # name: "EnvironmentVariableName", # required
783
+ # value: "EnvironmentVariableValue", # required
784
+ # },
785
+ # ],
786
+ # execution_role_arn: "AmazonRoleResourceName",
764
787
  # })
765
788
  #
766
789
  # @example Response structure
@@ -774,6 +797,10 @@ module Aws::DeviceFarm
774
797
  # resp.project.vpc_config.subnet_ids #=> Array
775
798
  # resp.project.vpc_config.subnet_ids[0] #=> String
776
799
  # resp.project.vpc_config.vpc_id #=> String
800
+ # resp.project.environment_variables #=> Array
801
+ # resp.project.environment_variables[0].name #=> String
802
+ # resp.project.environment_variables[0].value #=> String
803
+ # resp.project.execution_role_arn #=> String
777
804
  #
778
805
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProject AWS API Documentation
779
806
  #
@@ -1860,6 +1887,13 @@ module Aws::DeviceFarm
1860
1887
  # },
1861
1888
  # auxiliary_apps: ["AmazonResourceName"],
1862
1889
  # billing_method: "METERED", # accepts METERED, UNMETERED
1890
+ # environment_variables: [
1891
+ # {
1892
+ # name: "EnvironmentVariableName", # required
1893
+ # value: "EnvironmentVariableValue", # required
1894
+ # },
1895
+ # ],
1896
+ # execution_role_arn: "AmazonRoleResourceName",
1863
1897
  # },
1864
1898
  # project_arn: "AmazonResourceName",
1865
1899
  # })
@@ -2278,6 +2312,10 @@ module Aws::DeviceFarm
2278
2312
  # resp.project.vpc_config.subnet_ids #=> Array
2279
2313
  # resp.project.vpc_config.subnet_ids[0] #=> String
2280
2314
  # resp.project.vpc_config.vpc_id #=> String
2315
+ # resp.project.environment_variables #=> Array
2316
+ # resp.project.environment_variables[0].name #=> String
2317
+ # resp.project.environment_variables[0].value #=> String
2318
+ # resp.project.execution_role_arn #=> String
2281
2319
  #
2282
2320
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetProject AWS API Documentation
2283
2321
  #
@@ -2522,6 +2560,10 @@ module Aws::DeviceFarm
2522
2560
  # resp.run.vpc_config.subnet_ids #=> Array
2523
2561
  # resp.run.vpc_config.subnet_ids[0] #=> String
2524
2562
  # resp.run.vpc_config.vpc_id #=> String
2563
+ # resp.run.execution_role_arn #=> String
2564
+ # resp.run.environment_variables #=> Array
2565
+ # resp.run.environment_variables[0].name #=> String
2566
+ # resp.run.environment_variables[0].value #=> String
2525
2567
  #
2526
2568
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/GetRun AWS API Documentation
2527
2569
  #
@@ -3842,6 +3884,10 @@ module Aws::DeviceFarm
3842
3884
  # resp.projects[0].vpc_config.subnet_ids #=> Array
3843
3885
  # resp.projects[0].vpc_config.subnet_ids[0] #=> String
3844
3886
  # resp.projects[0].vpc_config.vpc_id #=> String
3887
+ # resp.projects[0].environment_variables #=> Array
3888
+ # resp.projects[0].environment_variables[0].name #=> String
3889
+ # resp.projects[0].environment_variables[0].value #=> String
3890
+ # resp.projects[0].execution_role_arn #=> String
3845
3891
  # resp.next_token #=> String
3846
3892
  #
3847
3893
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListProjects AWS API Documentation
@@ -4111,6 +4157,10 @@ module Aws::DeviceFarm
4111
4157
  # resp.runs[0].vpc_config.subnet_ids #=> Array
4112
4158
  # resp.runs[0].vpc_config.subnet_ids[0] #=> String
4113
4159
  # resp.runs[0].vpc_config.vpc_id #=> String
4160
+ # resp.runs[0].execution_role_arn #=> String
4161
+ # resp.runs[0].environment_variables #=> Array
4162
+ # resp.runs[0].environment_variables[0].name #=> String
4163
+ # resp.runs[0].environment_variables[0].value #=> String
4114
4164
  # resp.next_token #=> String
4115
4165
  #
4116
4166
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListRuns AWS API Documentation
@@ -4257,9 +4307,9 @@ module Aws::DeviceFarm
4257
4307
  # @option params [required, String] :resource_arn
4258
4308
  # The Amazon Resource Name (ARN) of the resource or resources for which
4259
4309
  # to list tags. You can associate tags with the following Device Farm
4260
- # resources: `PROJECT`, `RUN`, `NETWORK_PROFILE`, `INSTANCE_PROFILE`,
4261
- # `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`, `DEVICE`, and
4262
- # `VPCE_CONFIGURATION`.
4310
+ # resources: `PROJECT`, `TESTGRID_PROJECT`, `RUN`, `NETWORK_PROFILE`,
4311
+ # `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`,
4312
+ # `DEVICE`, and `VPCE_CONFIGURATION`.
4263
4313
  #
4264
4314
  # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
4265
4315
  #
@@ -5127,6 +5177,13 @@ module Aws::DeviceFarm
5127
5177
  # },
5128
5178
  # auxiliary_apps: ["AmazonResourceName"],
5129
5179
  # billing_method: "METERED", # accepts METERED, UNMETERED
5180
+ # environment_variables: [
5181
+ # {
5182
+ # name: "EnvironmentVariableName", # required
5183
+ # value: "EnvironmentVariableValue", # required
5184
+ # },
5185
+ # ],
5186
+ # execution_role_arn: "AmazonRoleResourceName",
5130
5187
  # },
5131
5188
  # execution_configuration: {
5132
5189
  # job_timeout_minutes: 1,
@@ -5211,6 +5268,10 @@ module Aws::DeviceFarm
5211
5268
  # resp.run.vpc_config.subnet_ids #=> Array
5212
5269
  # resp.run.vpc_config.subnet_ids[0] #=> String
5213
5270
  # resp.run.vpc_config.vpc_id #=> String
5271
+ # resp.run.execution_role_arn #=> String
5272
+ # resp.run.environment_variables #=> Array
5273
+ # resp.run.environment_variables[0].name #=> String
5274
+ # resp.run.environment_variables[0].value #=> String
5214
5275
  #
5215
5276
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRun AWS API Documentation
5216
5277
  #
@@ -5514,6 +5575,10 @@ module Aws::DeviceFarm
5514
5575
  # resp.run.vpc_config.subnet_ids #=> Array
5515
5576
  # resp.run.vpc_config.subnet_ids[0] #=> String
5516
5577
  # resp.run.vpc_config.vpc_id #=> String
5578
+ # resp.run.execution_role_arn #=> String
5579
+ # resp.run.environment_variables #=> Array
5580
+ # resp.run.environment_variables[0].name #=> String
5581
+ # resp.run.environment_variables[0].value #=> String
5517
5582
  #
5518
5583
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/StopRun AWS API Documentation
5519
5584
  #
@@ -5532,9 +5597,9 @@ module Aws::DeviceFarm
5532
5597
  # @option params [required, String] :resource_arn
5533
5598
  # The Amazon Resource Name (ARN) of the resource or resources to which
5534
5599
  # to add tags. You can associate tags with the following Device Farm
5535
- # resources: `PROJECT`, `RUN`, `NETWORK_PROFILE`, `INSTANCE_PROFILE`,
5536
- # `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`, `DEVICE`, and
5537
- # `VPCE_CONFIGURATION`.
5600
+ # resources: `PROJECT`, `TESTGRID_PROJECT`, `RUN`, `NETWORK_PROFILE`,
5601
+ # `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`,
5602
+ # `DEVICE`, and `VPCE_CONFIGURATION`.
5538
5603
  #
5539
5604
  # @option params [required, Array<Types::Tag>] :tags
5540
5605
  # The tags to add to the resource. A tag is an array of key-value pairs.
@@ -5569,9 +5634,9 @@ module Aws::DeviceFarm
5569
5634
  # @option params [required, String] :resource_arn
5570
5635
  # The Amazon Resource Name (ARN) of the resource or resources from which
5571
5636
  # to delete tags. You can associate tags with the following Device Farm
5572
- # resources: `PROJECT`, `RUN`, `NETWORK_PROFILE`, `INSTANCE_PROFILE`,
5573
- # `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`, `DEVICE`, and
5574
- # `VPCE_CONFIGURATION`.
5637
+ # resources: `PROJECT`, `TESTGRID_PROJECT`, `RUN`, `NETWORK_PROFILE`,
5638
+ # `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`,
5639
+ # `DEVICE`, and `VPCE_CONFIGURATION`.
5575
5640
  #
5576
5641
  # @option params [required, Array<String>] :tag_keys
5577
5642
  # The keys of the tags to be removed.
@@ -5926,6 +5991,22 @@ module Aws::DeviceFarm
5926
5991
  # @option params [Types::VpcConfig] :vpc_config
5927
5992
  # The VPC security groups and subnets that are attached to a project.
5928
5993
  #
5994
+ # @option params [Array<Types::EnvironmentVariable>] :environment_variables
5995
+ # A set of environment variables which are used by default for all runs
5996
+ # in the project. These environment variables are applied to the test
5997
+ # run during the execution of a test spec file.
5998
+ #
5999
+ # For more information about using test spec files, please see [Custom
6000
+ # test environments ][1] in *AWS Device Farm.*
6001
+ #
6002
+ #
6003
+ #
6004
+ # [1]: https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html
6005
+ #
6006
+ # @option params [String] :execution_role_arn
6007
+ # An IAM role to be assumed by the test host for all runs in the
6008
+ # project.
6009
+ #
5929
6010
  # @return [Types::UpdateProjectResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
5930
6011
  #
5931
6012
  # * {Types::UpdateProjectResult#project #project} => Types::Project
@@ -5960,6 +6041,13 @@ module Aws::DeviceFarm
5960
6041
  # subnet_ids: ["SubnetId"], # required
5961
6042
  # vpc_id: "NonEmptyString", # required
5962
6043
  # },
6044
+ # environment_variables: [
6045
+ # {
6046
+ # name: "EnvironmentVariableName", # required
6047
+ # value: "EnvironmentVariableValue", # required
6048
+ # },
6049
+ # ],
6050
+ # execution_role_arn: "AmazonRoleResourceName",
5963
6051
  # })
5964
6052
  #
5965
6053
  # @example Response structure
@@ -5973,6 +6061,10 @@ module Aws::DeviceFarm
5973
6061
  # resp.project.vpc_config.subnet_ids #=> Array
5974
6062
  # resp.project.vpc_config.subnet_ids[0] #=> String
5975
6063
  # resp.project.vpc_config.vpc_id #=> String
6064
+ # resp.project.environment_variables #=> Array
6065
+ # resp.project.environment_variables[0].name #=> String
6066
+ # resp.project.environment_variables[0].value #=> String
6067
+ # resp.project.execution_role_arn #=> String
5976
6068
  #
5977
6069
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProject AWS API Documentation
5978
6070
  #
@@ -6159,7 +6251,7 @@ module Aws::DeviceFarm
6159
6251
  tracer: tracer
6160
6252
  )
6161
6253
  context[:gem_name] = 'aws-sdk-devicefarm'
6162
- context[:gem_version] = '1.97.0'
6254
+ context[:gem_version] = '1.98.0'
6163
6255
  Seahorse::Client::Request.new(handlers, context)
6164
6256
  end
6165
6257
 
@@ -19,6 +19,7 @@ module Aws::DeviceFarm
19
19
  AccountsCleanup = Shapes::BooleanShape.new(name: 'AccountsCleanup')
20
20
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
21
21
  AmazonResourceNames = Shapes::ListShape.new(name: 'AmazonResourceNames')
22
+ AmazonRoleResourceName = Shapes::StringShape.new(name: 'AmazonRoleResourceName')
22
23
  AndroidPaths = Shapes::ListShape.new(name: 'AndroidPaths')
23
24
  AppPackagesCleanup = Shapes::BooleanShape.new(name: 'AppPackagesCleanup')
24
25
  ArgumentException = Shapes::StructureShape.new(name: 'ArgumentException')
@@ -99,6 +100,10 @@ module Aws::DeviceFarm
99
100
  DeviceSelectionResult = Shapes::StructureShape.new(name: 'DeviceSelectionResult')
100
101
  Devices = Shapes::ListShape.new(name: 'Devices')
101
102
  Double = Shapes::FloatShape.new(name: 'Double')
103
+ EnvironmentVariable = Shapes::StructureShape.new(name: 'EnvironmentVariable')
104
+ EnvironmentVariableName = Shapes::StringShape.new(name: 'EnvironmentVariableName')
105
+ EnvironmentVariableValue = Shapes::StringShape.new(name: 'EnvironmentVariableValue')
106
+ EnvironmentVariables = Shapes::ListShape.new(name: 'EnvironmentVariables')
102
107
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
103
108
  ExecutionConfiguration = Shapes::StructureShape.new(name: 'ExecutionConfiguration')
104
109
  ExecutionResult = Shapes::StringShape.new(name: 'ExecutionResult')
@@ -438,6 +443,8 @@ module Aws::DeviceFarm
438
443
  CreateProjectRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
439
444
  CreateProjectRequest.add_member(:default_job_timeout_minutes, Shapes::ShapeRef.new(shape: JobTimeoutMinutes, location_name: "defaultJobTimeoutMinutes"))
440
445
  CreateProjectRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
446
+ CreateProjectRequest.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environmentVariables"))
447
+ CreateProjectRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: AmazonRoleResourceName, location_name: "executionRoleArn"))
441
448
  CreateProjectRequest.struct_class = Types::CreateProjectRequest
442
449
 
443
450
  CreateProjectResult.add_member(:project, Shapes::ShapeRef.new(shape: Project, location_name: "project"))
@@ -627,6 +634,12 @@ module Aws::DeviceFarm
627
634
 
628
635
  Devices.member = Shapes::ShapeRef.new(shape: Device)
629
636
 
637
+ EnvironmentVariable.add_member(:name, Shapes::ShapeRef.new(shape: EnvironmentVariableName, required: true, location_name: "name"))
638
+ EnvironmentVariable.add_member(:value, Shapes::ShapeRef.new(shape: EnvironmentVariableValue, required: true, location_name: "value"))
639
+ EnvironmentVariable.struct_class = Types::EnvironmentVariable
640
+
641
+ EnvironmentVariables.member = Shapes::ShapeRef.new(shape: EnvironmentVariable)
642
+
630
643
  ExecutionConfiguration.add_member(:job_timeout_minutes, Shapes::ShapeRef.new(shape: JobTimeoutMinutes, location_name: "jobTimeoutMinutes"))
631
644
  ExecutionConfiguration.add_member(:accounts_cleanup, Shapes::ShapeRef.new(shape: AccountsCleanup, location_name: "accountsCleanup"))
632
645
  ExecutionConfiguration.add_member(:app_packages_cleanup, Shapes::ShapeRef.new(shape: AppPackagesCleanup, location_name: "appPackagesCleanup"))
@@ -1098,6 +1111,8 @@ module Aws::DeviceFarm
1098
1111
  Project.add_member(:default_job_timeout_minutes, Shapes::ShapeRef.new(shape: JobTimeoutMinutes, location_name: "defaultJobTimeoutMinutes"))
1099
1112
  Project.add_member(:created, Shapes::ShapeRef.new(shape: DateTime, location_name: "created"))
1100
1113
  Project.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
1114
+ Project.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environmentVariables"))
1115
+ Project.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: AmazonRoleResourceName, location_name: "executionRoleArn"))
1101
1116
  Project.struct_class = Types::Project
1102
1117
 
1103
1118
  Projects.member = Shapes::ShapeRef.new(shape: Project)
@@ -1204,6 +1219,8 @@ module Aws::DeviceFarm
1204
1219
  Run.add_member(:test_spec_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "testSpecArn"))
1205
1220
  Run.add_member(:device_selection_result, Shapes::ShapeRef.new(shape: DeviceSelectionResult, location_name: "deviceSelectionResult"))
1206
1221
  Run.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
1222
+ Run.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: AmazonRoleResourceName, location_name: "executionRoleArn"))
1223
+ Run.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environmentVariables"))
1207
1224
  Run.struct_class = Types::Run
1208
1225
 
1209
1226
  Runs.member = Shapes::ShapeRef.new(shape: Run)
@@ -1225,6 +1242,8 @@ module Aws::DeviceFarm
1225
1242
  ScheduleRunConfiguration.add_member(:radios, Shapes::ShapeRef.new(shape: Radios, location_name: "radios"))
1226
1243
  ScheduleRunConfiguration.add_member(:auxiliary_apps, Shapes::ShapeRef.new(shape: AmazonResourceNames, location_name: "auxiliaryApps"))
1227
1244
  ScheduleRunConfiguration.add_member(:billing_method, Shapes::ShapeRef.new(shape: BillingMethod, location_name: "billingMethod"))
1245
+ ScheduleRunConfiguration.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environmentVariables"))
1246
+ ScheduleRunConfiguration.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: AmazonRoleResourceName, location_name: "executionRoleArn"))
1228
1247
  ScheduleRunConfiguration.struct_class = Types::ScheduleRunConfiguration
1229
1248
 
1230
1249
  ScheduleRunRequest.add_member(:project_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "projectArn"))
@@ -1441,6 +1460,8 @@ module Aws::DeviceFarm
1441
1460
  UpdateProjectRequest.add_member(:name, Shapes::ShapeRef.new(shape: Name, location_name: "name"))
1442
1461
  UpdateProjectRequest.add_member(:default_job_timeout_minutes, Shapes::ShapeRef.new(shape: JobTimeoutMinutes, location_name: "defaultJobTimeoutMinutes"))
1443
1462
  UpdateProjectRequest.add_member(:vpc_config, Shapes::ShapeRef.new(shape: VpcConfig, location_name: "vpcConfig"))
1463
+ UpdateProjectRequest.add_member(:environment_variables, Shapes::ShapeRef.new(shape: EnvironmentVariables, location_name: "environmentVariables"))
1464
+ UpdateProjectRequest.add_member(:execution_role_arn, Shapes::ShapeRef.new(shape: AmazonRoleResourceName, location_name: "executionRoleArn"))
1444
1465
  UpdateProjectRequest.struct_class = Types::UpdateProjectRequest
1445
1466
 
1446
1467
  UpdateProjectResult.add_member(:project, Shapes::ShapeRef.new(shape: Project, location_name: "project"))
@@ -464,12 +464,32 @@ module Aws::DeviceFarm
464
464
  # The VPC security groups and subnets that are attached to a project.
465
465
  # @return [Types::VpcConfig]
466
466
  #
467
+ # @!attribute [rw] environment_variables
468
+ # A set of environment variables which are used by default for all
469
+ # runs in the project. These environment variables are applied to the
470
+ # test run during the execution of a test spec file.
471
+ #
472
+ # For more information about using test spec files, please see [Custom
473
+ # test environments ][1] in *AWS Device Farm.*
474
+ #
475
+ #
476
+ #
477
+ # [1]: https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html
478
+ # @return [Array<Types::EnvironmentVariable>]
479
+ #
480
+ # @!attribute [rw] execution_role_arn
481
+ # An IAM role to be assumed by the test host for all runs in the
482
+ # project.
483
+ # @return [String]
484
+ #
467
485
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/CreateProjectRequest AWS API Documentation
468
486
  #
469
487
  class CreateProjectRequest < Struct.new(
470
488
  :name,
471
489
  :default_job_timeout_minutes,
472
- :vpc_config)
490
+ :vpc_config,
491
+ :environment_variables,
492
+ :execution_role_arn)
473
493
  SENSITIVE = []
474
494
  include Aws::Structure
475
495
  end
@@ -1601,6 +1621,25 @@ module Aws::DeviceFarm
1601
1621
  include Aws::Structure
1602
1622
  end
1603
1623
 
1624
+ # Information about an environment variable for a project or a run.
1625
+ #
1626
+ # @!attribute [rw] name
1627
+ # The name of the environment variable.
1628
+ # @return [String]
1629
+ #
1630
+ # @!attribute [rw] value
1631
+ # The value of the environment variable.
1632
+ # @return [String]
1633
+ #
1634
+ # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/EnvironmentVariable AWS API Documentation
1635
+ #
1636
+ class EnvironmentVariable < Struct.new(
1637
+ :name,
1638
+ :value)
1639
+ SENSITIVE = []
1640
+ include Aws::Structure
1641
+ end
1642
+
1604
1643
  # Represents configuration information about a test run, such as the
1605
1644
  # execution timeout (in minutes).
1606
1645
  #
@@ -3266,9 +3305,9 @@ module Aws::DeviceFarm
3266
3305
  # @!attribute [rw] resource_arn
3267
3306
  # The Amazon Resource Name (ARN) of the resource or resources for
3268
3307
  # which to list tags. You can associate tags with the following Device
3269
- # Farm resources: `PROJECT`, `RUN`, `NETWORK_PROFILE`,
3270
- # `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`,
3271
- # `DEVICE`, and `VPCE_CONFIGURATION`.
3308
+ # Farm resources: `PROJECT`, `TESTGRID_PROJECT`, `RUN`,
3309
+ # `NETWORK_PROFILE`, `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`,
3310
+ # `DEVICE_POOL`, `DEVICE`, and `VPCE_CONFIGURATION`.
3272
3311
  # @return [String]
3273
3312
  #
3274
3313
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ListTagsForResourceRequest AWS API Documentation
@@ -4097,6 +4136,14 @@ module Aws::DeviceFarm
4097
4136
  # The VPC security groups and subnets that are attached to a project.
4098
4137
  # @return [Types::VpcConfig]
4099
4138
  #
4139
+ # @!attribute [rw] environment_variables
4140
+ # Environment variables associated with the project.
4141
+ # @return [Array<Types::EnvironmentVariable>]
4142
+ #
4143
+ # @!attribute [rw] execution_role_arn
4144
+ # The IAM execution role associated with the project.
4145
+ # @return [String]
4146
+ #
4100
4147
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Project AWS API Documentation
4101
4148
  #
4102
4149
  class Project < Struct.new(
@@ -4104,7 +4151,9 @@ module Aws::DeviceFarm
4104
4151
  :name,
4105
4152
  :default_job_timeout_minutes,
4106
4153
  :created,
4107
- :vpc_config)
4154
+ :vpc_config,
4155
+ :environment_variables,
4156
+ :execution_role_arn)
4108
4157
  SENSITIVE = []
4109
4158
  include Aws::Structure
4110
4159
  end
@@ -4800,6 +4849,14 @@ module Aws::DeviceFarm
4800
4849
  # The VPC security groups and subnets that are attached to a project.
4801
4850
  # @return [Types::VpcConfig]
4802
4851
  #
4852
+ # @!attribute [rw] execution_role_arn
4853
+ # The IAM role associated with the run.
4854
+ # @return [String]
4855
+ #
4856
+ # @!attribute [rw] environment_variables
4857
+ # Environment variables associated with the run.
4858
+ # @return [Array<Types::EnvironmentVariable>]
4859
+ #
4803
4860
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/Run AWS API Documentation
4804
4861
  #
4805
4862
  class Run < Struct.new(
@@ -4835,7 +4892,9 @@ module Aws::DeviceFarm
4835
4892
  :skip_app_resign,
4836
4893
  :test_spec_arn,
4837
4894
  :device_selection_result,
4838
- :vpc_config)
4895
+ :vpc_config,
4896
+ :execution_role_arn,
4897
+ :environment_variables)
4839
4898
  SENSITIVE = []
4840
4899
  include Aws::Structure
4841
4900
  end
@@ -4962,6 +5021,14 @@ module Aws::DeviceFarm
4962
5021
  # </note>
4963
5022
  # @return [String]
4964
5023
  #
5024
+ # @!attribute [rw] environment_variables
5025
+ # Environment variables associated with the run.
5026
+ # @return [Array<Types::EnvironmentVariable>]
5027
+ #
5028
+ # @!attribute [rw] execution_role_arn
5029
+ # An IAM role to be assumed by the test host for the run.
5030
+ # @return [String]
5031
+ #
4965
5032
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/ScheduleRunConfiguration AWS API Documentation
4966
5033
  #
4967
5034
  class ScheduleRunConfiguration < Struct.new(
@@ -4974,7 +5041,9 @@ module Aws::DeviceFarm
4974
5041
  :customer_artifact_paths,
4975
5042
  :radios,
4976
5043
  :auxiliary_apps,
4977
- :billing_method)
5044
+ :billing_method,
5045
+ :environment_variables,
5046
+ :execution_role_arn)
4978
5047
  SENSITIVE = []
4979
5048
  include Aws::Structure
4980
5049
  end
@@ -5466,9 +5535,9 @@ module Aws::DeviceFarm
5466
5535
  # @!attribute [rw] resource_arn
5467
5536
  # The Amazon Resource Name (ARN) of the resource or resources to which
5468
5537
  # to add tags. You can associate tags with the following Device Farm
5469
- # resources: `PROJECT`, `RUN`, `NETWORK_PROFILE`, `INSTANCE_PROFILE`,
5470
- # `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`, `DEVICE`, and
5471
- # `VPCE_CONFIGURATION`.
5538
+ # resources: `PROJECT`, `TESTGRID_PROJECT`, `RUN`, `NETWORK_PROFILE`,
5539
+ # `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`,
5540
+ # `DEVICE`, and `VPCE_CONFIGURATION`.
5472
5541
  # @return [String]
5473
5542
  #
5474
5543
  # @!attribute [rw] tags
@@ -5847,9 +5916,9 @@ module Aws::DeviceFarm
5847
5916
  # @!attribute [rw] resource_arn
5848
5917
  # The Amazon Resource Name (ARN) of the resource or resources from
5849
5918
  # which to delete tags. You can associate tags with the following
5850
- # Device Farm resources: `PROJECT`, `RUN`, `NETWORK_PROFILE`,
5851
- # `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`, `DEVICE_POOL`,
5852
- # `DEVICE`, and `VPCE_CONFIGURATION`.
5919
+ # Device Farm resources: `PROJECT`, `TESTGRID_PROJECT`, `RUN`,
5920
+ # `NETWORK_PROFILE`, `INSTANCE_PROFILE`, `DEVICE_INSTANCE`, `SESSION`,
5921
+ # `DEVICE_POOL`, `DEVICE`, and `VPCE_CONFIGURATION`.
5853
5922
  # @return [String]
5854
5923
  #
5855
5924
  # @!attribute [rw] tag_keys
@@ -6145,13 +6214,33 @@ module Aws::DeviceFarm
6145
6214
  # The VPC security groups and subnets that are attached to a project.
6146
6215
  # @return [Types::VpcConfig]
6147
6216
  #
6217
+ # @!attribute [rw] environment_variables
6218
+ # A set of environment variables which are used by default for all
6219
+ # runs in the project. These environment variables are applied to the
6220
+ # test run during the execution of a test spec file.
6221
+ #
6222
+ # For more information about using test spec files, please see [Custom
6223
+ # test environments ][1] in *AWS Device Farm.*
6224
+ #
6225
+ #
6226
+ #
6227
+ # [1]: https://docs.aws.amazon.com/devicefarm/latest/developerguide/custom-test-environments.html
6228
+ # @return [Array<Types::EnvironmentVariable>]
6229
+ #
6230
+ # @!attribute [rw] execution_role_arn
6231
+ # An IAM role to be assumed by the test host for all runs in the
6232
+ # project.
6233
+ # @return [String]
6234
+ #
6148
6235
  # @see http://docs.aws.amazon.com/goto/WebAPI/devicefarm-2015-06-23/UpdateProjectRequest AWS API Documentation
6149
6236
  #
6150
6237
  class UpdateProjectRequest < Struct.new(
6151
6238
  :arn,
6152
6239
  :name,
6153
6240
  :default_job_timeout_minutes,
6154
- :vpc_config)
6241
+ :vpc_config,
6242
+ :environment_variables,
6243
+ :execution_role_arn)
6155
6244
  SENSITIVE = []
6156
6245
  include Aws::Structure
6157
6246
  end
@@ -54,7 +54,7 @@ module Aws::DeviceFarm
54
54
  autoload :EndpointProvider, 'aws-sdk-devicefarm/endpoint_provider'
55
55
  autoload :Endpoints, 'aws-sdk-devicefarm/endpoints'
56
56
 
57
- GEM_VERSION = '1.97.0'
57
+ GEM_VERSION = '1.98.0'
58
58
 
59
59
  end
60
60
 
data/sig/client.rbs CHANGED
@@ -146,7 +146,14 @@ module Aws
146
146
  security_group_ids: Array[::String],
147
147
  subnet_ids: Array[::String],
148
148
  vpc_id: ::String
149
- }
149
+ },
150
+ ?environment_variables: Array[
151
+ {
152
+ name: ::String,
153
+ value: ::String
154
+ },
155
+ ],
156
+ ?execution_role_arn: ::String
150
157
  ) -> _CreateProjectResponseSuccess
151
158
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _CreateProjectResponseSuccess
152
159
 
@@ -391,7 +398,14 @@ module Aws
391
398
  gps: bool?
392
399
  }?,
393
400
  auxiliary_apps: Array[::String]?,
394
- billing_method: ("METERED" | "UNMETERED")?
401
+ billing_method: ("METERED" | "UNMETERED")?,
402
+ environment_variables: Array[
403
+ {
404
+ name: ::String,
405
+ value: ::String
406
+ },
407
+ ]?,
408
+ execution_role_arn: ::String?
395
409
  },
396
410
  ?project_arn: ::String
397
411
  ) -> _GetDevicePoolCompatibilityResponseSuccess
@@ -920,7 +934,14 @@ module Aws
920
934
  gps: bool?
921
935
  }?,
922
936
  auxiliary_apps: Array[::String]?,
923
- billing_method: ("METERED" | "UNMETERED")?
937
+ billing_method: ("METERED" | "UNMETERED")?,
938
+ environment_variables: Array[
939
+ {
940
+ name: ::String,
941
+ value: ::String
942
+ },
943
+ ]?,
944
+ execution_role_arn: ::String?
924
945
  },
925
946
  ?execution_configuration: {
926
947
  job_timeout_minutes: ::Integer?,
@@ -1069,7 +1090,14 @@ module Aws
1069
1090
  security_group_ids: Array[::String],
1070
1091
  subnet_ids: Array[::String],
1071
1092
  vpc_id: ::String
1072
- }
1093
+ },
1094
+ ?environment_variables: Array[
1095
+ {
1096
+ name: ::String,
1097
+ value: ::String
1098
+ },
1099
+ ],
1100
+ ?execution_role_arn: ::String
1073
1101
  ) -> _UpdateProjectResponseSuccess
1074
1102
  | (Hash[Symbol, untyped] params, ?Hash[Symbol, untyped] options) -> _UpdateProjectResponseSuccess
1075
1103
 
data/sig/types.rbs CHANGED
@@ -110,6 +110,8 @@ module Aws::DeviceFarm
110
110
  attr_accessor name: ::String
111
111
  attr_accessor default_job_timeout_minutes: ::Integer
112
112
  attr_accessor vpc_config: Types::VpcConfig
113
+ attr_accessor environment_variables: ::Array[Types::EnvironmentVariable]
114
+ attr_accessor execution_role_arn: ::String
113
115
  SENSITIVE: []
114
116
  end
115
117
 
@@ -357,6 +359,12 @@ module Aws::DeviceFarm
357
359
  SENSITIVE: []
358
360
  end
359
361
 
362
+ class EnvironmentVariable
363
+ attr_accessor name: ::String
364
+ attr_accessor value: ::String
365
+ SENSITIVE: []
366
+ end
367
+
360
368
  class ExecutionConfiguration
361
369
  attr_accessor job_timeout_minutes: ::Integer
362
370
  attr_accessor accounts_cleanup: bool
@@ -1010,6 +1018,8 @@ module Aws::DeviceFarm
1010
1018
  attr_accessor default_job_timeout_minutes: ::Integer
1011
1019
  attr_accessor created: ::Time
1012
1020
  attr_accessor vpc_config: Types::VpcConfig
1021
+ attr_accessor environment_variables: ::Array[Types::EnvironmentVariable]
1022
+ attr_accessor execution_role_arn: ::String
1013
1023
  SENSITIVE: []
1014
1024
  end
1015
1025
 
@@ -1127,6 +1137,8 @@ module Aws::DeviceFarm
1127
1137
  attr_accessor test_spec_arn: ::String
1128
1138
  attr_accessor device_selection_result: Types::DeviceSelectionResult
1129
1139
  attr_accessor vpc_config: Types::VpcConfig
1140
+ attr_accessor execution_role_arn: ::String
1141
+ attr_accessor environment_variables: ::Array[Types::EnvironmentVariable]
1130
1142
  SENSITIVE: []
1131
1143
  end
1132
1144
 
@@ -1148,6 +1160,8 @@ module Aws::DeviceFarm
1148
1160
  attr_accessor radios: Types::Radios
1149
1161
  attr_accessor auxiliary_apps: ::Array[::String]
1150
1162
  attr_accessor billing_method: ("METERED" | "UNMETERED")
1163
+ attr_accessor environment_variables: ::Array[Types::EnvironmentVariable]
1164
+ attr_accessor execution_role_arn: ::String
1151
1165
  SENSITIVE: []
1152
1166
  end
1153
1167
 
@@ -1406,6 +1420,8 @@ module Aws::DeviceFarm
1406
1420
  attr_accessor name: ::String
1407
1421
  attr_accessor default_job_timeout_minutes: ::Integer
1408
1422
  attr_accessor vpc_config: Types::VpcConfig
1423
+ attr_accessor environment_variables: ::Array[Types::EnvironmentVariable]
1424
+ attr_accessor execution_role_arn: ::String
1409
1425
  SENSITIVE: []
1410
1426
  end
1411
1427
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-devicefarm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.97.0
4
+ version: 1.98.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services