aws-sdk-ec2 1.117.0 → 1.118.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 +2 -1
- data/lib/aws-sdk-ec2/client.rb +208 -5
- data/lib/aws-sdk-ec2/client_api.rb +169 -0
- data/lib/aws-sdk-ec2/nat_gateway.rb +369 -0
- data/lib/aws-sdk-ec2/resource.rb +97 -0
- data/lib/aws-sdk-ec2/snapshot.rb +1 -0
- data/lib/aws-sdk-ec2/subnet.rb +58 -0
- data/lib/aws-sdk-ec2/types.rb +532 -37
- data/lib/aws-sdk-ec2/volume.rb +6 -0
- data/lib/aws-sdk-ec2/waiters.rb +43 -0
- metadata +3 -2
data/lib/aws-sdk-ec2/snapshot.rb
CHANGED
@@ -366,6 +366,7 @@ module Aws::EC2
|
|
366
366
|
# @option options [required, String] :source_region
|
367
367
|
# The ID of the Region that contains the snapshot to be copied.
|
368
368
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
369
|
+
# The tags to apply to the new snapshot.
|
369
370
|
# @option options [Boolean] :dry_run
|
370
371
|
# Checks whether you have the required permissions for the action,
|
371
372
|
# without actually making the request, and provides an error response.
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -1139,6 +1139,64 @@ module Aws::EC2
|
|
1139
1139
|
Instance::Collection.new(batches)
|
1140
1140
|
end
|
1141
1141
|
|
1142
|
+
# @example Request syntax with placeholder values
|
1143
|
+
#
|
1144
|
+
# nat_gateways = subnet.nat_gateways({
|
1145
|
+
# filter: [
|
1146
|
+
# {
|
1147
|
+
# name: "String",
|
1148
|
+
# values: ["String"],
|
1149
|
+
# },
|
1150
|
+
# ],
|
1151
|
+
# nat_gateway_ids: ["String"],
|
1152
|
+
# })
|
1153
|
+
# @param [Hash] options ({})
|
1154
|
+
# @option options [Array<Types::Filter>] :filter
|
1155
|
+
# One or more filters.
|
1156
|
+
#
|
1157
|
+
# * `nat-gateway-id` - The ID of the NAT gateway.
|
1158
|
+
#
|
1159
|
+
# * `state` - The state of the NAT gateway (`pending` \| `failed` \|
|
1160
|
+
# `available` \| `deleting` \| `deleted`).
|
1161
|
+
#
|
1162
|
+
# * `subnet-id` - The ID of the subnet in which the NAT gateway resides.
|
1163
|
+
#
|
1164
|
+
# * `tag`\:<key> - The key/value combination of a tag assigned to
|
1165
|
+
# the resource. Use the tag key in the filter name and the tag value
|
1166
|
+
# as the filter value. For example, to find all resources that have a
|
1167
|
+
# tag with the key `Owner` and the value `TeamA`, specify `tag:Owner`
|
1168
|
+
# for the filter name and `TeamA` for the filter value.
|
1169
|
+
#
|
1170
|
+
# * `tag-key` - The key of a tag assigned to the resource. Use this
|
1171
|
+
# filter to find all resources assigned a tag with a specific key,
|
1172
|
+
# regardless of the tag value.
|
1173
|
+
#
|
1174
|
+
# * `vpc-id` - The ID of the VPC in which the NAT gateway resides.
|
1175
|
+
# @option options [Array<String>] :nat_gateway_ids
|
1176
|
+
# One or more NAT gateway IDs.
|
1177
|
+
# @return [NatGateway::Collection]
|
1178
|
+
def nat_gateways(options = {})
|
1179
|
+
batches = Enumerator.new do |y|
|
1180
|
+
options = Aws::Util.deep_merge(options, filter: [{
|
1181
|
+
name: "subnet-id",
|
1182
|
+
values: [@id]
|
1183
|
+
}])
|
1184
|
+
resp = @client.describe_nat_gateways(options)
|
1185
|
+
resp.each_page do |page|
|
1186
|
+
batch = []
|
1187
|
+
page.data.nat_gateways.each do |n|
|
1188
|
+
batch << NatGateway.new(
|
1189
|
+
id: n.nat_gateway_id,
|
1190
|
+
data: n,
|
1191
|
+
client: @client
|
1192
|
+
)
|
1193
|
+
end
|
1194
|
+
y.yield(batch)
|
1195
|
+
end
|
1196
|
+
end
|
1197
|
+
NatGateway::Collection.new(batches)
|
1198
|
+
end
|
1199
|
+
|
1142
1200
|
# @example Request syntax with placeholder values
|
1143
1201
|
#
|
1144
1202
|
# network_interfaces = subnet.network_interfaces({
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -1309,8 +1309,6 @@ module Aws::EC2
|
|
1309
1309
|
include Aws::Structure
|
1310
1310
|
end
|
1311
1311
|
|
1312
|
-
# Contains the parameters for AttachVolume.
|
1313
|
-
#
|
1314
1312
|
# @note When making an API call, you may pass AttachVolumeRequest
|
1315
1313
|
# data as a hash:
|
1316
1314
|
#
|
@@ -3808,8 +3806,6 @@ module Aws::EC2
|
|
3808
3806
|
include Aws::Structure
|
3809
3807
|
end
|
3810
3808
|
|
3811
|
-
# Contains the parameters for CopySnapshot.
|
3812
|
-
#
|
3813
3809
|
# @note When making an API call, you may pass CopySnapshotRequest
|
3814
3810
|
# data as a hash:
|
3815
3811
|
#
|
@@ -3921,6 +3917,7 @@ module Aws::EC2
|
|
3921
3917
|
# @return [String]
|
3922
3918
|
#
|
3923
3919
|
# @!attribute [rw] tag_specifications
|
3920
|
+
# The tags to apply to the new snapshot.
|
3924
3921
|
# @return [Array<Types::TagSpecification>]
|
3925
3922
|
#
|
3926
3923
|
# @!attribute [rw] dry_run
|
@@ -3945,13 +3942,12 @@ module Aws::EC2
|
|
3945
3942
|
include Aws::Structure
|
3946
3943
|
end
|
3947
3944
|
|
3948
|
-
# Contains the output of CopySnapshot.
|
3949
|
-
#
|
3950
3945
|
# @!attribute [rw] snapshot_id
|
3951
3946
|
# The ID of the new snapshot.
|
3952
3947
|
# @return [String]
|
3953
3948
|
#
|
3954
3949
|
# @!attribute [rw] tags
|
3950
|
+
# Any tags applied to the new snapshot.
|
3955
3951
|
# @return [Array<Types::Tag>]
|
3956
3952
|
#
|
3957
3953
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CopySnapshotResult AWS API Documentation
|
@@ -6535,8 +6531,6 @@ module Aws::EC2
|
|
6535
6531
|
include Aws::Structure
|
6536
6532
|
end
|
6537
6533
|
|
6538
|
-
# Contains the parameters for CreateSnapshot.
|
6539
|
-
#
|
6540
6534
|
# @note When making an API call, you may pass CreateSnapshotRequest
|
6541
6535
|
# data as a hash:
|
6542
6536
|
#
|
@@ -6625,10 +6619,10 @@ module Aws::EC2
|
|
6625
6619
|
# @return [Array<Types::TagSpecification>]
|
6626
6620
|
#
|
6627
6621
|
# @!attribute [rw] dry_run
|
6628
|
-
# Checks whether you have the required permissions for the action
|
6629
|
-
# without actually making the request
|
6630
|
-
# you have the required permissions, the error response is
|
6631
|
-
# DryRunOperation
|
6622
|
+
# Checks whether you have the required permissions for the action,
|
6623
|
+
# without actually making the request, and provides an error response.
|
6624
|
+
# If you have the required permissions, the error response is
|
6625
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
6632
6626
|
# @return [Boolean]
|
6633
6627
|
#
|
6634
6628
|
# @!attribute [rw] copy_tags_from_source
|
@@ -7603,8 +7597,6 @@ module Aws::EC2
|
|
7603
7597
|
include Aws::Structure
|
7604
7598
|
end
|
7605
7599
|
|
7606
|
-
# Contains the parameters for CreateVolume.
|
7607
|
-
#
|
7608
7600
|
# @note When making an API call, you may pass CreateVolumeRequest
|
7609
7601
|
# data as a hash:
|
7610
7602
|
#
|
@@ -9379,8 +9371,6 @@ module Aws::EC2
|
|
9379
9371
|
include Aws::Structure
|
9380
9372
|
end
|
9381
9373
|
|
9382
|
-
# Contains the parameters for DeleteSnapshot.
|
9383
|
-
#
|
9384
9374
|
# @note When making an API call, you may pass DeleteSnapshotRequest
|
9385
9375
|
# data as a hash:
|
9386
9376
|
#
|
@@ -9818,8 +9808,6 @@ module Aws::EC2
|
|
9818
9808
|
include Aws::Structure
|
9819
9809
|
end
|
9820
9810
|
|
9821
|
-
# Contains the parameters for DeleteVolume.
|
9822
|
-
#
|
9823
9811
|
# @note When making an API call, you may pass DeleteVolumeRequest
|
9824
9812
|
# data as a hash:
|
9825
9813
|
#
|
@@ -11515,6 +11503,155 @@ module Aws::EC2
|
|
11515
11503
|
include Aws::Structure
|
11516
11504
|
end
|
11517
11505
|
|
11506
|
+
# Describes fast snapshot restores for a snapshot.
|
11507
|
+
#
|
11508
|
+
# @!attribute [rw] snapshot_id
|
11509
|
+
# The ID of the snapshot.
|
11510
|
+
# @return [String]
|
11511
|
+
#
|
11512
|
+
# @!attribute [rw] availability_zone
|
11513
|
+
# The Availability Zone.
|
11514
|
+
# @return [String]
|
11515
|
+
#
|
11516
|
+
# @!attribute [rw] state
|
11517
|
+
# The state of fast snapshot restores.
|
11518
|
+
# @return [String]
|
11519
|
+
#
|
11520
|
+
# @!attribute [rw] state_transition_reason
|
11521
|
+
# The reason for the state transition. The possible values are as
|
11522
|
+
# follows:
|
11523
|
+
#
|
11524
|
+
# * `Client.UserInitiated` - The state successfully transitioned to
|
11525
|
+
# `enabling` or `disabling`.
|
11526
|
+
#
|
11527
|
+
# * `Client.UserInitiated - Lifecycle state transition` - The state
|
11528
|
+
# successfully transitioned to `optimizing`, `enabled`, or
|
11529
|
+
# `disabled`.
|
11530
|
+
# @return [String]
|
11531
|
+
#
|
11532
|
+
# @!attribute [rw] owner_id
|
11533
|
+
# The ID of the AWS account that owns the snapshot.
|
11534
|
+
# @return [String]
|
11535
|
+
#
|
11536
|
+
# @!attribute [rw] owner_alias
|
11537
|
+
# The alias of the snapshot owner.
|
11538
|
+
# @return [String]
|
11539
|
+
#
|
11540
|
+
# @!attribute [rw] enabling_time
|
11541
|
+
# The time at which fast snapshot restores entered the `enabling`
|
11542
|
+
# state.
|
11543
|
+
# @return [Time]
|
11544
|
+
#
|
11545
|
+
# @!attribute [rw] optimizing_time
|
11546
|
+
# The time at which fast snapshot restores entered the `optimizing`
|
11547
|
+
# state.
|
11548
|
+
# @return [Time]
|
11549
|
+
#
|
11550
|
+
# @!attribute [rw] enabled_time
|
11551
|
+
# The time at which fast snapshot restores entered the `enabled`
|
11552
|
+
# state.
|
11553
|
+
# @return [Time]
|
11554
|
+
#
|
11555
|
+
# @!attribute [rw] disabling_time
|
11556
|
+
# The time at which fast snapshot restores entered the `disabling`
|
11557
|
+
# state.
|
11558
|
+
# @return [Time]
|
11559
|
+
#
|
11560
|
+
# @!attribute [rw] disabled_time
|
11561
|
+
# The time at which fast snapshot restores entered the `disabled`
|
11562
|
+
# state.
|
11563
|
+
# @return [Time]
|
11564
|
+
#
|
11565
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFastSnapshotRestoreSuccessItem AWS API Documentation
|
11566
|
+
#
|
11567
|
+
class DescribeFastSnapshotRestoreSuccessItem < Struct.new(
|
11568
|
+
:snapshot_id,
|
11569
|
+
:availability_zone,
|
11570
|
+
:state,
|
11571
|
+
:state_transition_reason,
|
11572
|
+
:owner_id,
|
11573
|
+
:owner_alias,
|
11574
|
+
:enabling_time,
|
11575
|
+
:optimizing_time,
|
11576
|
+
:enabled_time,
|
11577
|
+
:disabling_time,
|
11578
|
+
:disabled_time)
|
11579
|
+
include Aws::Structure
|
11580
|
+
end
|
11581
|
+
|
11582
|
+
# @note When making an API call, you may pass DescribeFastSnapshotRestoresRequest
|
11583
|
+
# data as a hash:
|
11584
|
+
#
|
11585
|
+
# {
|
11586
|
+
# filters: [
|
11587
|
+
# {
|
11588
|
+
# name: "String",
|
11589
|
+
# values: ["String"],
|
11590
|
+
# },
|
11591
|
+
# ],
|
11592
|
+
# max_results: 1,
|
11593
|
+
# next_token: "NextToken",
|
11594
|
+
# dry_run: false,
|
11595
|
+
# }
|
11596
|
+
#
|
11597
|
+
# @!attribute [rw] filters
|
11598
|
+
# The filters. The possible values are:
|
11599
|
+
#
|
11600
|
+
# * `availability-zone`\: The Availability Zone of the snapshot.
|
11601
|
+
#
|
11602
|
+
# * `owner-id`\: The ID of the AWS account that owns the snapshot.
|
11603
|
+
#
|
11604
|
+
# * `snapshot-id`\: The ID of the snapshot.
|
11605
|
+
#
|
11606
|
+
# * `state`\: The state of fast snapshot restores for the snapshot
|
11607
|
+
# (`enabling` \| `optimizing` \| `enabled` \| `disabling` \|
|
11608
|
+
# `disabled`).
|
11609
|
+
# @return [Array<Types::Filter>]
|
11610
|
+
#
|
11611
|
+
# @!attribute [rw] max_results
|
11612
|
+
# The maximum number of results to return with a single call. To
|
11613
|
+
# retrieve the remaining results, make another call with the returned
|
11614
|
+
# `nextToken` value.
|
11615
|
+
# @return [Integer]
|
11616
|
+
#
|
11617
|
+
# @!attribute [rw] next_token
|
11618
|
+
# The token for the next page of results.
|
11619
|
+
# @return [String]
|
11620
|
+
#
|
11621
|
+
# @!attribute [rw] dry_run
|
11622
|
+
# Checks whether you have the required permissions for the action,
|
11623
|
+
# without actually making the request, and provides an error response.
|
11624
|
+
# If you have the required permissions, the error response is
|
11625
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
11626
|
+
# @return [Boolean]
|
11627
|
+
#
|
11628
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFastSnapshotRestoresRequest AWS API Documentation
|
11629
|
+
#
|
11630
|
+
class DescribeFastSnapshotRestoresRequest < Struct.new(
|
11631
|
+
:filters,
|
11632
|
+
:max_results,
|
11633
|
+
:next_token,
|
11634
|
+
:dry_run)
|
11635
|
+
include Aws::Structure
|
11636
|
+
end
|
11637
|
+
|
11638
|
+
# @!attribute [rw] fast_snapshot_restores
|
11639
|
+
# Information about the state of fast snapshot restores.
|
11640
|
+
# @return [Array<Types::DescribeFastSnapshotRestoreSuccessItem>]
|
11641
|
+
#
|
11642
|
+
# @!attribute [rw] next_token
|
11643
|
+
# The token to use to retrieve the next page of results. This value is
|
11644
|
+
# `null` when there are no more results to return.
|
11645
|
+
# @return [String]
|
11646
|
+
#
|
11647
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFastSnapshotRestoresResult AWS API Documentation
|
11648
|
+
#
|
11649
|
+
class DescribeFastSnapshotRestoresResult < Struct.new(
|
11650
|
+
:fast_snapshot_restores,
|
11651
|
+
:next_token)
|
11652
|
+
include Aws::Structure
|
11653
|
+
end
|
11654
|
+
|
11518
11655
|
# Describes the instances that could not be launched by the fleet.
|
11519
11656
|
#
|
11520
11657
|
# @!attribute [rw] launch_template_and_overrides
|
@@ -15732,8 +15869,6 @@ module Aws::EC2
|
|
15732
15869
|
include Aws::Structure
|
15733
15870
|
end
|
15734
15871
|
|
15735
|
-
# Contains the parameters for DescribeSnapshotAttribute.
|
15736
|
-
#
|
15737
15872
|
# @note When making an API call, you may pass DescribeSnapshotAttributeRequest
|
15738
15873
|
# data as a hash:
|
15739
15874
|
#
|
@@ -15767,8 +15902,6 @@ module Aws::EC2
|
|
15767
15902
|
include Aws::Structure
|
15768
15903
|
end
|
15769
15904
|
|
15770
|
-
# Contains the output of DescribeSnapshotAttribute.
|
15771
|
-
#
|
15772
15905
|
# @!attribute [rw] create_volume_permissions
|
15773
15906
|
# The users and groups that have the permissions for creating volumes
|
15774
15907
|
# from the snapshot.
|
@@ -17379,8 +17512,6 @@ module Aws::EC2
|
|
17379
17512
|
include Aws::Structure
|
17380
17513
|
end
|
17381
17514
|
|
17382
|
-
# Contains the parameters for DescribeVolumeAttribute.
|
17383
|
-
#
|
17384
17515
|
# @note When making an API call, you may pass DescribeVolumeAttributeRequest
|
17385
17516
|
# data as a hash:
|
17386
17517
|
#
|
@@ -17414,8 +17545,6 @@ module Aws::EC2
|
|
17414
17545
|
include Aws::Structure
|
17415
17546
|
end
|
17416
17547
|
|
17417
|
-
# Contains the output of DescribeVolumeAttribute.
|
17418
|
-
#
|
17419
17548
|
# @!attribute [rw] auto_enable_io
|
17420
17549
|
# The state of `autoEnableIO` attribute.
|
17421
17550
|
# @return [Types::AttributeBooleanValue]
|
@@ -18974,8 +19103,6 @@ module Aws::EC2
|
|
18974
19103
|
include Aws::Structure
|
18975
19104
|
end
|
18976
19105
|
|
18977
|
-
# Contains the parameters for DetachVolume.
|
18978
|
-
#
|
18979
19106
|
# @note When making an API call, you may pass DetachVolumeRequest
|
18980
19107
|
# data as a hash:
|
18981
19108
|
#
|
@@ -19174,6 +19301,191 @@ module Aws::EC2
|
|
19174
19301
|
include Aws::Structure
|
19175
19302
|
end
|
19176
19303
|
|
19304
|
+
# Contains information about the errors that occurred when disabling
|
19305
|
+
# fast snapshot restores.
|
19306
|
+
#
|
19307
|
+
# @!attribute [rw] snapshot_id
|
19308
|
+
# The ID of the snapshot.
|
19309
|
+
# @return [String]
|
19310
|
+
#
|
19311
|
+
# @!attribute [rw] fast_snapshot_restore_state_errors
|
19312
|
+
# The errors.
|
19313
|
+
# @return [Array<Types::DisableFastSnapshotRestoreStateErrorItem>]
|
19314
|
+
#
|
19315
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableFastSnapshotRestoreErrorItem AWS API Documentation
|
19316
|
+
#
|
19317
|
+
class DisableFastSnapshotRestoreErrorItem < Struct.new(
|
19318
|
+
:snapshot_id,
|
19319
|
+
:fast_snapshot_restore_state_errors)
|
19320
|
+
include Aws::Structure
|
19321
|
+
end
|
19322
|
+
|
19323
|
+
# Describes an error that occurred when disabling fast snapshot
|
19324
|
+
# restores.
|
19325
|
+
#
|
19326
|
+
# @!attribute [rw] code
|
19327
|
+
# The error code.
|
19328
|
+
# @return [String]
|
19329
|
+
#
|
19330
|
+
# @!attribute [rw] message
|
19331
|
+
# The error message.
|
19332
|
+
# @return [String]
|
19333
|
+
#
|
19334
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableFastSnapshotRestoreStateError AWS API Documentation
|
19335
|
+
#
|
19336
|
+
class DisableFastSnapshotRestoreStateError < Struct.new(
|
19337
|
+
:code,
|
19338
|
+
:message)
|
19339
|
+
include Aws::Structure
|
19340
|
+
end
|
19341
|
+
|
19342
|
+
# Contains information about an error that occurred when disabling fast
|
19343
|
+
# snapshot restores.
|
19344
|
+
#
|
19345
|
+
# @!attribute [rw] availability_zone
|
19346
|
+
# The Availability Zone.
|
19347
|
+
# @return [String]
|
19348
|
+
#
|
19349
|
+
# @!attribute [rw] error
|
19350
|
+
# The error.
|
19351
|
+
# @return [Types::DisableFastSnapshotRestoreStateError]
|
19352
|
+
#
|
19353
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableFastSnapshotRestoreStateErrorItem AWS API Documentation
|
19354
|
+
#
|
19355
|
+
class DisableFastSnapshotRestoreStateErrorItem < Struct.new(
|
19356
|
+
:availability_zone,
|
19357
|
+
:error)
|
19358
|
+
include Aws::Structure
|
19359
|
+
end
|
19360
|
+
|
19361
|
+
# Describes fast snapshot restores that were successfully disabled.
|
19362
|
+
#
|
19363
|
+
# @!attribute [rw] snapshot_id
|
19364
|
+
# The ID of the snapshot.
|
19365
|
+
# @return [String]
|
19366
|
+
#
|
19367
|
+
# @!attribute [rw] availability_zone
|
19368
|
+
# The Availability Zone.
|
19369
|
+
# @return [String]
|
19370
|
+
#
|
19371
|
+
# @!attribute [rw] state
|
19372
|
+
# The state of fast snapshot restores for the snapshot.
|
19373
|
+
# @return [String]
|
19374
|
+
#
|
19375
|
+
# @!attribute [rw] state_transition_reason
|
19376
|
+
# The reason for the state transition. The possible values are as
|
19377
|
+
# follows:
|
19378
|
+
#
|
19379
|
+
# * `Client.UserInitiated` - The state successfully transitioned to
|
19380
|
+
# `enabling` or `disabling`.
|
19381
|
+
#
|
19382
|
+
# * `Client.UserInitiated - Lifecycle state transition` - The state
|
19383
|
+
# successfully transitioned to `optimizing`, `enabled`, or
|
19384
|
+
# `disabled`.
|
19385
|
+
# @return [String]
|
19386
|
+
#
|
19387
|
+
# @!attribute [rw] owner_id
|
19388
|
+
# The ID of the AWS account that owns the snapshot.
|
19389
|
+
# @return [String]
|
19390
|
+
#
|
19391
|
+
# @!attribute [rw] owner_alias
|
19392
|
+
# The alias of the snapshot owner.
|
19393
|
+
# @return [String]
|
19394
|
+
#
|
19395
|
+
# @!attribute [rw] enabling_time
|
19396
|
+
# The time at which fast snapshot restores entered the `enabling`
|
19397
|
+
# state.
|
19398
|
+
# @return [Time]
|
19399
|
+
#
|
19400
|
+
# @!attribute [rw] optimizing_time
|
19401
|
+
# The time at which fast snapshot restores entered the `optimizing`
|
19402
|
+
# state.
|
19403
|
+
# @return [Time]
|
19404
|
+
#
|
19405
|
+
# @!attribute [rw] enabled_time
|
19406
|
+
# The time at which fast snapshot restores entered the `enabled`
|
19407
|
+
# state.
|
19408
|
+
# @return [Time]
|
19409
|
+
#
|
19410
|
+
# @!attribute [rw] disabling_time
|
19411
|
+
# The time at which fast snapshot restores entered the `disabling`
|
19412
|
+
# state.
|
19413
|
+
# @return [Time]
|
19414
|
+
#
|
19415
|
+
# @!attribute [rw] disabled_time
|
19416
|
+
# The time at which fast snapshot restores entered the `disabled`
|
19417
|
+
# state.
|
19418
|
+
# @return [Time]
|
19419
|
+
#
|
19420
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableFastSnapshotRestoreSuccessItem AWS API Documentation
|
19421
|
+
#
|
19422
|
+
class DisableFastSnapshotRestoreSuccessItem < Struct.new(
|
19423
|
+
:snapshot_id,
|
19424
|
+
:availability_zone,
|
19425
|
+
:state,
|
19426
|
+
:state_transition_reason,
|
19427
|
+
:owner_id,
|
19428
|
+
:owner_alias,
|
19429
|
+
:enabling_time,
|
19430
|
+
:optimizing_time,
|
19431
|
+
:enabled_time,
|
19432
|
+
:disabling_time,
|
19433
|
+
:disabled_time)
|
19434
|
+
include Aws::Structure
|
19435
|
+
end
|
19436
|
+
|
19437
|
+
# @note When making an API call, you may pass DisableFastSnapshotRestoresRequest
|
19438
|
+
# data as a hash:
|
19439
|
+
#
|
19440
|
+
# {
|
19441
|
+
# availability_zones: ["String"], # required
|
19442
|
+
# source_snapshot_ids: ["String"], # required
|
19443
|
+
# dry_run: false,
|
19444
|
+
# }
|
19445
|
+
#
|
19446
|
+
# @!attribute [rw] availability_zones
|
19447
|
+
# One or more Availability Zones. For example, `us-east-2a`.
|
19448
|
+
# @return [Array<String>]
|
19449
|
+
#
|
19450
|
+
# @!attribute [rw] source_snapshot_ids
|
19451
|
+
# The IDs of one or more snapshots. For example,
|
19452
|
+
# `snap-1234567890abcdef0`.
|
19453
|
+
# @return [Array<String>]
|
19454
|
+
#
|
19455
|
+
# @!attribute [rw] dry_run
|
19456
|
+
# Checks whether you have the required permissions for the action,
|
19457
|
+
# without actually making the request, and provides an error response.
|
19458
|
+
# If you have the required permissions, the error response is
|
19459
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
19460
|
+
# @return [Boolean]
|
19461
|
+
#
|
19462
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableFastSnapshotRestoresRequest AWS API Documentation
|
19463
|
+
#
|
19464
|
+
class DisableFastSnapshotRestoresRequest < Struct.new(
|
19465
|
+
:availability_zones,
|
19466
|
+
:source_snapshot_ids,
|
19467
|
+
:dry_run)
|
19468
|
+
include Aws::Structure
|
19469
|
+
end
|
19470
|
+
|
19471
|
+
# @!attribute [rw] successful
|
19472
|
+
# Information about the snapshots for which fast snapshot restores
|
19473
|
+
# were successfully disabled.
|
19474
|
+
# @return [Array<Types::DisableFastSnapshotRestoreSuccessItem>]
|
19475
|
+
#
|
19476
|
+
# @!attribute [rw] unsuccessful
|
19477
|
+
# Information about the snapshots for which fast snapshot restores
|
19478
|
+
# could not be disabled.
|
19479
|
+
# @return [Array<Types::DisableFastSnapshotRestoreErrorItem>]
|
19480
|
+
#
|
19481
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableFastSnapshotRestoresResult AWS API Documentation
|
19482
|
+
#
|
19483
|
+
class DisableFastSnapshotRestoresResult < Struct.new(
|
19484
|
+
:successful,
|
19485
|
+
:unsuccessful)
|
19486
|
+
include Aws::Structure
|
19487
|
+
end
|
19488
|
+
|
19177
19489
|
# @note When making an API call, you may pass DisableTransitGatewayRouteTablePropagationRequest
|
19178
19490
|
# data as a hash:
|
19179
19491
|
#
|
@@ -20157,6 +20469,191 @@ module Aws::EC2
|
|
20157
20469
|
include Aws::Structure
|
20158
20470
|
end
|
20159
20471
|
|
20472
|
+
# Contains information about the errors that occurred when enabling fast
|
20473
|
+
# snapshot restores.
|
20474
|
+
#
|
20475
|
+
# @!attribute [rw] snapshot_id
|
20476
|
+
# The ID of the snapshot.
|
20477
|
+
# @return [String]
|
20478
|
+
#
|
20479
|
+
# @!attribute [rw] fast_snapshot_restore_state_errors
|
20480
|
+
# The errors.
|
20481
|
+
# @return [Array<Types::EnableFastSnapshotRestoreStateErrorItem>]
|
20482
|
+
#
|
20483
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableFastSnapshotRestoreErrorItem AWS API Documentation
|
20484
|
+
#
|
20485
|
+
class EnableFastSnapshotRestoreErrorItem < Struct.new(
|
20486
|
+
:snapshot_id,
|
20487
|
+
:fast_snapshot_restore_state_errors)
|
20488
|
+
include Aws::Structure
|
20489
|
+
end
|
20490
|
+
|
20491
|
+
# Describes an error that occurred when enabling fast snapshot restores.
|
20492
|
+
#
|
20493
|
+
# @!attribute [rw] code
|
20494
|
+
# The error code.
|
20495
|
+
# @return [String]
|
20496
|
+
#
|
20497
|
+
# @!attribute [rw] message
|
20498
|
+
# The error message.
|
20499
|
+
# @return [String]
|
20500
|
+
#
|
20501
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableFastSnapshotRestoreStateError AWS API Documentation
|
20502
|
+
#
|
20503
|
+
class EnableFastSnapshotRestoreStateError < Struct.new(
|
20504
|
+
:code,
|
20505
|
+
:message)
|
20506
|
+
include Aws::Structure
|
20507
|
+
end
|
20508
|
+
|
20509
|
+
# Contains information about an error that occurred when enabling fast
|
20510
|
+
# snapshot restores.
|
20511
|
+
#
|
20512
|
+
# @!attribute [rw] availability_zone
|
20513
|
+
# The Availability Zone.
|
20514
|
+
# @return [String]
|
20515
|
+
#
|
20516
|
+
# @!attribute [rw] error
|
20517
|
+
# The error.
|
20518
|
+
# @return [Types::EnableFastSnapshotRestoreStateError]
|
20519
|
+
#
|
20520
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableFastSnapshotRestoreStateErrorItem AWS API Documentation
|
20521
|
+
#
|
20522
|
+
class EnableFastSnapshotRestoreStateErrorItem < Struct.new(
|
20523
|
+
:availability_zone,
|
20524
|
+
:error)
|
20525
|
+
include Aws::Structure
|
20526
|
+
end
|
20527
|
+
|
20528
|
+
# Describes fast snapshot restores that were successfully enabled.
|
20529
|
+
#
|
20530
|
+
# @!attribute [rw] snapshot_id
|
20531
|
+
# The ID of the snapshot.
|
20532
|
+
# @return [String]
|
20533
|
+
#
|
20534
|
+
# @!attribute [rw] availability_zone
|
20535
|
+
# The Availability Zone.
|
20536
|
+
# @return [String]
|
20537
|
+
#
|
20538
|
+
# @!attribute [rw] state
|
20539
|
+
# The state of fast snapshot restores.
|
20540
|
+
# @return [String]
|
20541
|
+
#
|
20542
|
+
# @!attribute [rw] state_transition_reason
|
20543
|
+
# The reason for the state transition. The possible values are as
|
20544
|
+
# follows:
|
20545
|
+
#
|
20546
|
+
# * `Client.UserInitiated` - The state successfully transitioned to
|
20547
|
+
# `enabling` or `disabling`.
|
20548
|
+
#
|
20549
|
+
# * `Client.UserInitiated - Lifecycle state transition` - The state
|
20550
|
+
# successfully transitioned to `optimizing`, `enabled`, or
|
20551
|
+
# `disabled`.
|
20552
|
+
# @return [String]
|
20553
|
+
#
|
20554
|
+
# @!attribute [rw] owner_id
|
20555
|
+
# The ID of the AWS account that owns the snapshot.
|
20556
|
+
# @return [String]
|
20557
|
+
#
|
20558
|
+
# @!attribute [rw] owner_alias
|
20559
|
+
# The alias of the snapshot owner.
|
20560
|
+
# @return [String]
|
20561
|
+
#
|
20562
|
+
# @!attribute [rw] enabling_time
|
20563
|
+
# The time at which fast snapshot restores entered the `enabling`
|
20564
|
+
# state.
|
20565
|
+
# @return [Time]
|
20566
|
+
#
|
20567
|
+
# @!attribute [rw] optimizing_time
|
20568
|
+
# The time at which fast snapshot restores entered the `optimizing`
|
20569
|
+
# state.
|
20570
|
+
# @return [Time]
|
20571
|
+
#
|
20572
|
+
# @!attribute [rw] enabled_time
|
20573
|
+
# The time at which fast snapshot restores entered the `enabled`
|
20574
|
+
# state.
|
20575
|
+
# @return [Time]
|
20576
|
+
#
|
20577
|
+
# @!attribute [rw] disabling_time
|
20578
|
+
# The time at which fast snapshot restores entered the `disabling`
|
20579
|
+
# state.
|
20580
|
+
# @return [Time]
|
20581
|
+
#
|
20582
|
+
# @!attribute [rw] disabled_time
|
20583
|
+
# The time at which fast snapshot restores entered the `disabled`
|
20584
|
+
# state.
|
20585
|
+
# @return [Time]
|
20586
|
+
#
|
20587
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableFastSnapshotRestoreSuccessItem AWS API Documentation
|
20588
|
+
#
|
20589
|
+
class EnableFastSnapshotRestoreSuccessItem < Struct.new(
|
20590
|
+
:snapshot_id,
|
20591
|
+
:availability_zone,
|
20592
|
+
:state,
|
20593
|
+
:state_transition_reason,
|
20594
|
+
:owner_id,
|
20595
|
+
:owner_alias,
|
20596
|
+
:enabling_time,
|
20597
|
+
:optimizing_time,
|
20598
|
+
:enabled_time,
|
20599
|
+
:disabling_time,
|
20600
|
+
:disabled_time)
|
20601
|
+
include Aws::Structure
|
20602
|
+
end
|
20603
|
+
|
20604
|
+
# @note When making an API call, you may pass EnableFastSnapshotRestoresRequest
|
20605
|
+
# data as a hash:
|
20606
|
+
#
|
20607
|
+
# {
|
20608
|
+
# availability_zones: ["String"], # required
|
20609
|
+
# source_snapshot_ids: ["String"], # required
|
20610
|
+
# dry_run: false,
|
20611
|
+
# }
|
20612
|
+
#
|
20613
|
+
# @!attribute [rw] availability_zones
|
20614
|
+
# One or more Availability Zones. For example, `us-east-2a`.
|
20615
|
+
# @return [Array<String>]
|
20616
|
+
#
|
20617
|
+
# @!attribute [rw] source_snapshot_ids
|
20618
|
+
# The IDs of one or more snapshots. For example,
|
20619
|
+
# `snap-1234567890abcdef0`. You can specify a snapshot that was shared
|
20620
|
+
# with you from another AWS account.
|
20621
|
+
# @return [Array<String>]
|
20622
|
+
#
|
20623
|
+
# @!attribute [rw] dry_run
|
20624
|
+
# Checks whether you have the required permissions for the action,
|
20625
|
+
# without actually making the request, and provides an error response.
|
20626
|
+
# If you have the required permissions, the error response is
|
20627
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
20628
|
+
# @return [Boolean]
|
20629
|
+
#
|
20630
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableFastSnapshotRestoresRequest AWS API Documentation
|
20631
|
+
#
|
20632
|
+
class EnableFastSnapshotRestoresRequest < Struct.new(
|
20633
|
+
:availability_zones,
|
20634
|
+
:source_snapshot_ids,
|
20635
|
+
:dry_run)
|
20636
|
+
include Aws::Structure
|
20637
|
+
end
|
20638
|
+
|
20639
|
+
# @!attribute [rw] successful
|
20640
|
+
# Information about the snapshots for which fast snapshot restores
|
20641
|
+
# were successfully enabled.
|
20642
|
+
# @return [Array<Types::EnableFastSnapshotRestoreSuccessItem>]
|
20643
|
+
#
|
20644
|
+
# @!attribute [rw] unsuccessful
|
20645
|
+
# Information about the snapshots for which fast snapshot restores
|
20646
|
+
# could not be enabled.
|
20647
|
+
# @return [Array<Types::EnableFastSnapshotRestoreErrorItem>]
|
20648
|
+
#
|
20649
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableFastSnapshotRestoresResult AWS API Documentation
|
20650
|
+
#
|
20651
|
+
class EnableFastSnapshotRestoresResult < Struct.new(
|
20652
|
+
:successful,
|
20653
|
+
:unsuccessful)
|
20654
|
+
include Aws::Structure
|
20655
|
+
end
|
20656
|
+
|
20160
20657
|
# @note When making an API call, you may pass EnableTransitGatewayRouteTablePropagationRequest
|
20161
20658
|
# data as a hash:
|
20162
20659
|
#
|
@@ -20230,8 +20727,6 @@ module Aws::EC2
|
|
20230
20727
|
include Aws::Structure
|
20231
20728
|
end
|
20232
20729
|
|
20233
|
-
# Contains the parameters for EnableVolumeIO.
|
20234
|
-
#
|
20235
20730
|
# @note When making an API call, you may pass EnableVolumeIORequest
|
20236
20731
|
# data as a hash:
|
20237
20732
|
#
|
@@ -28548,8 +29043,6 @@ module Aws::EC2
|
|
28548
29043
|
include Aws::Structure
|
28549
29044
|
end
|
28550
29045
|
|
28551
|
-
# Contains the parameters for ModifySnapshotAttribute.
|
28552
|
-
#
|
28553
29046
|
# @note When making an API call, you may pass ModifySnapshotAttributeRequest
|
28554
29047
|
# data as a hash:
|
28555
29048
|
#
|
@@ -29060,8 +29553,6 @@ module Aws::EC2
|
|
29060
29553
|
include Aws::Structure
|
29061
29554
|
end
|
29062
29555
|
|
29063
|
-
# Contains the parameters for ModifyVolumeAttribute.
|
29064
|
-
#
|
29065
29556
|
# @note When making an API call, you may pass ModifyVolumeAttributeRequest
|
29066
29557
|
# data as a hash:
|
29067
29558
|
#
|
@@ -34461,8 +34952,6 @@ module Aws::EC2
|
|
34461
34952
|
include Aws::Structure
|
34462
34953
|
end
|
34463
34954
|
|
34464
|
-
# Contains the parameters for ResetSnapshotAttribute.
|
34465
|
-
#
|
34466
34955
|
# @note When making an API call, you may pass ResetSnapshotAttributeRequest
|
34467
34956
|
# data as a hash:
|
34468
34957
|
#
|
@@ -41026,6 +41515,11 @@ module Aws::EC2
|
|
41026
41515
|
# for Cold HDD, or `standard` for Magnetic volumes.
|
41027
41516
|
# @return [String]
|
41028
41517
|
#
|
41518
|
+
# @!attribute [rw] fast_restored
|
41519
|
+
# Indicates whether the volume was created using fast snapshot
|
41520
|
+
# restore.
|
41521
|
+
# @return [Boolean]
|
41522
|
+
#
|
41029
41523
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Volume AWS API Documentation
|
41030
41524
|
#
|
41031
41525
|
class Volume < Struct.new(
|
@@ -41040,7 +41534,8 @@ module Aws::EC2
|
|
41040
41534
|
:volume_id,
|
41041
41535
|
:iops,
|
41042
41536
|
:tags,
|
41043
|
-
:volume_type
|
41537
|
+
:volume_type,
|
41538
|
+
:fast_restored)
|
41044
41539
|
include Aws::Structure
|
41045
41540
|
end
|
41046
41541
|
|