aws-sdk-s3control 1.42.0 → 1.46.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 +22 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-s3control/client.rb +19 -4
- data/lib/aws-sdk-s3control/client_api.rb +6 -1
- data/lib/aws-sdk-s3control/plugins/dualstack.rb +4 -2
- data/lib/aws-sdk-s3control/types.rb +58 -10
- data/lib/aws-sdk-s3control.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6e842040f94c5cd10bba9d0a8ea2f3ed85f03241ec21745ad75261f4af99fb3
|
4
|
+
data.tar.gz: 22924fde9de1c9e09effcc8d2cdb70961f27733bf04a0bb9305c49cc11027120
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49a50b3411817fe22a1f206f484d9cb25d6d5c72fd5adcf3cc27ebdc0088a5aa6353e7146703d2117bccdab5f8daeca4b5791e5f6405df29a72bbe9dd5a19b90
|
7
|
+
data.tar.gz: 8d9c932eb5f11828c7cc001d6170783e420d87329030a27c73dc2ccf9a303e3515b991b7387f13ea8468700c4d093c35cb2c56766b8a268804a14b3f4136eefa
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,28 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.46.0 (2022-01-04)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Documentation updates for the renaming of Glacier to Glacier Flexible Retrieval.
|
8
|
+
|
9
|
+
1.45.0 (2021-12-21)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
13
|
+
|
14
|
+
1.44.0 (2021-11-30)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
18
|
+
|
19
|
+
* Issue - Fix a bug where the dualstack plugin was dropping URI paths.
|
20
|
+
|
21
|
+
1.43.0 (2021-11-22)
|
22
|
+
------------------
|
23
|
+
|
24
|
+
* Feature - Added Amazon CloudWatch publishing option for S3 Storage Lens metrics.
|
25
|
+
|
4
26
|
1.42.0 (2021-11-04)
|
5
27
|
------------------
|
6
28
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.46.0
|
@@ -27,6 +27,7 @@ require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
|
|
27
27
|
require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
|
28
28
|
require 'aws-sdk-core/plugins/transfer_encoding.rb'
|
29
29
|
require 'aws-sdk-core/plugins/http_checksum.rb'
|
30
|
+
require 'aws-sdk-core/plugins/defaults_mode.rb'
|
30
31
|
require 'aws-sdk-core/plugins/protocols/rest_xml.rb'
|
31
32
|
require 'aws-sdk-s3control/plugins/arn.rb'
|
32
33
|
require 'aws-sdk-s3control/plugins/dualstack.rb'
|
@@ -76,6 +77,7 @@ module Aws::S3Control
|
|
76
77
|
add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
|
77
78
|
add_plugin(Aws::Plugins::TransferEncoding)
|
78
79
|
add_plugin(Aws::Plugins::HttpChecksum)
|
80
|
+
add_plugin(Aws::Plugins::DefaultsMode)
|
79
81
|
add_plugin(Aws::Plugins::Protocols::RestXml)
|
80
82
|
add_plugin(Aws::S3Control::Plugins::ARN)
|
81
83
|
add_plugin(Aws::S3Control::Plugins::Dualstack)
|
@@ -125,7 +127,9 @@ module Aws::S3Control
|
|
125
127
|
# * EC2/ECS IMDS instance profile - When used by default, the timeouts
|
126
128
|
# are very aggressive. Construct and pass an instance of
|
127
129
|
# `Aws::InstanceProfileCredentails` or `Aws::ECSCredentials` to
|
128
|
-
# enable retries and extended timeouts.
|
130
|
+
# enable retries and extended timeouts. Instance profile credential
|
131
|
+
# fetching can be disabled by setting ENV['AWS_EC2_METADATA_DISABLED']
|
132
|
+
# to true.
|
129
133
|
#
|
130
134
|
# @option options [required, String] :region
|
131
135
|
# The AWS region to connect to. The configured `:region` is
|
@@ -179,6 +183,10 @@ module Aws::S3Control
|
|
179
183
|
# Used only in `standard` and adaptive retry modes. Specifies whether to apply
|
180
184
|
# a clock skew correction and retry requests with skewed client clocks.
|
181
185
|
#
|
186
|
+
# @option options [String] :defaults_mode ("legacy")
|
187
|
+
# See {Aws::DefaultsModeConfiguration} for a list of the
|
188
|
+
# accepted modes and the configuration defaults that are included.
|
189
|
+
#
|
182
190
|
# @option options [Boolean] :disable_host_prefix_injection (false)
|
183
191
|
# Set to true to disable SDK automatically adding host prefix
|
184
192
|
# to default service endpoint when available.
|
@@ -307,7 +315,7 @@ module Aws::S3Control
|
|
307
315
|
# seconds to wait when opening a HTTP session before raising a
|
308
316
|
# `Timeout::Error`.
|
309
317
|
#
|
310
|
-
# @option options [
|
318
|
+
# @option options [Float] :http_read_timeout (60) The default
|
311
319
|
# number of seconds to wait for response data. This value can
|
312
320
|
# safely be set per-request on the session.
|
313
321
|
#
|
@@ -323,6 +331,9 @@ module Aws::S3Control
|
|
323
331
|
# disables this behaviour. This value can safely be set per
|
324
332
|
# request on the session.
|
325
333
|
#
|
334
|
+
# @option options [Float] :ssl_timeout (nil) Sets the SSL timeout
|
335
|
+
# in seconds.
|
336
|
+
#
|
326
337
|
# @option options [Boolean] :http_wire_trace (false) When `true`,
|
327
338
|
# HTTP debug output will be sent to the `:logger`.
|
328
339
|
#
|
@@ -3100,6 +3111,7 @@ module Aws::S3Control
|
|
3100
3111
|
# resp.storage_lens_configuration.data_export.s3_bucket_destination.arn #=> String
|
3101
3112
|
# resp.storage_lens_configuration.data_export.s3_bucket_destination.prefix #=> String
|
3102
3113
|
# resp.storage_lens_configuration.data_export.s3_bucket_destination.encryption.ssekms.key_id #=> String
|
3114
|
+
# resp.storage_lens_configuration.data_export.cloud_watch_metrics.is_enabled #=> Boolean
|
3103
3115
|
# resp.storage_lens_configuration.is_enabled #=> Boolean
|
3104
3116
|
# resp.storage_lens_configuration.aws_org.arn #=> String
|
3105
3117
|
# resp.storage_lens_configuration.storage_lens_arn #=> String
|
@@ -4422,7 +4434,7 @@ module Aws::S3Control
|
|
4422
4434
|
# regions: ["S3AWSRegion"],
|
4423
4435
|
# },
|
4424
4436
|
# data_export: {
|
4425
|
-
# s3_bucket_destination: {
|
4437
|
+
# s3_bucket_destination: {
|
4426
4438
|
# format: "CSV", # required, accepts CSV, Parquet
|
4427
4439
|
# output_schema_version: "V_1", # required, accepts V_1
|
4428
4440
|
# account_id: "AccountId", # required
|
@@ -4436,6 +4448,9 @@ module Aws::S3Control
|
|
4436
4448
|
# },
|
4437
4449
|
# },
|
4438
4450
|
# },
|
4451
|
+
# cloud_watch_metrics: {
|
4452
|
+
# is_enabled: false, # required
|
4453
|
+
# },
|
4439
4454
|
# },
|
4440
4455
|
# is_enabled: false, # required
|
4441
4456
|
# aws_org: {
|
@@ -4657,7 +4672,7 @@ module Aws::S3Control
|
|
4657
4672
|
params: params,
|
4658
4673
|
config: config)
|
4659
4674
|
context[:gem_name] = 'aws-sdk-s3control'
|
4660
|
-
context[:gem_version] = '1.
|
4675
|
+
context[:gem_version] = '1.46.0'
|
4661
4676
|
Seahorse::Client::Request.new(handlers, context)
|
4662
4677
|
end
|
4663
4678
|
|
@@ -41,6 +41,7 @@ module Aws::S3Control
|
|
41
41
|
BucketLocationConstraint = Shapes::StringShape.new(name: 'BucketLocationConstraint')
|
42
42
|
BucketName = Shapes::StringShape.new(name: 'BucketName')
|
43
43
|
Buckets = Shapes::ListShape.new(name: 'Buckets')
|
44
|
+
CloudWatchMetrics = Shapes::StructureShape.new(name: 'CloudWatchMetrics')
|
44
45
|
ConfigId = Shapes::StringShape.new(name: 'ConfigId')
|
45
46
|
ConfirmRemoveSelfBucketAccess = Shapes::BooleanShape.new(name: 'ConfirmRemoveSelfBucketAccess')
|
46
47
|
ConfirmationRequired = Shapes::BooleanShape.new(name: 'ConfirmationRequired')
|
@@ -399,6 +400,9 @@ module Aws::S3Control
|
|
399
400
|
|
400
401
|
Buckets.member = Shapes::ShapeRef.new(shape: S3BucketArnString, location_name: "Arn")
|
401
402
|
|
403
|
+
CloudWatchMetrics.add_member(:is_enabled, Shapes::ShapeRef.new(shape: IsEnabled, required: true, location_name: "IsEnabled"))
|
404
|
+
CloudWatchMetrics.struct_class = Types::CloudWatchMetrics
|
405
|
+
|
402
406
|
CreateAccessPointForObjectLambdaRequest.add_member(:account_id, Shapes::ShapeRef.new(shape: AccountId, required: true, location: "header", location_name: "x-amz-account-id", metadata: {"hostLabel"=>true, "hostLabelName"=>"AccountId"}))
|
403
407
|
CreateAccessPointForObjectLambdaRequest.add_member(:name, Shapes::ShapeRef.new(shape: ObjectLambdaAccessPointName, required: true, location: "uri", location_name: "name"))
|
404
408
|
CreateAccessPointForObjectLambdaRequest.add_member(:configuration, Shapes::ShapeRef.new(shape: ObjectLambdaConfiguration, required: true, location_name: "Configuration"))
|
@@ -1186,7 +1190,8 @@ module Aws::S3Control
|
|
1186
1190
|
|
1187
1191
|
StorageLensConfigurationList.member = Shapes::ShapeRef.new(shape: ListStorageLensConfigurationEntry, location_name: "StorageLensConfiguration")
|
1188
1192
|
|
1189
|
-
StorageLensDataExport.add_member(:s3_bucket_destination, Shapes::ShapeRef.new(shape: S3BucketDestination,
|
1193
|
+
StorageLensDataExport.add_member(:s3_bucket_destination, Shapes::ShapeRef.new(shape: S3BucketDestination, location_name: "S3BucketDestination"))
|
1194
|
+
StorageLensDataExport.add_member(:cloud_watch_metrics, Shapes::ShapeRef.new(shape: CloudWatchMetrics, location_name: "CloudWatchMetrics"))
|
1190
1195
|
StorageLensDataExport.struct_class = Types::StorageLensDataExport
|
1191
1196
|
|
1192
1197
|
StorageLensDataExportEncryption.add_member(:sses3, Shapes::ShapeRef.new(shape: SSES3, location_name: "SSE-S3"))
|
@@ -34,7 +34,7 @@ module Aws
|
|
34
34
|
# if it's a regional endpoint and not an ARN, then construct the
|
35
35
|
# endpoint. regional endpoint plugin uses the dualstack config
|
36
36
|
if context.config.regional_endpoint && !context.metadata[:s3_arn]
|
37
|
-
|
37
|
+
new_endpoint = Aws::Partitions::EndpointProvider.resolve(
|
38
38
|
context.config.region,
|
39
39
|
's3-control',
|
40
40
|
'regional',
|
@@ -43,7 +43,9 @@ module Aws
|
|
43
43
|
fips: context.config.use_fips_endpoint
|
44
44
|
}
|
45
45
|
)
|
46
|
-
|
46
|
+
endpoint = URI.parse(context.http_request.endpoint.to_s)
|
47
|
+
endpoint.host = URI.parse(new_endpoint).host
|
48
|
+
context.http_request.endpoint = endpoint
|
47
49
|
end
|
48
50
|
@handler.call(context)
|
49
51
|
end
|
@@ -370,6 +370,38 @@ module Aws::S3Control
|
|
370
370
|
include Aws::Structure
|
371
371
|
end
|
372
372
|
|
373
|
+
# A container for enabling Amazon CloudWatch publishing for S3 Storage
|
374
|
+
# Lens metrics.
|
375
|
+
#
|
376
|
+
# For more information about publishing S3 Storage Lens metrics to
|
377
|
+
# CloudWatch, see [Monitor S3 Storage Lens metrics in CloudWatch][1] in
|
378
|
+
# the *Amazon S3 User Guide*.
|
379
|
+
#
|
380
|
+
#
|
381
|
+
#
|
382
|
+
# [1]: https://docs.aws.amazon.com/AmazonS3/latest/userguide/storage_lens_view_metrics_cloudwatch.html
|
383
|
+
#
|
384
|
+
# @note When making an API call, you may pass CloudWatchMetrics
|
385
|
+
# data as a hash:
|
386
|
+
#
|
387
|
+
# {
|
388
|
+
# is_enabled: false, # required
|
389
|
+
# }
|
390
|
+
#
|
391
|
+
# @!attribute [rw] is_enabled
|
392
|
+
# A container that indicates whether CloudWatch publishing for S3
|
393
|
+
# Storage Lens metrics is enabled. A value of `true` indicates that
|
394
|
+
# CloudWatch publishing for S3 Storage Lens metrics is enabled.
|
395
|
+
# @return [Boolean]
|
396
|
+
#
|
397
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/CloudWatchMetrics AWS API Documentation
|
398
|
+
#
|
399
|
+
class CloudWatchMetrics < Struct.new(
|
400
|
+
:is_enabled)
|
401
|
+
SENSITIVE = []
|
402
|
+
include Aws::Structure
|
403
|
+
end
|
404
|
+
|
373
405
|
# @note When making an API call, you may pass CreateAccessPointForObjectLambdaRequest
|
374
406
|
# data as a hash:
|
375
407
|
#
|
@@ -4932,7 +4964,7 @@ module Aws::S3Control
|
|
4932
4964
|
# regions: ["S3AWSRegion"],
|
4933
4965
|
# },
|
4934
4966
|
# data_export: {
|
4935
|
-
# s3_bucket_destination: {
|
4967
|
+
# s3_bucket_destination: {
|
4936
4968
|
# format: "CSV", # required, accepts CSV, Parquet
|
4937
4969
|
# output_schema_version: "V_1", # required, accepts V_1
|
4938
4970
|
# account_id: "AccountId", # required
|
@@ -4946,6 +4978,9 @@ module Aws::S3Control
|
|
4946
4978
|
# },
|
4947
4979
|
# },
|
4948
4980
|
# },
|
4981
|
+
# cloud_watch_metrics: {
|
4982
|
+
# is_enabled: false, # required
|
4983
|
+
# },
|
4949
4984
|
# },
|
4950
4985
|
# is_enabled: false, # required
|
4951
4986
|
# aws_org: {
|
@@ -5488,10 +5523,11 @@ module Aws::S3Control
|
|
5488
5523
|
# }
|
5489
5524
|
#
|
5490
5525
|
# @!attribute [rw] expiration_in_days
|
5491
|
-
# This argument specifies how long the S3 Glacier
|
5492
|
-
# Archive object remains available in Amazon S3. S3
|
5493
|
-
# Object jobs that target S3 Glacier
|
5494
|
-
#
|
5526
|
+
# This argument specifies how long the S3 Glacier Flexible Retrieval
|
5527
|
+
# or S3 Glacier Deep Archive object remains available in Amazon S3. S3
|
5528
|
+
# Initiate Restore Object jobs that target S3 Glacier Flexible
|
5529
|
+
# Retrieval and S3 Glacier Deep Archive objects require
|
5530
|
+
# `ExpirationInDays` set to 1 or greater.
|
5495
5531
|
#
|
5496
5532
|
# Conversely, do *not* set `ExpirationInDays` when creating S3
|
5497
5533
|
# Initiate Restore Object jobs that target S3 Intelligent-Tiering
|
@@ -5500,8 +5536,8 @@ module Aws::S3Control
|
|
5500
5536
|
# expiry, so specifying `ExpirationInDays` results in restore request
|
5501
5537
|
# failure.
|
5502
5538
|
#
|
5503
|
-
# S3 Batch Operations jobs can operate either on S3 Glacier
|
5504
|
-
# Glacier Deep Archive storage class objects or on S3
|
5539
|
+
# S3 Batch Operations jobs can operate either on S3 Glacier Flexible
|
5540
|
+
# Retrieval and S3 Glacier Deep Archive storage class objects or on S3
|
5505
5541
|
# Intelligent-Tiering Archive Access and Deep Archive Access storage
|
5506
5542
|
# tier objects, but not both types in the same job. If you need to
|
5507
5543
|
# restore objects of both types you *must* create separate Batch
|
@@ -5980,7 +6016,7 @@ module Aws::S3Control
|
|
5980
6016
|
# regions: ["S3AWSRegion"],
|
5981
6017
|
# },
|
5982
6018
|
# data_export: {
|
5983
|
-
# s3_bucket_destination: {
|
6019
|
+
# s3_bucket_destination: {
|
5984
6020
|
# format: "CSV", # required, accepts CSV, Parquet
|
5985
6021
|
# output_schema_version: "V_1", # required, accepts V_1
|
5986
6022
|
# account_id: "AccountId", # required
|
@@ -5994,6 +6030,9 @@ module Aws::S3Control
|
|
5994
6030
|
# },
|
5995
6031
|
# },
|
5996
6032
|
# },
|
6033
|
+
# cloud_watch_metrics: {
|
6034
|
+
# is_enabled: false, # required
|
6035
|
+
# },
|
5997
6036
|
# },
|
5998
6037
|
# is_enabled: false, # required
|
5999
6038
|
# aws_org: {
|
@@ -6067,7 +6106,7 @@ module Aws::S3Control
|
|
6067
6106
|
# data as a hash:
|
6068
6107
|
#
|
6069
6108
|
# {
|
6070
|
-
# s3_bucket_destination: {
|
6109
|
+
# s3_bucket_destination: {
|
6071
6110
|
# format: "CSV", # required, accepts CSV, Parquet
|
6072
6111
|
# output_schema_version: "V_1", # required, accepts V_1
|
6073
6112
|
# account_id: "AccountId", # required
|
@@ -6081,6 +6120,9 @@ module Aws::S3Control
|
|
6081
6120
|
# },
|
6082
6121
|
# },
|
6083
6122
|
# },
|
6123
|
+
# cloud_watch_metrics: {
|
6124
|
+
# is_enabled: false, # required
|
6125
|
+
# },
|
6084
6126
|
# }
|
6085
6127
|
#
|
6086
6128
|
# @!attribute [rw] s3_bucket_destination
|
@@ -6093,10 +6135,16 @@ module Aws::S3Control
|
|
6093
6135
|
# </note>
|
6094
6136
|
# @return [Types::S3BucketDestination]
|
6095
6137
|
#
|
6138
|
+
# @!attribute [rw] cloud_watch_metrics
|
6139
|
+
# A container for enabling Amazon CloudWatch publishing for S3 Storage
|
6140
|
+
# Lens metrics.
|
6141
|
+
# @return [Types::CloudWatchMetrics]
|
6142
|
+
#
|
6096
6143
|
# @see http://docs.aws.amazon.com/goto/WebAPI/s3control-2018-08-20/StorageLensDataExport AWS API Documentation
|
6097
6144
|
#
|
6098
6145
|
class StorageLensDataExport < Struct.new(
|
6099
|
-
:s3_bucket_destination
|
6146
|
+
:s3_bucket_destination,
|
6147
|
+
:cloud_watch_metrics)
|
6100
6148
|
SENSITIVE = []
|
6101
6149
|
include Aws::Structure
|
6102
6150
|
end
|
data/lib/aws-sdk-s3control.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-s3control
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.46.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-01-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '3'
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 3.
|
36
|
+
version: 3.125.0
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '3'
|
44
44
|
- - ">="
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 3.
|
46
|
+
version: 3.125.0
|
47
47
|
description: Official AWS Ruby gem for AWS S3 Control. This gem is part of the AWS
|
48
48
|
SDK for Ruby.
|
49
49
|
email:
|