aws-sdk-s3 1.130.0 → 1.151.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 +139 -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 +241 -0
- data/lib/aws-sdk-s3/bucket.rb +424 -81
- data/lib/aws-sdk-s3/bucket_acl.rb +9 -9
- data/lib/aws-sdk-s3/bucket_cors.rb +12 -12
- data/lib/aws-sdk-s3/bucket_lifecycle.rb +12 -12
- data/lib/aws-sdk-s3/bucket_lifecycle_configuration.rb +12 -12
- data/lib/aws-sdk-s3/bucket_logging.rb +16 -9
- data/lib/aws-sdk-s3/bucket_notification.rb +3 -3
- data/lib/aws-sdk-s3/bucket_policy.rb +58 -14
- data/lib/aws-sdk-s3/bucket_region_cache.rb +9 -5
- data/lib/aws-sdk-s3/bucket_request_payment.rb +9 -9
- data/lib/aws-sdk-s3/bucket_tagging.rb +12 -12
- data/lib/aws-sdk-s3/bucket_versioning.rb +27 -27
- data/lib/aws-sdk-s3/bucket_website.rb +12 -12
- data/lib/aws-sdk-s3/client.rb +5784 -2609
- data/lib/aws-sdk-s3/client_api.rb +114 -18
- data/lib/aws-sdk-s3/customizations/errors.rb +15 -2
- data/lib/aws-sdk-s3/customizations/object.rb +55 -0
- data/lib/aws-sdk-s3/customizations.rb +8 -0
- data/lib/aws-sdk-s3/endpoint_parameters.rb +36 -0
- data/lib/aws-sdk-s3/endpoint_provider.rb +110 -252
- data/lib/aws-sdk-s3/endpoints.rb +440 -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 +142 -21
- data/lib/aws-sdk-s3/multipart_file_uploader.rb +4 -4
- data/lib/aws-sdk-s3/multipart_stream_uploader.rb +5 -4
- data/lib/aws-sdk-s3/multipart_upload.rb +69 -16
- data/lib/aws-sdk-s3/multipart_upload_part.rb +160 -35
- data/lib/aws-sdk-s3/object.rb +1504 -235
- data/lib/aws-sdk-s3/object_acl.rb +29 -15
- data/lib/aws-sdk-s3/object_multipart_copier.rb +10 -8
- data/lib/aws-sdk-s3/object_summary.rb +1367 -254
- data/lib/aws-sdk-s3/object_version.rb +297 -42
- data/lib/aws-sdk-s3/plugins/access_grants.rb +108 -0
- data/lib/aws-sdk-s3/plugins/endpoints.rb +14 -2
- data/lib/aws-sdk-s3/plugins/express_session_auth.rb +91 -0
- 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 +4 -2
- data/lib/aws-sdk-s3/resource.rb +83 -11
- data/lib/aws-sdk-s3/types.rb +4529 -1361
- data/lib/aws-sdk-s3.rb +1 -1
- 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 +2362 -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 +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 +126 -0
- data/sig/types.rbs +2562 -0
- data/sig/waiters.rbs +83 -0
- metadata +43 -11
@@ -0,0 +1,114 @@
|
|
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/BucketNotification.html
|
11
|
+
class BucketNotification
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.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/BucketNotification.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#topic_configurations-instance_method
|
21
|
+
def topic_configurations: () -> ::Array[Types::TopicConfiguration]
|
22
|
+
|
23
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#queue_configurations-instance_method
|
24
|
+
def queue_configurations: () -> ::Array[Types::QueueConfiguration]
|
25
|
+
|
26
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#lambda_function_configurations-instance_method
|
27
|
+
def lambda_function_configurations: () -> ::Array[Types::LambdaFunctionConfiguration]
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#event_bridge_configuration-instance_method
|
30
|
+
def event_bridge_configuration: () -> Types::EventBridgeConfiguration
|
31
|
+
|
32
|
+
def client: () -> Client
|
33
|
+
|
34
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#load-instance_method
|
35
|
+
def load: () -> self
|
36
|
+
alias reload load
|
37
|
+
|
38
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#data-instance_method
|
39
|
+
def data: () -> Types::NotificationConfiguration
|
40
|
+
|
41
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#data_loaded?-instance_method
|
42
|
+
def data_loaded?: () -> bool
|
43
|
+
|
44
|
+
|
45
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#put-instance_method
|
46
|
+
def put: (
|
47
|
+
notification_configuration: {
|
48
|
+
topic_configurations: Array[
|
49
|
+
{
|
50
|
+
id: ::String?,
|
51
|
+
topic_arn: ::String,
|
52
|
+
events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete")],
|
53
|
+
filter: {
|
54
|
+
key: {
|
55
|
+
filter_rules: Array[
|
56
|
+
{
|
57
|
+
name: ("prefix" | "suffix")?,
|
58
|
+
value: ::String?
|
59
|
+
},
|
60
|
+
]?
|
61
|
+
}?
|
62
|
+
}?
|
63
|
+
},
|
64
|
+
]?,
|
65
|
+
queue_configurations: Array[
|
66
|
+
{
|
67
|
+
id: ::String?,
|
68
|
+
queue_arn: ::String,
|
69
|
+
events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete")],
|
70
|
+
filter: {
|
71
|
+
key: {
|
72
|
+
filter_rules: Array[
|
73
|
+
{
|
74
|
+
name: ("prefix" | "suffix")?,
|
75
|
+
value: ::String?
|
76
|
+
},
|
77
|
+
]?
|
78
|
+
}?
|
79
|
+
}?
|
80
|
+
},
|
81
|
+
]?,
|
82
|
+
lambda_function_configurations: Array[
|
83
|
+
{
|
84
|
+
id: ::String?,
|
85
|
+
lambda_function_arn: ::String,
|
86
|
+
events: Array[("s3:ReducedRedundancyLostObject" | "s3:ObjectCreated:*" | "s3:ObjectCreated:Put" | "s3:ObjectCreated:Post" | "s3:ObjectCreated:Copy" | "s3:ObjectCreated:CompleteMultipartUpload" | "s3:ObjectRemoved:*" | "s3:ObjectRemoved:Delete" | "s3:ObjectRemoved:DeleteMarkerCreated" | "s3:ObjectRestore:*" | "s3:ObjectRestore:Post" | "s3:ObjectRestore:Completed" | "s3:Replication:*" | "s3:Replication:OperationFailedReplication" | "s3:Replication:OperationNotTracked" | "s3:Replication:OperationMissedThreshold" | "s3:Replication:OperationReplicatedAfterThreshold" | "s3:ObjectRestore:Delete" | "s3:LifecycleTransition" | "s3:IntelligentTiering" | "s3:ObjectAcl:Put" | "s3:LifecycleExpiration:*" | "s3:LifecycleExpiration:Delete" | "s3:LifecycleExpiration:DeleteMarkerCreated" | "s3:ObjectTagging:*" | "s3:ObjectTagging:Put" | "s3:ObjectTagging:Delete")],
|
87
|
+
filter: {
|
88
|
+
key: {
|
89
|
+
filter_rules: Array[
|
90
|
+
{
|
91
|
+
name: ("prefix" | "suffix")?,
|
92
|
+
value: ::String?
|
93
|
+
},
|
94
|
+
]?
|
95
|
+
}?
|
96
|
+
}?
|
97
|
+
},
|
98
|
+
]?,
|
99
|
+
event_bridge_configuration: {
|
100
|
+
}?
|
101
|
+
},
|
102
|
+
?expected_bucket_owner: ::String,
|
103
|
+
?skip_destination_validation: bool
|
104
|
+
) -> ::Aws::EmptyStructure
|
105
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
106
|
+
|
107
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketNotification.html#bucket-instance_method
|
108
|
+
def bucket: () -> Bucket
|
109
|
+
|
110
|
+
class Collection < ::Aws::Resources::Collection[BucketNotification]
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,59 @@
|
|
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/BucketPolicy.html
|
11
|
+
class BucketPolicy
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketPolicy.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/BucketPolicy.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketPolicy.html#policy-instance_method
|
21
|
+
def policy: () -> ::IO
|
22
|
+
|
23
|
+
def client: () -> Client
|
24
|
+
|
25
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketPolicy.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/BucketPolicy.html#data-instance_method
|
30
|
+
def data: () -> Types::GetBucketPolicyOutput
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketPolicy.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/BucketPolicy.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/BucketPolicy.html#put-instance_method
|
43
|
+
def put: (
|
44
|
+
?content_md5: ::String,
|
45
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
46
|
+
?confirm_remove_self_bucket_access: bool,
|
47
|
+
policy: ::String,
|
48
|
+
?expected_bucket_owner: ::String
|
49
|
+
) -> ::Aws::EmptyStructure
|
50
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
51
|
+
|
52
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketPolicy.html#bucket-instance_method
|
53
|
+
def bucket: () -> Bucket
|
54
|
+
|
55
|
+
class Collection < ::Aws::Resources::Collection[BucketPolicy]
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -0,0 +1,54 @@
|
|
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/BucketRequestPayment.html
|
11
|
+
class BucketRequestPayment
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketRequestPayment.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/BucketRequestPayment.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketRequestPayment.html#payer-instance_method
|
21
|
+
def payer: () -> ("Requester" | "BucketOwner")
|
22
|
+
|
23
|
+
def client: () -> Client
|
24
|
+
|
25
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketRequestPayment.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/BucketRequestPayment.html#data-instance_method
|
30
|
+
def data: () -> Types::GetBucketRequestPaymentOutput
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketRequestPayment.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/BucketRequestPayment.html#put-instance_method
|
37
|
+
def put: (
|
38
|
+
?content_md5: ::String,
|
39
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
40
|
+
request_payment_configuration: {
|
41
|
+
payer: ("Requester" | "BucketOwner")
|
42
|
+
},
|
43
|
+
?expected_bucket_owner: ::String
|
44
|
+
) -> ::Aws::EmptyStructure
|
45
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
46
|
+
|
47
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketRequestPayment.html#bucket-instance_method
|
48
|
+
def bucket: () -> Bucket
|
49
|
+
|
50
|
+
class Collection < ::Aws::Resources::Collection[BucketRequestPayment]
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
@@ -0,0 +1,65 @@
|
|
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/BucketTagging.html
|
11
|
+
class BucketTagging
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketTagging.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/BucketTagging.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketTagging.html#tag_set-instance_method
|
21
|
+
def tag_set: () -> ::Array[Types::Tag]
|
22
|
+
|
23
|
+
def client: () -> Client
|
24
|
+
|
25
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketTagging.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/BucketTagging.html#data-instance_method
|
30
|
+
def data: () -> Types::GetBucketTaggingOutput
|
31
|
+
|
32
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketTagging.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/BucketTagging.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/BucketTagging.html#put-instance_method
|
43
|
+
def put: (
|
44
|
+
?content_md5: ::String,
|
45
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
46
|
+
tagging: {
|
47
|
+
tag_set: Array[
|
48
|
+
{
|
49
|
+
key: ::String,
|
50
|
+
value: ::String
|
51
|
+
},
|
52
|
+
]
|
53
|
+
},
|
54
|
+
?expected_bucket_owner: ::String
|
55
|
+
) -> ::Aws::EmptyStructure
|
56
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
57
|
+
|
58
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketTagging.html#bucket-instance_method
|
59
|
+
def bucket: () -> Bucket
|
60
|
+
|
61
|
+
class Collection < ::Aws::Resources::Collection[BucketTagging]
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
@@ -0,0 +1,77 @@
|
|
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/BucketVersioning.html
|
11
|
+
class BucketVersioning
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.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/BucketVersioning.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#status-instance_method
|
21
|
+
def status: () -> ("Enabled" | "Suspended")
|
22
|
+
|
23
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#mfa_delete-instance_method
|
24
|
+
def mfa_delete: () -> ("Enabled" | "Disabled")
|
25
|
+
|
26
|
+
def client: () -> Client
|
27
|
+
|
28
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.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/BucketVersioning.html#data-instance_method
|
33
|
+
def data: () -> Types::GetBucketVersioningOutput
|
34
|
+
|
35
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.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/BucketVersioning.html#enable-instance_method
|
40
|
+
def enable: (
|
41
|
+
?content_md5: ::String,
|
42
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
43
|
+
?mfa: ::String,
|
44
|
+
?expected_bucket_owner: ::String
|
45
|
+
) -> ::Aws::EmptyStructure
|
46
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
47
|
+
|
48
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#put-instance_method
|
49
|
+
def put: (
|
50
|
+
?content_md5: ::String,
|
51
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
52
|
+
?mfa: ::String,
|
53
|
+
versioning_configuration: {
|
54
|
+
mfa_delete: ("Enabled" | "Disabled")?,
|
55
|
+
status: ("Enabled" | "Suspended")?
|
56
|
+
},
|
57
|
+
?expected_bucket_owner: ::String
|
58
|
+
) -> ::Aws::EmptyStructure
|
59
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
60
|
+
|
61
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#suspend-instance_method
|
62
|
+
def suspend: (
|
63
|
+
?content_md5: ::String,
|
64
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
65
|
+
?mfa: ::String,
|
66
|
+
?expected_bucket_owner: ::String
|
67
|
+
) -> ::Aws::EmptyStructure
|
68
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
69
|
+
|
70
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketVersioning.html#bucket-instance_method
|
71
|
+
def bucket: () -> Bucket
|
72
|
+
|
73
|
+
class Collection < ::Aws::Resources::Collection[BucketVersioning]
|
74
|
+
end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
@@ -0,0 +1,93 @@
|
|
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/BucketWebsite.html
|
11
|
+
class BucketWebsite
|
12
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.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/BucketWebsite.html#bucket_name-instance_method
|
18
|
+
def bucket_name: () -> String
|
19
|
+
|
20
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#redirect_all_requests_to-instance_method
|
21
|
+
def redirect_all_requests_to: () -> Types::RedirectAllRequestsTo
|
22
|
+
|
23
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#index_document-instance_method
|
24
|
+
def index_document: () -> Types::IndexDocument
|
25
|
+
|
26
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#error_document-instance_method
|
27
|
+
def error_document: () -> Types::ErrorDocument
|
28
|
+
|
29
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#routing_rules-instance_method
|
30
|
+
def routing_rules: () -> ::Array[Types::RoutingRule]
|
31
|
+
|
32
|
+
def client: () -> Client
|
33
|
+
|
34
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#load-instance_method
|
35
|
+
def load: () -> self
|
36
|
+
alias reload load
|
37
|
+
|
38
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#data-instance_method
|
39
|
+
def data: () -> Types::GetBucketWebsiteOutput
|
40
|
+
|
41
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#data_loaded?-instance_method
|
42
|
+
def data_loaded?: () -> bool
|
43
|
+
|
44
|
+
|
45
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#delete-instance_method
|
46
|
+
def delete: (
|
47
|
+
?expected_bucket_owner: ::String
|
48
|
+
) -> ::Aws::EmptyStructure
|
49
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
50
|
+
|
51
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#put-instance_method
|
52
|
+
def put: (
|
53
|
+
?content_md5: ::String,
|
54
|
+
?checksum_algorithm: ("CRC32" | "CRC32C" | "SHA1" | "SHA256"),
|
55
|
+
website_configuration: {
|
56
|
+
error_document: {
|
57
|
+
key: ::String
|
58
|
+
}?,
|
59
|
+
index_document: {
|
60
|
+
suffix: ::String
|
61
|
+
}?,
|
62
|
+
redirect_all_requests_to: {
|
63
|
+
host_name: ::String,
|
64
|
+
protocol: ("http" | "https")?
|
65
|
+
}?,
|
66
|
+
routing_rules: Array[
|
67
|
+
{
|
68
|
+
condition: {
|
69
|
+
http_error_code_returned_equals: ::String?,
|
70
|
+
key_prefix_equals: ::String?
|
71
|
+
}?,
|
72
|
+
redirect: {
|
73
|
+
host_name: ::String?,
|
74
|
+
http_redirect_code: ::String?,
|
75
|
+
protocol: ("http" | "https")?,
|
76
|
+
replace_key_prefix_with: ::String?,
|
77
|
+
replace_key_with: ::String?
|
78
|
+
}
|
79
|
+
},
|
80
|
+
]?
|
81
|
+
},
|
82
|
+
?expected_bucket_owner: ::String
|
83
|
+
) -> ::Aws::EmptyStructure
|
84
|
+
| (?Hash[Symbol, untyped]) -> ::Aws::EmptyStructure
|
85
|
+
|
86
|
+
# https://docs.aws.amazon.com/sdk-for-ruby/v3/api/Aws/S3/BucketWebsite.html#bucket-instance_method
|
87
|
+
def bucket: () -> Bucket
|
88
|
+
|
89
|
+
class Collection < ::Aws::Resources::Collection[BucketWebsite]
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|