aws-sdk-iotdataplane 1.42.0 → 1.43.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: 121e7be6c37e9868d10f28597dd57c5014626f213f7601c2327c33c3e0f27d44
4
+ data.tar.gz: 6cb8402607b478351dbec3f51c9f820b77cdb1b2d3607dec00bd64d8ea462d0f
5
5
  SHA512:
6
- metadata.gz: 2b332036f399a1531748387fff5024f03fce50edd88d8e43543b13d4b9a06799d8d2a00472c14c99de1347273e8afffe53f4cafb6496589b16bfbad40958ac46
7
- data.tar.gz: 356856fa29ef1100676345101954da8281e58342ee9c0709d74ad95c1ab1c9aeafc8d835cbdaf9bea1b6a332a408e9d9c119cc73e91b7583eb44a773cb6edd92
6
+ metadata.gz: 6532081db93eab4f5d80e4af24773879abf64640d272a5baeebb17826f615e2c516170b7a4d3c701509679b5423aaae5c293dfe540140beaf279a4527a9bb91a
7
+ data.tar.gz: 8431a5d7a4e58fb7a22a317ba5adc36bc86d3ed2fff0bd3d21beec0e657bd925a54d041fb1ba49f6aeec696a68c5358648b4bdb1d6a7ee28da56a422c93b4bdb
data/CHANGELOG.md CHANGED
@@ -1,6 +1,13 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.43.0 (2023-03-28)
5
+ ------------------
6
+
7
+ * Feature - Add endpoint ruleset support for cn-north-1.
8
+
9
+ * Issue - Allow construction of client without a custom endpoint.
10
+
4
11
  1.42.0 (2023-01-18)
5
12
  ------------------
6
13
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.42.0
1
+ 1.43.0
@@ -768,7 +768,7 @@ module Aws::IoTDataPlane
768
768
  params: params,
769
769
  config: config)
770
770
  context[:gem_name] = 'aws-sdk-iotdataplane'
771
- context[:gem_version] = '1.42.0'
771
+ context[:gem_version] = '1.43.0'
772
772
  Seahorse::Client::Request.new(handlers, context)
773
773
  end
774
774
 
@@ -178,6 +178,7 @@ module Aws::IoTDataPlane
178
178
 
179
179
  api.metadata = {
180
180
  "apiVersion" => "2015-05-28",
181
+ "endpointPrefix" => "data-ats.iot",
181
182
  "protocol" => "rest-json",
182
183
  "serviceFullName" => "AWS IoT Data Plane",
183
184
  "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
@@ -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.43.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.43.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-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core