aws-sdk-s3 1.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. checksums.yaml +7 -0
  2. data/lib/aws-sdk-s3.rb +66 -0
  3. data/lib/aws-sdk-s3/bucket.rb +595 -0
  4. data/lib/aws-sdk-s3/bucket_acl.rb +168 -0
  5. data/lib/aws-sdk-s3/bucket_cors.rb +146 -0
  6. data/lib/aws-sdk-s3/bucket_lifecycle.rb +164 -0
  7. data/lib/aws-sdk-s3/bucket_logging.rb +142 -0
  8. data/lib/aws-sdk-s3/bucket_notification.rb +187 -0
  9. data/lib/aws-sdk-s3/bucket_policy.rb +138 -0
  10. data/lib/aws-sdk-s3/bucket_region_cache.rb +79 -0
  11. data/lib/aws-sdk-s3/bucket_request_payment.rb +128 -0
  12. data/lib/aws-sdk-s3/bucket_tagging.rb +143 -0
  13. data/lib/aws-sdk-s3/bucket_versioning.rb +188 -0
  14. data/lib/aws-sdk-s3/bucket_website.rb +177 -0
  15. data/lib/aws-sdk-s3/client.rb +3171 -0
  16. data/lib/aws-sdk-s3/client_api.rb +1991 -0
  17. data/lib/aws-sdk-s3/customizations.rb +29 -0
  18. data/lib/aws-sdk-s3/customizations/bucket.rb +127 -0
  19. data/lib/aws-sdk-s3/customizations/multipart_upload.rb +42 -0
  20. data/lib/aws-sdk-s3/customizations/object.rb +257 -0
  21. data/lib/aws-sdk-s3/customizations/object_summary.rb +65 -0
  22. data/lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb +11 -0
  23. data/lib/aws-sdk-s3/encryption.rb +19 -0
  24. data/lib/aws-sdk-s3/encryption/client.rb +369 -0
  25. data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +178 -0
  26. data/lib/aws-sdk-s3/encryption/default_cipher_provider.rb +63 -0
  27. data/lib/aws-sdk-s3/encryption/default_key_provider.rb +38 -0
  28. data/lib/aws-sdk-s3/encryption/encrypt_handler.rb +50 -0
  29. data/lib/aws-sdk-s3/encryption/errors.rb +13 -0
  30. data/lib/aws-sdk-s3/encryption/io_auth_decrypter.rb +50 -0
  31. data/lib/aws-sdk-s3/encryption/io_decrypter.rb +29 -0
  32. data/lib/aws-sdk-s3/encryption/io_encrypter.rb +69 -0
  33. data/lib/aws-sdk-s3/encryption/key_provider.rb +29 -0
  34. data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +71 -0
  35. data/lib/aws-sdk-s3/encryption/materials.rb +58 -0
  36. data/lib/aws-sdk-s3/encryption/utils.rb +79 -0
  37. data/lib/aws-sdk-s3/errors.rb +23 -0
  38. data/lib/aws-sdk-s3/file_part.rb +75 -0
  39. data/lib/aws-sdk-s3/file_uploader.rb +58 -0
  40. data/lib/aws-sdk-s3/legacy_signer.rb +186 -0
  41. data/lib/aws-sdk-s3/multipart_file_uploader.rb +187 -0
  42. data/lib/aws-sdk-s3/multipart_upload.rb +287 -0
  43. data/lib/aws-sdk-s3/multipart_upload_error.rb +16 -0
  44. data/lib/aws-sdk-s3/multipart_upload_part.rb +314 -0
  45. data/lib/aws-sdk-s3/object.rb +942 -0
  46. data/lib/aws-sdk-s3/object_acl.rb +214 -0
  47. data/lib/aws-sdk-s3/object_copier.rb +99 -0
  48. data/lib/aws-sdk-s3/object_multipart_copier.rb +179 -0
  49. data/lib/aws-sdk-s3/object_summary.rb +794 -0
  50. data/lib/aws-sdk-s3/object_version.rb +406 -0
  51. data/lib/aws-sdk-s3/plugins/accelerate.rb +92 -0
  52. data/lib/aws-sdk-s3/plugins/bucket_dns.rb +89 -0
  53. data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +23 -0
  54. data/lib/aws-sdk-s3/plugins/dualstack.rb +70 -0
  55. data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +29 -0
  56. data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +23 -0
  57. data/lib/aws-sdk-s3/plugins/http_200_errors.rb +47 -0
  58. data/lib/aws-sdk-s3/plugins/location_constraint.rb +33 -0
  59. data/lib/aws-sdk-s3/plugins/md5s.rb +79 -0
  60. data/lib/aws-sdk-s3/plugins/redirects.rb +41 -0
  61. data/lib/aws-sdk-s3/plugins/s3_signer.rb +208 -0
  62. data/lib/aws-sdk-s3/plugins/sse_cpk.rb +68 -0
  63. data/lib/aws-sdk-s3/plugins/url_encoded_keys.rb +94 -0
  64. data/lib/aws-sdk-s3/presigned_post.rb +647 -0
  65. data/lib/aws-sdk-s3/presigner.rb +160 -0
  66. data/lib/aws-sdk-s3/resource.rb +96 -0
  67. data/lib/aws-sdk-s3/types.rb +5750 -0
  68. data/lib/aws-sdk-s3/waiters.rb +178 -0
  69. metadata +154 -0
@@ -0,0 +1,178 @@
1
+ # WARNING ABOUT GENERATED CODE
2
+ #
3
+ # This file is generated. See the contributing for info on making contributions:
4
+ # https://github.com/aws/aws-sdk-ruby/blob/master/CONTRIBUTING.md
5
+ #
6
+ # WARNING ABOUT GENERATED CODE
7
+
8
+ require 'aws-sdk-core/waiters'
9
+
10
+ module Aws
11
+ module S3
12
+ module Waiters
13
+ class BucketExists
14
+
15
+ # @param [Hash] options
16
+ # @option options [required, Client] :client
17
+ # @option options [Integer] :max_attempts (20)
18
+ # @option options [Integer] :delay (5)
19
+ # @option options [Proc] :before_attempt
20
+ # @option options [Proc] :before_wait
21
+ def initialize(options)
22
+ @client = options.fetch(:client)
23
+ @waiter = Aws::Waiters::Waiter.new({
24
+ max_attempts: 20,
25
+ delay: 5,
26
+ poller: Aws::Waiters::Poller.new(
27
+ operation_name: :head_bucket,
28
+ acceptors: [
29
+ {
30
+ "expected" => 200,
31
+ "matcher" => "status",
32
+ "state" => "success"
33
+ },
34
+ {
35
+ "expected" => 301,
36
+ "matcher" => "status",
37
+ "state" => "success"
38
+ },
39
+ {
40
+ "expected" => 403,
41
+ "matcher" => "status",
42
+ "state" => "success"
43
+ },
44
+ {
45
+ "expected" => 404,
46
+ "matcher" => "status",
47
+ "state" => "retry"
48
+ }
49
+ ]
50
+ )
51
+ }.merge(options))
52
+ end
53
+
54
+ # @option (see Client#head_bucket)
55
+ # @return (see Client#head_bucket)
56
+ def wait(params = {})
57
+ @waiter.wait(client: @client, params: params)
58
+ end
59
+
60
+ # @api private
61
+ attr_reader :waiter
62
+
63
+ end
64
+
65
+ class BucketNotExists
66
+
67
+ # @param [Hash] options
68
+ # @option options [required, Client] :client
69
+ # @option options [Integer] :max_attempts (20)
70
+ # @option options [Integer] :delay (5)
71
+ # @option options [Proc] :before_attempt
72
+ # @option options [Proc] :before_wait
73
+ def initialize(options)
74
+ @client = options.fetch(:client)
75
+ @waiter = Aws::Waiters::Waiter.new({
76
+ max_attempts: 20,
77
+ delay: 5,
78
+ poller: Aws::Waiters::Poller.new(
79
+ operation_name: :head_bucket,
80
+ acceptors: [{
81
+ "expected" => 404,
82
+ "matcher" => "status",
83
+ "state" => "success"
84
+ }]
85
+ )
86
+ }.merge(options))
87
+ end
88
+
89
+ # @option (see Client#head_bucket)
90
+ # @return (see Client#head_bucket)
91
+ def wait(params = {})
92
+ @waiter.wait(client: @client, params: params)
93
+ end
94
+
95
+ # @api private
96
+ attr_reader :waiter
97
+
98
+ end
99
+
100
+ class ObjectExists
101
+
102
+ # @param [Hash] options
103
+ # @option options [required, Client] :client
104
+ # @option options [Integer] :max_attempts (20)
105
+ # @option options [Integer] :delay (5)
106
+ # @option options [Proc] :before_attempt
107
+ # @option options [Proc] :before_wait
108
+ def initialize(options)
109
+ @client = options.fetch(:client)
110
+ @waiter = Aws::Waiters::Waiter.new({
111
+ max_attempts: 20,
112
+ delay: 5,
113
+ poller: Aws::Waiters::Poller.new(
114
+ operation_name: :head_object,
115
+ acceptors: [
116
+ {
117
+ "expected" => 200,
118
+ "matcher" => "status",
119
+ "state" => "success"
120
+ },
121
+ {
122
+ "expected" => 404,
123
+ "matcher" => "status",
124
+ "state" => "retry"
125
+ }
126
+ ]
127
+ )
128
+ }.merge(options))
129
+ end
130
+
131
+ # @option (see Client#head_object)
132
+ # @return (see Client#head_object)
133
+ def wait(params = {})
134
+ @waiter.wait(client: @client, params: params)
135
+ end
136
+
137
+ # @api private
138
+ attr_reader :waiter
139
+
140
+ end
141
+
142
+ class ObjectNotExists
143
+
144
+ # @param [Hash] options
145
+ # @option options [required, Client] :client
146
+ # @option options [Integer] :max_attempts (20)
147
+ # @option options [Integer] :delay (5)
148
+ # @option options [Proc] :before_attempt
149
+ # @option options [Proc] :before_wait
150
+ def initialize(options)
151
+ @client = options.fetch(:client)
152
+ @waiter = Aws::Waiters::Waiter.new({
153
+ max_attempts: 20,
154
+ delay: 5,
155
+ poller: Aws::Waiters::Poller.new(
156
+ operation_name: :head_object,
157
+ acceptors: [{
158
+ "expected" => 404,
159
+ "matcher" => "status",
160
+ "state" => "success"
161
+ }]
162
+ )
163
+ }.merge(options))
164
+ end
165
+
166
+ # @option (see Client#head_object)
167
+ # @return (see Client#head_object)
168
+ def wait(params = {})
169
+ @waiter.wait(client: @client, params: params)
170
+ end
171
+
172
+ # @api private
173
+ attr_reader :waiter
174
+
175
+ end
176
+ end
177
+ end
178
+ end
metadata ADDED
@@ -0,0 +1,154 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: aws-sdk-s3
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0.rc1
5
+ platform: ruby
6
+ authors:
7
+ - Amazon Web Services
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2016-12-05 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: aws-sdk-core
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0.rc1
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0.rc1
27
+ - !ruby/object:Gem::Dependency
28
+ name: aws-sdk-kms
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '='
32
+ - !ruby/object:Gem::Version
33
+ version: 1.0.0.rc1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 1.0.0.rc1
41
+ - !ruby/object:Gem::Dependency
42
+ name: aws-sigv4
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ description: Official AWS Ruby gem for Amazon Simple Storage Service (Amazon S3).
56
+ This gem is part of the AWS SDK for Ruby.
57
+ email:
58
+ - trevrowe@amazon.com
59
+ executables: []
60
+ extensions: []
61
+ extra_rdoc_files: []
62
+ files:
63
+ - lib/aws-sdk-s3.rb
64
+ - lib/aws-sdk-s3/bucket.rb
65
+ - lib/aws-sdk-s3/bucket_acl.rb
66
+ - lib/aws-sdk-s3/bucket_cors.rb
67
+ - lib/aws-sdk-s3/bucket_lifecycle.rb
68
+ - lib/aws-sdk-s3/bucket_logging.rb
69
+ - lib/aws-sdk-s3/bucket_notification.rb
70
+ - lib/aws-sdk-s3/bucket_policy.rb
71
+ - lib/aws-sdk-s3/bucket_region_cache.rb
72
+ - lib/aws-sdk-s3/bucket_request_payment.rb
73
+ - lib/aws-sdk-s3/bucket_tagging.rb
74
+ - lib/aws-sdk-s3/bucket_versioning.rb
75
+ - lib/aws-sdk-s3/bucket_website.rb
76
+ - lib/aws-sdk-s3/client.rb
77
+ - lib/aws-sdk-s3/client_api.rb
78
+ - lib/aws-sdk-s3/customizations.rb
79
+ - lib/aws-sdk-s3/customizations/bucket.rb
80
+ - lib/aws-sdk-s3/customizations/multipart_upload.rb
81
+ - lib/aws-sdk-s3/customizations/object.rb
82
+ - lib/aws-sdk-s3/customizations/object_summary.rb
83
+ - lib/aws-sdk-s3/customizations/types/list_object_versions_output.rb
84
+ - lib/aws-sdk-s3/encryption.rb
85
+ - lib/aws-sdk-s3/encryption/client.rb
86
+ - lib/aws-sdk-s3/encryption/decrypt_handler.rb
87
+ - lib/aws-sdk-s3/encryption/default_cipher_provider.rb
88
+ - lib/aws-sdk-s3/encryption/default_key_provider.rb
89
+ - lib/aws-sdk-s3/encryption/encrypt_handler.rb
90
+ - lib/aws-sdk-s3/encryption/errors.rb
91
+ - lib/aws-sdk-s3/encryption/io_auth_decrypter.rb
92
+ - lib/aws-sdk-s3/encryption/io_decrypter.rb
93
+ - lib/aws-sdk-s3/encryption/io_encrypter.rb
94
+ - lib/aws-sdk-s3/encryption/key_provider.rb
95
+ - lib/aws-sdk-s3/encryption/kms_cipher_provider.rb
96
+ - lib/aws-sdk-s3/encryption/materials.rb
97
+ - lib/aws-sdk-s3/encryption/utils.rb
98
+ - lib/aws-sdk-s3/errors.rb
99
+ - lib/aws-sdk-s3/file_part.rb
100
+ - lib/aws-sdk-s3/file_uploader.rb
101
+ - lib/aws-sdk-s3/legacy_signer.rb
102
+ - lib/aws-sdk-s3/multipart_file_uploader.rb
103
+ - lib/aws-sdk-s3/multipart_upload.rb
104
+ - lib/aws-sdk-s3/multipart_upload_error.rb
105
+ - lib/aws-sdk-s3/multipart_upload_part.rb
106
+ - lib/aws-sdk-s3/object.rb
107
+ - lib/aws-sdk-s3/object_acl.rb
108
+ - lib/aws-sdk-s3/object_copier.rb
109
+ - lib/aws-sdk-s3/object_multipart_copier.rb
110
+ - lib/aws-sdk-s3/object_summary.rb
111
+ - lib/aws-sdk-s3/object_version.rb
112
+ - lib/aws-sdk-s3/plugins/accelerate.rb
113
+ - lib/aws-sdk-s3/plugins/bucket_dns.rb
114
+ - lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb
115
+ - lib/aws-sdk-s3/plugins/dualstack.rb
116
+ - lib/aws-sdk-s3/plugins/expect_100_continue.rb
117
+ - lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb
118
+ - lib/aws-sdk-s3/plugins/http_200_errors.rb
119
+ - lib/aws-sdk-s3/plugins/location_constraint.rb
120
+ - lib/aws-sdk-s3/plugins/md5s.rb
121
+ - lib/aws-sdk-s3/plugins/redirects.rb
122
+ - lib/aws-sdk-s3/plugins/s3_signer.rb
123
+ - lib/aws-sdk-s3/plugins/sse_cpk.rb
124
+ - lib/aws-sdk-s3/plugins/url_encoded_keys.rb
125
+ - lib/aws-sdk-s3/presigned_post.rb
126
+ - lib/aws-sdk-s3/presigner.rb
127
+ - lib/aws-sdk-s3/resource.rb
128
+ - lib/aws-sdk-s3/types.rb
129
+ - lib/aws-sdk-s3/waiters.rb
130
+ homepage: http://github.com/aws/aws-sdk-ruby
131
+ licenses:
132
+ - Apache-2.0
133
+ metadata: {}
134
+ post_install_message:
135
+ rdoc_options: []
136
+ require_paths:
137
+ - lib
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">"
146
+ - !ruby/object:Gem::Version
147
+ version: 1.3.1
148
+ requirements: []
149
+ rubyforge_project:
150
+ rubygems_version: 2.5.1
151
+ signing_key:
152
+ specification_version: 4
153
+ summary: AWS SDK for Ruby - Amazon S3
154
+ test_files: []