aws-sdk-greengrassv2 1.23.0 → 1.24.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 +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-greengrassv2/client.rb +1 -1
- data/lib/aws-sdk-greengrassv2/endpoint_parameters.rb +3 -0
- data/lib/aws-sdk-greengrassv2/endpoint_provider.rb +15 -3
- data/lib/aws-sdk-greengrassv2.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: c38b169e821eeaa1864f537346e53a92d23f0dbf9b2c99868f8369aeff4b096b
|
4
|
+
data.tar.gz: a1ac12f7e5c4a25bb4b591f66309f5604c54959f64a281dd8bd496df98dd0749
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a825b1fe6524c17f988f04ab90ef41a7eec2d765c50dd2b09f654b1709570d7c244b036a572ea3ebdefa812c0ff7bdf97740338757507b9e8251b69d3c270e47
|
7
|
+
data.tar.gz: aabc16a762bc62c74c2f9ee45cb3994bec57aa0a0c5be6ca366fd177728996426daadb205cbcb4e0e59764b2fb929eecf99794f638cfb0469f812e376fe48091
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.24.0
|
@@ -2092,7 +2092,7 @@ module Aws::GreengrassV2
|
|
2092
2092
|
params: params,
|
2093
2093
|
config: config)
|
2094
2094
|
context[:gem_name] = 'aws-sdk-greengrassv2'
|
2095
|
-
context[:gem_version] = '1.
|
2095
|
+
context[:gem_version] = '1.24.0'
|
2096
2096
|
Seahorse::Client::Request.new(handlers, context)
|
2097
2097
|
end
|
2098
2098
|
|
@@ -50,6 +50,9 @@ module Aws::GreengrassV2
|
|
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
|
53
56
|
self[:use_dual_stack] = options[:use_dual_stack]
|
54
57
|
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
55
58
|
if self[:use_dual_stack].nil?
|
@@ -15,7 +15,7 @@ module Aws::GreengrassV2
|
|
15
15
|
use_fips = parameters.use_fips
|
16
16
|
endpoint = parameters.endpoint
|
17
17
|
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint)
|
18
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
19
19
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
20
20
|
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
21
21
|
end
|
@@ -32,6 +32,12 @@ module Aws::GreengrassV2
|
|
32
32
|
end
|
33
33
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
35
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
37
|
+
end
|
38
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
39
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
40
|
+
end
|
35
41
|
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
36
42
|
end
|
37
43
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -43,10 +49,16 @@ module Aws::GreengrassV2
|
|
43
49
|
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
44
50
|
end
|
45
51
|
if Aws::Endpoints::Matchers.string_equals?(region, "dataplane-us-gov-east-1")
|
46
|
-
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
52
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-east-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-east-1", "signingName"=>"greengrass"}]})
|
47
53
|
end
|
48
54
|
if Aws::Endpoints::Matchers.string_equals?(region, "dataplane-us-gov-west-1")
|
49
|
-
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
55
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass-ats.iot.us-gov-west-1.amazonaws.com", headers: {}, properties: {"authSchemes"=>[{"name"=>"sigv4", "signingRegion"=>"us-gov-west-1", "signingName"=>"greengrass"}]})
|
56
|
+
end
|
57
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
|
58
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
|
59
|
+
end
|
60
|
+
if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
|
61
|
+
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
|
50
62
|
end
|
51
63
|
return Aws::Endpoints::Endpoint.new(url: "https://greengrass.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
52
64
|
end
|
data/lib/aws-sdk-greengrassv2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-greengrassv2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.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-
|
11
|
+
date: 2023-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|