aws-sdk-s3 1.136.0 → 1.176.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +250 -1
- data/VERSION +1 -1
- data/lib/aws-sdk-s3/access_grants_credentials.rb +57 -0
- data/lib/aws-sdk-s3/access_grants_credentials_provider.rb +250 -0
- data/lib/aws-sdk-s3/bucket.rb +671 -139
- data/lib/aws-sdk-s3/bucket_acl.rb +12 -12
- data/lib/aws-sdk-s3/bucket_cors.rb +16 -16
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +21 -16
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +74 -17
- data/lib/aws-sdk-s3/bucket_logging.rb +19 -12
- data/lib/aws-sdk-s3/bucket_notification.rb +6 -6
- data/lib/aws-sdk-s3/bucket_policy.rb +62 -18
- data/lib/aws-sdk-s3/bucket_region_cache.rb +9 -5
- data/lib/aws-sdk-s3/bucket_request_payment.rb +12 -12
- data/lib/aws-sdk-s3/bucket_tagging.rb +16 -16
- data/lib/aws-sdk-s3/bucket_versioning.rb +32 -32
- data/lib/aws-sdk-s3/bucket_website.rb +16 -16
- data/lib/aws-sdk-s3/client.rb +7597 -2823
- data/lib/aws-sdk-s3/client_api.rb +288 -22
- data/lib/aws-sdk-s3/customizations/bucket.rb +1 -1
- data/lib/aws-sdk-s3/customizations/errors.rb +15 -2
- data/lib/aws-sdk-s3/customizations/object.rb +11 -5
- data/lib/aws-sdk-s3/customizations/object_summary.rb +5 -0
- data/lib/aws-sdk-s3/customizations/object_version.rb +13 -0
- data/lib/aws-sdk-s3/customizations.rb +25 -31
- data/lib/aws-sdk-s3/encryption/client.rb +2 -2
- data/lib/aws-sdk-s3/encryption/kms_cipher_provider.rb +2 -2
- data/lib/aws-sdk-s3/encryptionV2/client.rb +2 -2
- data/lib/aws-sdk-s3/encryptionV2/kms_cipher_provider.rb +2 -2
- data/lib/aws-sdk-s3/endpoint_parameters.rb +53 -18
- data/lib/aws-sdk-s3/endpoint_provider.rb +125 -6
- data/lib/aws-sdk-s3/endpoints.rb +545 -1261
- data/lib/aws-sdk-s3/errors.rb +47 -0
- data/lib/aws-sdk-s3/express_credentials.rb +55 -0
- data/lib/aws-sdk-s3/express_credentials_provider.rb +59 -0
- data/lib/aws-sdk-s3/file_downloader.rb +1 -2
- data/lib/aws-sdk-s3/file_uploader.rb +1 -1
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +4 -4
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +6 -5
- data/lib/aws-sdk-s3/multipart_upload.rb +139 -36
- data/lib/aws-sdk-s3/multipart_upload_part.rb +175 -54
- data/lib/aws-sdk-s3/object.rb +1923 -313
- data/lib/aws-sdk-s3/object_acl.rb +34 -22
- data/lib/aws-sdk-s3/object_copier.rb +1 -1
- data/lib/aws-sdk-s3/object_multipart_copier.rb +10 -8
- data/lib/aws-sdk-s3/object_summary.rb +1690 -250
- data/lib/aws-sdk-s3/object_version.rb +397 -67
- data/lib/aws-sdk-s3/plugins/access_grants.rb +178 -0
- data/lib/aws-sdk-s3/plugins/endpoints.rb +32 -208
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +97 -0
- data/lib/aws-sdk-s3/plugins/http_200_errors.rb +55 -18
- data/lib/aws-sdk-s3/plugins/location_constraint.rb +3 -1
- data/lib/aws-sdk-s3/plugins/md5s.rb +2 -1
- data/lib/aws-sdk-s3/plugins/s3_signer.rb +7 -2
- data/lib/aws-sdk-s3/presigner.rb +5 -2
- data/lib/aws-sdk-s3/resource.rb +121 -22
- data/lib/aws-sdk-s3/types.rb +5960 -1526
- data/lib/aws-sdk-s3.rb +35 -31
- data/sig/bucket.rbs +221 -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 +115 -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 +2450 -0
- data/sig/customizations/bucket.rbs +19 -0
- data/sig/customizations/object.rbs +38 -0
- data/sig/customizations/object_summary.rbs +35 -0
- data/sig/errors.rbs +42 -0
- data/sig/multipart_upload.rbs +113 -0
- data/sig/multipart_upload_part.rbs +105 -0
- data/sig/object.rbs +448 -0
- data/sig/object_acl.rbs +86 -0
- data/sig/object_summary.rbs +340 -0
- data/sig/object_version.rbs +140 -0
- data/sig/resource.rbs +132 -0
- data/sig/types.rbs +2682 -0
- data/sig/waiters.rbs +95 -0
- metadata +44 -11
data/lib/aws-sdk-s3.rb
CHANGED
@@ -12,36 +12,7 @@ require 'aws-sdk-kms'
|
|
12
12
|
require 'aws-sigv4'
|
13
13
|
require 'aws-sdk-core'
|
14
14
|
|
15
|
-
|
16
|
-
require_relative 'aws-sdk-s3/client_api'
|
17
|
-
require_relative 'aws-sdk-s3/plugins/endpoints.rb'
|
18
|
-
require_relative 'aws-sdk-s3/client'
|
19
|
-
require_relative 'aws-sdk-s3/errors'
|
20
|
-
require_relative 'aws-sdk-s3/waiters'
|
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'
|
25
|
-
require_relative 'aws-sdk-s3/bucket'
|
26
|
-
require_relative 'aws-sdk-s3/bucket_acl'
|
27
|
-
require_relative 'aws-sdk-s3/bucket_cors'
|
28
|
-
require_relative 'aws-sdk-s3/bucket_lifecycle'
|
29
|
-
require_relative 'aws-sdk-s3/bucket_lifecycle_configuration'
|
30
|
-
require_relative 'aws-sdk-s3/bucket_logging'
|
31
|
-
require_relative 'aws-sdk-s3/bucket_notification'
|
32
|
-
require_relative 'aws-sdk-s3/bucket_policy'
|
33
|
-
require_relative 'aws-sdk-s3/bucket_request_payment'
|
34
|
-
require_relative 'aws-sdk-s3/bucket_tagging'
|
35
|
-
require_relative 'aws-sdk-s3/bucket_versioning'
|
36
|
-
require_relative 'aws-sdk-s3/bucket_website'
|
37
|
-
require_relative 'aws-sdk-s3/multipart_upload'
|
38
|
-
require_relative 'aws-sdk-s3/multipart_upload_part'
|
39
|
-
require_relative 'aws-sdk-s3/object'
|
40
|
-
require_relative 'aws-sdk-s3/object_acl'
|
41
|
-
require_relative 'aws-sdk-s3/object_summary'
|
42
|
-
require_relative 'aws-sdk-s3/object_version'
|
43
|
-
require_relative 'aws-sdk-s3/customizations'
|
44
|
-
require_relative 'aws-sdk-s3/event_streams'
|
15
|
+
Aws::Plugins::GlobalConfiguration.add_identifier(:s3)
|
45
16
|
|
46
17
|
# This module provides support for Amazon Simple Storage Service. This module is available in the
|
47
18
|
# `aws-sdk-s3` gem.
|
@@ -72,7 +43,40 @@ require_relative 'aws-sdk-s3/event_streams'
|
|
72
43
|
#
|
73
44
|
# @!group service
|
74
45
|
module Aws::S3
|
46
|
+
autoload :Types, 'aws-sdk-s3/types'
|
47
|
+
autoload :ClientApi, 'aws-sdk-s3/client_api'
|
48
|
+
module Plugins
|
49
|
+
autoload :Endpoints, 'aws-sdk-s3/plugins/endpoints.rb'
|
50
|
+
end
|
51
|
+
autoload :Client, 'aws-sdk-s3/client'
|
52
|
+
autoload :Errors, 'aws-sdk-s3/errors'
|
53
|
+
autoload :Waiters, 'aws-sdk-s3/waiters'
|
54
|
+
autoload :Resource, 'aws-sdk-s3/resource'
|
55
|
+
autoload :EndpointParameters, 'aws-sdk-s3/endpoint_parameters'
|
56
|
+
autoload :EndpointProvider, 'aws-sdk-s3/endpoint_provider'
|
57
|
+
autoload :Endpoints, 'aws-sdk-s3/endpoints'
|
58
|
+
autoload :Bucket, 'aws-sdk-s3/bucket'
|
59
|
+
autoload :BucketAcl, 'aws-sdk-s3/bucket_acl'
|
60
|
+
autoload :BucketCors, 'aws-sdk-s3/bucket_cors'
|
61
|
+
autoload :BucketLifecycle, 'aws-sdk-s3/bucket_lifecycle'
|
62
|
+
autoload :BucketLifecycleConfiguration, 'aws-sdk-s3/bucket_lifecycle_configuration'
|
63
|
+
autoload :BucketLogging, 'aws-sdk-s3/bucket_logging'
|
64
|
+
autoload :BucketNotification, 'aws-sdk-s3/bucket_notification'
|
65
|
+
autoload :BucketPolicy, 'aws-sdk-s3/bucket_policy'
|
66
|
+
autoload :BucketRequestPayment, 'aws-sdk-s3/bucket_request_payment'
|
67
|
+
autoload :BucketTagging, 'aws-sdk-s3/bucket_tagging'
|
68
|
+
autoload :BucketVersioning, 'aws-sdk-s3/bucket_versioning'
|
69
|
+
autoload :BucketWebsite, 'aws-sdk-s3/bucket_website'
|
70
|
+
autoload :MultipartUpload, 'aws-sdk-s3/multipart_upload'
|
71
|
+
autoload :MultipartUploadPart, 'aws-sdk-s3/multipart_upload_part'
|
72
|
+
autoload :Object, 'aws-sdk-s3/object'
|
73
|
+
autoload :ObjectAcl, 'aws-sdk-s3/object_acl'
|
74
|
+
autoload :ObjectSummary, 'aws-sdk-s3/object_summary'
|
75
|
+
autoload :ObjectVersion, 'aws-sdk-s3/object_version'
|
76
|
+
autoload :EventStreams, 'aws-sdk-s3/event_streams'
|
75
77
|
|
76
|
-
GEM_VERSION = '1.
|
78
|
+
GEM_VERSION = '1.176.1'
|
77
79
|
|
78
80
|
end
|
81
|
+
|
82
|
+
require_relative 'aws-sdk-s3/customizations'
|
data/sig/bucket.rbs
ADDED
@@ -0,0 +1,221 @@
|
|
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
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#bucket_region-instance_method
|
24
|
+
def bucket_region: () -> ::String
|
25
|
+
|
26
|
+
def client: () -> Client
|
27
|
+
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#data-instance_method
|
30
|
+
def data: () -> Types::Bucket
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#data_loaded?-instance_method
|
33
|
+
def data_loaded?: () -> bool
|
34
|
+
|
35
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#exists?-instance_method
|
36
|
+
def exists?: (?max_attempts: Integer, ?delay: Numeric, ?before_attempt: (^(Integer attempts) -> void), ?before_wait: (^(Integer attempts, untyped response) -> void)) -> bool
|
37
|
+
| (?Hash[Symbol, untyped]) -> bool
|
38
|
+
|
39
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#wait_until_exists-instance_method
|
40
|
+
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
|
41
|
+
| (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Bucket
|
42
|
+
|
43
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#wait_until_not_exists-instance_method
|
44
|
+
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
|
45
|
+
| (?Hash[Symbol, untyped]) ?{ (untyped waiter) -> void } -> Bucket
|
46
|
+
|
47
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#create-instance_method
|
48
|
+
def create: (
|
49
|
+
?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read"),
|
50
|
+
?create_bucket_configuration: {
|
51
|
+
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")?,
|
52
|
+
location: {
|
53
|
+
type: ("AvailabilityZone" | "LocalZone")?,
|
54
|
+
name: ::String?
|
55
|
+
}?,
|
56
|
+
bucket: {
|
57
|
+
data_redundancy: ("SingleAvailabilityZone" | "SingleLocalZone")?,
|
58
|
+
type: ("Directory")?
|
59
|
+
}?
|
60
|
+
},
|
61
|
+
?grant_full_control: ::String,
|
62
|
+
?grant_read: ::String,
|
63
|
+
?grant_read_acp: ::String,
|
64
|
+
?grant_write: ::String,
|
65
|
+
?grant_write_acp: ::String,
|
66
|
+
?object_lock_enabled_for_bucket: bool,
|
67
|
+
?object_ownership: ("BucketOwnerPreferred" | "ObjectWriter" | "BucketOwnerEnforced")
|
68
|
+
) -> Types::CreateBucketOutput
|
69
|
+
| (?Hash[Symbol, untyped]) -> Types::CreateBucketOutput
|
70
|
+
|
71
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#delete-instance_method
|
72
|
+
def delete: (
|
73
|
+
?expected_bucket_owner: ::String
|
74
|
+
) -> ::Aws::EmptyStructure
|
75
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
76
|
+
|
77
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#delete_objects-instance_method
|
78
|
+
def delete_objects: (
|
79
|
+
delete: {
|
80
|
+
objects: Array[
|
81
|
+
{
|
82
|
+
key: ::String,
|
83
|
+
version_id: ::String?,
|
84
|
+
etag: ::String?,
|
85
|
+
last_modified_time: ::Time?,
|
86
|
+
size: ::Integer?
|
87
|
+
},
|
88
|
+
],
|
89
|
+
quiet: bool?
|
90
|
+
},
|
91
|
+
?mfa: ::String,
|
92
|
+
?request_payer: ("requester"),
|
93
|
+
?bypass_governance_retention: bool,
|
94
|
+
?expected_bucket_owner: ::String,
|
95
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256")
|
96
|
+
) -> Types::DeleteObjectsOutput
|
97
|
+
| (?Hash[Symbol, untyped]) -> Types::DeleteObjectsOutput
|
98
|
+
|
99
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#put_object-instance_method
|
100
|
+
def put_object: (
|
101
|
+
?acl: ("private" | "public-read" | "public-read-write" | "authenticated-read" | "aws-exec-read" | "bucket-owner-read" | "bucket-owner-full-control"),
|
102
|
+
?body: ::String | ::StringIO | ::File,
|
103
|
+
?cache_control: ::String,
|
104
|
+
?content_disposition: ::String,
|
105
|
+
?content_encoding: ::String,
|
106
|
+
?content_language: ::String,
|
107
|
+
?content_length: ::Integer,
|
108
|
+
?content_md5: ::String,
|
109
|
+
?content_type: ::String,
|
110
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
111
|
+
?checksum_crc32: ::String,
|
112
|
+
?checksum_crc32c: ::String,
|
113
|
+
?checksum_sha1: ::String,
|
114
|
+
?checksum_sha256: ::String,
|
115
|
+
?expires: ::Time,
|
116
|
+
?if_match: ::String,
|
117
|
+
?if_none_match: ::String,
|
118
|
+
?grant_full_control: ::String,
|
119
|
+
?grant_read: ::String,
|
120
|
+
?grant_read_acp: ::String,
|
121
|
+
?grant_write_acp: ::String,
|
122
|
+
key: ::String,
|
123
|
+
?write_offset_bytes: ::Integer,
|
124
|
+
?metadata: Hash[::String, ::String],
|
125
|
+
?server_side_encryption: ("AES256" | "aws:kms" | "aws:kms:dsse"),
|
126
|
+
?storage_class: ("STANDARD" | "REDUCED_REDUNDANCY" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE" | "OUTPOSTS" | "GLACIER_IR" | "SNOW" | "EXPRESS_ONEZONE"),
|
127
|
+
?website_redirect_location: ::String,
|
128
|
+
?sse_customer_algorithm: ::String,
|
129
|
+
?sse_customer_key: ::String,
|
130
|
+
?sse_customer_key_md5: ::String,
|
131
|
+
?ssekms_key_id: ::String,
|
132
|
+
?ssekms_encryption_context: ::String,
|
133
|
+
?bucket_key_enabled: bool,
|
134
|
+
?request_payer: ("requester"),
|
135
|
+
?tagging: ::String,
|
136
|
+
?object_lock_mode: ("GOVERNANCE" | "COMPLIANCE"),
|
137
|
+
?object_lock_retain_until_date: ::Time,
|
138
|
+
?object_lock_legal_hold_status: ("ON" | "OFF"),
|
139
|
+
?expected_bucket_owner: ::String
|
140
|
+
) -> Object
|
141
|
+
| (?Hash[Symbol, untyped]) -> Object
|
142
|
+
|
143
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#acl-instance_method
|
144
|
+
def acl: () -> BucketAcl
|
145
|
+
|
146
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#cors-instance_method
|
147
|
+
def cors: () -> BucketCors
|
148
|
+
|
149
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#lifecycle-instance_method
|
150
|
+
def lifecycle: () -> BucketLifecycle
|
151
|
+
|
152
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#lifecycle_configuration-instance_method
|
153
|
+
def lifecycle_configuration: () -> BucketLifecycleConfiguration
|
154
|
+
|
155
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#logging-instance_method
|
156
|
+
def logging: () -> BucketLogging
|
157
|
+
|
158
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#multipart_uploads-instance_method
|
159
|
+
def multipart_uploads: (
|
160
|
+
?delimiter: ::String,
|
161
|
+
?encoding_type: ("url"),
|
162
|
+
?key_marker: ::String,
|
163
|
+
?prefix: ::String,
|
164
|
+
?upload_id_marker: ::String,
|
165
|
+
?expected_bucket_owner: ::String,
|
166
|
+
?request_payer: ("requester")
|
167
|
+
) -> MultipartUpload::Collection
|
168
|
+
| (?Hash[Symbol, untyped]) -> MultipartUpload::Collection
|
169
|
+
|
170
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#notification-instance_method
|
171
|
+
def notification: () -> BucketNotification
|
172
|
+
|
173
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#object-instance_method
|
174
|
+
def object: (String key) -> Object
|
175
|
+
|
176
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#object_versions-instance_method
|
177
|
+
def object_versions: (
|
178
|
+
?delimiter: ::String,
|
179
|
+
?encoding_type: ("url"),
|
180
|
+
?key_marker: ::String,
|
181
|
+
?prefix: ::String,
|
182
|
+
?version_id_marker: ::String,
|
183
|
+
?expected_bucket_owner: ::String,
|
184
|
+
?request_payer: ("requester"),
|
185
|
+
?optional_object_attributes: Array[("RestoreStatus")]
|
186
|
+
) -> ObjectVersion::Collection
|
187
|
+
| (?Hash[Symbol, untyped]) -> ObjectVersion::Collection
|
188
|
+
|
189
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#objects-instance_method
|
190
|
+
def objects: (
|
191
|
+
?delimiter: ::String,
|
192
|
+
?encoding_type: ("url"),
|
193
|
+
?prefix: ::String,
|
194
|
+
?fetch_owner: bool,
|
195
|
+
?start_after: ::String,
|
196
|
+
?request_payer: ("requester"),
|
197
|
+
?expected_bucket_owner: ::String,
|
198
|
+
?optional_object_attributes: Array[("RestoreStatus")]
|
199
|
+
) -> ObjectSummary::Collection
|
200
|
+
| (?Hash[Symbol, untyped]) -> ObjectSummary::Collection
|
201
|
+
|
202
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#policy-instance_method
|
203
|
+
def policy: () -> BucketPolicy
|
204
|
+
|
205
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#request_payment-instance_method
|
206
|
+
def request_payment: () -> BucketRequestPayment
|
207
|
+
|
208
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#tagging-instance_method
|
209
|
+
def tagging: () -> BucketTagging
|
210
|
+
|
211
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#versioning-instance_method
|
212
|
+
def versioning: () -> BucketVersioning
|
213
|
+
|
214
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/Bucket.html#website-instance_method
|
215
|
+
def website: () -> BucketWebsite
|
216
|
+
|
217
|
+
class Collection < ::Aws::Resources::Collection[Bucket]
|
218
|
+
end
|
219
|
+
end
|
220
|
+
end
|
221
|
+
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,115 @@
|
|
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
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#transition_default_minimum_object_size-instance_method
|
24
|
+
def transition_default_minimum_object_size: () -> ("varies_by_storage_class" | "all_storage_classes_128K")
|
25
|
+
|
26
|
+
def client: () -> Client
|
27
|
+
|
28
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.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/BucketLifecycleConfiguration.html#data-instance_method
|
33
|
+
def data: () -> Types::GetBucketLifecycleConfigurationOutput
|
34
|
+
|
35
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.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/BucketLifecycleConfiguration.html#delete-instance_method
|
40
|
+
def delete: (
|
41
|
+
?expected_bucket_owner: ::String
|
42
|
+
) -> ::Aws::EmptyStructure
|
43
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
44
|
+
|
45
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#put-instance_method
|
46
|
+
def put: (
|
47
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
48
|
+
?lifecycle_configuration: {
|
49
|
+
rules: Array[
|
50
|
+
{
|
51
|
+
expiration: {
|
52
|
+
date: ::Time?,
|
53
|
+
days: ::Integer?,
|
54
|
+
expired_object_delete_marker: bool?
|
55
|
+
}?,
|
56
|
+
id: ::String?,
|
57
|
+
prefix: ::String?,
|
58
|
+
filter: {
|
59
|
+
prefix: ::String?,
|
60
|
+
tag: {
|
61
|
+
key: ::String,
|
62
|
+
value: ::String
|
63
|
+
}?,
|
64
|
+
object_size_greater_than: ::Integer?,
|
65
|
+
object_size_less_than: ::Integer?,
|
66
|
+
and: {
|
67
|
+
prefix: ::String?,
|
68
|
+
tags: Array[
|
69
|
+
{
|
70
|
+
key: ::String,
|
71
|
+
value: ::String
|
72
|
+
},
|
73
|
+
]?,
|
74
|
+
object_size_greater_than: ::Integer?,
|
75
|
+
object_size_less_than: ::Integer?
|
76
|
+
}?
|
77
|
+
}?,
|
78
|
+
status: ("Enabled" | "Disabled"),
|
79
|
+
transitions: Array[
|
80
|
+
{
|
81
|
+
date: ::Time?,
|
82
|
+
days: ::Integer?,
|
83
|
+
storage_class: ("GLACIER" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "DEEP_ARCHIVE" | "GLACIER_IR")?
|
84
|
+
},
|
85
|
+
]?,
|
86
|
+
noncurrent_version_transitions: Array[
|
87
|
+
{
|
88
|
+
noncurrent_days: ::Integer?,
|
89
|
+
storage_class: ("GLACIER" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "DEEP_ARCHIVE" | "GLACIER_IR")?,
|
90
|
+
newer_noncurrent_versions: ::Integer?
|
91
|
+
},
|
92
|
+
]?,
|
93
|
+
noncurrent_version_expiration: {
|
94
|
+
noncurrent_days: ::Integer?,
|
95
|
+
newer_noncurrent_versions: ::Integer?
|
96
|
+
}?,
|
97
|
+
abort_incomplete_multipart_upload: {
|
98
|
+
days_after_initiation: ::Integer?
|
99
|
+
}?
|
100
|
+
},
|
101
|
+
]
|
102
|
+
},
|
103
|
+
?expected_bucket_owner: ::String,
|
104
|
+
?transition_default_minimum_object_size: ("varies_by_storage_class" | "all_storage_classes_128K")
|
105
|
+
) -> Types::PutBucketLifecycleConfigurationOutput
|
106
|
+
| (?Hash[Symbol, untyped]) -> Types::PutBucketLifecycleConfigurationOutput
|
107
|
+
|
108
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketLifecycleConfiguration.html#bucket-instance_method
|
109
|
+
def bucket: () -> Bucket
|
110
|
+
|
111
|
+
class Collection < ::Aws::Resources::Collection[BucketLifecycleConfiguration]
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
115
|
+
end
|