aws-sdk-cloudformation 1.74.0 → 1.75.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: b9560301ad4377df5f84198053d86546b1cb7c43da7da179be085eea9b4c1fc2
4
- data.tar.gz: dfcee5aa4910776345105e330204fe41e0b6fcdc0cdbbef7e5b2039cc0d8c1b3
3
+ metadata.gz: bbfe8d004d3bb7ac54c587a14d56ee5b972a42a45f127205b6a656201ae77226
4
+ data.tar.gz: dadd921b5cd464943d7abf519a41351b574bbc041c14a8f72f8f9dffab397441
5
5
  SHA512:
6
- metadata.gz: 7aac0c5531506003aba9c43491e939060a8224142500edaf70f5c2b59ec475a1bb2e57b4fc4e33835d20854c0298047fcca425850a264878c5b293665fbb847b
7
- data.tar.gz: a301594ea5f84ead32a439496ef8be803f8c3c9e2c1a10d1528f4451983b994b6daa462f27a203120a31d7e1cbe5712f4db66fdbedd62dd0ed1fd19b08d35453
6
+ metadata.gz: 35c0b54a6ddbe4898dc498f1d646f3a53c32df8d051df57950fed5ba8fdb167355e902b0d9fe1c60c99a8dfefe66df77a230b9267d92eb9d09f35b4aafcb96ec
7
+ data.tar.gz: b8fa639d0162efe9d330385ec92b19230f55cf5e2addf9decc7cfca44fc82a0c0bd7c2f18ededffb9fe7e18f75f334d31d4c846b9ed8b70c015037b375eab258
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.75.0 (2023-01-25)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS aws-us-gov endpoints in SDK.
8
+
4
9
  1.74.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.74.0
1
+ 1.75.0
@@ -6823,7 +6823,7 @@ module Aws::CloudFormation
6823
6823
  params: params,
6824
6824
  config: config)
6825
6825
  context[:gem_name] = 'aws-sdk-cloudformation'
6826
- context[:gem_version] = '1.74.0'
6826
+ context[:gem_version] = '1.75.0'
6827
6827
  Seahorse::Client::Request.new(handlers, context)
6828
6828
  end
6829
6829
 
@@ -50,6 +50,9 @@ module Aws::CloudFormation
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::CloudFormation
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::CloudFormation
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://cloudformation.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://cloudformation-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::CloudFormation
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://cloudformation.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://cloudformation.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
53
+ end
45
54
  return Aws::Endpoints::Endpoint.new(url: "https://cloudformation.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
55
  end
47
56
  raise ArgumentError, 'No endpoint could be resolved'
@@ -57,6 +57,6 @@ require_relative 'aws-sdk-cloudformation/customizations'
57
57
  # @!group service
58
58
  module Aws::CloudFormation
59
59
 
60
- GEM_VERSION = '1.74.0'
60
+ GEM_VERSION = '1.75.0'
61
61
 
62
62
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloudformation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.74.0
4
+ version: 1.75.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-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core