aws-sdk-serverlessapplicationrepository 1.45.0 → 1.46.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: af85466afd7b9e5499dbd8a50627cbabfc64d5a27a31b81c9459efa4aa3082f5
4
- data.tar.gz: a85246a4e9632c0aefbef0be46c2ff42ace2a6f569c10f61b2b4a74cbd01c77a
3
+ metadata.gz: f9076a1abfbdfcde37bc6b209eab15b8820686c6bab46319762b33bed0e76cde
4
+ data.tar.gz: 91cd45b9b4f2e7588160fb9ae5e79caaabd70d2d964c9f77446764d197f813ec
5
5
  SHA512:
6
- metadata.gz: fa5ede974ef4ed0a5387fa2675e264ce9efd31d5a0b8e0c1172627668383c86e5aa1f424f93c1a167b298bf85a6833a3746f427679553d4b408d1f2100fb5a7a
7
- data.tar.gz: fed6b049ebea971d319e2a1550f40b2f4ac50f7ce071a5c2e3fb26f3416f2afdc472a34b562e63c89da9e6c753456da5cfef358a5df9c3bf5e3cc764db2684cc
6
+ metadata.gz: 73e936b82583ce08f10d004553e3f75673f39da8d66f19d8c342e0421f930491250cc96dc77afc3fa6eb7d041b1fcc62543b708088ef9562e2938b68d177c1d1
7
+ data.tar.gz: 31886a6d872a3febd5424b7c67f1d5ef3d4a493e704894af5bc0a8cfe6ccbc28113bcbabbd0f7b79576c0e10f5f39656a241b941f86facb6081294097ac3c798
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.46.0 (2023-01-27)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.45.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.46.0
@@ -1179,7 +1179,7 @@ module Aws::ServerlessApplicationRepository
1179
1179
  params: params,
1180
1180
  config: config)
1181
1181
  context[:gem_name] = 'aws-sdk-serverlessapplicationrepository'
1182
- context[:gem_version] = '1.45.0'
1182
+ context[:gem_version] = '1.46.0'
1183
1183
  Seahorse::Client::Request.new(handlers, context)
1184
1184
  end
1185
1185
 
@@ -50,6 +50,9 @@ module Aws::ServerlessApplicationRepository
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::ServerlessApplicationRepository
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::ServerlessApplicationRepository
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://serverlessrepo.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://serverlessrepo-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::ServerlessApplicationRepository
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://serverlessrepo.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://serverlessrepo.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
53
+ end
45
54
  return Aws::Endpoints::Endpoint.new(url: "https://serverlessrepo.#{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-serverlessapplicationrepository/customizations'
52
52
  # @!group service
53
53
  module Aws::ServerlessApplicationRepository
54
54
 
55
- GEM_VERSION = '1.45.0'
55
+ GEM_VERSION = '1.46.0'
56
56
 
57
57
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-serverlessapplicationrepository
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.45.0
4
+ version: 1.46.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