aws-sdk-swf 1.38.0 → 1.39.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42ec36b532e0c2bd35e14a97f5aad6adb118086c067ef5ba7006f1ae50d1a3f1
4
- data.tar.gz: 27aa686efdf83e2fc3eebc0655a2016789d26c415e2528186fb702b548b33e2d
3
+ metadata.gz: 3581f559d46718095f8a91cd7fa06f7301ffd9b48aa15e959070eb65bd2ec765
4
+ data.tar.gz: dc0de10bfbce9ea385ec394e46dfbbbf3560bab2aba1ba223bb689da8759dbf3
5
5
  SHA512:
6
- metadata.gz: 410f2edfa69bacd638bd819afe5364db07db41e9bd0f3b7c24be1691605a1b42d1f1d2e50933d2882e6e7c88a4bd570715d9782dd1d6e9665a15ba0b621a85f2
7
- data.tar.gz: f293d5a6dc60f8376a4c4f31c25d5027ee7e3cb77a1a964024f6d69a76edbeacbc044252bc6c45b0d67258bdad84d200471b4c2b72909e568b9437ef8654fd72
6
+ metadata.gz: 96f048b76e8d01fd6768d6ec2b4ee937651130413fc995813c4d04758900a2303db79d2a40f52c22c3eb1f0746e81859f9c84f8ef480d42624e4c3b783a8bcf6
7
+ data.tar.gz: df69363aef54f19809448f7852de04c750d298f738df5494666ed19a0f15620b7273230616421d41da7214749140e70caab9904cc69494f01640230d10811497
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.39.0 (2023-01-30)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.38.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.38.0
1
+ 1.39.0
@@ -4329,7 +4329,7 @@ module Aws::SWF
4329
4329
  params: params,
4330
4330
  config: config)
4331
4331
  context[:gem_name] = 'aws-sdk-swf'
4332
- context[:gem_version] = '1.38.0'
4332
+ context[:gem_version] = '1.39.0'
4333
4333
  Seahorse::Client::Request.new(handlers, context)
4334
4334
  end
4335
4335
 
@@ -50,6 +50,9 @@ module Aws::SWF
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::SWF
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::SWF
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://swf.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://swf-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::SWF
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://swf.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://swf.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
53
+ end
45
54
  return Aws::Endpoints::Endpoint.new(url: "https://swf.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
55
  end
47
56
  raise ArgumentError, 'No endpoint could be resolved'
data/lib/aws-sdk-swf.rb CHANGED
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-swf/customizations'
52
52
  # @!group service
53
53
  module Aws::SWF
54
54
 
55
- GEM_VERSION = '1.38.0'
55
+ GEM_VERSION = '1.39.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-swf
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.38.0
4
+ version: 1.39.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