aws-sdk-ec2 1.142.0 → 1.143.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +35 -9
- data/lib/aws-sdk-ec2/client_api.rb +14 -2
- data/lib/aws-sdk-ec2/instance.rb +4 -1
- data/lib/aws-sdk-ec2/resource.rb +16 -1
- data/lib/aws-sdk-ec2/types.rb +66 -12
- data/lib/aws-sdk-ec2/volume.rb +8 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1be7dcbeb0f299ea254ca08700e0fd9412ed0676
|
4
|
+
data.tar.gz: 13519daede6fca9cb8d717525a043f8c86863667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '095fa7f84c139f26ddab9734f3e6f30886053ed07cc4f675d4b0d673b4de7f2ff17ad8d16101645d5f51a7c8d28cb2648b176028d0232bf57e06d4e87bca7927'
|
7
|
+
data.tar.gz: b5a3ba39116cdfbe9bc8aff6f2681ad9eff4739b5bcc70099b7327da507c64f6836f39ac59b37c55ba5d1e6406567ff35d0ef005c2a248a453acc16c75f4b97e
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -8408,6 +8408,18 @@ module Aws::EC2
|
|
8408
8408
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
8409
8409
|
# The tags to apply to the volume during creation.
|
8410
8410
|
#
|
8411
|
+
# @option params [Boolean] :multi_attach_enabled
|
8412
|
+
# Specifies whether to enable Amazon EBS Multi-Attach. If you enable
|
8413
|
+
# Multi-Attach, you can attach the volume to up to 16 [Nitro-based
|
8414
|
+
# instances][1] in the same Availability Zone. For more information, see
|
8415
|
+
# [ Amazon EBS Multi-Attach][2] in the *Amazon Elastic Compute Cloud
|
8416
|
+
# User Guide*.
|
8417
|
+
#
|
8418
|
+
#
|
8419
|
+
#
|
8420
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
|
8421
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html
|
8422
|
+
#
|
8411
8423
|
# @return [Types::Volume] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8412
8424
|
#
|
8413
8425
|
# * {Types::Volume#attachments #attachments} => Array<Types::VolumeAttachment>
|
@@ -8424,6 +8436,7 @@ module Aws::EC2
|
|
8424
8436
|
# * {Types::Volume#tags #tags} => Array<Types::Tag>
|
8425
8437
|
# * {Types::Volume#volume_type #volume_type} => String
|
8426
8438
|
# * {Types::Volume#fast_restored #fast_restored} => Boolean
|
8439
|
+
# * {Types::Volume#multi_attach_enabled #multi_attach_enabled} => Boolean
|
8427
8440
|
#
|
8428
8441
|
#
|
8429
8442
|
# @example Example: To create a new volume
|
@@ -8500,6 +8513,7 @@ module Aws::EC2
|
|
8500
8513
|
# ],
|
8501
8514
|
# },
|
8502
8515
|
# ],
|
8516
|
+
# multi_attach_enabled: false,
|
8503
8517
|
# })
|
8504
8518
|
#
|
8505
8519
|
# @example Response structure
|
@@ -8526,6 +8540,7 @@ module Aws::EC2
|
|
8526
8540
|
# resp.tags[0].value #=> String
|
8527
8541
|
# resp.volume_type #=> String, one of "standard", "io1", "gp2", "sc1", "st1"
|
8528
8542
|
# resp.fast_restored #=> Boolean
|
8543
|
+
# resp.multi_attach_enabled #=> Boolean
|
8529
8544
|
#
|
8530
8545
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolume AWS API Documentation
|
8531
8546
|
#
|
@@ -22561,7 +22576,7 @@ module Aws::EC2
|
|
22561
22576
|
#
|
22562
22577
|
# resp = client.describe_volume_attribute({
|
22563
22578
|
# attribute: "autoEnableIO", # required, accepts autoEnableIO, productCodes
|
22564
|
-
# volume_id: "
|
22579
|
+
# volume_id: "VolumeId", # required
|
22565
22580
|
# dry_run: false,
|
22566
22581
|
# })
|
22567
22582
|
#
|
@@ -22767,7 +22782,7 @@ module Aws::EC2
|
|
22767
22782
|
# ],
|
22768
22783
|
# max_results: 1,
|
22769
22784
|
# next_token: "String",
|
22770
|
-
# volume_ids: ["
|
22785
|
+
# volume_ids: ["VolumeId"],
|
22771
22786
|
# dry_run: false,
|
22772
22787
|
# })
|
22773
22788
|
#
|
@@ -22788,11 +22803,15 @@ module Aws::EC2
|
|
22788
22803
|
# resp.volume_statuses[0].events[0].event_type #=> String
|
22789
22804
|
# resp.volume_statuses[0].events[0].not_after #=> Time
|
22790
22805
|
# resp.volume_statuses[0].events[0].not_before #=> Time
|
22806
|
+
# resp.volume_statuses[0].events[0].instance_id #=> String
|
22791
22807
|
# resp.volume_statuses[0].volume_id #=> String
|
22792
22808
|
# resp.volume_statuses[0].volume_status.details #=> Array
|
22793
22809
|
# resp.volume_statuses[0].volume_status.details[0].name #=> String, one of "io-enabled", "io-performance"
|
22794
22810
|
# resp.volume_statuses[0].volume_status.details[0].status #=> String
|
22795
22811
|
# resp.volume_statuses[0].volume_status.status #=> String, one of "ok", "impaired", "insufficient-data"
|
22812
|
+
# resp.volume_statuses[0].attachment_statuses #=> Array
|
22813
|
+
# resp.volume_statuses[0].attachment_statuses[0].io_performance #=> String
|
22814
|
+
# resp.volume_statuses[0].attachment_statuses[0].instance_id #=> String
|
22796
22815
|
#
|
22797
22816
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumeStatus AWS API Documentation
|
22798
22817
|
#
|
@@ -22846,6 +22865,9 @@ module Aws::EC2
|
|
22846
22865
|
# * `encrypted` - Indicates whether the volume is encrypted (`true` \|
|
22847
22866
|
# `false`)
|
22848
22867
|
#
|
22868
|
+
# * `multi-attach-enabled` - Indicates whether the volume is enabled for
|
22869
|
+
# Multi-Attach (`true` \| `false`)
|
22870
|
+
#
|
22849
22871
|
# * `fast-restored` - Indicates whether the volume was created from a
|
22850
22872
|
# snapshot that is enabled for fast snapshot restore (`true` \|
|
22851
22873
|
# `false`).
|
@@ -22997,7 +23019,7 @@ module Aws::EC2
|
|
22997
23019
|
# values: ["String"],
|
22998
23020
|
# },
|
22999
23021
|
# ],
|
23000
|
-
# volume_ids: ["
|
23022
|
+
# volume_ids: ["VolumeId"],
|
23001
23023
|
# dry_run: false,
|
23002
23024
|
# max_results: 1,
|
23003
23025
|
# next_token: "String",
|
@@ -23028,6 +23050,7 @@ module Aws::EC2
|
|
23028
23050
|
# resp.volumes[0].tags[0].value #=> String
|
23029
23051
|
# resp.volumes[0].volume_type #=> String, one of "standard", "io1", "gp2", "sc1", "st1"
|
23030
23052
|
# resp.volumes[0].fast_restored #=> Boolean
|
23053
|
+
# resp.volumes[0].multi_attach_enabled #=> Boolean
|
23031
23054
|
# resp.next_token #=> String
|
23032
23055
|
#
|
23033
23056
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVolumes AWS API Documentation
|
@@ -23071,9 +23094,11 @@ module Aws::EC2
|
|
23071
23094
|
# described.
|
23072
23095
|
#
|
23073
23096
|
# @option params [Array<Types::Filter>] :filters
|
23074
|
-
# The filters. Supported filters: `volume-id
|
23075
|
-
# `target-size
|
23076
|
-
# `original-iops
|
23097
|
+
# The filters. Supported filters: `volume-id` \| `modification-state` \|
|
23098
|
+
# `target-size` \| `target-iops` \| `target-volume-type` \|
|
23099
|
+
# `original-size` \| `original-iops` \| `original-volume-type` \|
|
23100
|
+
# `start-time` \| `originalMultiAttachEnabled` \|
|
23101
|
+
# `targetMultiAttachEnabled`.
|
23077
23102
|
#
|
23078
23103
|
# @option params [String] :next_token
|
23079
23104
|
# The `nextToken` value returned by a previous paginated request.
|
@@ -23091,7 +23116,7 @@ module Aws::EC2
|
|
23091
23116
|
#
|
23092
23117
|
# resp = client.describe_volumes_modifications({
|
23093
23118
|
# dry_run: false,
|
23094
|
-
# volume_ids: ["
|
23119
|
+
# volume_ids: ["VolumeId"],
|
23095
23120
|
# filters: [
|
23096
23121
|
# {
|
23097
23122
|
# name: "String",
|
@@ -24541,7 +24566,8 @@ module Aws::EC2
|
|
24541
24566
|
# procedures.
|
24542
24567
|
#
|
24543
24568
|
# @option params [String] :instance_id
|
24544
|
-
# The ID of the instance.
|
24569
|
+
# The ID of the instance. If you are detaching a Multi-Attach enabled
|
24570
|
+
# volume, you must specify an instance ID.
|
24545
24571
|
#
|
24546
24572
|
# @option params [required, String] :volume_id
|
24547
24573
|
# The ID of the volume.
|
@@ -35982,7 +36008,7 @@ module Aws::EC2
|
|
35982
36008
|
params: params,
|
35983
36009
|
config: config)
|
35984
36010
|
context[:gem_name] = 'aws-sdk-ec2'
|
35985
|
-
context[:gem_version] = '1.
|
36011
|
+
context[:gem_version] = '1.143.0'
|
35986
36012
|
Seahorse::Client::Request.new(handlers, context)
|
35987
36013
|
end
|
35988
36014
|
|
@@ -1870,6 +1870,8 @@ module Aws::EC2
|
|
1870
1870
|
VolumeState = Shapes::StringShape.new(name: 'VolumeState')
|
1871
1871
|
VolumeStatusAction = Shapes::StructureShape.new(name: 'VolumeStatusAction')
|
1872
1872
|
VolumeStatusActionsList = Shapes::ListShape.new(name: 'VolumeStatusActionsList')
|
1873
|
+
VolumeStatusAttachmentStatus = Shapes::StructureShape.new(name: 'VolumeStatusAttachmentStatus')
|
1874
|
+
VolumeStatusAttachmentStatusList = Shapes::ListShape.new(name: 'VolumeStatusAttachmentStatusList')
|
1873
1875
|
VolumeStatusDetails = Shapes::StructureShape.new(name: 'VolumeStatusDetails')
|
1874
1876
|
VolumeStatusDetailsList = Shapes::ListShape.new(name: 'VolumeStatusDetailsList')
|
1875
1877
|
VolumeStatusEvent = Shapes::StructureShape.new(name: 'VolumeStatusEvent')
|
@@ -3210,6 +3212,7 @@ module Aws::EC2
|
|
3210
3212
|
CreateVolumeRequest.add_member(:volume_type, Shapes::ShapeRef.new(shape: VolumeType, location_name: "VolumeType"))
|
3211
3213
|
CreateVolumeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
3212
3214
|
CreateVolumeRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3215
|
+
CreateVolumeRequest.add_member(:multi_attach_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "MultiAttachEnabled"))
|
3213
3216
|
CreateVolumeRequest.struct_class = Types::CreateVolumeRequest
|
3214
3217
|
|
3215
3218
|
CreateVpcEndpointConnectionNotificationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -4707,7 +4710,7 @@ module Aws::EC2
|
|
4707
4710
|
DescribeTransitGatewaysResult.struct_class = Types::DescribeTransitGatewaysResult
|
4708
4711
|
|
4709
4712
|
DescribeVolumeAttributeRequest.add_member(:attribute, Shapes::ShapeRef.new(shape: VolumeAttributeName, required: true, location_name: "Attribute"))
|
4710
|
-
DescribeVolumeAttributeRequest.add_member(:volume_id, Shapes::ShapeRef.new(shape:
|
4713
|
+
DescribeVolumeAttributeRequest.add_member(:volume_id, Shapes::ShapeRef.new(shape: VolumeId, required: true, location_name: "VolumeId"))
|
4711
4714
|
DescribeVolumeAttributeRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
4712
4715
|
DescribeVolumeAttributeRequest.struct_class = Types::DescribeVolumeAttributeRequest
|
4713
4716
|
|
@@ -9309,6 +9312,7 @@ module Aws::EC2
|
|
9309
9312
|
Volume.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
9310
9313
|
Volume.add_member(:volume_type, Shapes::ShapeRef.new(shape: VolumeType, location_name: "volumeType"))
|
9311
9314
|
Volume.add_member(:fast_restored, Shapes::ShapeRef.new(shape: Boolean, location_name: "fastRestored"))
|
9315
|
+
Volume.add_member(:multi_attach_enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "multiAttachEnabled"))
|
9312
9316
|
Volume.struct_class = Types::Volume
|
9313
9317
|
|
9314
9318
|
VolumeAttachment.add_member(:attach_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "attachTime"))
|
@@ -9324,7 +9328,7 @@ module Aws::EC2
|
|
9324
9328
|
VolumeDetail.add_member(:size, Shapes::ShapeRef.new(shape: Long, required: true, location_name: "size"))
|
9325
9329
|
VolumeDetail.struct_class = Types::VolumeDetail
|
9326
9330
|
|
9327
|
-
VolumeIdStringList.member = Shapes::ShapeRef.new(shape:
|
9331
|
+
VolumeIdStringList.member = Shapes::ShapeRef.new(shape: VolumeId, location_name: "VolumeId")
|
9328
9332
|
|
9329
9333
|
VolumeList.member = Shapes::ShapeRef.new(shape: Volume, location_name: "item")
|
9330
9334
|
|
@@ -9352,6 +9356,12 @@ module Aws::EC2
|
|
9352
9356
|
|
9353
9357
|
VolumeStatusActionsList.member = Shapes::ShapeRef.new(shape: VolumeStatusAction, location_name: "item")
|
9354
9358
|
|
9359
|
+
VolumeStatusAttachmentStatus.add_member(:io_performance, Shapes::ShapeRef.new(shape: String, location_name: "ioPerformance"))
|
9360
|
+
VolumeStatusAttachmentStatus.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "instanceId"))
|
9361
|
+
VolumeStatusAttachmentStatus.struct_class = Types::VolumeStatusAttachmentStatus
|
9362
|
+
|
9363
|
+
VolumeStatusAttachmentStatusList.member = Shapes::ShapeRef.new(shape: VolumeStatusAttachmentStatus, location_name: "item")
|
9364
|
+
|
9355
9365
|
VolumeStatusDetails.add_member(:name, Shapes::ShapeRef.new(shape: VolumeStatusName, location_name: "name"))
|
9356
9366
|
VolumeStatusDetails.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "status"))
|
9357
9367
|
VolumeStatusDetails.struct_class = Types::VolumeStatusDetails
|
@@ -9363,6 +9373,7 @@ module Aws::EC2
|
|
9363
9373
|
VolumeStatusEvent.add_member(:event_type, Shapes::ShapeRef.new(shape: String, location_name: "eventType"))
|
9364
9374
|
VolumeStatusEvent.add_member(:not_after, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "notAfter"))
|
9365
9375
|
VolumeStatusEvent.add_member(:not_before, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "notBefore"))
|
9376
|
+
VolumeStatusEvent.add_member(:instance_id, Shapes::ShapeRef.new(shape: String, location_name: "instanceId"))
|
9366
9377
|
VolumeStatusEvent.struct_class = Types::VolumeStatusEvent
|
9367
9378
|
|
9368
9379
|
VolumeStatusEventsList.member = Shapes::ShapeRef.new(shape: VolumeStatusEvent, location_name: "item")
|
@@ -9377,6 +9388,7 @@ module Aws::EC2
|
|
9377
9388
|
VolumeStatusItem.add_member(:events, Shapes::ShapeRef.new(shape: VolumeStatusEventsList, location_name: "eventsSet"))
|
9378
9389
|
VolumeStatusItem.add_member(:volume_id, Shapes::ShapeRef.new(shape: String, location_name: "volumeId"))
|
9379
9390
|
VolumeStatusItem.add_member(:volume_status, Shapes::ShapeRef.new(shape: VolumeStatusInfo, location_name: "volumeStatus"))
|
9391
|
+
VolumeStatusItem.add_member(:attachment_statuses, Shapes::ShapeRef.new(shape: VolumeStatusAttachmentStatusList, location_name: "attachmentStatuses"))
|
9380
9392
|
VolumeStatusItem.struct_class = Types::VolumeStatusItem
|
9381
9393
|
|
9382
9394
|
VolumeStatusList.member = Shapes::ShapeRef.new(shape: VolumeStatusItem, location_name: "item")
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -1357,7 +1357,7 @@ module Aws::EC2
|
|
1357
1357
|
# values: ["String"],
|
1358
1358
|
# },
|
1359
1359
|
# ],
|
1360
|
-
# volume_ids: ["
|
1360
|
+
# volume_ids: ["VolumeId"],
|
1361
1361
|
# dry_run: false,
|
1362
1362
|
# })
|
1363
1363
|
# @param [Hash] options ({})
|
@@ -1387,6 +1387,9 @@ module Aws::EC2
|
|
1387
1387
|
# * `encrypted` - Indicates whether the volume is encrypted (`true` \|
|
1388
1388
|
# `false`)
|
1389
1389
|
#
|
1390
|
+
# * `multi-attach-enabled` - Indicates whether the volume is enabled for
|
1391
|
+
# Multi-Attach (`true` \| `false`)
|
1392
|
+
#
|
1390
1393
|
# * `fast-restored` - Indicates whether the volume was created from a
|
1391
1394
|
# snapshot that is enabled for fast snapshot restore (`true` \|
|
1392
1395
|
# `false`).
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -971,6 +971,7 @@ module Aws::EC2
|
|
971
971
|
# ],
|
972
972
|
# },
|
973
973
|
# ],
|
974
|
+
# multi_attach_enabled: false,
|
974
975
|
# })
|
975
976
|
# @param [Hash] options ({})
|
976
977
|
# @option options [required, String] :availability_zone
|
@@ -1055,6 +1056,17 @@ module Aws::EC2
|
|
1055
1056
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1056
1057
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
1057
1058
|
# The tags to apply to the volume during creation.
|
1059
|
+
# @option options [Boolean] :multi_attach_enabled
|
1060
|
+
# Specifies whether to enable Amazon EBS Multi-Attach. If you enable
|
1061
|
+
# Multi-Attach, you can attach the volume to up to 16 [Nitro-based
|
1062
|
+
# instances][1] in the same Availability Zone. For more information, see
|
1063
|
+
# [ Amazon EBS Multi-Attach][2] in the *Amazon Elastic Compute Cloud
|
1064
|
+
# User Guide*.
|
1065
|
+
#
|
1066
|
+
#
|
1067
|
+
#
|
1068
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
|
1069
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html
|
1058
1070
|
# @return [Volume]
|
1059
1071
|
def create_volume(options = {})
|
1060
1072
|
resp = @client.create_volume(options)
|
@@ -2942,7 +2954,7 @@ module Aws::EC2
|
|
2942
2954
|
# values: ["String"],
|
2943
2955
|
# },
|
2944
2956
|
# ],
|
2945
|
-
# volume_ids: ["
|
2957
|
+
# volume_ids: ["VolumeId"],
|
2946
2958
|
# dry_run: false,
|
2947
2959
|
# })
|
2948
2960
|
# @param [Hash] options ({})
|
@@ -2972,6 +2984,9 @@ module Aws::EC2
|
|
2972
2984
|
# * `encrypted` - Indicates whether the volume is encrypted (`true` \|
|
2973
2985
|
# `false`)
|
2974
2986
|
#
|
2987
|
+
# * `multi-attach-enabled` - Indicates whether the volume is enabled for
|
2988
|
+
# Multi-Attach (`true` \| `false`)
|
2989
|
+
#
|
2975
2990
|
# * `fast-restored` - Indicates whether the volume was created from a
|
2976
2991
|
# snapshot that is enabled for fast snapshot restore (`true` \|
|
2977
2992
|
# `false`).
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -8310,6 +8310,7 @@ module Aws::EC2
|
|
8310
8310
|
# ],
|
8311
8311
|
# },
|
8312
8312
|
# ],
|
8313
|
+
# multi_attach_enabled: false,
|
8313
8314
|
# }
|
8314
8315
|
#
|
8315
8316
|
# @!attribute [rw] availability_zone
|
@@ -8415,6 +8416,19 @@ module Aws::EC2
|
|
8415
8416
|
# The tags to apply to the volume during creation.
|
8416
8417
|
# @return [Array<Types::TagSpecification>]
|
8417
8418
|
#
|
8419
|
+
# @!attribute [rw] multi_attach_enabled
|
8420
|
+
# Specifies whether to enable Amazon EBS Multi-Attach. If you enable
|
8421
|
+
# Multi-Attach, you can attach the volume to up to 16 [Nitro-based
|
8422
|
+
# instances][1] in the same Availability Zone. For more information,
|
8423
|
+
# see [ Amazon EBS Multi-Attach][2] in the *Amazon Elastic Compute
|
8424
|
+
# Cloud User Guide*.
|
8425
|
+
#
|
8426
|
+
#
|
8427
|
+
#
|
8428
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances
|
8429
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-volumes-multi.html
|
8430
|
+
# @return [Boolean]
|
8431
|
+
#
|
8418
8432
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateVolumeRequest AWS API Documentation
|
8419
8433
|
#
|
8420
8434
|
class CreateVolumeRequest < Struct.new(
|
@@ -8427,7 +8441,8 @@ module Aws::EC2
|
|
8427
8441
|
:snapshot_id,
|
8428
8442
|
:volume_type,
|
8429
8443
|
:dry_run,
|
8430
|
-
:tag_specifications
|
8444
|
+
:tag_specifications,
|
8445
|
+
:multi_attach_enabled)
|
8431
8446
|
include Aws::Structure
|
8432
8447
|
end
|
8433
8448
|
|
@@ -19598,7 +19613,7 @@ module Aws::EC2
|
|
19598
19613
|
#
|
19599
19614
|
# {
|
19600
19615
|
# attribute: "autoEnableIO", # required, accepts autoEnableIO, productCodes
|
19601
|
-
# volume_id: "
|
19616
|
+
# volume_id: "VolumeId", # required
|
19602
19617
|
# dry_run: false,
|
19603
19618
|
# }
|
19604
19619
|
#
|
@@ -19659,7 +19674,7 @@ module Aws::EC2
|
|
19659
19674
|
# ],
|
19660
19675
|
# max_results: 1,
|
19661
19676
|
# next_token: "String",
|
19662
|
-
# volume_ids: ["
|
19677
|
+
# volume_ids: ["VolumeId"],
|
19663
19678
|
# dry_run: false,
|
19664
19679
|
# }
|
19665
19680
|
#
|
@@ -19765,7 +19780,7 @@ module Aws::EC2
|
|
19765
19780
|
#
|
19766
19781
|
# {
|
19767
19782
|
# dry_run: false,
|
19768
|
-
# volume_ids: ["
|
19783
|
+
# volume_ids: ["VolumeId"],
|
19769
19784
|
# filters: [
|
19770
19785
|
# {
|
19771
19786
|
# name: "String",
|
@@ -19789,9 +19804,11 @@ module Aws::EC2
|
|
19789
19804
|
# @return [Array<String>]
|
19790
19805
|
#
|
19791
19806
|
# @!attribute [rw] filters
|
19792
|
-
# The filters. Supported filters: `volume-id
|
19793
|
-
# `target-size
|
19794
|
-
# `original-iops
|
19807
|
+
# The filters. Supported filters: `volume-id` \| `modification-state`
|
19808
|
+
# \| `target-size` \| `target-iops` \| `target-volume-type` \|
|
19809
|
+
# `original-size` \| `original-iops` \| `original-volume-type` \|
|
19810
|
+
# `start-time` \| `originalMultiAttachEnabled` \|
|
19811
|
+
# `targetMultiAttachEnabled`.
|
19795
19812
|
# @return [Array<Types::Filter>]
|
19796
19813
|
#
|
19797
19814
|
# @!attribute [rw] next_token
|
@@ -19840,7 +19857,7 @@ module Aws::EC2
|
|
19840
19857
|
# values: ["String"],
|
19841
19858
|
# },
|
19842
19859
|
# ],
|
19843
|
-
# volume_ids: ["
|
19860
|
+
# volume_ids: ["VolumeId"],
|
19844
19861
|
# dry_run: false,
|
19845
19862
|
# max_results: 1,
|
19846
19863
|
# next_token: "String",
|
@@ -19872,6 +19889,9 @@ module Aws::EC2
|
|
19872
19889
|
# * `encrypted` - Indicates whether the volume is encrypted (`true` \|
|
19873
19890
|
# `false`)
|
19874
19891
|
#
|
19892
|
+
# * `multi-attach-enabled` - Indicates whether the volume is enabled
|
19893
|
+
# for Multi-Attach (`true` \| `false`)
|
19894
|
+
#
|
19875
19895
|
# * `fast-restored` - Indicates whether the volume was created from a
|
19876
19896
|
# snapshot that is enabled for fast snapshot restore (`true` \|
|
19877
19897
|
# `false`).
|
@@ -21218,7 +21238,8 @@ module Aws::EC2
|
|
21218
21238
|
# @return [Boolean]
|
21219
21239
|
#
|
21220
21240
|
# @!attribute [rw] instance_id
|
21221
|
-
# The ID of the instance.
|
21241
|
+
# The ID of the instance. If you are detaching a Multi-Attach enabled
|
21242
|
+
# volume, you must specify an instance ID.
|
21222
21243
|
# @return [String]
|
21223
21244
|
#
|
21224
21245
|
# @!attribute [rw] volume_id
|
@@ -46266,6 +46287,10 @@ module Aws::EC2
|
|
46266
46287
|
# restore.
|
46267
46288
|
# @return [Boolean]
|
46268
46289
|
#
|
46290
|
+
# @!attribute [rw] multi_attach_enabled
|
46291
|
+
# Indicates whether Amazon EBS Multi-Attach is enabled.
|
46292
|
+
# @return [Boolean]
|
46293
|
+
#
|
46269
46294
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Volume AWS API Documentation
|
46270
46295
|
#
|
46271
46296
|
class Volume < Struct.new(
|
@@ -46282,7 +46307,8 @@ module Aws::EC2
|
|
46282
46307
|
:iops,
|
46283
46308
|
:tags,
|
46284
46309
|
:volume_type,
|
46285
|
-
:fast_restored
|
46310
|
+
:fast_restored,
|
46311
|
+
:multi_attach_enabled)
|
46286
46312
|
include Aws::Structure
|
46287
46313
|
end
|
46288
46314
|
|
@@ -46444,6 +46470,24 @@ module Aws::EC2
|
|
46444
46470
|
include Aws::Structure
|
46445
46471
|
end
|
46446
46472
|
|
46473
|
+
# Information about the instances to which the volume is attached.
|
46474
|
+
#
|
46475
|
+
# @!attribute [rw] io_performance
|
46476
|
+
# The maximum IOPS supported by the attached instance.
|
46477
|
+
# @return [String]
|
46478
|
+
#
|
46479
|
+
# @!attribute [rw] instance_id
|
46480
|
+
# The ID of the attached instance.
|
46481
|
+
# @return [String]
|
46482
|
+
#
|
46483
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusAttachmentStatus AWS API Documentation
|
46484
|
+
#
|
46485
|
+
class VolumeStatusAttachmentStatus < Struct.new(
|
46486
|
+
:io_performance,
|
46487
|
+
:instance_id)
|
46488
|
+
include Aws::Structure
|
46489
|
+
end
|
46490
|
+
|
46447
46491
|
# Describes a volume status.
|
46448
46492
|
#
|
46449
46493
|
# @!attribute [rw] name
|
@@ -46484,6 +46528,10 @@ module Aws::EC2
|
|
46484
46528
|
# The earliest start time of the event.
|
46485
46529
|
# @return [Time]
|
46486
46530
|
#
|
46531
|
+
# @!attribute [rw] instance_id
|
46532
|
+
# The ID of the instance associated with the event.
|
46533
|
+
# @return [String]
|
46534
|
+
#
|
46487
46535
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusEvent AWS API Documentation
|
46488
46536
|
#
|
46489
46537
|
class VolumeStatusEvent < Struct.new(
|
@@ -46491,7 +46539,8 @@ module Aws::EC2
|
|
46491
46539
|
:event_id,
|
46492
46540
|
:event_type,
|
46493
46541
|
:not_after,
|
46494
|
-
:not_before
|
46542
|
+
:not_before,
|
46543
|
+
:instance_id)
|
46495
46544
|
include Aws::Structure
|
46496
46545
|
end
|
46497
46546
|
|
@@ -46539,6 +46588,10 @@ module Aws::EC2
|
|
46539
46588
|
# The volume status.
|
46540
46589
|
# @return [Types::VolumeStatusInfo]
|
46541
46590
|
#
|
46591
|
+
# @!attribute [rw] attachment_statuses
|
46592
|
+
# Information about the instances to which the volume is attached.
|
46593
|
+
# @return [Array<Types::VolumeStatusAttachmentStatus>]
|
46594
|
+
#
|
46542
46595
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/VolumeStatusItem AWS API Documentation
|
46543
46596
|
#
|
46544
46597
|
class VolumeStatusItem < Struct.new(
|
@@ -46547,7 +46600,8 @@ module Aws::EC2
|
|
46547
46600
|
:outpost_arn,
|
46548
46601
|
:events,
|
46549
46602
|
:volume_id,
|
46550
|
-
:volume_status
|
46603
|
+
:volume_status,
|
46604
|
+
:attachment_statuses)
|
46551
46605
|
include Aws::Structure
|
46552
46606
|
end
|
46553
46607
|
|
data/lib/aws-sdk-ec2/volume.rb
CHANGED
@@ -134,6 +134,12 @@ module Aws::EC2
|
|
134
134
|
data[:fast_restored]
|
135
135
|
end
|
136
136
|
|
137
|
+
# Indicates whether Amazon EBS Multi-Attach is enabled.
|
138
|
+
# @return [Boolean]
|
139
|
+
def multi_attach_enabled
|
140
|
+
data[:multi_attach_enabled]
|
141
|
+
end
|
142
|
+
|
137
143
|
# @!endgroup
|
138
144
|
|
139
145
|
# @return [Client]
|
@@ -544,7 +550,8 @@ module Aws::EC2
|
|
544
550
|
# you use this option, you must perform file system check and repair
|
545
551
|
# procedures.
|
546
552
|
# @option options [String] :instance_id
|
547
|
-
# The ID of the instance.
|
553
|
+
# The ID of the instance. If you are detaching a Multi-Attach enabled
|
554
|
+
# volume, you must specify an instance ID.
|
548
555
|
# @option options [Boolean] :dry_run
|
549
556
|
# Checks whether you have the required permissions for the action,
|
550
557
|
# without actually making the request, and provides an error response.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.143.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: 2020-02-
|
11
|
+
date: 2020-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|