aws-sdk-keyspaces 1.4.0 → 1.5.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: f410e85c963337d3f272ebdd0b02d0180dd1fdefdc3c4d3e5da14ee48b3d559b
4
- data.tar.gz: 48f737a228910caead5132217653bcd662091e04ed7c4e82202d136cac523cb6
3
+ metadata.gz: 5f8f54ada5fd8e987c6540979617ac46d44fab7f5ef323f4bfbfff1aa427bb17
4
+ data.tar.gz: 5bffd044ff90b3c9816a61c6751f0d8a1e71be0b69a0369ad0d0ef8d8a887664
5
5
  SHA512:
6
- metadata.gz: 3fc0b10dd25dcdce5b490e1455d9189334820da2415188a0fd0d7a9b070d83d209a1d3971f5aa5921cd731813d927c73d0838989af9afafc3e5c01941ca9d231
7
- data.tar.gz: e5aa4eaccc5eb75dae6d2327d34f558b2935ea1a732aee26dc071beb015c6a5e62e0c41d5bc3b8e66dadeb72d365d899fa145353165d4be85ff93e6c434a285c
6
+ metadata.gz: 9f93da2dfda98c10076cc7af73a2d3980e3cd238084f3226106de4af08fc8a416f7e9d83d575ae73a0b878e1db307f9eb60d2fc31e235b5cde1ff8f00e6bd7de
7
+ data.tar.gz: 65d650cfe86bb2625b02ae1ba356003df90d26d9631638ff41918350115e943fd3b955b0878c9c3222742e8f84fd34f7eebac97ace4807a77dd138ea5d5350db
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.5.0 (2023-02-02)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.4.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.0
1
+ 1.5.0
@@ -1378,7 +1378,7 @@ module Aws::Keyspaces
1378
1378
  params: params,
1379
1379
  config: config)
1380
1380
  context[:gem_name] = 'aws-sdk-keyspaces'
1381
- context[:gem_version] = '1.4.0'
1381
+ context[:gem_version] = '1.5.0'
1382
1382
  Seahorse::Client::Request.new(handlers, context)
1383
1383
  end
1384
1384
 
@@ -50,6 +50,9 @@ module Aws::Keyspaces
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::Keyspaces
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::Keyspaces
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://cassandra.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://cassandra-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
39
  end
37
40
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
@@ -53,6 +53,6 @@ require_relative 'aws-sdk-keyspaces/customizations'
53
53
  # @!group service
54
54
  module Aws::Keyspaces
55
55
 
56
- GEM_VERSION = '1.4.0'
56
+ GEM_VERSION = '1.5.0'
57
57
 
58
58
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-keyspaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.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