aws-sdk-ssoadmin 1.22.0 → 1.23.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: 4836d3ad4fffc40a84d863336740897b653fede7e77432faf6d3b484113b6aa7
4
- data.tar.gz: 59ff886c0c31d73fc0e35963c70fa01905af533a0cccd389a37df5274651402c
3
+ metadata.gz: ed0d840cb6a24b8ecc4a6ee9819fa6076526cf8884b5d3bd6330f9195f5381a6
4
+ data.tar.gz: bccf20e9074babafa7f692fbb5b7183335b2dd0f18dbbf0cdea13f08d94daa36
5
5
  SHA512:
6
- metadata.gz: 96eef30d1123feabe598ddcff1a06e99f514a6c58c0e716263bfa5e6e7825c039fe73ac4feddcf155d27e060c7f5c75b5c54c07d7233223d84f57b40221149a6
7
- data.tar.gz: d9aa8401876cd4e664cd556a67d3a50473a9fb0dc0b38ea28ea9ad56c03f83774c4faf1d2dbf0b31dca28b069f21b5bb50b9047a98d530f059703055ee21da3c
6
+ metadata.gz: 8009e93e833b42a5293d3b603f7e49a0265ac1d6eb26bb86dbf8c98252a058c374f9ecf55b7a1e801c4028bf04694c60e1869ed77cd83f22817da49e124ac0d8
7
+ data.tar.gz: f466f4c73a41cfe6e7c9904f61a3b9eb155c637b1c9b1f0e5404b2a62d6aae2b19338140df36e5fbb60283cad82e746725be37a8398861de70fb20bfb1db9baa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.23.0 (2023-02-02)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.22.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.22.0
1
+ 1.23.0
@@ -2090,7 +2090,7 @@ module Aws::SSOAdmin
2090
2090
  params: params,
2091
2091
  config: config)
2092
2092
  context[:gem_name] = 'aws-sdk-ssoadmin'
2093
- context[:gem_version] = '1.22.0'
2093
+ context[:gem_version] = '1.23.0'
2094
2094
  Seahorse::Client::Request.new(handlers, context)
2095
2095
  end
2096
2096
 
@@ -50,6 +50,9 @@ module Aws::SSOAdmin
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::SSOAdmin
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::SSOAdmin
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://sso.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://sso-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::SSOAdmin
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://sso.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://sso.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
53
+ end
45
54
  return Aws::Endpoints::Endpoint.new(url: "https://sso.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
55
  end
47
56
  raise ArgumentError, 'No endpoint could be resolved'
@@ -52,6 +52,6 @@ require_relative 'aws-sdk-ssoadmin/customizations'
52
52
  # @!group service
53
53
  module Aws::SSOAdmin
54
54
 
55
- GEM_VERSION = '1.22.0'
55
+ GEM_VERSION = '1.23.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-ssoadmin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.22.0
4
+ version: 1.23.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