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 +4 -4
- data/CHANGELOG.md +7 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iotdataplane/client.rb +1 -1
- data/lib/aws-sdk-iotdataplane/client_api.rb +1 -0
- data/lib/aws-sdk-iotdataplane/endpoint_provider.rb +57 -42
- data/lib/aws-sdk-iotdataplane.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 121e7be6c37e9868d10f28597dd57c5014626f213f7601c2327c33c3e0f27d44
|
4
|
+
data.tar.gz: 6cb8402607b478351dbec3f51c9f820b77cdb1b2d3607dec00bd64d8ea462d0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
1
|
+
1.43.0
|
@@ -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
|
18
|
-
if Aws::Endpoints::Matchers.
|
19
|
-
|
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?(
|
28
|
-
|
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
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
if Aws::Endpoints::Matchers.
|
39
|
-
return Aws::Endpoints::Endpoint.new(url: "https://data.iot-fips
|
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
|
-
|
51
|
-
|
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
|
-
|
54
|
-
|
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
|
-
|
65
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
57
66
|
end
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
if Aws::Endpoints::Matchers.
|
62
|
-
return Aws::Endpoints::Endpoint.new(url: "https://data-ats.iot.#{region}
|
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
|
-
|
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
|
data/lib/aws-sdk-iotdataplane.rb
CHANGED
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.
|
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-
|
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
|