aws-sdk-s3 1.87.0 → 1.143.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +1106 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-s3/bucket.rb +605 -114
- data/lib/aws-sdk-s3/bucket_acl.rb +36 -11
- data/lib/aws-sdk-s3/bucket_cors.rb +40 -15
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +42 -15
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +43 -13
- data/lib/aws-sdk-s3/bucket_logging.rb +40 -11
- data/lib/aws-sdk-s3/bucket_notification.rb +30 -12
- data/lib/aws-sdk-s3/bucket_policy.rb +82 -13
- data/lib/aws-sdk-s3/bucket_request_payment.rb +35 -13
- data/lib/aws-sdk-s3/bucket_tagging.rb +38 -13
- data/lib/aws-sdk-s3/bucket_versioning.rb +82 -21
- data/lib/aws-sdk-s3/bucket_website.rb +38 -13
- data/lib/aws-sdk-s3/client.rb +8666 -3425
- data/lib/aws-sdk-s3/client_api.rb +774 -225
- data/lib/aws-sdk-s3/customizations/bucket.rb +31 -50
- data/lib/aws-sdk-s3/customizations/errors.rb +27 -0
- data/lib/aws-sdk-s3/customizations/object.rb +211 -37
- data/lib/aws-sdk-s3/customizations/types/permanent_redirect.rb +26 -0
- data/lib/aws-sdk-s3/customizations.rb +7 -0
- data/lib/aws-sdk-s3/encryption/client.rb +7 -3
- data/lib/aws-sdk-s3/encryption/decrypt_handler.rb +0 -4
- data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +13 -9
- data/lib/aws-sdk-s3/encryptionV2/client.rb +7 -3
- data/lib/aws-sdk-s3/encryptionV2/decrypt_handler.rb +1 -4
- data/lib/aws-sdk-s3/encryptionV2/default_cipher_provider.rb +3 -3
- data/lib/aws-sdk-s3/encryptionV2/encrypt_handler.rb +0 -4
- data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +10 -6
- data/lib/aws-sdk-s3/endpoint_parameters.rb +178 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +591 -0
- data/lib/aws-sdk-s3/endpoints.rb +2590 -0
- data/lib/aws-sdk-s3/errors.rb +1 -1
- data/lib/aws-sdk-s3/event_streams.rb +1 -1
- data/lib/aws-sdk-s3/express_credentials.rb +55 -0
- data/lib/aws-sdk-s3/express_credentials_cache.rb +30 -0
- data/lib/aws-sdk-s3/express_credentials_provider.rb +36 -0
- data/lib/aws-sdk-s3/file_downloader.rb +171 -41
- data/lib/aws-sdk-s3/file_uploader.rb +14 -7
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +26 -8
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +41 -14
- data/lib/aws-sdk-s3/multipart_upload.rb +198 -23
- data/lib/aws-sdk-s3/multipart_upload_part.rb +285 -34
- data/lib/aws-sdk-s3/object.rb +1824 -266
- data/lib/aws-sdk-s3/object_acl.rb +58 -19
- data/lib/aws-sdk-s3/object_copier.rb +7 -5
- data/lib/aws-sdk-s3/object_multipart_copier.rb +41 -19
- data/lib/aws-sdk-s3/object_summary.rb +1579 -299
- data/lib/aws-sdk-s3/object_version.rb +372 -64
- data/lib/aws-sdk-s3/plugins/accelerate.rb +1 -39
- data/lib/aws-sdk-s3/plugins/arn.rb +25 -142
- data/lib/aws-sdk-s3/plugins/bucket_dns.rb +3 -39
- data/lib/aws-sdk-s3/plugins/bucket_name_restrictions.rb +1 -6
- data/lib/aws-sdk-s3/plugins/dualstack.rb +2 -49
- data/lib/aws-sdk-s3/plugins/endpoints.rb +274 -0
- data/lib/aws-sdk-s3/plugins/expect_100_continue.rb +3 -1
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +91 -0
- data/lib/aws-sdk-s3/plugins/get_bucket_location_fix.rb +1 -1
- data/lib/aws-sdk-s3/plugins/iad_regional_endpoint.rb +8 -31
- data/lib/aws-sdk-s3/plugins/location_constraint.rb +3 -1
- data/lib/aws-sdk-s3/plugins/md5s.rb +6 -3
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +35 -102
- data/lib/aws-sdk-s3/plugins/skip_whole_multipart_get_checksums.rb +31 -0
- data/lib/aws-sdk-s3/plugins/streaming_retry.rb +23 -2
- data/lib/aws-sdk-s3/presigned_post.rb +99 -78
- data/lib/aws-sdk-s3/presigner.rb +43 -51
- data/lib/aws-sdk-s3/resource.rb +102 -6
- data/lib/aws-sdk-s3/types.rb +7404 -5114
- data/lib/aws-sdk-s3/waiters.rb +1 -1
- data/lib/aws-sdk-s3.rb +6 -2
- data/sig/bucket.rbs +212 -0
- data/sig/bucket_acl.rbs +78 -0
- data/sig/bucket_cors.rbs +69 -0
- data/sig/bucket_lifecycle.rbs +88 -0
- data/sig/bucket_lifecycle_configuration.rbs +111 -0
- data/sig/bucket_logging.rbs +76 -0
- data/sig/bucket_notification.rbs +114 -0
- data/sig/bucket_policy.rbs +59 -0
- data/sig/bucket_request_payment.rbs +54 -0
- data/sig/bucket_tagging.rbs +65 -0
- data/sig/bucket_versioning.rbs +77 -0
- data/sig/bucket_website.rbs +93 -0
- data/sig/client.rbs +2360 -0
- data/sig/errors.rbs +34 -0
- data/sig/multipart_upload.rbs +110 -0
- data/sig/multipart_upload_part.rbs +105 -0
- data/sig/object.rbs +436 -0
- data/sig/object_acl.rbs +86 -0
- data/sig/object_summary.rbs +334 -0
- data/sig/object_version.rbs +131 -0
- data/sig/resource.rbs +124 -0
- data/sig/types.rbs +2562 -0
- data/sig/waiters.rbs +83 -0
- metadata +51 -17
- data/lib/aws-sdk-s3/arn/access_point_arn.rb +0 -62
- data/lib/aws-sdk-s3/arn/outpost_access_point_arn.rb +0 -71
data/lib/aws-sdk-s3/waiters.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
data/lib/aws-sdk-s3.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# WARNING ABOUT GENERATED CODE
|
4
4
|
#
|
5
5
|
# This file is generated. See the contributing guide for more information:
|
6
|
-
# https://github.com/aws/aws-sdk-ruby/blob/
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
7
7
|
#
|
8
8
|
# WARNING ABOUT GENERATED CODE
|
9
9
|
|
@@ -14,10 +14,14 @@ require 'aws-sdk-core'
|
|
14
14
|
|
15
15
|
require_relative 'aws-sdk-s3/types'
|
16
16
|
require_relative 'aws-sdk-s3/client_api'
|
17
|
+
require_relative 'aws-sdk-s3/plugins/endpoints.rb'
|
17
18
|
require_relative 'aws-sdk-s3/client'
|
18
19
|
require_relative 'aws-sdk-s3/errors'
|
19
20
|
require_relative 'aws-sdk-s3/waiters'
|
20
21
|
require_relative 'aws-sdk-s3/resource'
|
22
|
+
require_relative 'aws-sdk-s3/endpoint_parameters'
|
23
|
+
require_relative 'aws-sdk-s3/endpoint_provider'
|
24
|
+
require_relative 'aws-sdk-s3/endpoints'
|
21
25
|
require_relative 'aws-sdk-s3/bucket'
|
22
26
|
require_relative 'aws-sdk-s3/bucket_acl'
|
23
27
|
require_relative 'aws-sdk-s3/bucket_cors'
|
@@ -69,6 +73,6 @@ require_relative 'aws-sdk-s3/event_streams'
|
|
69
73
|
# @!group service
|
70
74
|
module Aws::S3
|
71
75
|
|
72
|
-
GEM_VERSION = '1.
|
76
|
+
GEM_VERSION = '1.143.0'
|
73
77
|
|
74
78
|
end
|
data/sig/bucket.rbs
ADDED
@@ -0,0 +1,212 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module S3
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html
|
11
|
+
class Bucket
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#initialize-instance_method
|
13
|
+
def initialize: (String name, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (name: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#name-instance_method
|
18
|
+
def name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#creation_date-instance_method
|
21
|
+
def creation_date: () -> ::Time
|
22
|
+
|
23
|
+
def client: () -> Client
|
24
|
+
|
25
|
+
|
26
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#data-instance_method
|
27
|
+
def data: () -> Types::Bucket
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#data_loaded?-instance_method
|
30
|
+
def data_loaded?: () -> bool
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#exists?-instance_method
|
33
|
+
def exists?: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) -> bool
|
34
|
+
| (?Hash[Symbol, untyped]) -> bool
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#wait_until_exists-instance_method
|
37
|
+
def wait_until_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Bucket
|
38
|
+
| (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Bucket
|
39
|
+
|
40
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#wait_until_not_exists-instance_method
|
41
|
+
def wait_until_not_exists: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) ?{ (untyped waiter) -> void } -> Bucket
|
42
|
+
| (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Bucket
|
43
|
+
|
44
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#create-instance_method
|
45
|
+
def create: (
|
46
|
+
?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read"),
|
47
|
+
?create_bucket_configuration: {
|
48
|
+
location_constraint: ("af-south-1" | "ap-east-1" | "ap-northeast-1" | "ap-northeast-2" | "ap-northeast-3" | "ap-south-1" | "ap-south-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-southeast-3" | "ca-central-1" | "cn-north-1" | "cn-northwest-1" | "EU" | "eu-central-1" | "eu-north-1" | "eu-south-1" | "eu-south-2" | "eu-west-1" | "eu-west-2" | "eu-west-3" | "me-south-1" | "sa-east-1" | "us-east-2" | "us-gov-east-1" | "us-gov-west-1" | "us-west-1" | "us-west-2")?,
|
49
|
+
location: {
|
50
|
+
type: ("AvailabilityZone")?,
|
51
|
+
name: ::String?
|
52
|
+
}?,
|
53
|
+
bucket: {
|
54
|
+
data_redundancy: ("SingleAvailabilityZone")?,
|
55
|
+
type: ("Directory")?
|
56
|
+
}?
|
57
|
+
},
|
58
|
+
?grant_full_control: ::String,
|
59
|
+
?grant_read: ::String,
|
60
|
+
?grant_read_acp: ::String,
|
61
|
+
?grant_write: ::String,
|
62
|
+
?grant_write_acp: ::String,
|
63
|
+
?object_lock_enabled_for_bucket: bool,
|
64
|
+
?object_ownership: ("BucketOwnerPreferred" | "ObjectWriter" | "BucketOwnerEnforced")
|
65
|
+
) -> Types::CreateBucketOutput
|
66
|
+
| (?Hash[Symbol, untyped]) -> Types::CreateBucketOutput
|
67
|
+
|
68
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#delete-instance_method
|
69
|
+
def delete: (
|
70
|
+
?expected_bucket_owner: ::String
|
71
|
+
) -> ::Aws::EmptyStructure
|
72
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
73
|
+
|
74
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#delete_objects-instance_method
|
75
|
+
def delete_objects: (
|
76
|
+
delete: {
|
77
|
+
objects: Array[
|
78
|
+
{
|
79
|
+
key: ::String,
|
80
|
+
version_id: ::String?
|
81
|
+
},
|
82
|
+
],
|
83
|
+
quiet: bool?
|
84
|
+
},
|
85
|
+
?mfa: ::String,
|
86
|
+
?request_payer: ("requester"),
|
87
|
+
?bypass_governance_retention: bool,
|
88
|
+
?expected_bucket_owner: ::String,
|
89
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
|
90
|
+
) -> Types::DeleteObjectsOutput
|
91
|
+
| (?Hash[Symbol, untyped]) -> Types::DeleteObjectsOutput
|
92
|
+
|
93
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#put_object-instance_method
|
94
|
+
def put_object: (
|
95
|
+
?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control"),
|
96
|
+
?body: ::String | ::StringIO | ::File,
|
97
|
+
?cache_control: ::String,
|
98
|
+
?content_disposition: ::String,
|
99
|
+
?content_encoding: ::String,
|
100
|
+
?content_language: ::String,
|
101
|
+
?content_length: ::Integer,
|
102
|
+
?content_md5: ::String,
|
103
|
+
?content_type: ::String,
|
104
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
105
|
+
?checksum_crc32: ::String,
|
106
|
+
?checksum_crc32c: ::String,
|
107
|
+
?checksum_sha1: ::String,
|
108
|
+
?checksum_sha256: ::String,
|
109
|
+
?expires: ::Time,
|
110
|
+
?grant_full_control: ::String,
|
111
|
+
?grant_read: ::String,
|
112
|
+
?grant_read_acp: ::String,
|
113
|
+
?grant_write_acp: ::String,
|
114
|
+
key: ::String,
|
115
|
+
?metadata: Hash[::String, ::String],
|
116
|
+
?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
|
117
|
+
?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE"),
|
118
|
+
?website_redirect_location: ::String,
|
119
|
+
?sse_customer_algorithm: ::String,
|
120
|
+
?sse_customer_key: ::String,
|
121
|
+
?sse_customer_key_md5: ::String,
|
122
|
+
?ssekms_key_id: ::String,
|
123
|
+
?ssekms_encryption_context: ::String,
|
124
|
+
?bucket_key_enabled: bool,
|
125
|
+
?request_payer: ("requester"),
|
126
|
+
?tagging: ::String,
|
127
|
+
?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
|
128
|
+
?object_lock_retain_until_date: ::Time,
|
129
|
+
?object_lock_legal_hold_status: ("ON" | "OFF"),
|
130
|
+
?expected_bucket_owner: ::String
|
131
|
+
) -> Object
|
132
|
+
| (?Hash[Symbol, untyped]) -> Object
|
133
|
+
|
134
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#acl-instance_method
|
135
|
+
def acl: () -> BucketAcl
|
136
|
+
|
137
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#cors-instance_method
|
138
|
+
def cors: () -> BucketCors
|
139
|
+
|
140
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#lifecycle-instance_method
|
141
|
+
def lifecycle: () -> BucketLifecycle
|
142
|
+
|
143
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#lifecycle_configuration-instance_method
|
144
|
+
def lifecycle_configuration: () -> BucketLifecycleConfiguration
|
145
|
+
|
146
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#logging-instance_method
|
147
|
+
def logging: () -> BucketLogging
|
148
|
+
|
149
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#multipart_uploads-instance_method
|
150
|
+
def multipart_uploads: (
|
151
|
+
?delimiter: ::String,
|
152
|
+
?encoding_type: ("url"),
|
153
|
+
?key_marker: ::String,
|
154
|
+
?prefix: ::String,
|
155
|
+
?upload_id_marker: ::String,
|
156
|
+
?expected_bucket_owner: ::String,
|
157
|
+
?request_payer: ("requester")
|
158
|
+
) -> MultipartUpload::Collection
|
159
|
+
| (?Hash[Symbol, untyped]) -> MultipartUpload::Collection
|
160
|
+
|
161
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#notification-instance_method
|
162
|
+
def notification: () -> BucketNotification
|
163
|
+
|
164
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#object-instance_method
|
165
|
+
def object: (String key) -> Object
|
166
|
+
|
167
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#object_versions-instance_method
|
168
|
+
def object_versions: (
|
169
|
+
?delimiter: ::String,
|
170
|
+
?encoding_type: ("url"),
|
171
|
+
?key_marker: ::String,
|
172
|
+
?prefix: ::String,
|
173
|
+
?version_id_marker: ::String,
|
174
|
+
?expected_bucket_owner: ::String,
|
175
|
+
?request_payer: ("requester"),
|
176
|
+
?optional_object_attributes: Array[("RestoreStatus")]
|
177
|
+
) -> ObjectVersion::Collection
|
178
|
+
| (?Hash[Symbol, untyped]) -> ObjectVersion::Collection
|
179
|
+
|
180
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#objects-instance_method
|
181
|
+
def objects: (
|
182
|
+
?delimiter: ::String,
|
183
|
+
?encoding_type: ("url"),
|
184
|
+
?prefix: ::String,
|
185
|
+
?fetch_owner: bool,
|
186
|
+
?start_after: ::String,
|
187
|
+
?request_payer: ("requester"),
|
188
|
+
?expected_bucket_owner: ::String,
|
189
|
+
?optional_object_attributes: Array[("RestoreStatus")]
|
190
|
+
) -> ObjectSummary::Collection
|
191
|
+
| (?Hash[Symbol, untyped]) -> ObjectSummary::Collection
|
192
|
+
|
193
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#policy-instance_method
|
194
|
+
def policy: () -> BucketPolicy
|
195
|
+
|
196
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#request_payment-instance_method
|
197
|
+
def request_payment: () -> BucketRequestPayment
|
198
|
+
|
199
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#tagging-instance_method
|
200
|
+
def tagging: () -> BucketTagging
|
201
|
+
|
202
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#versioning-instance_method
|
203
|
+
def versioning: () -> BucketVersioning
|
204
|
+
|
205
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#website-instance_method
|
206
|
+
def website: () -> BucketWebsite
|
207
|
+
|
208
|
+
class Collection < ::Aws::Resources::Collection[Bucket]
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
data/sig/bucket_acl.rbs
ADDED
@@ -0,0 +1,78 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module S3
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html
|
11
|
+
class BucketAcl
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#initialize-instance_method
|
13
|
+
def initialize: (String bucket_name, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (bucket_name: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#owner-instance_method
|
21
|
+
def owner: () -> Types::Owner
|
22
|
+
|
23
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#grants-instance_method
|
24
|
+
def grants: () -> ::Array[Types::Grant]
|
25
|
+
|
26
|
+
def client: () -> Client
|
27
|
+
|
28
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#load-instance_method
|
29
|
+
def load: () -> self
|
30
|
+
alias reload load
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#data-instance_method
|
33
|
+
def data: () -> Types::GetBucketAclOutput
|
34
|
+
|
35
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#data_loaded?-instance_method
|
36
|
+
def data_loaded?: () -> bool
|
37
|
+
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#put-instance_method
|
40
|
+
def put: (
|
41
|
+
?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read"),
|
42
|
+
?access_control_policy: {
|
43
|
+
grants: Array[
|
44
|
+
{
|
45
|
+
grantee: {
|
46
|
+
display_name: ::String?,
|
47
|
+
email_address: ::String?,
|
48
|
+
id: ::String?,
|
49
|
+
type: ("CanonicalUser" | "AmazonCustomerByEmail" | "Group"),
|
50
|
+
uri: ::String?
|
51
|
+
}?,
|
52
|
+
permission: ("FULL_CONTROL" | "WRITE" | "WRITE_ACP" | "READ" | "READ_ACP")?
|
53
|
+
},
|
54
|
+
]?,
|
55
|
+
owner: {
|
56
|
+
display_name: ::String?,
|
57
|
+
id: ::String?
|
58
|
+
}?
|
59
|
+
},
|
60
|
+
?content_md5: ::String,
|
61
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
62
|
+
?grant_full_control: ::String,
|
63
|
+
?grant_read: ::String,
|
64
|
+
?grant_read_acp: ::String,
|
65
|
+
?grant_write: ::String,
|
66
|
+
?grant_write_acp: ::String,
|
67
|
+
?expected_bucket_owner: ::String
|
68
|
+
) -> ::Aws::EmptyStructure
|
69
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
70
|
+
|
71
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketAcl.html#bucket-instance_method
|
72
|
+
def bucket: () -> Bucket
|
73
|
+
|
74
|
+
class Collection < ::Aws::Resources::Collection[BucketAcl]
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
data/sig/bucket_cors.rbs
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module S3
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html
|
11
|
+
class BucketCors
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#initialize-instance_method
|
13
|
+
def initialize: (String bucket_name, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (bucket_name: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#cors_rules-instance_method
|
21
|
+
def cors_rules: () -> ::Array[Types::CORSRule]
|
22
|
+
|
23
|
+
def client: () -> Client
|
24
|
+
|
25
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#load-instance_method
|
26
|
+
def load: () -> self
|
27
|
+
alias reload load
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#data-instance_method
|
30
|
+
def data: () -> Types::GetBucketCorsOutput
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#data_loaded?-instance_method
|
33
|
+
def data_loaded?: () -> bool
|
34
|
+
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#delete-instance_method
|
37
|
+
def delete: (
|
38
|
+
?expected_bucket_owner: ::String
|
39
|
+
) -> ::Aws::EmptyStructure
|
40
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#put-instance_method
|
43
|
+
def put: (
|
44
|
+
cors_configuration: {
|
45
|
+
cors_rules: Array[
|
46
|
+
{
|
47
|
+
id: ::String?,
|
48
|
+
allowed_headers: Array[::String]?,
|
49
|
+
allowed_methods: Array[::String],
|
50
|
+
allowed_origins: Array[::String],
|
51
|
+
expose_headers: Array[::String]?,
|
52
|
+
max_age_seconds: ::Integer?
|
53
|
+
},
|
54
|
+
]
|
55
|
+
},
|
56
|
+
?content_md5: ::String,
|
57
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
58
|
+
?expected_bucket_owner: ::String
|
59
|
+
) -> ::Aws::EmptyStructure
|
60
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
61
|
+
|
62
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketCors.html#bucket-instance_method
|
63
|
+
def bucket: () -> Bucket
|
64
|
+
|
65
|
+
class Collection < ::Aws::Resources::Collection[BucketCors]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module S3
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html
|
11
|
+
class BucketLifecycle
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#initialize-instance_method
|
13
|
+
def initialize: (String bucket_name, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (bucket_name: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#rules-instance_method
|
21
|
+
def rules: () -> ::Array[Types::Rule]
|
22
|
+
|
23
|
+
def client: () -> Client
|
24
|
+
|
25
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#load-instance_method
|
26
|
+
def load: () -> self
|
27
|
+
alias reload load
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#data-instance_method
|
30
|
+
def data: () -> Types::GetBucketLifecycleOutput
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#data_loaded?-instance_method
|
33
|
+
def data_loaded?: () -> bool
|
34
|
+
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#delete-instance_method
|
37
|
+
def delete: (
|
38
|
+
?expected_bucket_owner: ::String
|
39
|
+
) -> ::Aws::EmptyStructure
|
40
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#put-instance_method
|
43
|
+
def put: (
|
44
|
+
?content_md5: ::String,
|
45
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
46
|
+
?lifecycle_configuration: {
|
47
|
+
rules: Array[
|
48
|
+
{
|
49
|
+
expiration: {
|
50
|
+
date: ::Time?,
|
51
|
+
days: ::Integer?,
|
52
|
+
expired_object_delete_marker: bool?
|
53
|
+
}?,
|
54
|
+
id: ::String?,
|
55
|
+
prefix: ::String,
|
56
|
+
status: ("Enabled" | "Disabled"),
|
57
|
+
transition: {
|
58
|
+
date: ::Time?,
|
59
|
+
days: ::Integer?,
|
60
|
+
storage_class: ("GLACIER" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "DEEP_ARCHIVE" | "GLACIER_IR")?
|
61
|
+
}?,
|
62
|
+
noncurrent_version_transition: {
|
63
|
+
noncurrent_days: ::Integer?,
|
64
|
+
storage_class: ("GLACIER" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "DEEP_ARCHIVE" | "GLACIER_IR")?,
|
65
|
+
newer_noncurrent_versions: ::Integer?
|
66
|
+
}?,
|
67
|
+
noncurrent_version_expiration: {
|
68
|
+
noncurrent_days: ::Integer?,
|
69
|
+
newer_noncurrent_versions: ::Integer?
|
70
|
+
}?,
|
71
|
+
abort_incomplete_multipart_upload: {
|
72
|
+
days_after_initiation: ::Integer?
|
73
|
+
}?
|
74
|
+
},
|
75
|
+
]
|
76
|
+
},
|
77
|
+
?expected_bucket_owner: ::String
|
78
|
+
) -> ::Aws::EmptyStructure
|
79
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
80
|
+
|
81
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycle.html#bucket-instance_method
|
82
|
+
def bucket: () -> Bucket
|
83
|
+
|
84
|
+
class Collection < ::Aws::Resources::Collection[BucketLifecycle]
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# WARNING ABOUT GENERATED CODE
|
2
|
+
#
|
3
|
+
# This file is generated. See the contributing guide for more information:
|
4
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
5
|
+
#
|
6
|
+
# WARNING ABOUT GENERATED CODE
|
7
|
+
|
8
|
+
module Aws
|
9
|
+
module S3
|
10
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html
|
11
|
+
class BucketLifecycleConfiguration
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#initialize-instance_method
|
13
|
+
def initialize: (String bucket_name, Hash[Symbol, untyped] options) -> void
|
14
|
+
| (bucket_name: String, ?client: Client) -> void
|
15
|
+
| (Hash[Symbol, untyped] args) -> void
|
16
|
+
|
17
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#rules-instance_method
|
21
|
+
def rules: () -> ::Array[Types::LifecycleRule]
|
22
|
+
|
23
|
+
def client: () -> Client
|
24
|
+
|
25
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#load-instance_method
|
26
|
+
def load: () -> self
|
27
|
+
alias reload load
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#data-instance_method
|
30
|
+
def data: () -> Types::GetBucketLifecycleConfigurationOutput
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#data_loaded?-instance_method
|
33
|
+
def data_loaded?: () -> bool
|
34
|
+
|
35
|
+
|
36
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#delete-instance_method
|
37
|
+
def delete: (
|
38
|
+
?expected_bucket_owner: ::String
|
39
|
+
) -> ::Aws::EmptyStructure
|
40
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
41
|
+
|
42
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#put-instance_method
|
43
|
+
def put: (
|
44
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
45
|
+
?lifecycle_configuration: {
|
46
|
+
rules: Array[
|
47
|
+
{
|
48
|
+
expiration: {
|
49
|
+
date: ::Time?,
|
50
|
+
days: ::Integer?,
|
51
|
+
expired_object_delete_marker: bool?
|
52
|
+
}?,
|
53
|
+
id: ::String?,
|
54
|
+
prefix: ::String?,
|
55
|
+
filter: {
|
56
|
+
prefix: ::String?,
|
57
|
+
tag: {
|
58
|
+
key: ::String,
|
59
|
+
value: ::String
|
60
|
+
}?,
|
61
|
+
object_size_greater_than: ::Integer?,
|
62
|
+
object_size_less_than: ::Integer?,
|
63
|
+
and: {
|
64
|
+
prefix: ::String?,
|
65
|
+
tags: Array[
|
66
|
+
{
|
67
|
+
key: ::String,
|
68
|
+
value: ::String
|
69
|
+
},
|
70
|
+
]?,
|
71
|
+
object_size_greater_than: ::Integer?,
|
72
|
+
object_size_less_than: ::Integer?
|
73
|
+
}?
|
74
|
+
}?,
|
75
|
+
status: ("Enabled" | "Disabled"),
|
76
|
+
transitions: Array[
|
77
|
+
{
|
78
|
+
date: ::Time?,
|
79
|
+
days: ::Integer?,
|
80
|
+
storage_class: ("GLACIER" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "DEEP_ARCHIVE" | "GLACIER_IR")?
|
81
|
+
},
|
82
|
+
]?,
|
83
|
+
noncurrent_version_transitions: Array[
|
84
|
+
{
|
85
|
+
noncurrent_days: ::Integer?,
|
86
|
+
storage_class: ("GLACIER" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "DEEP_ARCHIVE" | "GLACIER_IR")?,
|
87
|
+
newer_noncurrent_versions: ::Integer?
|
88
|
+
},
|
89
|
+
]?,
|
90
|
+
noncurrent_version_expiration: {
|
91
|
+
noncurrent_days: ::Integer?,
|
92
|
+
newer_noncurrent_versions: ::Integer?
|
93
|
+
}?,
|
94
|
+
abort_incomplete_multipart_upload: {
|
95
|
+
days_after_initiation: ::Integer?
|
96
|
+
}?
|
97
|
+
},
|
98
|
+
]
|
99
|
+
},
|
100
|
+
?expected_bucket_owner: ::String
|
101
|
+
) -> ::Aws::EmptyStructure
|
102
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
103
|
+
|
104
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#bucket-instance_method
|
105
|
+
def bucket: () -> Bucket
|
106
|
+
|
107
|
+
class Collection < ::Aws::Resources::Collection[BucketLifecycleConfiguration]
|
108
|
+
end
|
109
|
+
end
|
110
|
+
end
|
111
|
+
end
|