aws-sdk-iotdeviceadvisor 1.15.0 → 1.17.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4a73bf3016a43cb45d06a7376d4d24ed18458433b8b50198246fe1fb2b3d17d4
4
- data.tar.gz: a4a2569281846017c70970dfe540d8f793d547f8e56a65428ae215bed7d35c95
3
+ metadata.gz: fa28ea254aae7575843c8448c9d0ab97e982c6ebabe0b78bc0b64bedff03ab56
4
+ data.tar.gz: e8f450601b606a717c841353ae48061d34757f00f7b993379ef44ed9a106942c
5
5
  SHA512:
6
- metadata.gz: 29f5602ddcd58f8c207b13b228d63adb0c376bcbba00c2bdb51928bd42cda3c53671340388455e19fbfd697beece2f9bb68eafb95de0526db831a97ace022c8b
7
- data.tar.gz: 598cbfafb62b71084093dd18ae2edab10c7df3bc2e757555135036eaf0b9439a2921c89422ef83f8e8eebd7a7cc5795313fa40fd375c52b85c17311f90a9e00b
6
+ metadata.gz: dc2258dcf1a8e22ae5f1fe8e9e2d4f6937a2e4af57a3fdfd0b6439516acc51f021c0712f159576cf230c9c799981a275874d7e45591c1791c9cce4dc88cb860a
7
+ data.tar.gz: 7092419b95cbbc900532018c347ae919e16e7263c9119cc2bebca3f2d4b107e554ec27fff4b0abb1b9660f8321308067170eeb16e4809e1fb9a313dff9c8cafb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.17.0 (2022-12-22)
5
+ ------------------
6
+
7
+ * Feature - This release adds the following new features: 1) Documentation updates for IoT Device Advisor APIs. 2) Updated required request parameters for IoT Device Advisor APIs. 3) Added new service feature: ability to provide the test endpoint when customer executing the StartSuiteRun API.
8
+
9
+ 1.16.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.15.0 (2022-07-22)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.17.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:iotdeviceadvisor)
@@ -79,8 +79,9 @@ module Aws::IoTDeviceAdvisor
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::IoTDeviceAdvisor::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::IoTDeviceAdvisor
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::IoTDeviceAdvisor
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::IoTDeviceAdvisor::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::IoTDeviceAdvisor::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -359,7 +376,7 @@ module Aws::IoTDeviceAdvisor
359
376
  #
360
377
  # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
361
378
  #
362
- # @option params [Types::SuiteDefinitionConfiguration] :suite_definition_configuration
379
+ # @option params [required, Types::SuiteDefinitionConfiguration] :suite_definition_configuration
363
380
  # Creates a Device Advisor test suite with suite definition
364
381
  # configuration.
365
382
  #
@@ -376,8 +393,8 @@ module Aws::IoTDeviceAdvisor
376
393
  # @example Request syntax with placeholder values
377
394
  #
378
395
  # resp = client.create_suite_definition({
379
- # suite_definition_configuration: {
380
- # suite_definition_name: "SuiteDefinitionName",
396
+ # suite_definition_configuration: { # required
397
+ # suite_definition_name: "SuiteDefinitionName", # required
381
398
  # devices: [
382
399
  # {
383
400
  # thing_arn: "AmazonResourceName",
@@ -386,8 +403,8 @@ module Aws::IoTDeviceAdvisor
386
403
  # ],
387
404
  # intended_for_qualification: false,
388
405
  # is_long_duration_test: false,
389
- # root_group: "RootGroup",
390
- # device_permission_role_arn: "AmazonResourceName",
406
+ # root_group: "RootGroup", # required
407
+ # device_permission_role_arn: "AmazonResourceName", # required
391
408
  # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5
392
409
  # },
393
410
  # tags: {
@@ -760,7 +777,8 @@ module Aws::IoTDeviceAdvisor
760
777
  # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
761
778
  #
762
779
  # @option params [required, String] :resource_arn
763
- # The ARN of the IoT Device Advisor resource.
780
+ # The resource ARN of the IoT Device Advisor resource. This can be
781
+ # SuiteDefinition ARN or SuiteRun ARN.
764
782
  #
765
783
  # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
766
784
  #
@@ -798,7 +816,7 @@ module Aws::IoTDeviceAdvisor
798
816
  # @option params [String] :suite_definition_version
799
817
  # Suite definition version of the test suite.
800
818
  #
801
- # @option params [Types::SuiteRunConfiguration] :suite_run_configuration
819
+ # @option params [required, Types::SuiteRunConfiguration] :suite_run_configuration
802
820
  # Suite run configuration.
803
821
  #
804
822
  # @option params [Hash<String,String>] :tags
@@ -809,14 +827,15 @@ module Aws::IoTDeviceAdvisor
809
827
  # * {Types::StartSuiteRunResponse#suite_run_id #suite_run_id} => String
810
828
  # * {Types::StartSuiteRunResponse#suite_run_arn #suite_run_arn} => String
811
829
  # * {Types::StartSuiteRunResponse#created_at #created_at} => Time
830
+ # * {Types::StartSuiteRunResponse#endpoint #endpoint} => String
812
831
  #
813
832
  # @example Request syntax with placeholder values
814
833
  #
815
834
  # resp = client.start_suite_run({
816
835
  # suite_definition_id: "UUID", # required
817
836
  # suite_definition_version: "SuiteDefinitionVersion",
818
- # suite_run_configuration: {
819
- # primary_device: {
837
+ # suite_run_configuration: { # required
838
+ # primary_device: { # required
820
839
  # thing_arn: "AmazonResourceName",
821
840
  # certificate_arn: "AmazonResourceName",
822
841
  # },
@@ -833,6 +852,7 @@ module Aws::IoTDeviceAdvisor
833
852
  # resp.suite_run_id #=> String
834
853
  # resp.suite_run_arn #=> String
835
854
  # resp.created_at #=> Time
855
+ # resp.endpoint #=> String
836
856
  #
837
857
  # @overload start_suite_run(params = {})
838
858
  # @param [Hash] params ({})
@@ -880,7 +900,8 @@ module Aws::IoTDeviceAdvisor
880
900
  # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
881
901
  #
882
902
  # @option params [required, String] :resource_arn
883
- # The resource ARN of an IoT Device Advisor resource.
903
+ # The resource ARN of an IoT Device Advisor resource. This can be
904
+ # SuiteDefinition ARN or SuiteRun ARN.
884
905
  #
885
906
  # @option params [required, Hash<String,String>] :tags
886
907
  # The tags to be attached to the IoT Device Advisor resource.
@@ -912,7 +933,8 @@ module Aws::IoTDeviceAdvisor
912
933
  # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiot.html#awsiot-actions-as-permissions
913
934
  #
914
935
  # @option params [required, String] :resource_arn
915
- # The resource ARN of an IoT Device Advisor resource.
936
+ # The resource ARN of an IoT Device Advisor resource. This can be
937
+ # SuiteDefinition ARN or SuiteRun ARN.
916
938
  #
917
939
  # @option params [required, Array<String>] :tag_keys
918
940
  # List of tag keys to remove from the IoT Device Advisor resource.
@@ -944,7 +966,7 @@ module Aws::IoTDeviceAdvisor
944
966
  # @option params [required, String] :suite_definition_id
945
967
  # Suite definition ID of the test suite to be updated.
946
968
  #
947
- # @option params [Types::SuiteDefinitionConfiguration] :suite_definition_configuration
969
+ # @option params [required, Types::SuiteDefinitionConfiguration] :suite_definition_configuration
948
970
  # Updates a Device Advisor test suite with suite definition
949
971
  # configuration.
950
972
  #
@@ -961,8 +983,8 @@ module Aws::IoTDeviceAdvisor
961
983
  #
962
984
  # resp = client.update_suite_definition({
963
985
  # suite_definition_id: "UUID", # required
964
- # suite_definition_configuration: {
965
- # suite_definition_name: "SuiteDefinitionName",
986
+ # suite_definition_configuration: { # required
987
+ # suite_definition_name: "SuiteDefinitionName", # required
966
988
  # devices: [
967
989
  # {
968
990
  # thing_arn: "AmazonResourceName",
@@ -971,8 +993,8 @@ module Aws::IoTDeviceAdvisor
971
993
  # ],
972
994
  # intended_for_qualification: false,
973
995
  # is_long_duration_test: false,
974
- # root_group: "RootGroup",
975
- # device_permission_role_arn: "AmazonResourceName",
996
+ # root_group: "RootGroup", # required
997
+ # device_permission_role_arn: "AmazonResourceName", # required
976
998
  # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5
977
999
  # },
978
1000
  # })
@@ -1006,7 +1028,7 @@ module Aws::IoTDeviceAdvisor
1006
1028
  params: params,
1007
1029
  config: config)
1008
1030
  context[:gem_name] = 'aws-sdk-iotdeviceadvisor'
1009
- context[:gem_version] = '1.15.0'
1031
+ context[:gem_version] = '1.17.0'
1010
1032
  Seahorse::Client::Request.new(handlers, context)
1011
1033
  end
1012
1034
 
@@ -97,7 +97,7 @@ module Aws::IoTDeviceAdvisor
97
97
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: Message, location_name: "message"))
98
98
  ConflictException.struct_class = Types::ConflictException
99
99
 
100
- CreateSuiteDefinitionRequest.add_member(:suite_definition_configuration, Shapes::ShapeRef.new(shape: SuiteDefinitionConfiguration, location_name: "suiteDefinitionConfiguration"))
100
+ CreateSuiteDefinitionRequest.add_member(:suite_definition_configuration, Shapes::ShapeRef.new(shape: SuiteDefinitionConfiguration, required: true, location_name: "suiteDefinitionConfiguration"))
101
101
  CreateSuiteDefinitionRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
102
102
  CreateSuiteDefinitionRequest.struct_class = Types::CreateSuiteDefinitionRequest
103
103
 
@@ -204,13 +204,14 @@ module Aws::IoTDeviceAdvisor
204
204
 
205
205
  StartSuiteRunRequest.add_member(:suite_definition_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "suiteDefinitionId"))
206
206
  StartSuiteRunRequest.add_member(:suite_definition_version, Shapes::ShapeRef.new(shape: SuiteDefinitionVersion, location_name: "suiteDefinitionVersion"))
207
- StartSuiteRunRequest.add_member(:suite_run_configuration, Shapes::ShapeRef.new(shape: SuiteRunConfiguration, location_name: "suiteRunConfiguration"))
207
+ StartSuiteRunRequest.add_member(:suite_run_configuration, Shapes::ShapeRef.new(shape: SuiteRunConfiguration, required: true, location_name: "suiteRunConfiguration"))
208
208
  StartSuiteRunRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
209
209
  StartSuiteRunRequest.struct_class = Types::StartSuiteRunRequest
210
210
 
211
211
  StartSuiteRunResponse.add_member(:suite_run_id, Shapes::ShapeRef.new(shape: UUID, location_name: "suiteRunId"))
212
212
  StartSuiteRunResponse.add_member(:suite_run_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "suiteRunArn"))
213
213
  StartSuiteRunResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, location_name: "createdAt"))
214
+ StartSuiteRunResponse.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, location_name: "endpoint"))
214
215
  StartSuiteRunResponse.struct_class = Types::StartSuiteRunResponse
215
216
 
216
217
  StopSuiteRunRequest.add_member(:suite_definition_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "suiteDefinitionId"))
@@ -219,12 +220,12 @@ module Aws::IoTDeviceAdvisor
219
220
 
220
221
  StopSuiteRunResponse.struct_class = Types::StopSuiteRunResponse
221
222
 
222
- SuiteDefinitionConfiguration.add_member(:suite_definition_name, Shapes::ShapeRef.new(shape: SuiteDefinitionName, location_name: "suiteDefinitionName"))
223
+ SuiteDefinitionConfiguration.add_member(:suite_definition_name, Shapes::ShapeRef.new(shape: SuiteDefinitionName, required: true, location_name: "suiteDefinitionName"))
223
224
  SuiteDefinitionConfiguration.add_member(:devices, Shapes::ShapeRef.new(shape: DeviceUnderTestList, location_name: "devices"))
224
225
  SuiteDefinitionConfiguration.add_member(:intended_for_qualification, Shapes::ShapeRef.new(shape: IntendedForQualificationBoolean, location_name: "intendedForQualification"))
225
226
  SuiteDefinitionConfiguration.add_member(:is_long_duration_test, Shapes::ShapeRef.new(shape: IsLongDurationTestBoolean, location_name: "isLongDurationTest"))
226
- SuiteDefinitionConfiguration.add_member(:root_group, Shapes::ShapeRef.new(shape: RootGroup, location_name: "rootGroup"))
227
- SuiteDefinitionConfiguration.add_member(:device_permission_role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "devicePermissionRoleArn"))
227
+ SuiteDefinitionConfiguration.add_member(:root_group, Shapes::ShapeRef.new(shape: RootGroup, required: true, location_name: "rootGroup"))
228
+ SuiteDefinitionConfiguration.add_member(:device_permission_role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, required: true, location_name: "devicePermissionRoleArn"))
228
229
  SuiteDefinitionConfiguration.add_member(:protocol, Shapes::ShapeRef.new(shape: Protocol, location_name: "protocol"))
229
230
  SuiteDefinitionConfiguration.struct_class = Types::SuiteDefinitionConfiguration
230
231
 
@@ -239,7 +240,7 @@ module Aws::IoTDeviceAdvisor
239
240
 
240
241
  SuiteDefinitionInformationList.member = Shapes::ShapeRef.new(shape: SuiteDefinitionInformation)
241
242
 
242
- SuiteRunConfiguration.add_member(:primary_device, Shapes::ShapeRef.new(shape: DeviceUnderTest, location_name: "primaryDevice"))
243
+ SuiteRunConfiguration.add_member(:primary_device, Shapes::ShapeRef.new(shape: DeviceUnderTest, required: true, location_name: "primaryDevice"))
243
244
  SuiteRunConfiguration.add_member(:selected_test_list, Shapes::ShapeRef.new(shape: SelectedTestList, location_name: "selectedTestList"))
244
245
  SuiteRunConfiguration.add_member(:parallel_run, Shapes::ShapeRef.new(shape: ParallelRun, location_name: "parallelRun"))
245
246
  SuiteRunConfiguration.struct_class = Types::SuiteRunConfiguration
@@ -302,7 +303,7 @@ module Aws::IoTDeviceAdvisor
302
303
  UntagResourceResponse.struct_class = Types::UntagResourceResponse
303
304
 
304
305
  UpdateSuiteDefinitionRequest.add_member(:suite_definition_id, Shapes::ShapeRef.new(shape: UUID, required: true, location: "uri", location_name: "suiteDefinitionId"))
305
- UpdateSuiteDefinitionRequest.add_member(:suite_definition_configuration, Shapes::ShapeRef.new(shape: SuiteDefinitionConfiguration, location_name: "suiteDefinitionConfiguration"))
306
+ UpdateSuiteDefinitionRequest.add_member(:suite_definition_configuration, Shapes::ShapeRef.new(shape: SuiteDefinitionConfiguration, required: true, location_name: "suiteDefinitionConfiguration"))
306
307
  UpdateSuiteDefinitionRequest.struct_class = Types::UpdateSuiteDefinitionRequest
307
308
 
308
309
  UpdateSuiteDefinitionResponse.add_member(:suite_definition_id, Shapes::ShapeRef.new(shape: UUID, location_name: "suiteDefinitionId"))
@@ -0,0 +1,69 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::IoTDeviceAdvisor
11
+ # Endpoint parameters used to influence endpoints per request.
12
+ #
13
+ # @!attribute region
14
+ # The AWS region used to dispatch the request.
15
+ #
16
+ # @return [String]
17
+ #
18
+ # @!attribute use_dual_stack
19
+ # When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
20
+ #
21
+ # @return [Boolean]
22
+ #
23
+ # @!attribute use_fips
24
+ # When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
25
+ #
26
+ # @return [Boolean]
27
+ #
28
+ # @!attribute endpoint
29
+ # Override the endpoint used to send this request
30
+ #
31
+ # @return [String]
32
+ #
33
+ EndpointParameters = Struct.new(
34
+ :region,
35
+ :use_dual_stack,
36
+ :use_fips,
37
+ :endpoint,
38
+ ) do
39
+ include Aws::Structure
40
+
41
+ # @api private
42
+ class << self
43
+ PARAM_MAP = {
44
+ 'Region' => :region,
45
+ 'UseDualStack' => :use_dual_stack,
46
+ 'UseFIPS' => :use_fips,
47
+ 'Endpoint' => :endpoint,
48
+ }.freeze
49
+ end
50
+
51
+ def initialize(options = {})
52
+ self[:region] = options[:region]
53
+ if self[:region].nil?
54
+ raise ArgumentError, "Missing required EndpointParameter: :region"
55
+ end
56
+ self[:use_dual_stack] = options[:use_dual_stack]
57
+ self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
+ if self[:use_dual_stack].nil?
59
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
60
+ end
61
+ self[:use_fips] = options[:use_fips]
62
+ self[:use_fips] = false if self[:use_fips].nil?
63
+ if self[:use_fips].nil?
64
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
65
+ end
66
+ self[:endpoint] = options[:endpoint]
67
+ end
68
+ end
69
+ end
@@ -0,0 +1,111 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::IoTDeviceAdvisor
11
+ class EndpointProvider
12
+ def initialize(rule_set = nil)
13
+ @@rule_set ||= begin
14
+ endpoint_rules = Aws::Json.load(Base64.decode64(RULES))
15
+ Aws::Endpoints::RuleSet.new(
16
+ version: endpoint_rules['version'],
17
+ service_id: endpoint_rules['serviceId'],
18
+ parameters: endpoint_rules['parameters'],
19
+ rules: endpoint_rules['rules']
20
+ )
21
+ end
22
+ @provider = Aws::Endpoints::RulesProvider.new(rule_set || @@rule_set)
23
+ end
24
+
25
+ def resolve_endpoint(parameters)
26
+ @provider.resolve_endpoint(parameters)
27
+ end
28
+
29
+ # @api private
30
+ RULES = <<-JSON
31
+ eyJ2ZXJzaW9uIjoiMS4wIiwicGFyYW1ldGVycyI6eyJSZWdpb24iOnsiYnVp
32
+ bHRJbiI6IkFXUzo6UmVnaW9uIiwicmVxdWlyZWQiOnRydWUsImRvY3VtZW50
33
+ YXRpb24iOiJUaGUgQVdTIHJlZ2lvbiB1c2VkIHRvIGRpc3BhdGNoIHRoZSBy
34
+ ZXF1ZXN0LiIsInR5cGUiOiJTdHJpbmcifSwiVXNlRHVhbFN0YWNrIjp7ImJ1
35
+ aWx0SW4i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0Ruc1N1ZmZpeH0iLCJwcm9wZXJ0aWVzIjp7fSwiaGVh
101
+ ZGVycyI6e319LCJ0eXBlIjoiZW5kcG9pbnQifV19LHsiY29uZGl0aW9ucyI6
102
+ W10sImVycm9yIjoiRHVhbFN0YWNrIGlzIGVuYWJsZWQgYnV0IHRoaXMgcGFy
103
+ dGl0aW9uIGRvZXMgbm90IHN1cHBvcnQgRHVhbFN0YWNrIiwidHlwZSI6ImVy
104
+ cm9yIn1dfSx7ImNvbmRpdGlvbnMiOltdLCJlbmRwb2ludCI6eyJ1cmwiOiJo
105
+ dHRwczovL2FwaS5pb3RkZXZpY2VhZHZpc29yLntSZWdpb259LntQYXJ0aXRp
106
+ b25SZXN1bHQjZG5zU3VmZml4fSIsInByb3BlcnRpZXMiOnt9LCJoZWFkZXJz
107
+ Ijp7fX0sInR5cGUiOiJlbmRwb2ludCJ9XX1dfQ==
108
+
109
+ JSON
110
+ end
111
+ end
@@ -0,0 +1,211 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::IoTDeviceAdvisor
12
+ module Endpoints
13
+
14
+ class CreateSuiteDefinition
15
+ def self.build(context)
16
+ unless context.config.regional_endpoint
17
+ endpoint = context.config.endpoint.to_s
18
+ end
19
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
20
+ region: context.config.region,
21
+ use_dual_stack: context.config.use_dualstack_endpoint,
22
+ use_fips: context.config.use_fips_endpoint,
23
+ endpoint: endpoint,
24
+ )
25
+ end
26
+ end
27
+
28
+ class DeleteSuiteDefinition
29
+ def self.build(context)
30
+ unless context.config.regional_endpoint
31
+ endpoint = context.config.endpoint.to_s
32
+ end
33
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
34
+ region: context.config.region,
35
+ use_dual_stack: context.config.use_dualstack_endpoint,
36
+ use_fips: context.config.use_fips_endpoint,
37
+ endpoint: endpoint,
38
+ )
39
+ end
40
+ end
41
+
42
+ class GetEndpoint
43
+ def self.build(context)
44
+ unless context.config.regional_endpoint
45
+ endpoint = context.config.endpoint.to_s
46
+ end
47
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
48
+ region: context.config.region,
49
+ use_dual_stack: context.config.use_dualstack_endpoint,
50
+ use_fips: context.config.use_fips_endpoint,
51
+ endpoint: endpoint,
52
+ )
53
+ end
54
+ end
55
+
56
+ class GetSuiteDefinition
57
+ def self.build(context)
58
+ unless context.config.regional_endpoint
59
+ endpoint = context.config.endpoint.to_s
60
+ end
61
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
62
+ region: context.config.region,
63
+ use_dual_stack: context.config.use_dualstack_endpoint,
64
+ use_fips: context.config.use_fips_endpoint,
65
+ endpoint: endpoint,
66
+ )
67
+ end
68
+ end
69
+
70
+ class GetSuiteRun
71
+ def self.build(context)
72
+ unless context.config.regional_endpoint
73
+ endpoint = context.config.endpoint.to_s
74
+ end
75
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
76
+ region: context.config.region,
77
+ use_dual_stack: context.config.use_dualstack_endpoint,
78
+ use_fips: context.config.use_fips_endpoint,
79
+ endpoint: endpoint,
80
+ )
81
+ end
82
+ end
83
+
84
+ class GetSuiteRunReport
85
+ def self.build(context)
86
+ unless context.config.regional_endpoint
87
+ endpoint = context.config.endpoint.to_s
88
+ end
89
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
90
+ region: context.config.region,
91
+ use_dual_stack: context.config.use_dualstack_endpoint,
92
+ use_fips: context.config.use_fips_endpoint,
93
+ endpoint: endpoint,
94
+ )
95
+ end
96
+ end
97
+
98
+ class ListSuiteDefinitions
99
+ def self.build(context)
100
+ unless context.config.regional_endpoint
101
+ endpoint = context.config.endpoint.to_s
102
+ end
103
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
104
+ region: context.config.region,
105
+ use_dual_stack: context.config.use_dualstack_endpoint,
106
+ use_fips: context.config.use_fips_endpoint,
107
+ endpoint: endpoint,
108
+ )
109
+ end
110
+ end
111
+
112
+ class ListSuiteRuns
113
+ def self.build(context)
114
+ unless context.config.regional_endpoint
115
+ endpoint = context.config.endpoint.to_s
116
+ end
117
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
118
+ region: context.config.region,
119
+ use_dual_stack: context.config.use_dualstack_endpoint,
120
+ use_fips: context.config.use_fips_endpoint,
121
+ endpoint: endpoint,
122
+ )
123
+ end
124
+ end
125
+
126
+ class ListTagsForResource
127
+ def self.build(context)
128
+ unless context.config.regional_endpoint
129
+ endpoint = context.config.endpoint.to_s
130
+ end
131
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
132
+ region: context.config.region,
133
+ use_dual_stack: context.config.use_dualstack_endpoint,
134
+ use_fips: context.config.use_fips_endpoint,
135
+ endpoint: endpoint,
136
+ )
137
+ end
138
+ end
139
+
140
+ class StartSuiteRun
141
+ def self.build(context)
142
+ unless context.config.regional_endpoint
143
+ endpoint = context.config.endpoint.to_s
144
+ end
145
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
146
+ region: context.config.region,
147
+ use_dual_stack: context.config.use_dualstack_endpoint,
148
+ use_fips: context.config.use_fips_endpoint,
149
+ endpoint: endpoint,
150
+ )
151
+ end
152
+ end
153
+
154
+ class StopSuiteRun
155
+ def self.build(context)
156
+ unless context.config.regional_endpoint
157
+ endpoint = context.config.endpoint.to_s
158
+ end
159
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
160
+ region: context.config.region,
161
+ use_dual_stack: context.config.use_dualstack_endpoint,
162
+ use_fips: context.config.use_fips_endpoint,
163
+ endpoint: endpoint,
164
+ )
165
+ end
166
+ end
167
+
168
+ class TagResource
169
+ def self.build(context)
170
+ unless context.config.regional_endpoint
171
+ endpoint = context.config.endpoint.to_s
172
+ end
173
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
174
+ region: context.config.region,
175
+ use_dual_stack: context.config.use_dualstack_endpoint,
176
+ use_fips: context.config.use_fips_endpoint,
177
+ endpoint: endpoint,
178
+ )
179
+ end
180
+ end
181
+
182
+ class UntagResource
183
+ def self.build(context)
184
+ unless context.config.regional_endpoint
185
+ endpoint = context.config.endpoint.to_s
186
+ end
187
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
188
+ region: context.config.region,
189
+ use_dual_stack: context.config.use_dualstack_endpoint,
190
+ use_fips: context.config.use_fips_endpoint,
191
+ endpoint: endpoint,
192
+ )
193
+ end
194
+ end
195
+
196
+ class UpdateSuiteDefinition
197
+ def self.build(context)
198
+ unless context.config.regional_endpoint
199
+ endpoint = context.config.endpoint.to_s
200
+ end
201
+ Aws::IoTDeviceAdvisor::EndpointParameters.new(
202
+ region: context.config.region,
203
+ use_dual_stack: context.config.use_dualstack_endpoint,
204
+ use_fips: context.config.use_fips_endpoint,
205
+ endpoint: endpoint,
206
+ )
207
+ end
208
+ end
209
+
210
+ end
211
+ end
@@ -0,0 +1,96 @@
1
+ # frozen_string_literal: true
2
+
3
+ # WARNING ABOUT GENERATED CODE
4
+ #
5
+ # This file is generated. See the contributing guide for more information:
6
+ # https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+
11
+ module Aws::IoTDeviceAdvisor
12
+ module Plugins
13
+ class Endpoints < Seahorse::Client::Plugin
14
+ option(
15
+ :endpoint_provider,
16
+ doc_type: 'Aws::IoTDeviceAdvisor::EndpointProvider',
17
+ docstring: 'The endpoint provider used to resolve endpoints. Any '\
18
+ 'object that responds to `#resolve_endpoint(parameters)` '\
19
+ 'where `parameters` is a Struct similar to '\
20
+ '`Aws::IoTDeviceAdvisor::EndpointParameters`'
21
+ ) do |cfg|
22
+ Aws::IoTDeviceAdvisor::EndpointProvider.new
23
+ end
24
+
25
+ # @api private
26
+ class Handler < Seahorse::Client::Handler
27
+ def call(context)
28
+ # If endpoint was discovered, do not resolve or apply the endpoint.
29
+ unless context[:discovered_endpoint]
30
+ params = parameters_for_operation(context)
31
+ endpoint = context.config.endpoint_provider.resolve_endpoint(params)
32
+
33
+ context.http_request.endpoint = endpoint.url
34
+ apply_endpoint_headers(context, endpoint.headers)
35
+ end
36
+
37
+ context[:endpoint_params] = params
38
+ context[:auth_scheme] =
39
+ Aws::Endpoints.resolve_auth_scheme(context, endpoint)
40
+
41
+ @handler.call(context)
42
+ end
43
+
44
+ private
45
+
46
+ def apply_endpoint_headers(context, headers)
47
+ headers.each do |key, values|
48
+ value = values
49
+ .compact
50
+ .map { |s| Seahorse::Util.escape_header_list_string(s.to_s) }
51
+ .join(',')
52
+
53
+ context.http_request.headers[key] = value
54
+ end
55
+ end
56
+
57
+ def parameters_for_operation(context)
58
+ case context.operation_name
59
+ when :create_suite_definition
60
+ Aws::IoTDeviceAdvisor::Endpoints::CreateSuiteDefinition.build(context)
61
+ when :delete_suite_definition
62
+ Aws::IoTDeviceAdvisor::Endpoints::DeleteSuiteDefinition.build(context)
63
+ when :get_endpoint
64
+ Aws::IoTDeviceAdvisor::Endpoints::GetEndpoint.build(context)
65
+ when :get_suite_definition
66
+ Aws::IoTDeviceAdvisor::Endpoints::GetSuiteDefinition.build(context)
67
+ when :get_suite_run
68
+ Aws::IoTDeviceAdvisor::Endpoints::GetSuiteRun.build(context)
69
+ when :get_suite_run_report
70
+ Aws::IoTDeviceAdvisor::Endpoints::GetSuiteRunReport.build(context)
71
+ when :list_suite_definitions
72
+ Aws::IoTDeviceAdvisor::Endpoints::ListSuiteDefinitions.build(context)
73
+ when :list_suite_runs
74
+ Aws::IoTDeviceAdvisor::Endpoints::ListSuiteRuns.build(context)
75
+ when :list_tags_for_resource
76
+ Aws::IoTDeviceAdvisor::Endpoints::ListTagsForResource.build(context)
77
+ when :start_suite_run
78
+ Aws::IoTDeviceAdvisor::Endpoints::StartSuiteRun.build(context)
79
+ when :stop_suite_run
80
+ Aws::IoTDeviceAdvisor::Endpoints::StopSuiteRun.build(context)
81
+ when :tag_resource
82
+ Aws::IoTDeviceAdvisor::Endpoints::TagResource.build(context)
83
+ when :untag_resource
84
+ Aws::IoTDeviceAdvisor::Endpoints::UntagResource.build(context)
85
+ when :update_suite_definition
86
+ Aws::IoTDeviceAdvisor::Endpoints::UpdateSuiteDefinition.build(context)
87
+ end
88
+ end
89
+ end
90
+
91
+ def add_handlers(handlers, _config)
92
+ handlers.add(Handler, step: :build, priority: 75)
93
+ end
94
+ end
95
+ end
96
+ end
@@ -22,29 +22,6 @@ module Aws::IoTDeviceAdvisor
22
22
  include Aws::Structure
23
23
  end
24
24
 
25
- # @note When making an API call, you may pass CreateSuiteDefinitionRequest
26
- # data as a hash:
27
- #
28
- # {
29
- # suite_definition_configuration: {
30
- # suite_definition_name: "SuiteDefinitionName",
31
- # devices: [
32
- # {
33
- # thing_arn: "AmazonResourceName",
34
- # certificate_arn: "AmazonResourceName",
35
- # },
36
- # ],
37
- # intended_for_qualification: false,
38
- # is_long_duration_test: false,
39
- # root_group: "RootGroup",
40
- # device_permission_role_arn: "AmazonResourceName",
41
- # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5
42
- # },
43
- # tags: {
44
- # "String128" => "String256",
45
- # },
46
- # }
47
- #
48
25
  # @!attribute [rw] suite_definition_configuration
49
26
  # Creates a Device Advisor test suite with suite definition
50
27
  # configuration.
@@ -62,20 +39,20 @@ module Aws::IoTDeviceAdvisor
62
39
  end
63
40
 
64
41
  # @!attribute [rw] suite_definition_id
65
- # Creates a Device Advisor test suite with suite UUID.
42
+ # The UUID of the test suite created.
66
43
  # @return [String]
67
44
  #
68
45
  # @!attribute [rw] suite_definition_arn
69
- # Creates a Device Advisor test suite with Amazon Resource Name (ARN).
46
+ # The Amazon Resource Name (ARN) of the test suite.
70
47
  # @return [String]
71
48
  #
72
49
  # @!attribute [rw] suite_definition_name
73
- # Creates a Device Advisor test suite with suite definition name.
50
+ # The suite definition name of the test suite. This is a required
51
+ # parameter.
74
52
  # @return [String]
75
53
  #
76
54
  # @!attribute [rw] created_at
77
- # Creates a Device Advisor test suite with TimeStamp of when it was
78
- # created.
55
+ # The timestamp of when the test suite was created.
79
56
  # @return [Time]
80
57
  #
81
58
  class CreateSuiteDefinitionResponse < Struct.new(
@@ -87,13 +64,6 @@ module Aws::IoTDeviceAdvisor
87
64
  include Aws::Structure
88
65
  end
89
66
 
90
- # @note When making an API call, you may pass DeleteSuiteDefinitionRequest
91
- # data as a hash:
92
- #
93
- # {
94
- # suite_definition_id: "UUID", # required
95
- # }
96
- #
97
67
  # @!attribute [rw] suite_definition_id
98
68
  # Suite definition ID of the test suite to be deleted.
99
69
  # @return [String]
@@ -109,14 +79,6 @@ module Aws::IoTDeviceAdvisor
109
79
  # Information of a test device. A thing ARN or a certificate ARN is
110
80
  # required.
111
81
  #
112
- # @note When making an API call, you may pass DeviceUnderTest
113
- # data as a hash:
114
- #
115
- # {
116
- # thing_arn: "AmazonResourceName",
117
- # certificate_arn: "AmazonResourceName",
118
- # }
119
- #
120
82
  # @!attribute [rw] thing_arn
121
83
  # Lists devices thing ARN.
122
84
  # @return [String]
@@ -132,14 +94,6 @@ module Aws::IoTDeviceAdvisor
132
94
  include Aws::Structure
133
95
  end
134
96
 
135
- # @note When making an API call, you may pass GetEndpointRequest
136
- # data as a hash:
137
- #
138
- # {
139
- # thing_arn: "AmazonResourceName",
140
- # certificate_arn: "AmazonResourceName",
141
- # }
142
- #
143
97
  # @!attribute [rw] thing_arn
144
98
  # The thing ARN of the device. This is an optional parameter.
145
99
  # @return [String]
@@ -165,14 +119,6 @@ module Aws::IoTDeviceAdvisor
165
119
  include Aws::Structure
166
120
  end
167
121
 
168
- # @note When making an API call, you may pass GetSuiteDefinitionRequest
169
- # data as a hash:
170
- #
171
- # {
172
- # suite_definition_id: "UUID", # required
173
- # suite_definition_version: "SuiteDefinitionVersion",
174
- # }
175
- #
176
122
  # @!attribute [rw] suite_definition_id
177
123
  # Suite definition ID of the test suite to get.
178
124
  # @return [String]
@@ -234,14 +180,6 @@ module Aws::IoTDeviceAdvisor
234
180
  include Aws::Structure
235
181
  end
236
182
 
237
- # @note When making an API call, you may pass GetSuiteRunReportRequest
238
- # data as a hash:
239
- #
240
- # {
241
- # suite_definition_id: "UUID", # required
242
- # suite_run_id: "UUID", # required
243
- # }
244
- #
245
183
  # @!attribute [rw] suite_definition_id
246
184
  # Suite definition ID of the test suite.
247
185
  # @return [String]
@@ -267,14 +205,6 @@ module Aws::IoTDeviceAdvisor
267
205
  include Aws::Structure
268
206
  end
269
207
 
270
- # @note When making an API call, you may pass GetSuiteRunRequest
271
- # data as a hash:
272
- #
273
- # {
274
- # suite_definition_id: "UUID", # required
275
- # suite_run_id: "UUID", # required
276
- # }
277
- #
278
208
  # @!attribute [rw] suite_definition_id
279
209
  # Suite definition ID for the test suite run.
280
210
  # @return [String]
@@ -384,14 +314,6 @@ module Aws::IoTDeviceAdvisor
384
314
  include Aws::Structure
385
315
  end
386
316
 
387
- # @note When making an API call, you may pass ListSuiteDefinitionsRequest
388
- # data as a hash:
389
- #
390
- # {
391
- # max_results: 1,
392
- # next_token: "Token",
393
- # }
394
- #
395
317
  # @!attribute [rw] max_results
396
318
  # The maximum number of results to return at once.
397
319
  # @return [Integer]
@@ -423,16 +345,6 @@ module Aws::IoTDeviceAdvisor
423
345
  include Aws::Structure
424
346
  end
425
347
 
426
- # @note When making an API call, you may pass ListSuiteRunsRequest
427
- # data as a hash:
428
- #
429
- # {
430
- # suite_definition_id: "UUID",
431
- # suite_definition_version: "SuiteDefinitionVersion",
432
- # max_results: 1,
433
- # next_token: "Token",
434
- # }
435
- #
436
348
  # @!attribute [rw] suite_definition_id
437
349
  # Lists the test suite runs of the specified test suite based on suite
438
350
  # definition ID.
@@ -476,15 +388,9 @@ module Aws::IoTDeviceAdvisor
476
388
  include Aws::Structure
477
389
  end
478
390
 
479
- # @note When making an API call, you may pass ListTagsForResourceRequest
480
- # data as a hash:
481
- #
482
- # {
483
- # resource_arn: "AmazonResourceName", # required
484
- # }
485
- #
486
391
  # @!attribute [rw] resource_arn
487
- # The ARN of the IoT Device Advisor resource.
392
+ # The resource ARN of the IoT Device Advisor resource. This can be
393
+ # SuiteDefinition ARN or SuiteRun ARN.
488
394
  # @return [String]
489
395
  #
490
396
  class ListTagsForResourceRequest < Struct.new(
@@ -515,25 +421,6 @@ module Aws::IoTDeviceAdvisor
515
421
  include Aws::Structure
516
422
  end
517
423
 
518
- # @note When making an API call, you may pass StartSuiteRunRequest
519
- # data as a hash:
520
- #
521
- # {
522
- # suite_definition_id: "UUID", # required
523
- # suite_definition_version: "SuiteDefinitionVersion",
524
- # suite_run_configuration: {
525
- # primary_device: {
526
- # thing_arn: "AmazonResourceName",
527
- # certificate_arn: "AmazonResourceName",
528
- # },
529
- # selected_test_list: ["UUID"],
530
- # parallel_run: false,
531
- # },
532
- # tags: {
533
- # "String128" => "String256",
534
- # },
535
- # }
536
- #
537
424
  # @!attribute [rw] suite_definition_id
538
425
  # Suite definition ID of the test suite.
539
426
  # @return [String]
@@ -571,22 +458,19 @@ module Aws::IoTDeviceAdvisor
571
458
  # Starts a Device Advisor test suite run based on suite create time.
572
459
  # @return [Time]
573
460
  #
461
+ # @!attribute [rw] endpoint
462
+ # The response of an Device Advisor test endpoint.
463
+ # @return [String]
464
+ #
574
465
  class StartSuiteRunResponse < Struct.new(
575
466
  :suite_run_id,
576
467
  :suite_run_arn,
577
- :created_at)
468
+ :created_at,
469
+ :endpoint)
578
470
  SENSITIVE = []
579
471
  include Aws::Structure
580
472
  end
581
473
 
582
- # @note When making an API call, you may pass StopSuiteRunRequest
583
- # data as a hash:
584
- #
585
- # {
586
- # suite_definition_id: "UUID", # required
587
- # suite_run_id: "UUID", # required
588
- # }
589
- #
590
474
  # @!attribute [rw] suite_definition_id
591
475
  # Suite definition ID of the test suite run to be stopped.
592
476
  # @return [String]
@@ -604,28 +488,10 @@ module Aws::IoTDeviceAdvisor
604
488
 
605
489
  class StopSuiteRunResponse < Aws::EmptyStructure; end
606
490
 
607
- # Gets Suite Definition Configuration.
608
- #
609
- # @note When making an API call, you may pass SuiteDefinitionConfiguration
610
- # data as a hash:
611
- #
612
- # {
613
- # suite_definition_name: "SuiteDefinitionName",
614
- # devices: [
615
- # {
616
- # thing_arn: "AmazonResourceName",
617
- # certificate_arn: "AmazonResourceName",
618
- # },
619
- # ],
620
- # intended_for_qualification: false,
621
- # is_long_duration_test: false,
622
- # root_group: "RootGroup",
623
- # device_permission_role_arn: "AmazonResourceName",
624
- # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5
625
- # }
491
+ # Gets the suite definition configuration.
626
492
  #
627
493
  # @!attribute [rw] suite_definition_name
628
- # Gets Suite Definition Configuration name.
494
+ # Gets the suite definition name. This is a required parameter.
629
495
  # @return [String]
630
496
  #
631
497
  # @!attribute [rw] devices
@@ -641,15 +507,15 @@ module Aws::IoTDeviceAdvisor
641
507
  # @return [Boolean]
642
508
  #
643
509
  # @!attribute [rw] root_group
644
- # Gets test suite root group.
510
+ # Gets the test suite root group. This is a required parameter.
645
511
  # @return [String]
646
512
  #
647
513
  # @!attribute [rw] device_permission_role_arn
648
- # Gets the device permission ARN.
514
+ # Gets the device permission ARN. This is a required parameter.
649
515
  # @return [String]
650
516
  #
651
517
  # @!attribute [rw] protocol
652
- # Gets the MQTT protocol that is configured in the suite definition.
518
+ # Sets the MQTT protocol that is configured in the suite definition.
653
519
  # @return [String]
654
520
  #
655
521
  class SuiteDefinitionConfiguration < Struct.new(
@@ -708,24 +574,13 @@ module Aws::IoTDeviceAdvisor
708
574
 
709
575
  # Gets suite run configuration.
710
576
  #
711
- # @note When making an API call, you may pass SuiteRunConfiguration
712
- # data as a hash:
713
- #
714
- # {
715
- # primary_device: {
716
- # thing_arn: "AmazonResourceName",
717
- # certificate_arn: "AmazonResourceName",
718
- # },
719
- # selected_test_list: ["UUID"],
720
- # parallel_run: false,
721
- # }
722
- #
723
577
  # @!attribute [rw] primary_device
724
- # Gets the primary device for suite run.
578
+ # Sets the primary device for the test suite run. This requires a
579
+ # thing ARN or a certificate ARN.
725
580
  # @return [Types::DeviceUnderTest]
726
581
  #
727
582
  # @!attribute [rw] selected_test_list
728
- # Gets test case list.
583
+ # Sets test case list.
729
584
  # @return [Array<String>]
730
585
  #
731
586
  # @!attribute [rw] parallel_run
@@ -803,18 +658,9 @@ module Aws::IoTDeviceAdvisor
803
658
  include Aws::Structure
804
659
  end
805
660
 
806
- # @note When making an API call, you may pass TagResourceRequest
807
- # data as a hash:
808
- #
809
- # {
810
- # resource_arn: "AmazonResourceName", # required
811
- # tags: { # required
812
- # "String128" => "String256",
813
- # },
814
- # }
815
- #
816
661
  # @!attribute [rw] resource_arn
817
- # The resource ARN of an IoT Device Advisor resource.
662
+ # The resource ARN of an IoT Device Advisor resource. This can be
663
+ # SuiteDefinition ARN or SuiteRun ARN.
818
664
  # @return [String]
819
665
  #
820
666
  # @!attribute [rw] tags
@@ -973,16 +819,9 @@ module Aws::IoTDeviceAdvisor
973
819
  include Aws::Structure
974
820
  end
975
821
 
976
- # @note When making an API call, you may pass UntagResourceRequest
977
- # data as a hash:
978
- #
979
- # {
980
- # resource_arn: "AmazonResourceName", # required
981
- # tag_keys: ["String128"], # required
982
- # }
983
- #
984
822
  # @!attribute [rw] resource_arn
985
- # The resource ARN of an IoT Device Advisor resource.
823
+ # The resource ARN of an IoT Device Advisor resource. This can be
824
+ # SuiteDefinition ARN or SuiteRun ARN.
986
825
  # @return [String]
987
826
  #
988
827
  # @!attribute [rw] tag_keys
@@ -998,27 +837,6 @@ module Aws::IoTDeviceAdvisor
998
837
 
999
838
  class UntagResourceResponse < Aws::EmptyStructure; end
1000
839
 
1001
- # @note When making an API call, you may pass UpdateSuiteDefinitionRequest
1002
- # data as a hash:
1003
- #
1004
- # {
1005
- # suite_definition_id: "UUID", # required
1006
- # suite_definition_configuration: {
1007
- # suite_definition_name: "SuiteDefinitionName",
1008
- # devices: [
1009
- # {
1010
- # thing_arn: "AmazonResourceName",
1011
- # certificate_arn: "AmazonResourceName",
1012
- # },
1013
- # ],
1014
- # intended_for_qualification: false,
1015
- # is_long_duration_test: false,
1016
- # root_group: "RootGroup",
1017
- # device_permission_role_arn: "AmazonResourceName",
1018
- # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5
1019
- # },
1020
- # }
1021
- #
1022
840
  # @!attribute [rw] suite_definition_id
1023
841
  # Suite definition ID of the test suite to be updated.
1024
842
  # @return [String]
@@ -1044,7 +862,7 @@ module Aws::IoTDeviceAdvisor
1044
862
  # @return [String]
1045
863
  #
1046
864
  # @!attribute [rw] suite_definition_name
1047
- # Suite definition name of the updated test suite.
865
+ # Updates the suite definition name. This is a required parameter.
1048
866
  # @return [String]
1049
867
  #
1050
868
  # @!attribute [rw] suite_definition_version
@@ -13,9 +13,13 @@ require 'aws-sigv4'
13
13
 
14
14
  require_relative 'aws-sdk-iotdeviceadvisor/types'
15
15
  require_relative 'aws-sdk-iotdeviceadvisor/client_api'
16
+ require_relative 'aws-sdk-iotdeviceadvisor/plugins/endpoints.rb'
16
17
  require_relative 'aws-sdk-iotdeviceadvisor/client'
17
18
  require_relative 'aws-sdk-iotdeviceadvisor/errors'
18
19
  require_relative 'aws-sdk-iotdeviceadvisor/resource'
20
+ require_relative 'aws-sdk-iotdeviceadvisor/endpoint_parameters'
21
+ require_relative 'aws-sdk-iotdeviceadvisor/endpoint_provider'
22
+ require_relative 'aws-sdk-iotdeviceadvisor/endpoints'
19
23
  require_relative 'aws-sdk-iotdeviceadvisor/customizations'
20
24
 
21
25
  # This module provides support for AWS IoT Core Device Advisor. This module is available in the
@@ -48,6 +52,6 @@ require_relative 'aws-sdk-iotdeviceadvisor/customizations'
48
52
  # @!group service
49
53
  module Aws::IoTDeviceAdvisor
50
54
 
51
- GEM_VERSION = '1.15.0'
55
+ GEM_VERSION = '1.17.0'
52
56
 
53
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iotdeviceadvisor
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.17.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-07-22 00:00:00.000000000 Z
11
+ date: 2022-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '3'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.127.0
22
+ version: 3.165.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '3'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.127.0
32
+ version: 3.165.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: aws-sigv4
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +59,11 @@ files:
59
59
  - lib/aws-sdk-iotdeviceadvisor/client.rb
60
60
  - lib/aws-sdk-iotdeviceadvisor/client_api.rb
61
61
  - lib/aws-sdk-iotdeviceadvisor/customizations.rb
62
+ - lib/aws-sdk-iotdeviceadvisor/endpoint_parameters.rb
63
+ - lib/aws-sdk-iotdeviceadvisor/endpoint_provider.rb
64
+ - lib/aws-sdk-iotdeviceadvisor/endpoints.rb
62
65
  - lib/aws-sdk-iotdeviceadvisor/errors.rb
66
+ - lib/aws-sdk-iotdeviceadvisor/plugins/endpoints.rb
63
67
  - lib/aws-sdk-iotdeviceadvisor/resource.rb
64
68
  - lib/aws-sdk-iotdeviceadvisor/types.rb
65
69
  homepage: https://github.com/aws/aws-sdk-ruby