aws-sdk-iotdataplane 1.42.0 → 1.44.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: f6e641cc03de331d6f4db527042e0da2c29fa40eee837e90c6dc11a65f43ac65
4
- data.tar.gz: 8b4c09de754af3375f9d8ccb9155325d90d4ecd32f5ff3295b2f85cc66cd207b
3
+ metadata.gz: fb897b64d1087d276514be339ebd9ff4ac04fc096da1be4f073b50e56e0da894
4
+ data.tar.gz: 45f3522652fe9fdb9ae0485a5551bbfbdd033327265e0caa2ff25f4298be6e97
5
5
  SHA512:
6
- metadata.gz: 2b332036f399a1531748387fff5024f03fce50edd88d8e43543b13d4b9a06799d8d2a00472c14c99de1347273e8afffe53f4cafb6496589b16bfbad40958ac46
7
- data.tar.gz: 356856fa29ef1100676345101954da8281e58342ee9c0709d74ad95c1ab1c9aeafc8d835cbdaf9bea1b6a332a408e9d9c119cc73e91b7583eb44a773cb6edd92
6
+ metadata.gz: a9e0820d1d72b371757d3cd4958dc0755f26e4e7026a136e3adec0627d20a6834aea3e347fd802dfec3327f1cbf96862ce22c6b675f4a91f39cd140be690f903
7
+ data.tar.gz: d7b22c169f5346a297d8d18634b8a26201673df246491edec5764c22a0b8a340baae23f68d289789e755dd1b4f98fce4d2f5f64300397bdb5af1ccd35ed89573
data/CHANGELOG.md CHANGED
@@ -1,6 +1,18 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.44.0 (2023-04-11)
5
+ ------------------
6
+
7
+ * Feature - This release adds support for MQTT5 user properties when calling the AWS IoT GetRetainedMessage API
8
+
9
+ 1.43.0 (2023-03-28)
10
+ ------------------
11
+
12
+ * Feature - Add endpoint ruleset support for cn-north-1.
13
+
14
+ * Issue - Allow construction of client without a custom endpoint.
15
+
4
16
  1.42.0 (2023-01-18)
5
17
  ------------------
6
18
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.44.0
@@ -412,18 +412,18 @@ module Aws::IoTDataPlane
412
412
  #
413
413
  # This action returns the message payload of the retained message, which
414
414
  # can incur messaging costs. To list only the topic names of the
415
- # retained messages, call
416
- # [ListRetainedMessages](/iot/latest/developerguide/API_iotdata_ListRetainedMessages.html).
415
+ # retained messages, call [ListRetainedMessages][1].
417
416
  #
418
- # Requires permission to access the [GetRetainedMessage][1] action.
417
+ # Requires permission to access the [GetRetainedMessage][2] action.
419
418
  #
420
419
  # For more information about messaging costs, see [Amazon Web Services
421
- # IoT Core pricing - Messaging][2].
420
+ # IoT Core pricing - Messaging][3].
422
421
  #
423
422
  #
424
423
  #
425
- # [1]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions
426
- # [2]: http://aws.amazon.com/iot-core/pricing/#Messaging
424
+ # [1]: https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_ListRetainedMessages.html
425
+ # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions
426
+ # [3]: http://aws.amazon.com/iot-core/pricing/#Messaging
427
427
  #
428
428
  # @option params [required, String] :topic
429
429
  # The topic name of the retained message to retrieve.
@@ -434,6 +434,7 @@ module Aws::IoTDataPlane
434
434
  # * {Types::GetRetainedMessageResponse#payload #payload} => String
435
435
  # * {Types::GetRetainedMessageResponse#qos #qos} => Integer
436
436
  # * {Types::GetRetainedMessageResponse#last_modified_time #last_modified_time} => Integer
437
+ # * {Types::GetRetainedMessageResponse#user_properties #user_properties} => String
437
438
  #
438
439
  # @example Request syntax with placeholder values
439
440
  #
@@ -447,6 +448,7 @@ module Aws::IoTDataPlane
447
448
  # resp.payload #=> String
448
449
  # resp.qos #=> Integer
449
450
  # resp.last_modified_time #=> Integer
451
+ # resp.user_properties #=> String
450
452
  #
451
453
  # @overload get_retained_message(params = {})
452
454
  # @param [Hash] params ({})
@@ -558,7 +560,7 @@ module Aws::IoTDataPlane
558
560
  #
559
561
  #
560
562
  #
561
- # [1]: https://docs.aws.amazon.com/iot/latest/developerguide/API_iotdata_GetRetainedMessage.html
563
+ # [1]: https://docs.aws.amazon.com/iot/latest/apireference/API_iotdata_GetRetainedMessage.html
562
564
  # [2]: https://docs.aws.amazon.com/service-authorization/latest/reference/list_awsiotfleethubfordevicemanagement.html#awsiotfleethubfordevicemanagement-actions-as-permissions
563
565
  # [3]: http://aws.amazon.com/iot-core/pricing/#Messaging
564
566
  #
@@ -768,7 +770,7 @@ module Aws::IoTDataPlane
768
770
  params: params,
769
771
  config: config)
770
772
  context[:gem_name] = 'aws-sdk-iotdataplane'
771
- context[:gem_version] = '1.42.0'
773
+ context[:gem_version] = '1.44.0'
772
774
  Seahorse::Client::Request.new(handlers, context)
773
775
  end
774
776
 
@@ -57,6 +57,7 @@ module Aws::IoTDataPlane
57
57
  UpdateThingShadowRequest = Shapes::StructureShape.new(name: 'UpdateThingShadowRequest')
58
58
  UpdateThingShadowResponse = Shapes::StructureShape.new(name: 'UpdateThingShadowResponse')
59
59
  UserProperties = Shapes::StringShape.new(name: 'UserProperties')
60
+ UserPropertiesBlob = Shapes::BlobShape.new(name: 'UserPropertiesBlob')
60
61
  errorMessage = Shapes::StringShape.new(name: 'errorMessage')
61
62
 
62
63
  ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
@@ -78,6 +79,7 @@ module Aws::IoTDataPlane
78
79
  GetRetainedMessageResponse.add_member(:payload, Shapes::ShapeRef.new(shape: Payload, location_name: "payload"))
79
80
  GetRetainedMessageResponse.add_member(:qos, Shapes::ShapeRef.new(shape: Qos, location_name: "qos"))
80
81
  GetRetainedMessageResponse.add_member(:last_modified_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "lastModifiedTime"))
82
+ GetRetainedMessageResponse.add_member(:user_properties, Shapes::ShapeRef.new(shape: UserPropertiesBlob, location_name: "userProperties"))
81
83
  GetRetainedMessageResponse.struct_class = Types::GetRetainedMessageResponse
82
84
 
83
85
  GetThingShadowRequest.add_member(:thing_name, Shapes::ShapeRef.new(shape: ThingName, required: true, location: "uri", location_name: "thingName"))
@@ -178,6 +180,7 @@ module Aws::IoTDataPlane
178
180
 
179
181
  api.metadata = {
180
182
  "apiVersion" => "2015-05-28",
183
+ "endpointPrefix" => "data-ats.iot",
181
184
  "protocol" => "rest-json",
182
185
  "serviceFullName" => "AWS IoT Data Plane",
183
186
  "serviceId" => "IoT Data Plane",
@@ -14,57 +14,72 @@ module Aws::IoTDataPlane
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) && (url = Aws::Endpoints::Matchers.parse_url(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: {})
17
+ if Aws::Endpoints::Matchers.set?(endpoint)
18
+ if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
19
+ raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
26
20
  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://data-ats.iot-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"
21
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
22
+ raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
32
23
  end
33
- 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
- if Aws::Endpoints::Matchers.string_equals?(region, "us-east-1")
36
- return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-east-1.amazonaws.com", headers: {}, properties: {})
37
- end
38
- if Aws::Endpoints::Matchers.string_equals?(region, "us-east-2")
39
- return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-east-2.amazonaws.com", headers: {}, properties: {})
40
- end
41
- if Aws::Endpoints::Matchers.string_equals?(region, "ca-central-1")
42
- return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.ca-central-1.amazonaws.com", headers: {}, properties: {})
43
- end
44
- if Aws::Endpoints::Matchers.string_equals?(region, "us-west-1")
45
- return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-west-1.amazonaws.com", headers: {}, properties: {})
46
- end
47
- if Aws::Endpoints::Matchers.string_equals?(region, "us-west-2")
48
- return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-west-2.amazonaws.com", headers: {}, properties: {})
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://data-ats.iot-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
49
31
  end
50
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
51
- return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
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
+ if Aws::Endpoints::Matchers.string_equals?(region, "ca-central-1")
37
+ return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.ca-central-1.amazonaws.com", headers: {}, properties: {})
38
+ end
39
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-east-1")
40
+ return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-east-1.amazonaws.com", headers: {}, properties: {})
41
+ end
42
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-east-2")
43
+ return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-east-2.amazonaws.com", headers: {}, properties: {})
44
+ end
45
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-west-1")
46
+ return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-west-1.amazonaws.com", headers: {}, properties: {})
47
+ end
48
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-west-2")
49
+ return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-west-2.amazonaws.com", headers: {}, properties: {})
50
+ end
51
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
52
+ return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
53
+ end
54
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
55
+ return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
56
+ end
57
+ return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
52
58
  end
53
- if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
54
- return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
59
+ raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
60
+ end
61
+ if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
62
+ if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
63
+ return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
55
64
  end
56
- return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
65
+ raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
57
66
  end
58
- raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
59
- end
60
- if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
61
- if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
62
- return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
67
+ if Aws::Endpoints::Matchers.string_equals?(region, "cn-north-1")
68
+ return Aws::Endpoints::Endpoint.new(url: "https://data.ats.iot.cn-north-1.amazonaws.com.cn", headers: {}, properties: {})
69
+ end
70
+ if Aws::Endpoints::Matchers.string_equals?("aws", Aws::Endpoints::Matchers.attr(partition_result, "name"))
71
+ return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.amazonaws.com", headers: {}, properties: {})
72
+ end
73
+ if Aws::Endpoints::Matchers.string_equals?("aws-cn", Aws::Endpoints::Matchers.attr(partition_result, "name"))
74
+ return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.amazonaws.com.cn", headers: {}, properties: {})
75
+ end
76
+ if Aws::Endpoints::Matchers.string_equals?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
77
+ return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.amazonaws.com", headers: {}, properties: {})
63
78
  end
64
- raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
79
+ return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
65
80
  end
66
- return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
67
81
  end
82
+ raise ArgumentError, "Invalid Configuration: Missing Region"
68
83
  raise ArgumentError, 'No endpoint could be resolved'
69
84
 
70
85
  end
@@ -83,11 +83,24 @@ module Aws::IoTDataPlane
83
83
  # was stored by IoT.
84
84
  # @return [Integer]
85
85
  #
86
+ # @!attribute [rw] user_properties
87
+ # A base64-encoded JSON string that includes an array of JSON objects,
88
+ # or null if the retained message doesn't include any user
89
+ # properties.
90
+ #
91
+ # The following example `userProperties` parameter is a JSON string
92
+ # that represents two user properties. Note that it will be
93
+ # base64-encoded:
94
+ #
95
+ # `[\{"deviceName": "alpha"\}, \{"deviceCnt": "45"\}]`
96
+ # @return [String]
97
+ #
86
98
  class GetRetainedMessageResponse < Struct.new(
87
99
  :topic,
88
100
  :payload,
89
101
  :qos,
90
- :last_modified_time)
102
+ :last_modified_time,
103
+ :user_properties)
91
104
  SENSITIVE = []
92
105
  include Aws::Structure
93
106
  end
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-iotdataplane/customizations'
52
52
  # @!group service
53
53
  module Aws::IoTDataPlane
54
54
 
55
- GEM_VERSION = '1.42.0'
55
+ GEM_VERSION = '1.44.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iotdataplane
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.44.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-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core