aws-sdk-redshift 1.88.0 → 1.89.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 02a53565fc89634b51aca6358dbb7e44fe319f46638449e14e66e9c23105cd15
4
- data.tar.gz: abd3870fbce2845d8d7bb8695d479c89ec83539acafcbc056adf33f708b8fc47
3
+ metadata.gz: 80b2f5f4111a9b7bf8aac12de0afdecc11273c1a6c03eae8eaebffe805a1bb81
4
+ data.tar.gz: ce8ca7df40d63508aa57610491308277eb4576c30ff64b7a488bfdc5ae08547a
5
5
  SHA512:
6
- metadata.gz: d6efac67aa2bb24ce94562765420f0126e54dac02fe184478bda50aab8db93246f016cc4e5d06945510920f2c178b45717558baca38594c5f5cba493e8b7dff6
7
- data.tar.gz: 3f4d3535059a2c48e7e80aa41d9f719f5e75af85dc3f50339ceb0dada606f284bc6c0881f0b146cb350e6b37da17451d947dc93b30d579ba4359f9b0e6d718d9
6
+ metadata.gz: 806ae62f42ac74733a8e856294b23c108bf2f4f10cb8fb4264413ccab7f4a11590a7ea46dc79d2ba6f95de0b8bc3746ef57408691cfa6bf6239895244871e98d
7
+ data.tar.gz: 931cc6fa38dacafa4da111c87a772839e32b8e023e8316b137be754b34374db8c281113ca9393c3cc50981b7a43a780c3fea97ed8424c6da32369020c20bdc31
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.89.0 (2023-02-02)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.88.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.88.0
1
+ 1.89.0
@@ -11164,7 +11164,7 @@ module Aws::Redshift
11164
11164
  params: params,
11165
11165
  config: config)
11166
11166
  context[:gem_name] = 'aws-sdk-redshift'
11167
- context[:gem_version] = '1.88.0'
11167
+ context[:gem_version] = '1.89.0'
11168
11168
  Seahorse::Client::Request.new(handlers, context)
11169
11169
  end
11170
11170
 
@@ -50,6 +50,9 @@ module Aws::Redshift
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::Redshift
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,9 @@ module Aws::Redshift
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?("aws-us-gov", Aws::Endpoints::Matchers.attr(partition_result, "name"))
36
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://redshift-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
39
  end
37
40
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -42,6 +45,12 @@ module Aws::Redshift
42
45
  end
43
46
  raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
44
47
  end
48
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-east-1")
49
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift.us-gov-east-1.amazonaws.com", headers: {}, properties: {})
50
+ end
51
+ if Aws::Endpoints::Matchers.string_equals?(region, "us-gov-west-1")
52
+ return Aws::Endpoints::Endpoint.new(url: "https://redshift.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
53
+ end
45
54
  return Aws::Endpoints::Endpoint.new(url: "https://redshift.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
55
  end
47
56
  raise ArgumentError, 'No endpoint could be resolved'
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-redshift/customizations'
53
53
  # @!group service
54
54
  module Aws::Redshift
55
55
 
56
- GEM_VERSION = '1.88.0'
56
+ GEM_VERSION = '1.89.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-redshift
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.88.0
4
+ version: 1.89.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-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core