aws-sdk-kafka 1.53.0 → 1.54.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: 4dca37e0cda24f24c117a2fc5706e007e7389c3a6630ce3c3999a4d3fa8d4c0a
4
- data.tar.gz: ff002bc6cc7895c3ee4abf4105d2e1046cd46c8d331581583911f6482caf5668
3
+ metadata.gz: 8c467bd650aa2f85570a9cfeb4cee451243fb06b845ac5cc60dc213f9eb3df68
4
+ data.tar.gz: 12f3aa2f580bcf1b23d67ae151a4d1e96cb5d31cd43ae14ad4aa339c4fcc29c6
5
5
  SHA512:
6
- metadata.gz: 382e94fe9bbe2e9cdc92567abc223f801b56753e57bfec7539176ab4fe7cfd034f786aa28837ace47746bcb6d5bfbdfd690f327f511ae275d3776d7512807f69
7
- data.tar.gz: 8dbb0bf2d4c8fe1b35ca9323af1e40b382f7a1a940dac08d6f0f49b470f64c3a7909827ee2d909f7453597cf405c1818abdcad251b589f8586ac3ad79cdfb1d0
6
+ metadata.gz: 460a056b14ea142d35af90f1b3d080e2e32f2b2b641d2b46283ff61a3e286ecf59fe60773678e29bb9570099c1fdfd5f233417eed8c82ae31d74d25692e2cae1
7
+ data.tar.gz: 80db491ddb0970d4d3b0a0f35c08a00d6c5a5224245eda0b696c2977af54ab573834566c66c08017288853a1e69bddf0818b10ab01ab3a0da8de631d8b9375fa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.54.0 (2023-01-30)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.53.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.53.0
1
+ 1.54.0
@@ -2384,7 +2384,7 @@ module Aws::Kafka
2384
2384
  params: params,
2385
2385
  config: config)
2386
2386
  context[:gem_name] = 'aws-sdk-kafka'
2387
- context[:gem_version] = '1.53.0'
2387
+ context[:gem_version] = '1.54.0'
2388
2388
  Seahorse::Client::Request.new(handlers, context)
2389
2389
  end
2390
2390
 
@@ -50,6 +50,9 @@ module Aws::Kafka
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::Kafka
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::Kafka
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://kafka.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://kafka-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
36
39
  end
37
40
  raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
data/lib/aws-sdk-kafka.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-kafka/customizations'
52
52
  # @!group service
53
53
  module Aws::Kafka
54
54
 
55
- GEM_VERSION = '1.53.0'
55
+ GEM_VERSION = '1.54.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-kafka
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.53.0
4
+ version: 1.54.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-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core