aws-sdk-fis 1.15.0 → 1.16.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: 399d093bbdc7c990049fd0c52f2baecaf200bad41a554fe9010662d9ee74f972
4
- data.tar.gz: 5afbeb69503b4c867cb1bd97cf01603f5da8e0516a7a1aaa6ad10c4ca2b1087a
3
+ metadata.gz: 54340f43663a0341d142aff37bb20be720ec823f482260166b570fff99f1dc97
4
+ data.tar.gz: 8fe703e4e9dcd6e9c8176e69844e20c59db835d32728e126d66fd34db3af3740
5
5
  SHA512:
6
- metadata.gz: fe5f9094552d17761118eb864fafd062f9cefe76c4a9921532c9df85f45b708a974a4204b4d2768efade5dc99e9d03fc75b305406ce5b6ea6986878d4dbf2889
7
- data.tar.gz: d13916544d3bc937bfb1cef6952b84b670c616e41eed9a287b7f6870971947c1ca69f4d8887c952f099f116e677b384d564df64c9c44cb2accc17153ba3d9da7
6
+ metadata.gz: 3cb3bd68f446345e8e09cc2f304969dc5f65e3c63261b0b4411e9db7257354bde892bfe8b75ab58a1c9a76b9e7bbb2f160839bdd1c7f7f3380bbfcf407ed0315
7
+ data.tar.gz: 31b885f4d7a38c6583633958d0c1e4794ed5806606aced04f9bc455f38e7353553b0d63c83f9322d60b7eb40c9b2192c040f67ae578d6e4112fcd3dee15d4430
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.16.0 (2023-01-27)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.15.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.15.0
1
+ 1.16.0
@@ -1350,7 +1350,7 @@ module Aws::FIS
1350
1350
  params: params,
1351
1351
  config: config)
1352
1352
  context[:gem_name] = 'aws-sdk-fis'
1353
- context[:gem_version] = '1.15.0'
1353
+ context[:gem_version] = '1.16.0'
1354
1354
  Seahorse::Client::Request.new(handlers, context)
1355
1355
  end
1356
1356
 
@@ -50,6 +50,9 @@ module Aws::FIS
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::FIS
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::FIS
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://fis.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://fis-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-fis.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-fis/customizations'
52
52
  # @!group service
53
53
  module Aws::FIS
54
54
 
55
- GEM_VERSION = '1.15.0'
55
+ GEM_VERSION = '1.16.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-fis
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.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