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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 897013abd74bc3f7aa7eb01f7a33de70f3e002cfebd601760dab423d0c227a3c
4
- data.tar.gz: b891dcce984d1ece9bc5d873f50ee307181245e82ae7fa8f9ad9c6273f0ff0ad
3
+ metadata.gz: c38b169e821eeaa1864f537346e53a92d23f0dbf9b2c99868f8369aeff4b096b
4
+ data.tar.gz: a1ac12f7e5c4a25bb4b591f66309f5604c54959f64a281dd8bd496df98dd0749
5
5
  SHA512:
6
- metadata.gz: 02d4468195239e462f577c3eb3f22e896b9c1b5de990b4273ed0a0592f3bf3adfceee83e11ce0c5c4374b4798eb6f208a054a639b1886bb42dfca27728a685a5
7
- data.tar.gz: 3792d0623466925c25ab2c97487993260022f15a23504bde7abc75e8617d8e7bec9bdec77a627144d9c44fa04dbf289bfa16369ea7d050764073e36b7113f924
6
+ metadata.gz: a825b1fe6524c17f988f04ab90ef41a7eec2d765c50dd2b09f654b1709570d7c244b036a572ea3ebdefa812c0ff7bdf97740338757507b9e8251b69d3c270e47
7
+ data.tar.gz: aabc16a762bc62c74c2f9ee45cb3994bec57aa0a0c5be6ca366fd177728996426daadb205cbcb4e0e59764b2fb929eecf99794f638cfb0469f812e376fe48091
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.24.0 (2023-01-27)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) in SDK.
8
+
4
9
  1.23.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.23.0
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.23.0'
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) && (url = Aws::Endpoints::Matchers.parse_url(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
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-greengrassv2/customizations'
52
52
  # @!group service
53
53
  module Aws::GreengrassV2
54
54
 
55
- GEM_VERSION = '1.23.0'
55
+ GEM_VERSION = '1.24.0'
56
56
 
57
57
  end
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.23.0
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-18 00:00:00.000000000 Z
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