aws-sdk-iotdeviceadvisor 1.18.0 → 1.19.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: 7a0b1ec128f1ee43b52f390bdd44492037334e907018926a7610f572e9aeb2fc
4
- data.tar.gz: 24aec75de05c99967c28b617482c857b98e594ecbf0d7f128c609b9185cc5624
3
+ metadata.gz: 8ebb486405f0e5f24cd693b913352aa576abbb42c3e01d09aa4264e89bb245bf
4
+ data.tar.gz: 697f4c7fdf9756b4e93000974e4184f0a0bc53ec6179cb09de457769a1d891cc
5
5
  SHA512:
6
- metadata.gz: 434afa054fef7ec8de2b85686b5a418835f99e56b3d1e75e13402619ee8c6fca88e6923d9f6aa01b043103074fc2cdccc7e1f47aabb6e2ab1e3463e9e4d8dad0
7
- data.tar.gz: 9c92fc86df28617ca83a4d274310e92a1650230094bdda9d9e6a863d4e074e720f1b1c4dad10ae4c5aa82fe945059a249795715d4eeef6a3ffeeded6da76a86c
6
+ metadata.gz: 605288e82ca4f97126bbb9b68cbc016b375b614dc2d2106ea86472d4fd2365b7831f356dfd806be7f88e37e69745310a9d7598bfabad75fb574e3613d8ea5b7f
7
+ data.tar.gz: bf458907de8952740c95a4dec63d873addef4670ea7cde3128d3920b7535fb58be72caf255f01696dae593a4612123b812b72e2a87bf34a40a3e9f0e865237b2
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.19.0 (2023-04-27)
5
+ ------------------
6
+
7
+ * Feature - AWS IoT Core Device Advisor now supports MQTT over WebSocket. With this update, customers can run all three test suites of AWS IoT Core Device Advisor - qualification, custom, and long duration tests - using Signature Version 4 for MQTT over WebSocket.
8
+
4
9
  1.18.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.18.0
1
+ 1.19.0
@@ -399,13 +399,14 @@ module Aws::IoTDeviceAdvisor
399
399
  # {
400
400
  # thing_arn: "AmazonResourceName",
401
401
  # certificate_arn: "AmazonResourceName",
402
+ # device_role_arn: "AmazonResourceName",
402
403
  # },
403
404
  # ],
404
405
  # intended_for_qualification: false,
405
406
  # is_long_duration_test: false,
406
407
  # root_group: "RootGroup", # required
407
408
  # device_permission_role_arn: "AmazonResourceName", # required
408
- # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5
409
+ # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5, MqttV3_1_1_OverWebSocket, MqttV5_OverWebSocket
409
410
  # },
410
411
  # tags: {
411
412
  # "String128" => "String256",
@@ -460,6 +461,12 @@ module Aws::IoTDeviceAdvisor
460
461
  # @option params [String] :certificate_arn
461
462
  # The certificate ARN of the device. This is an optional parameter.
462
463
  #
464
+ # @option params [String] :device_role_arn
465
+ # The device role ARN of the device. This is an optional parameter.
466
+ #
467
+ # @option params [String] :authentication_method
468
+ # The authentication method used during the device connection.
469
+ #
463
470
  # @return [Types::GetEndpointResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
464
471
  #
465
472
  # * {Types::GetEndpointResponse#endpoint #endpoint} => String
@@ -469,6 +476,8 @@ module Aws::IoTDeviceAdvisor
469
476
  # resp = client.get_endpoint({
470
477
  # thing_arn: "AmazonResourceName",
471
478
  # certificate_arn: "AmazonResourceName",
479
+ # device_role_arn: "AmazonResourceName",
480
+ # authentication_method: "X509ClientCertificate", # accepts X509ClientCertificate, SignatureVersion4
472
481
  # })
473
482
  #
474
483
  # @example Response structure
@@ -524,11 +533,12 @@ module Aws::IoTDeviceAdvisor
524
533
  # resp.suite_definition_configuration.devices #=> Array
525
534
  # resp.suite_definition_configuration.devices[0].thing_arn #=> String
526
535
  # resp.suite_definition_configuration.devices[0].certificate_arn #=> String
536
+ # resp.suite_definition_configuration.devices[0].device_role_arn #=> String
527
537
  # resp.suite_definition_configuration.intended_for_qualification #=> Boolean
528
538
  # resp.suite_definition_configuration.is_long_duration_test #=> Boolean
529
539
  # resp.suite_definition_configuration.root_group #=> String
530
540
  # resp.suite_definition_configuration.device_permission_role_arn #=> String
531
- # resp.suite_definition_configuration.protocol #=> String, one of "MqttV3_1_1", "MqttV5"
541
+ # resp.suite_definition_configuration.protocol #=> String, one of "MqttV3_1_1", "MqttV5", "MqttV3_1_1_OverWebSocket", "MqttV5_OverWebSocket"
532
542
  # resp.created_at #=> Time
533
543
  # resp.last_modified_at #=> Time
534
544
  # resp.tags #=> Hash
@@ -584,6 +594,7 @@ module Aws::IoTDeviceAdvisor
584
594
  # resp.suite_run_arn #=> String
585
595
  # resp.suite_run_configuration.primary_device.thing_arn #=> String
586
596
  # resp.suite_run_configuration.primary_device.certificate_arn #=> String
597
+ # resp.suite_run_configuration.primary_device.device_role_arn #=> String
587
598
  # resp.suite_run_configuration.selected_test_list #=> Array
588
599
  # resp.suite_run_configuration.selected_test_list[0] #=> String
589
600
  # resp.suite_run_configuration.parallel_run #=> Boolean
@@ -693,9 +704,10 @@ module Aws::IoTDeviceAdvisor
693
704
  # resp.suite_definition_information_list[0].default_devices #=> Array
694
705
  # resp.suite_definition_information_list[0].default_devices[0].thing_arn #=> String
695
706
  # resp.suite_definition_information_list[0].default_devices[0].certificate_arn #=> String
707
+ # resp.suite_definition_information_list[0].default_devices[0].device_role_arn #=> String
696
708
  # resp.suite_definition_information_list[0].intended_for_qualification #=> Boolean
697
709
  # resp.suite_definition_information_list[0].is_long_duration_test #=> Boolean
698
- # resp.suite_definition_information_list[0].protocol #=> String, one of "MqttV3_1_1", "MqttV5"
710
+ # resp.suite_definition_information_list[0].protocol #=> String, one of "MqttV3_1_1", "MqttV5", "MqttV3_1_1_OverWebSocket", "MqttV5_OverWebSocket"
699
711
  # resp.suite_definition_information_list[0].created_at #=> Time
700
712
  # resp.next_token #=> String
701
713
  #
@@ -838,6 +850,7 @@ module Aws::IoTDeviceAdvisor
838
850
  # primary_device: { # required
839
851
  # thing_arn: "AmazonResourceName",
840
852
  # certificate_arn: "AmazonResourceName",
853
+ # device_role_arn: "AmazonResourceName",
841
854
  # },
842
855
  # selected_test_list: ["UUID"],
843
856
  # parallel_run: false,
@@ -989,13 +1002,14 @@ module Aws::IoTDeviceAdvisor
989
1002
  # {
990
1003
  # thing_arn: "AmazonResourceName",
991
1004
  # certificate_arn: "AmazonResourceName",
1005
+ # device_role_arn: "AmazonResourceName",
992
1006
  # },
993
1007
  # ],
994
1008
  # intended_for_qualification: false,
995
1009
  # is_long_duration_test: false,
996
1010
  # root_group: "RootGroup", # required
997
1011
  # device_permission_role_arn: "AmazonResourceName", # required
998
- # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5
1012
+ # protocol: "MqttV3_1_1", # accepts MqttV3_1_1, MqttV5, MqttV3_1_1_OverWebSocket, MqttV5_OverWebSocket
999
1013
  # },
1000
1014
  # })
1001
1015
  #
@@ -1028,7 +1042,7 @@ module Aws::IoTDeviceAdvisor
1028
1042
  params: params,
1029
1043
  config: config)
1030
1044
  context[:gem_name] = 'aws-sdk-iotdeviceadvisor'
1031
- context[:gem_version] = '1.18.0'
1045
+ context[:gem_version] = '1.19.0'
1032
1046
  Seahorse::Client::Request.new(handlers, context)
1033
1047
  end
1034
1048
 
@@ -14,6 +14,7 @@ module Aws::IoTDeviceAdvisor
14
14
  include Seahorse::Model
15
15
 
16
16
  AmazonResourceName = Shapes::StringShape.new(name: 'AmazonResourceName')
17
+ AuthenticationMethod = Shapes::StringShape.new(name: 'AuthenticationMethod')
17
18
  ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
18
19
  CreateSuiteDefinitionRequest = Shapes::StructureShape.new(name: 'CreateSuiteDefinitionRequest')
19
20
  CreateSuiteDefinitionResponse = Shapes::StructureShape.new(name: 'CreateSuiteDefinitionResponse')
@@ -114,12 +115,15 @@ module Aws::IoTDeviceAdvisor
114
115
 
115
116
  DeviceUnderTest.add_member(:thing_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "thingArn"))
116
117
  DeviceUnderTest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "certificateArn"))
118
+ DeviceUnderTest.add_member(:device_role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location_name: "deviceRoleArn"))
117
119
  DeviceUnderTest.struct_class = Types::DeviceUnderTest
118
120
 
119
121
  DeviceUnderTestList.member = Shapes::ShapeRef.new(shape: DeviceUnderTest)
120
122
 
121
123
  GetEndpointRequest.add_member(:thing_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location: "querystring", location_name: "thingArn"))
122
124
  GetEndpointRequest.add_member(:certificate_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location: "querystring", location_name: "certificateArn"))
125
+ GetEndpointRequest.add_member(:device_role_arn, Shapes::ShapeRef.new(shape: AmazonResourceName, location: "querystring", location_name: "deviceRoleArn"))
126
+ GetEndpointRequest.add_member(:authentication_method, Shapes::ShapeRef.new(shape: AuthenticationMethod, location: "querystring", location_name: "authenticationMethod"))
123
127
  GetEndpointRequest.struct_class = Types::GetEndpointRequest
124
128
 
125
129
  GetEndpointResponse.add_member(:endpoint, Shapes::ShapeRef.new(shape: Endpoint, location_name: "endpoint"))
@@ -50,9 +50,6 @@ module Aws::IoTDeviceAdvisor
50
50
 
51
51
  def initialize(options = {})
52
52
  self[:region] = options[:region]
53
- if self[:region].nil?
54
- raise ArgumentError, "Missing required EndpointParameter: :region"
55
- end
56
53
  self[:use_dual_stack] = options[:use_dual_stack]
57
54
  self[:use_dual_stack] = false if self[:use_dual_stack].nil?
58
55
  if self[:use_dual_stack].nil?
@@ -14,36 +14,39 @@ module Aws::IoTDeviceAdvisor
14
14
  use_dual_stack = parameters.use_dual_stack
15
15
  use_fips = parameters.use_fips
16
16
  endpoint = parameters.endpoint
17
- if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
18
- if Aws::Endpoints::Matchers.set?(endpoint)
19
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
20
- raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
21
- end
22
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
23
- raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
24
- end
25
- return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
26
- end
27
- if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
28
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
29
- return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
30
- end
31
- raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
32
- end
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
33
18
  if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
34
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
35
- return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
- end
37
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
38
20
  end
39
21
  if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
40
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
41
- return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
23
+ end
24
+ return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
25
+ end
26
+ if Aws::Endpoints::Matchers.set?(region)
27
+ if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
28
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
29
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
30
+ return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
31
+ end
32
+ raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
33
+ end
34
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
35
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
37
+ end
38
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
39
+ end
40
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
41
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
42
+ return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
43
+ end
44
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
42
45
  end
43
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
46
+ return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
44
47
  end
45
- return Aws::Endpoints::Endpoint.new(url: "https://api.iotdeviceadvisor.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
48
  end
49
+ raise ArgumentError, "Invalid Configuration: Missing Region"
47
50
  raise ArgumentError, 'No endpoint could be resolved'
48
51
 
49
52
  end
@@ -76,20 +76,25 @@ module Aws::IoTDeviceAdvisor
76
76
 
77
77
  class DeleteSuiteDefinitionResponse < Aws::EmptyStructure; end
78
78
 
79
- # Information of a test device. A thing ARN or a certificate ARN is
80
- # required.
79
+ # Information of a test device. A thing ARN, certificate ARN or device
80
+ # role ARN is required.
81
81
  #
82
82
  # @!attribute [rw] thing_arn
83
- # Lists devices thing ARN.
83
+ # Lists device's thing ARN.
84
84
  # @return [String]
85
85
  #
86
86
  # @!attribute [rw] certificate_arn
87
- # Lists devices certificate ARN.
87
+ # Lists device's certificate ARN.
88
+ # @return [String]
89
+ #
90
+ # @!attribute [rw] device_role_arn
91
+ # Lists device's role ARN.
88
92
  # @return [String]
89
93
  #
90
94
  class DeviceUnderTest < Struct.new(
91
95
  :thing_arn,
92
- :certificate_arn)
96
+ :certificate_arn,
97
+ :device_role_arn)
93
98
  SENSITIVE = []
94
99
  include Aws::Structure
95
100
  end
@@ -102,9 +107,19 @@ module Aws::IoTDeviceAdvisor
102
107
  # The certificate ARN of the device. This is an optional parameter.
103
108
  # @return [String]
104
109
  #
110
+ # @!attribute [rw] device_role_arn
111
+ # The device role ARN of the device. This is an optional parameter.
112
+ # @return [String]
113
+ #
114
+ # @!attribute [rw] authentication_method
115
+ # The authentication method used during the device connection.
116
+ # @return [String]
117
+ #
105
118
  class GetEndpointRequest < Struct.new(
106
119
  :thing_arn,
107
- :certificate_arn)
120
+ :certificate_arn,
121
+ :device_role_arn,
122
+ :authentication_method)
108
123
  SENSITIVE = []
109
124
  include Aws::Structure
110
125
  end
@@ -693,23 +708,23 @@ module Aws::IoTDeviceAdvisor
693
708
  # @!attribute [rw] status
694
709
  # Provides the test case run status. Status is one of the following:
695
710
  #
696
- # * `PASS`\: Test passed.
711
+ # * `PASS`: Test passed.
697
712
  #
698
- # * `FAIL`\: Test failed.
713
+ # * `FAIL`: Test failed.
699
714
  #
700
- # * `PENDING`\: Test has not started running but is scheduled.
715
+ # * `PENDING`: Test has not started running but is scheduled.
701
716
  #
702
- # * `RUNNING`\: Test is running.
717
+ # * `RUNNING`: Test is running.
703
718
  #
704
- # * `STOPPING`\: Test is performing cleanup steps. You will see this
719
+ # * `STOPPING`: Test is performing cleanup steps. You will see this
705
720
  # status only if you stop a suite run.
706
721
  #
707
722
  # * `STOPPED` Test is stopped. You will see this status only if you
708
723
  # stop a suite run.
709
724
  #
710
- # * `PASS_WITH_WARNINGS`\: Test passed with warnings.
725
+ # * `PASS_WITH_WARNINGS`: Test passed with warnings.
711
726
  #
712
- # * `ERORR`\: Test faced an error when running due to an internal
727
+ # * `ERORR`: Test faced an error when running due to an internal
713
728
  # issue.
714
729
  # @return [String]
715
730
  #
@@ -770,23 +785,23 @@ module Aws::IoTDeviceAdvisor
770
785
  # Provides the test case scenario status. Status is one of the
771
786
  # following:
772
787
  #
773
- # * `PASS`\: Test passed.
788
+ # * `PASS`: Test passed.
774
789
  #
775
- # * `FAIL`\: Test failed.
790
+ # * `FAIL`: Test failed.
776
791
  #
777
- # * `PENDING`\: Test has not started running but is scheduled.
792
+ # * `PENDING`: Test has not started running but is scheduled.
778
793
  #
779
- # * `RUNNING`\: Test is running.
794
+ # * `RUNNING`: Test is running.
780
795
  #
781
- # * `STOPPING`\: Test is performing cleanup steps. You will see this
796
+ # * `STOPPING`: Test is performing cleanup steps. You will see this
782
797
  # status only if you stop a suite run.
783
798
  #
784
799
  # * `STOPPED` Test is stopped. You will see this status only if you
785
800
  # stop a suite run.
786
801
  #
787
- # * `PASS_WITH_WARNINGS`\: Test passed with warnings.
802
+ # * `PASS_WITH_WARNINGS`: Test passed with warnings.
788
803
  #
789
- # * `ERORR`\: Test faced an error when running due to an internal
804
+ # * `ERORR`: Test faced an error when running due to an internal
790
805
  # issue.
791
806
  # @return [String]
792
807
  #
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-iotdeviceadvisor/customizations'
52
52
  # @!group service
53
53
  module Aws::IoTDeviceAdvisor
54
54
 
55
- GEM_VERSION = '1.18.0'
55
+ GEM_VERSION = '1.19.0'
56
56
 
57
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.18.0
4
+ version: 1.19.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: 2023-01-18 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core