aws-sdk-s3control 1.23.0 → 1.28.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-s3control
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.23.0
4
+ version: 1.28.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: 2020-09-15 00:00:00.000000000 Z
11
+ date: 2021-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '3'
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 3.99.0
36
+ version: 3.112.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3'
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 3.99.0
46
+ version: 3.112.0
47
47
  description: Official AWS Ruby gem for AWS S3 Control. This gem is part of the AWS
48
48
  SDK for Ruby.
49
49
  email:
@@ -53,14 +53,16 @@ extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
55
  - lib/aws-sdk-s3control.rb
56
+ - lib/aws-sdk-s3control/arn/outpost_access_point_arn.rb
57
+ - lib/aws-sdk-s3control/arn/outpost_bucket_arn.rb
56
58
  - lib/aws-sdk-s3control/client.rb
57
59
  - lib/aws-sdk-s3control/client_api.rb
58
60
  - lib/aws-sdk-s3control/customizations.rb
59
61
  - lib/aws-sdk-s3control/errors.rb
62
+ - lib/aws-sdk-s3control/plugins/arn.rb
60
63
  - lib/aws-sdk-s3control/plugins/dualstack.rb
61
- - lib/aws-sdk-s3control/plugins/s3_control_dns.rb
64
+ - lib/aws-sdk-s3control/plugins/s3_control_signer.rb
62
65
  - lib/aws-sdk-s3control/plugins/s3_host_id.rb
63
- - lib/aws-sdk-s3control/plugins/s3_signer.rb
64
66
  - lib/aws-sdk-s3control/resource.rb
65
67
  - lib/aws-sdk-s3control/types.rb
66
68
  homepage: https://github.com/aws/aws-sdk-ruby
@@ -1,29 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Aws
4
- module S3Control
5
- module Plugins
6
- class S3ControlDns < Seahorse::Client::Plugin
7
- def add_handlers(handlers, config)
8
- handlers.add(Handler, step: :build, priority: 1)
9
- end
10
-
11
- class Handler < Seahorse::Client::Handler
12
- def call(context)
13
- if context.operation.endpoint_pattern.nil?
14
- move_account_id_to_subdomain(context)
15
- end
16
- @handler.call(context)
17
- end
18
-
19
- private
20
- def move_account_id_to_subdomain(context)
21
- account_id = context.params[:account_id]
22
- endpoint = context.http_request.endpoint
23
- endpoint.host = "#{account_id}.#{endpoint.host}"
24
- end
25
- end
26
- end
27
- end
28
- end
29
- end
@@ -1,87 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'aws-sigv4'
4
-
5
- module Aws
6
- module S3Control
7
- module Plugins
8
- # This plugin is an implementation detail and may be modified.
9
- # @api private
10
- class S3Signer < Seahorse::Client::Plugin
11
-
12
- option(:sigv4_signer) do |cfg|
13
- S3Signer.build_v4_signer(
14
- region: cfg.sigv4_region,
15
- credentials: cfg.credentials
16
- )
17
- end
18
-
19
- option(:sigv4_region) do |cfg|
20
- raise Aws::Errors::MissingRegionError if cfg.region.nil?
21
-
22
- Aws::Partitions::EndpointProvider.signing_region(cfg.region, 's3')
23
- end
24
-
25
- def add_handlers(handlers, cfg)
26
- handlers.add(V4Handler, step: :sign)
27
- end
28
-
29
- class V4Handler < Seahorse::Client::Handler
30
-
31
- def call(context)
32
- Aws::Plugins::SignatureV4.apply_signature(
33
- context: context,
34
- signer: sigv4_signer(context)
35
- )
36
- @handler.call(context)
37
- end
38
-
39
- private
40
-
41
- def sigv4_signer(context)
42
- # If the client was configured with the wrong region,
43
- # we have to build a new signer.
44
- if
45
- context[:cached_sigv4_region] &&
46
- context[:cached_sigv4_region] != context.config.sigv4_signer.region
47
- then
48
- S3Signer.build_v4_signer(
49
- region: context[:cached_sigv4_region],
50
- credentials: context.config.credentials
51
- )
52
- else
53
- context.config.sigv4_signer
54
- end
55
- end
56
- end
57
-
58
- class << self
59
-
60
- # @option options [required, String] :region
61
- # @option options [required, #credentials] :credentials
62
- # @api private
63
- def build_v4_signer(options = {})
64
- Aws::Sigv4::Signer.new({
65
- service: 's3',
66
- region: options[:region],
67
- credentials_provider: options[:credentials],
68
- uri_escape_path: false,
69
- unsigned_headers: ['content-length', 'x-amzn-trace-id'],
70
- })
71
- end
72
-
73
- def new_hostname(context, region)
74
- bucket = context.params[:bucket]
75
- if region == 'us-east-1'
76
- "#{bucket}.s3.amazonaws.com"
77
- else
78
- endpoint = Aws::Partitions::EndpointProvider.resolve(region, 's3')
79
- bucket + '.' + URI.parse(endpoint).host
80
- end
81
- end
82
-
83
- end
84
- end
85
- end
86
- end
87
- end