aws-sdk-ebs 1.33.0 → 1.35.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 +66 -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 +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1848600190f6fa2c9a15e7228cfb540375761a2717201ad4e00e94df096b6684
|
4
|
+
data.tar.gz: 598ff3082e8f9bfe8eda3d9f6cb2d78e850be3b16637eb2507f646e3bd0c479f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bad1e02c08d9e7f17cb0cddcc879fd7c72c2465c502546bb91f6e19a114fb3e2192e9894abc3c69f5805ed5109972e5b735c9e3a441df7cb95963c547b8ac62
|
7
|
+
data.tar.gz: 60a86acdf8223264591550994bed99ad0cca2c91a24701f2d393cce098e716a42e232d07719d15bb2d6a2bcaeb2600d64fbf8140ce98444a3a0a79a91d527143
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.35.0 (2023-09-27)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
|
8
|
+
|
9
|
+
1.34.0 (2023-07-27)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - SDK and documentation updates for Amazon Elastic Block Store API
|
13
|
+
|
4
14
|
1.33.0 (2023-07-11)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.35.0
|
data/lib/aws-sdk-ebs/client.rb
CHANGED
@@ -393,6 +393,17 @@ module Aws::EBS
|
|
393
393
|
# status to `completed`. You cannot write new blocks to a snapshot after
|
394
394
|
# it has been completed.
|
395
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
|
+
#
|
396
407
|
# @option params [required, String] :snapshot_id
|
397
408
|
# The ID of the snapshot.
|
398
409
|
#
|
@@ -446,6 +457,17 @@ module Aws::EBS
|
|
446
457
|
|
447
458
|
# Returns the data in a block in an Amazon Elastic Block Store snapshot.
|
448
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
|
+
#
|
449
471
|
# @option params [required, String] :snapshot_id
|
450
472
|
# The ID of the snapshot containing the block from which to get data.
|
451
473
|
#
|
@@ -505,6 +527,17 @@ module Aws::EBS
|
|
505
527
|
# Amazon Elastic Block Store snapshots of the same volume/snapshot
|
506
528
|
# lineage.
|
507
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
|
+
#
|
508
541
|
# @option params [String] :first_snapshot_id
|
509
542
|
# The ID of the first snapshot to use for the comparison.
|
510
543
|
#
|
@@ -584,6 +617,17 @@ module Aws::EBS
|
|
584
617
|
# Returns information about the blocks in an Amazon Elastic Block Store
|
585
618
|
# snapshot.
|
586
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
|
+
#
|
587
631
|
# @option params [required, String] :snapshot_id
|
588
632
|
# The ID of the snapshot from which to get block indexes and block
|
589
633
|
# tokens.
|
@@ -655,6 +699,17 @@ module Aws::EBS
|
|
655
699
|
#
|
656
700
|
# Data written to a snapshot must be aligned with 512-KiB sectors.
|
657
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
|
+
#
|
658
713
|
# @option params [required, String] :snapshot_id
|
659
714
|
# The ID of the snapshot.
|
660
715
|
#
|
@@ -747,9 +802,17 @@ module Aws::EBS
|
|
747
802
|
# After creating the snapshot, use [ PutSnapshotBlock][1] to write
|
748
803
|
# blocks of data to the snapshot.
|
749
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
|
+
#
|
750
812
|
#
|
751
813
|
#
|
752
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
|
753
816
|
#
|
754
817
|
# @option params [required, Integer] :volume_size
|
755
818
|
# The size of the volume, in GiB. The maximum size is `65536` GiB (64
|
@@ -873,6 +936,7 @@ module Aws::EBS
|
|
873
936
|
# * {Types::StartSnapshotResponse#tags #tags} => Array<Types::Tag>
|
874
937
|
# * {Types::StartSnapshotResponse#parent_snapshot_id #parent_snapshot_id} => String
|
875
938
|
# * {Types::StartSnapshotResponse#kms_key_arn #kms_key_arn} => String
|
939
|
+
# * {Types::StartSnapshotResponse#sse_type #sse_type} => String
|
876
940
|
#
|
877
941
|
# @example Request syntax with placeholder values
|
878
942
|
#
|
@@ -906,6 +970,7 @@ module Aws::EBS
|
|
906
970
|
# resp.tags[0].value #=> String
|
907
971
|
# resp.parent_snapshot_id #=> String
|
908
972
|
# resp.kms_key_arn #=> String
|
973
|
+
# resp.sse_type #=> String, one of "sse-ebs", "sse-kms", "none"
|
909
974
|
#
|
910
975
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ebs-2019-11-02/StartSnapshot AWS API Documentation
|
911
976
|
#
|
@@ -929,7 +994,7 @@ module Aws::EBS
|
|
929
994
|
params: params,
|
930
995
|
config: config)
|
931
996
|
context[:gem_name] = 'aws-sdk-ebs'
|
932
|
-
context[:gem_version] = '1.
|
997
|
+
context[:gem_version] = '1.35.0'
|
933
998
|
Seahorse::Client::Request.new(handlers, context)
|
934
999
|
end
|
935
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.35.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-
|
11
|
+
date: 2023-09-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3'
|
20
20
|
- - ">="
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 3.
|
22
|
+
version: 3.184.0
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3'
|
30
30
|
- - ">="
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 3.
|
32
|
+
version: 3.184.0
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: aws-sigv4
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|