aws-sdk-ebs 1.32.0 → 1.34.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ebs/client.rb +70 -1
- data/lib/aws-sdk-ebs/client_api.rb +2 -0
- data/lib/aws-sdk-ebs/endpoint_provider.rb +27 -24
- data/lib/aws-sdk-ebs/types.rb +19 -4
- data/lib/aws-sdk-ebs.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8a3e26b2a9885a66c0277c6979050083ab067908a672481b2591ab152bfb8ad3
|
|
4
|
+
data.tar.gz: 686d30d25b35caa5863169ff1c096147f3a7a6e08624c6a7f39623ad5b6d4eef
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1fb6f94a4ddf8470473ef6dd7ff3d13720bb93efc3b81fec188f2e01d2d7fc37b1c68e0388250e121d97727b321144c90e226925338c424bf36d2022c372723a
|
|
7
|
+
data.tar.gz: 3ee048771c0a2389f02e534115050b7482bb29c810d869ec8bc2c5258413fbf7f077fb26ff815049b0e6099ed0622adf9bc088816bacecafef8c3dee3f835852
|
data/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
Unreleased Changes
|
|
2
2
|
------------------
|
|
3
3
|
|
|
4
|
+
1.34.0 (2023-07-27)
|
|
5
|
+
------------------
|
|
6
|
+
|
|
7
|
+
* Feature - SDK and documentation updates for Amazon Elastic Block Store API
|
|
8
|
+
|
|
9
|
+
1.33.0 (2023-07-11)
|
|
10
|
+
------------------
|
|
11
|
+
|
|
12
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
|
13
|
+
|
|
4
14
|
1.32.0 (2023-07-06)
|
|
5
15
|
------------------
|
|
6
16
|
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.34.0
|
data/lib/aws-sdk-ebs/client.rb
CHANGED
|
@@ -216,6 +216,10 @@ module Aws::EBS
|
|
|
216
216
|
# @option options [Boolean] :endpoint_discovery (false)
|
|
217
217
|
# When set to `true`, endpoint discovery will be enabled for operations when available.
|
|
218
218
|
#
|
|
219
|
+
# @option options [Boolean] :ignore_configured_endpoint_urls
|
|
220
|
+
# Setting to true disables use of endpoint URLs provided via environment
|
|
221
|
+
# variables and the shared configuration file.
|
|
222
|
+
#
|
|
219
223
|
# @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
|
|
220
224
|
# The log formatter.
|
|
221
225
|
#
|
|
@@ -389,6 +393,17 @@ module Aws::EBS
|
|
|
389
393
|
# status to `completed`. You cannot write new blocks to a snapshot after
|
|
390
394
|
# it has been completed.
|
|
391
395
|
#
|
|
396
|
+
# <note markdown="1"> You should always retry requests that receive server (`5xx`) error
|
|
397
|
+
# responses, and `ThrottlingException` and `RequestThrottledException`
|
|
398
|
+
# client error responses. For more information see [Error retries][1] in
|
|
399
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
400
|
+
#
|
|
401
|
+
# </note>
|
|
402
|
+
#
|
|
403
|
+
#
|
|
404
|
+
#
|
|
405
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
406
|
+
#
|
|
392
407
|
# @option params [required, String] :snapshot_id
|
|
393
408
|
# The ID of the snapshot.
|
|
394
409
|
#
|
|
@@ -442,6 +457,17 @@ module Aws::EBS
|
|
|
442
457
|
|
|
443
458
|
# Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
|
444
459
|
#
|
|
460
|
+
# <note markdown="1"> You should always retry requests that receive server (`5xx`) error
|
|
461
|
+
# responses, and `ThrottlingException` and `RequestThrottledException`
|
|
462
|
+
# client error responses. For more information see [Error retries][1] in
|
|
463
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
464
|
+
#
|
|
465
|
+
# </note>
|
|
466
|
+
#
|
|
467
|
+
#
|
|
468
|
+
#
|
|
469
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
470
|
+
#
|
|
445
471
|
# @option params [required, String] :snapshot_id
|
|
446
472
|
# The ID of the snapshot containing the block from which to get data.
|
|
447
473
|
#
|
|
@@ -501,6 +527,17 @@ module Aws::EBS
|
|
|
501
527
|
# Amazon Elastic Block Store snapshots of the same volume/snapshot
|
|
502
528
|
# lineage.
|
|
503
529
|
#
|
|
530
|
+
# <note markdown="1"> You should always retry requests that receive server (`5xx`) error
|
|
531
|
+
# responses, and `ThrottlingException` and `RequestThrottledException`
|
|
532
|
+
# client error responses. For more information see [Error retries][1] in
|
|
533
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
534
|
+
#
|
|
535
|
+
# </note>
|
|
536
|
+
#
|
|
537
|
+
#
|
|
538
|
+
#
|
|
539
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
540
|
+
#
|
|
504
541
|
# @option params [String] :first_snapshot_id
|
|
505
542
|
# The ID of the first snapshot to use for the comparison.
|
|
506
543
|
#
|
|
@@ -580,6 +617,17 @@ module Aws::EBS
|
|
|
580
617
|
# Returns information about the blocks in an Amazon Elastic Block Store
|
|
581
618
|
# snapshot.
|
|
582
619
|
#
|
|
620
|
+
# <note markdown="1"> You should always retry requests that receive server (`5xx`) error
|
|
621
|
+
# responses, and `ThrottlingException` and `RequestThrottledException`
|
|
622
|
+
# client error responses. For more information see [Error retries][1] in
|
|
623
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
624
|
+
#
|
|
625
|
+
# </note>
|
|
626
|
+
#
|
|
627
|
+
#
|
|
628
|
+
#
|
|
629
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
630
|
+
#
|
|
583
631
|
# @option params [required, String] :snapshot_id
|
|
584
632
|
# The ID of the snapshot from which to get block indexes and block
|
|
585
633
|
# tokens.
|
|
@@ -651,6 +699,17 @@ module Aws::EBS
|
|
|
651
699
|
#
|
|
652
700
|
# Data written to a snapshot must be aligned with 512-KiB sectors.
|
|
653
701
|
#
|
|
702
|
+
# <note markdown="1"> You should always retry requests that receive server (`5xx`) error
|
|
703
|
+
# responses, and `ThrottlingException` and `RequestThrottledException`
|
|
704
|
+
# client error responses. For more information see [Error retries][1] in
|
|
705
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
706
|
+
#
|
|
707
|
+
# </note>
|
|
708
|
+
#
|
|
709
|
+
#
|
|
710
|
+
#
|
|
711
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
712
|
+
#
|
|
654
713
|
# @option params [required, String] :snapshot_id
|
|
655
714
|
# The ID of the snapshot.
|
|
656
715
|
#
|
|
@@ -743,9 +802,17 @@ module Aws::EBS
|
|
|
743
802
|
# After creating the snapshot, use [ PutSnapshotBlock][1] to write
|
|
744
803
|
# blocks of data to the snapshot.
|
|
745
804
|
#
|
|
805
|
+
# <note markdown="1"> You should always retry requests that receive server (`5xx`) error
|
|
806
|
+
# responses, and `ThrottlingException` and `RequestThrottledException`
|
|
807
|
+
# client error responses. For more information see [Error retries][2] in
|
|
808
|
+
# the *Amazon Elastic Compute Cloud User Guide*.
|
|
809
|
+
#
|
|
810
|
+
# </note>
|
|
811
|
+
#
|
|
746
812
|
#
|
|
747
813
|
#
|
|
748
814
|
# [1]: https://docs.aws.amazon.com/ebs/latest/APIReference/API_PutSnapshotBlock.html
|
|
815
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
749
816
|
#
|
|
750
817
|
# @option params [required, Integer] :volume_size
|
|
751
818
|
# The size of the volume, in GiB. The maximum size is `65536` GiB (64
|
|
@@ -869,6 +936,7 @@ module Aws::EBS
|
|
|
869
936
|
# * {Types::StartSnapshotResponse#tags #tags} => Array<Types::Tag>
|
|
870
937
|
# * {Types::StartSnapshotResponse#parent_snapshot_id #parent_snapshot_id} => String
|
|
871
938
|
# * {Types::StartSnapshotResponse#kms_key_arn #kms_key_arn} => String
|
|
939
|
+
# * {Types::StartSnapshotResponse#sse_type #sse_type} => String
|
|
872
940
|
#
|
|
873
941
|
# @example Request syntax with placeholder values
|
|
874
942
|
#
|
|
@@ -902,6 +970,7 @@ module Aws::EBS
|
|
|
902
970
|
# resp.tags[0].value #=> String
|
|
903
971
|
# resp.parent_snapshot_id #=> String
|
|
904
972
|
# resp.kms_key_arn #=> String
|
|
973
|
+
# resp.sse_type #=> String, one of "sse-ebs", "sse-kms", "none"
|
|
905
974
|
#
|
|
906
975
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/StartSnapshot AWS API Documentation
|
|
907
976
|
#
|
|
@@ -925,7 +994,7 @@ module Aws::EBS
|
|
|
925
994
|
params: params,
|
|
926
995
|
config: config)
|
|
927
996
|
context[:gem_name] = 'aws-sdk-ebs'
|
|
928
|
-
context[:gem_version] = '1.
|
|
997
|
+
context[:gem_version] = '1.34.0'
|
|
929
998
|
Seahorse::Client::Request.new(handlers, context)
|
|
930
999
|
end
|
|
931
1000
|
|
|
@@ -54,6 +54,7 @@ module Aws::EBS
|
|
|
54
54
|
RequestThrottledExceptionReason = Shapes::StringShape.new(name: 'RequestThrottledExceptionReason')
|
|
55
55
|
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
56
56
|
ResourceNotFoundExceptionReason = Shapes::StringShape.new(name: 'ResourceNotFoundExceptionReason')
|
|
57
|
+
SSEType = Shapes::StringShape.new(name: 'SSEType')
|
|
57
58
|
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
58
59
|
ServiceQuotaExceededExceptionReason = Shapes::StringShape.new(name: 'ServiceQuotaExceededExceptionReason')
|
|
59
60
|
SnapshotId = Shapes::StringShape.new(name: 'SnapshotId')
|
|
@@ -193,6 +194,7 @@ module Aws::EBS
|
|
|
193
194
|
StartSnapshotResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
|
194
195
|
StartSnapshotResponse.add_member(:parent_snapshot_id, Shapes::ShapeRef.new(shape: SnapshotId, location_name: "ParentSnapshotId"))
|
|
195
196
|
StartSnapshotResponse.add_member(:kms_key_arn, Shapes::ShapeRef.new(shape: KmsKeyArn, location_name: "KmsKeyArn"))
|
|
197
|
+
StartSnapshotResponse.add_member(:sse_type, Shapes::ShapeRef.new(shape: SSEType, location_name: "SseType"))
|
|
196
198
|
StartSnapshotResponse.struct_class = Types::StartSnapshotResponse
|
|
197
199
|
|
|
198
200
|
Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, location_name: "Key"))
|
|
@@ -14,36 +14,39 @@ module Aws::EBS
|
|
|
14
14
|
use_dual_stack = parameters.use_dual_stack
|
|
15
15
|
use_fips = parameters.use_fips
|
|
16
16
|
endpoint = parameters.endpoint
|
|
17
|
-
if
|
|
18
|
-
if Aws::Endpoints::Matchers.set?(endpoint) && (url = Aws::Endpoints::Matchers.parse_url(endpoint))
|
|
19
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
20
|
-
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
21
|
-
end
|
|
22
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
23
|
-
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
24
|
-
end
|
|
25
|
-
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
26
|
-
end
|
|
27
|
-
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
28
|
-
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
29
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ebs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
30
|
-
end
|
|
31
|
-
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
32
|
-
end
|
|
17
|
+
if Aws::Endpoints::Matchers.set?(endpoint)
|
|
33
18
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
34
|
-
|
|
35
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ebs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
36
|
-
end
|
|
37
|
-
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
19
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
38
20
|
end
|
|
39
21
|
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
40
|
-
|
|
41
|
-
|
|
22
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
23
|
+
end
|
|
24
|
+
return Aws::Endpoints::Endpoint.new(url: endpoint, headers: {}, properties: {})
|
|
25
|
+
end
|
|
26
|
+
if Aws::Endpoints::Matchers.set?(region)
|
|
27
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(region))
|
|
28
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
29
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
30
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ebs-fips.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
31
|
+
end
|
|
32
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
33
|
+
end
|
|
34
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"))
|
|
36
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ebs-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
37
|
+
end
|
|
38
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
39
|
+
end
|
|
40
|
+
if Aws::Endpoints::Matchers.boolean_equals?(use_dual_stack, true)
|
|
41
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ebs.#{region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
43
|
+
end
|
|
44
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
42
45
|
end
|
|
43
|
-
|
|
46
|
+
return Aws::Endpoints::Endpoint.new(url: "https://ebs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
44
47
|
end
|
|
45
|
-
return Aws::Endpoints::Endpoint.new(url: "https://ebs.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
46
48
|
end
|
|
49
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
47
50
|
raise ArgumentError, 'No endpoint could be resolved'
|
|
48
51
|
|
|
49
52
|
end
|
data/lib/aws-sdk-ebs/types.rb
CHANGED
|
@@ -227,7 +227,12 @@ module Aws::EBS
|
|
|
227
227
|
include Aws::Structure
|
|
228
228
|
end
|
|
229
229
|
|
|
230
|
-
# An internal error has occurred.
|
|
230
|
+
# An internal error has occurred. For more information see [Error
|
|
231
|
+
# retries][1].
|
|
232
|
+
#
|
|
233
|
+
#
|
|
234
|
+
#
|
|
235
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
231
236
|
#
|
|
232
237
|
# @!attribute [rw] message
|
|
233
238
|
# @return [String]
|
|
@@ -498,8 +503,13 @@ module Aws::EBS
|
|
|
498
503
|
include Aws::Structure
|
|
499
504
|
end
|
|
500
505
|
|
|
501
|
-
# The number of API requests has
|
|
502
|
-
# throttling limit.
|
|
506
|
+
# The number of API requests has exceeded the maximum allowed API
|
|
507
|
+
# request throttling limit for the snapshot. For more information see
|
|
508
|
+
# [Error retries][1].
|
|
509
|
+
#
|
|
510
|
+
#
|
|
511
|
+
#
|
|
512
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/error-retries.html
|
|
503
513
|
#
|
|
504
514
|
# @!attribute [rw] message
|
|
505
515
|
# @return [String]
|
|
@@ -737,6 +747,10 @@ module Aws::EBS
|
|
|
737
747
|
# key used to encrypt the snapshot.
|
|
738
748
|
# @return [String]
|
|
739
749
|
#
|
|
750
|
+
# @!attribute [rw] sse_type
|
|
751
|
+
# Reserved for future use.
|
|
752
|
+
# @return [String]
|
|
753
|
+
#
|
|
740
754
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/StartSnapshotResponse AWS API Documentation
|
|
741
755
|
#
|
|
742
756
|
class StartSnapshotResponse < Struct.new(
|
|
@@ -749,7 +763,8 @@ module Aws::EBS
|
|
|
749
763
|
:block_size,
|
|
750
764
|
:tags,
|
|
751
765
|
:parent_snapshot_id,
|
|
752
|
-
:kms_key_arn
|
|
766
|
+
:kms_key_arn,
|
|
767
|
+
:sse_type)
|
|
753
768
|
SENSITIVE = [:kms_key_arn]
|
|
754
769
|
include Aws::Structure
|
|
755
770
|
end
|
data/lib/aws-sdk-ebs.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws-sdk-ebs
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
4
|
+
version: 1.34.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: 2023-07-
|
|
11
|
+
date: 2023-07-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aws-sdk-core
|