aws-sdk-glacier 1.48.0 → 1.49.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: 27911af528b42a19642b8db741b485a347b892c5d381724ec60765c727245d2f
4
- data.tar.gz: 60253bfbadb101937d981c19c5b5e9a07d6947f2c1d2abef3ff880ae16b52806
3
+ metadata.gz: 6ab58da9fd3a8c152fc05c5e076915377293d0f1ba172dd7b8f8f84f8b7fcb54
4
+ data.tar.gz: fb141fbf038f34a359cf59c7e311be5424adb75f6764d8b33a5863dc6cdc00c0
5
5
  SHA512:
6
- metadata.gz: ebe885310d44386fabe6bed904f2f4490dfcc0295985af9c99ef3dbfa9fcd2e9005bdba61dd345f868a278501e57638a3fc1ca3a21fdef9eb0e64e35dc5c49c4
7
- data.tar.gz: d0f120c763aa5137dbeeccadf2d93265f481d3fd48655d9d2896f4c11841e3523fbdb1bfbc054ed1f347678da6106895ac7d1930c26c804222b26f05413c505b
6
+ metadata.gz: ded37f5d93a263a8538113e319747f2286b886051f3819d73e4704ec74276d5f97488badda951380d642e95b2a605ca5b9d91660a7fdf0a9ae3c95bd87f6c5fc
7
+ data.tar.gz: 3b0e26c9605420dc6b89f31795d1306499627612426f4aa4fcf3c0e7ed67ae24eb4ea20b1d30c999486d0978062e9a334dccc758602a5684ea75cd0942ba8afa
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.49.0 (2023-01-27)
5
+ ------------------
6
+
7
+ * Feature - Enabled FIPS endpoints for GovCloud (US) regions in SDK.
8
+
4
9
  1.48.0 (2023-01-18)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.48.0
1
+ 1.49.0
@@ -3419,7 +3419,7 @@ module Aws::Glacier
3419
3419
  params: params,
3420
3420
  config: config)
3421
3421
  context[:gem_name] = 'aws-sdk-glacier'
3422
- context[:gem_version] = '1.48.0'
3422
+ context[:gem_version] = '1.49.0'
3423
3423
  Seahorse::Client::Request.new(handlers, context)
3424
3424
  end
3425
3425
 
@@ -50,6 +50,9 @@ module Aws::Glacier
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::Glacier
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::Glacier
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://glacier.#{region}.amazonaws.com", headers: {}, properties: {})
37
+ end
35
38
  return Aws::Endpoints::Endpoint.new(url: "https://glacier-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::Glacier
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://glacier.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://glacier.us-gov-west-1.amazonaws.com", headers: {}, properties: {})
53
+ end
45
54
  return Aws::Endpoints::Endpoint.new(url: "https://glacier.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
46
55
  end
47
56
  raise ArgumentError, 'No endpoint could be resolved'
@@ -59,6 +59,6 @@ require_relative 'aws-sdk-glacier/customizations'
59
59
  # @!group service
60
60
  module Aws::Glacier
61
61
 
62
- GEM_VERSION = '1.48.0'
62
+ GEM_VERSION = '1.49.0'
63
63
 
64
64
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-glacier
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.48.0
4
+ version: 1.49.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