aws-sdk-ec2 1.431.0 → 1.522.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 +465 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +26 -16
- data/lib/aws-sdk-ec2/client.rb +10867 -4155
- data/lib/aws-sdk-ec2/client_api.rb +2924 -510
- data/lib/aws-sdk-ec2/customizations/instance.rb +18 -1
- data/lib/aws-sdk-ec2/customizations/resource.rb +46 -3
- data/lib/aws-sdk-ec2/customizations/tag.rb +13 -0
- data/lib/aws-sdk-ec2/customizations.rb +0 -22
- data/lib/aws-sdk-ec2/dhcp_options.rb +12 -12
- data/lib/aws-sdk-ec2/endpoint_parameters.rb +9 -6
- data/lib/aws-sdk-ec2/endpoint_provider.rb +14 -18
- data/lib/aws-sdk-ec2/endpoints.rb +2 -8608
- data/lib/aws-sdk-ec2/image.rb +166 -95
- data/lib/aws-sdk-ec2/instance.rb +425 -356
- data/lib/aws-sdk-ec2/internet_gateway.rb +7 -7
- data/lib/aws-sdk-ec2/key_pair.rb +14 -14
- data/lib/aws-sdk-ec2/key_pair_info.rb +30 -30
- data/lib/aws-sdk-ec2/nat_gateway.rb +7 -8
- data/lib/aws-sdk-ec2/network_acl.rb +70 -70
- data/lib/aws-sdk-ec2/network_interface.rb +94 -78
- data/lib/aws-sdk-ec2/network_interface_association.rb +3 -3
- data/lib/aws-sdk-ec2/placement_group.rb +37 -19
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +20 -1242
- data/lib/aws-sdk-ec2/resource.rb +944 -811
- data/lib/aws-sdk-ec2/route.rb +34 -34
- data/lib/aws-sdk-ec2/route_table.rb +44 -44
- data/lib/aws-sdk-ec2/route_table_association.rb +3 -3
- data/lib/aws-sdk-ec2/security_group.rb +212 -201
- data/lib/aws-sdk-ec2/snapshot.rb +169 -105
- data/lib/aws-sdk-ec2/subnet.rb +391 -359
- data/lib/aws-sdk-ec2/tag.rb +7 -4
- data/lib/aws-sdk-ec2/types.rb +13807 -4774
- data/lib/aws-sdk-ec2/volume.rb +157 -119
- data/lib/aws-sdk-ec2/vpc.rb +278 -224
- data/lib/aws-sdk-ec2/vpc_address.rb +31 -21
- data/lib/aws-sdk-ec2/vpc_peering_connection.rb +6 -6
- data/lib/aws-sdk-ec2.rb +40 -36
- data/sig/classic_address.rbs +105 -0
- data/sig/client.rbs +14622 -0
- data/sig/dhcp_options.rbs +84 -0
- data/sig/errors.rbs +16 -0
- data/sig/image.rbs +228 -0
- data/sig/instance.rbs +564 -0
- data/sig/internet_gateway.rbs +91 -0
- data/sig/key_pair.rbs +54 -0
- data/sig/key_pair_info.rbs +63 -0
- data/sig/nat_gateway.rbs +107 -0
- data/sig/network_acl.rbs +144 -0
- data/sig/network_interface.rbs +239 -0
- data/sig/network_interface_association.rbs +62 -0
- data/sig/placement_group.rbs +78 -0
- data/sig/resource.rbs +1042 -0
- data/sig/route.rbs +113 -0
- data/sig/route_table.rbs +117 -0
- data/sig/route_table_association.rbs +69 -0
- data/sig/security_group.rbs +311 -0
- data/sig/snapshot.rbs +204 -0
- data/sig/subnet.rbs +436 -0
- data/sig/tag.rbs +63 -0
- data/sig/types.rbs +16812 -0
- data/sig/volume.rbs +210 -0
- data/sig/vpc.rbs +404 -0
- data/sig/vpc_address.rbs +101 -0
- data/sig/vpc_peering_connection.rbs +84 -0
- data/sig/waiters.rbs +664 -0
- metadata +44 -18
data/lib/aws-sdk-ec2/snapshot.rb
CHANGED
@@ -35,54 +35,116 @@ module Aws::EC2
|
|
35
35
|
end
|
36
36
|
alias :snapshot_id :id
|
37
37
|
|
38
|
-
# The
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# encryption keys are inherited by volumes created from snapshots, and
|
42
|
-
# vice versa, if snapshots share the same data encryption key
|
43
|
-
# identifier, then they belong to the same volume/snapshot lineage. This
|
44
|
-
# parameter is only returned by DescribeSnapshots.
|
38
|
+
# The Amazon Web Services owner alias, from an Amazon-maintained list
|
39
|
+
# (`amazon`). This is not the user-configured Amazon Web Services
|
40
|
+
# account alias set using the IAM console.
|
45
41
|
# @return [String]
|
46
|
-
def
|
47
|
-
data[:
|
42
|
+
def owner_alias
|
43
|
+
data[:owner_alias]
|
48
44
|
end
|
49
45
|
|
50
|
-
# The
|
46
|
+
# The ARN of the Outpost on which the snapshot is stored. For more
|
47
|
+
# information, see [Amazon EBS local snapshots on Outposts][1] in the
|
48
|
+
# *Amazon EBS User Guide*.
|
49
|
+
#
|
50
|
+
#
|
51
|
+
#
|
52
|
+
# [1]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html
|
51
53
|
# @return [String]
|
52
|
-
def
|
53
|
-
data[:
|
54
|
+
def outpost_arn
|
55
|
+
data[:outpost_arn]
|
54
56
|
end
|
55
57
|
|
56
|
-
#
|
57
|
-
# @return [
|
58
|
-
def
|
59
|
-
data[:
|
58
|
+
# Any tags assigned to the snapshot.
|
59
|
+
# @return [Array<Types::Tag>]
|
60
|
+
def tags
|
61
|
+
data[:tags]
|
60
62
|
end
|
61
63
|
|
62
|
-
# The
|
63
|
-
#
|
64
|
-
#
|
64
|
+
# The storage tier in which the snapshot is stored. `standard` indicates
|
65
|
+
# that the snapshot is stored in the standard snapshot storage tier and
|
66
|
+
# that it is ready for use. `archive` indicates that the snapshot is
|
67
|
+
# currently archived and that it must be restored before it can be used.
|
65
68
|
# @return [String]
|
66
|
-
def
|
67
|
-
data[:
|
69
|
+
def storage_tier
|
70
|
+
data[:storage_tier]
|
68
71
|
end
|
69
72
|
|
70
|
-
#
|
73
|
+
# Only for archived snapshots that are temporarily restored. Indicates
|
74
|
+
# the date and time when a temporarily restored snapshot will be
|
75
|
+
# automatically re-archived.
|
76
|
+
# @return [Time]
|
77
|
+
def restore_expiry_time
|
78
|
+
data[:restore_expiry_time]
|
79
|
+
end
|
80
|
+
|
81
|
+
# Reserved for future use.
|
71
82
|
# @return [String]
|
72
|
-
def
|
73
|
-
data[:
|
83
|
+
def sse_type
|
84
|
+
data[:sse_type]
|
74
85
|
end
|
75
86
|
|
76
|
-
# The
|
87
|
+
# The Availability Zone or Local Zone of the snapshot. For example,
|
88
|
+
# `us-west-1a` (Availability Zone) or `us-west-2-lax-1a` (Local Zone).
|
77
89
|
# @return [String]
|
78
|
-
def
|
79
|
-
data[:
|
90
|
+
def availability_zone
|
91
|
+
data[:availability_zone]
|
80
92
|
end
|
81
93
|
|
82
|
-
#
|
94
|
+
# <note markdown="1"> Only for snapshot copies.
|
95
|
+
#
|
96
|
+
# </note>
|
97
|
+
#
|
98
|
+
# Indicates whether the snapshot copy was created with a standard or
|
99
|
+
# time-based snapshot copy operation. Time-based snapshot copy
|
100
|
+
# operations complete within the completion duration specified in the
|
101
|
+
# request. Standard snapshot copy operations are completed on a
|
102
|
+
# best-effort basis.
|
103
|
+
#
|
104
|
+
# * `standard` - The snapshot copy was created with a standard snapshot
|
105
|
+
# copy operation.
|
106
|
+
#
|
107
|
+
# * `time-based` - The snapshot copy was created with a time-based
|
108
|
+
# snapshot copy operation.
|
109
|
+
# @return [String]
|
110
|
+
def transfer_type
|
111
|
+
data[:transfer_type]
|
112
|
+
end
|
113
|
+
|
114
|
+
# <note markdown="1"> Only for snapshot copies created with time-based snapshot copy
|
115
|
+
# operations.
|
116
|
+
#
|
117
|
+
# </note>
|
118
|
+
#
|
119
|
+
# The completion duration requested for the time-based snapshot copy
|
120
|
+
# operation.
|
121
|
+
# @return [Integer]
|
122
|
+
def completion_duration_minutes
|
123
|
+
data[:completion_duration_minutes]
|
124
|
+
end
|
125
|
+
|
126
|
+
# The time stamp when the snapshot was completed.
|
83
127
|
# @return [Time]
|
84
|
-
def
|
85
|
-
data[:
|
128
|
+
def completion_time
|
129
|
+
data[:completion_time]
|
130
|
+
end
|
131
|
+
|
132
|
+
# The full size of the snapshot, in bytes.
|
133
|
+
#
|
134
|
+
# This is **not** the incremental size of the snapshot. This is the full
|
135
|
+
# snapshot size and represents the size of all the blocks that were
|
136
|
+
# written to the source volume at the time the snapshot was created.
|
137
|
+
# @return [Integer]
|
138
|
+
def full_snapshot_size_in_bytes
|
139
|
+
data[:full_snapshot_size_in_bytes]
|
140
|
+
end
|
141
|
+
|
142
|
+
# The ID of the volume that was used to create the snapshot. Snapshots
|
143
|
+
# created by the CopySnapshot action have an arbitrary volume ID that
|
144
|
+
# should not be used for any purpose.
|
145
|
+
# @return [String]
|
146
|
+
def volume_id
|
147
|
+
data[:volume_id]
|
86
148
|
end
|
87
149
|
|
88
150
|
# The snapshot state.
|
@@ -92,76 +154,68 @@ module Aws::EC2
|
|
92
154
|
end
|
93
155
|
|
94
156
|
# Encrypted Amazon EBS snapshots are copied asynchronously. If a
|
95
|
-
# snapshot copy operation fails (for example, if the proper
|
96
|
-
#
|
97
|
-
#
|
98
|
-
#
|
157
|
+
# snapshot copy operation fails (for example, if the proper KMS
|
158
|
+
# permissions are not obtained) this field displays error state details
|
159
|
+
# to help you diagnose why the error occurred. This parameter is only
|
160
|
+
# returned by DescribeSnapshots.
|
99
161
|
# @return [String]
|
100
162
|
def state_message
|
101
163
|
data[:state_message]
|
102
164
|
end
|
103
165
|
|
104
|
-
# The
|
105
|
-
#
|
106
|
-
|
107
|
-
|
108
|
-
def volume_id
|
109
|
-
data[:volume_id]
|
166
|
+
# The time stamp when the snapshot was initiated.
|
167
|
+
# @return [Time]
|
168
|
+
def start_time
|
169
|
+
data[:start_time]
|
110
170
|
end
|
111
171
|
|
112
|
-
# The
|
113
|
-
# @return [
|
114
|
-
def
|
115
|
-
data[:
|
172
|
+
# The progress of the snapshot, as a percentage.
|
173
|
+
# @return [String]
|
174
|
+
def progress
|
175
|
+
data[:progress]
|
116
176
|
end
|
117
177
|
|
118
|
-
# The Amazon Web Services
|
119
|
-
# (`amazon`). This is not the user-configured Amazon Web Services
|
120
|
-
# account alias set using the IAM console.
|
178
|
+
# The ID of the Amazon Web Services account that owns the EBS snapshot.
|
121
179
|
# @return [String]
|
122
|
-
def
|
123
|
-
data[:
|
180
|
+
def owner_id
|
181
|
+
data[:owner_id]
|
124
182
|
end
|
125
183
|
|
126
|
-
# The
|
127
|
-
# information, see [Amazon EBS local snapshots on Outposts][1] in the
|
128
|
-
# *Amazon Elastic Compute Cloud User Guide*.
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/snapshots-outposts.html
|
184
|
+
# The description for the snapshot.
|
133
185
|
# @return [String]
|
134
|
-
def
|
135
|
-
data[:
|
186
|
+
def description
|
187
|
+
data[:description]
|
136
188
|
end
|
137
189
|
|
138
|
-
#
|
139
|
-
# @return [
|
140
|
-
def
|
141
|
-
data[:
|
190
|
+
# The size of the volume, in GiB.
|
191
|
+
# @return [Integer]
|
192
|
+
def volume_size
|
193
|
+
data[:volume_size]
|
142
194
|
end
|
143
195
|
|
144
|
-
#
|
145
|
-
#
|
146
|
-
|
147
|
-
|
148
|
-
# @return [String]
|
149
|
-
def storage_tier
|
150
|
-
data[:storage_tier]
|
196
|
+
# Indicates whether the snapshot is encrypted.
|
197
|
+
# @return [Boolean]
|
198
|
+
def encrypted
|
199
|
+
data[:encrypted]
|
151
200
|
end
|
152
201
|
|
153
|
-
#
|
154
|
-
# the
|
155
|
-
#
|
156
|
-
|
157
|
-
|
158
|
-
data[:restore_expiry_time]
|
202
|
+
# The Amazon Resource Name (ARN) of the KMS key that was used to protect
|
203
|
+
# the volume encryption key for the parent volume.
|
204
|
+
# @return [String]
|
205
|
+
def kms_key_id
|
206
|
+
data[:kms_key_id]
|
159
207
|
end
|
160
208
|
|
161
|
-
#
|
209
|
+
# The data encryption key identifier for the snapshot. This value is a
|
210
|
+
# unique identifier that corresponds to the data encryption key that was
|
211
|
+
# used to encrypt the original volume or snapshot copy. Because data
|
212
|
+
# encryption keys are inherited by volumes created from snapshots, and
|
213
|
+
# vice versa, if snapshots share the same data encryption key
|
214
|
+
# identifier, then they belong to the same volume/snapshot lineage. This
|
215
|
+
# parameter is only returned by DescribeSnapshots.
|
162
216
|
# @return [String]
|
163
|
-
def
|
164
|
-
data[:
|
217
|
+
def data_encryption_key_id
|
218
|
+
data[:data_encryption_key_id]
|
165
219
|
end
|
166
220
|
|
167
221
|
# @!endgroup
|
@@ -178,7 +232,7 @@ module Aws::EC2
|
|
178
232
|
#
|
179
233
|
# @return [self]
|
180
234
|
def load
|
181
|
-
resp = Aws::Plugins::UserAgent.
|
235
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
182
236
|
@client.describe_snapshots(snapshot_ids: [@id])
|
183
237
|
end
|
184
238
|
@data = resp.snapshots[0]
|
@@ -211,7 +265,7 @@ module Aws::EC2
|
|
211
265
|
options, params = separate_params_and_options(options)
|
212
266
|
waiter = Waiters::SnapshotCompleted.new(options)
|
213
267
|
yield_waiter_and_warn(waiter, &block) if block_given?
|
214
|
-
resp = Aws::Plugins::UserAgent.
|
268
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
215
269
|
waiter.wait(params.merge(snapshot_ids: [@id]))
|
216
270
|
end
|
217
271
|
Snapshot.new({
|
@@ -315,7 +369,7 @@ module Aws::EC2
|
|
315
369
|
:retry
|
316
370
|
end
|
317
371
|
end
|
318
|
-
Aws::Plugins::UserAgent.
|
372
|
+
Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
319
373
|
Aws::Waiters::Waiter.new(options).wait({})
|
320
374
|
end
|
321
375
|
end
|
@@ -334,7 +388,7 @@ module Aws::EC2
|
|
334
388
|
# source_region: "String", # required
|
335
389
|
# tag_specifications: [
|
336
390
|
# {
|
337
|
-
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
391
|
+
# resource_type: "capacity-reservation", # accepts capacity-reservation, client-vpn-endpoint, customer-gateway, carrier-gateway, coip-pool, declarative-policies-report, dedicated-host, dhcp-options, egress-only-internet-gateway, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, instance-event-window, internet-gateway, ipam, ipam-pool, ipam-scope, ipv4pool-ec2, ipv6pool-ec2, key-pair, launch-template, local-gateway, local-gateway-route-table, local-gateway-virtual-interface, local-gateway-virtual-interface-group, local-gateway-route-table-vpc-association, local-gateway-route-table-virtual-interface-group-association, natgateway, network-acl, network-interface, network-insights-analysis, network-insights-path, network-insights-access-scope, network-insights-access-scope-analysis, outpost-lag, placement-group, prefix-list, replace-root-volume-task, reserved-instances, route-table, security-group, security-group-rule, service-link-virtual-interface, snapshot, spot-fleet-request, spot-instances-request, subnet, subnet-cidr-reservation, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-connect-peer, transit-gateway-multicast-domain, transit-gateway-policy-table, transit-gateway-route-table, transit-gateway-route-table-announcement, volume, vpc, vpc-endpoint, vpc-endpoint-connection, vpc-endpoint-service, vpc-endpoint-service-permission, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log, capacity-reservation-fleet, traffic-mirror-filter-rule, vpc-endpoint-connection-device-type, verified-access-instance, verified-access-group, verified-access-endpoint, verified-access-policy, verified-access-trust-provider, vpn-connection-device-type, vpc-block-public-access-exclusion, route-server, route-server-endpoint, route-server-peer, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint, verified-access-endpoint-target, ipam-external-resource-verification-token
|
338
392
|
# tags: [
|
339
393
|
# {
|
340
394
|
# key: "String",
|
@@ -343,6 +397,7 @@ module Aws::EC2
|
|
343
397
|
# ],
|
344
398
|
# },
|
345
399
|
# ],
|
400
|
+
# completion_duration_minutes: 1,
|
346
401
|
# dry_run: false,
|
347
402
|
# })
|
348
403
|
# @param [Hash] options ({})
|
@@ -357,12 +412,11 @@ module Aws::EC2
|
|
357
412
|
# Outpost.
|
358
413
|
#
|
359
414
|
# For more information, see [ Copy snapshots from an Amazon Web Services
|
360
|
-
# Region to an Outpost][1] in the *Amazon
|
361
|
-
# Guide*.
|
415
|
+
# Region to an Outpost][1] in the *Amazon EBS User Guide*.
|
362
416
|
#
|
363
417
|
#
|
364
418
|
#
|
365
|
-
# [1]: https://docs.aws.amazon.com/
|
419
|
+
# [1]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html#copy-snapshots
|
366
420
|
# @option options [String] :destination_region
|
367
421
|
# The destination Region to use in the `PresignedUrl` parameter of a
|
368
422
|
# snapshot copy operation. This parameter is only valid for specifying
|
@@ -379,16 +433,15 @@ module Aws::EC2
|
|
379
433
|
# omit this parameter. Encrypted snapshots are encrypted, even if you
|
380
434
|
# omit this parameter and encryption by default is not enabled. You
|
381
435
|
# cannot set this parameter to false. For more information, see [Amazon
|
382
|
-
# EBS encryption][1] in the *Amazon
|
436
|
+
# EBS encryption][1] in the *Amazon EBS User Guide*.
|
383
437
|
#
|
384
438
|
#
|
385
439
|
#
|
386
|
-
# [1]: https://docs.aws.amazon.com/
|
440
|
+
# [1]: https://docs.aws.amazon.com/ebs/latest/userguide/ebs-encryption.html
|
387
441
|
# @option options [String] :kms_key_id
|
388
|
-
# The identifier of the
|
389
|
-
#
|
390
|
-
#
|
391
|
-
# state must be `true`.
|
442
|
+
# The identifier of the KMS key to use for Amazon EBS encryption. If
|
443
|
+
# this parameter is not specified, your KMS key for Amazon EBS is used.
|
444
|
+
# If `KmsKeyId` is specified, the encrypted state must be `true`.
|
392
445
|
#
|
393
446
|
# You can specify the KMS key using any of the following:
|
394
447
|
#
|
@@ -416,11 +469,10 @@ module Aws::EC2
|
|
416
469
|
# `PresignedUrl` must be signed using Amazon Web Services Signature
|
417
470
|
# Version 4. Because EBS snapshots are stored in Amazon S3, the signing
|
418
471
|
# algorithm for this parameter uses the same logic that is described in
|
419
|
-
# [Authenticating Requests: Using Query Parameters (Amazon Web Services
|
420
|
-
# Signature Version 4)][2] in the *Amazon
|
421
|
-
#
|
422
|
-
#
|
423
|
-
# to an `error` state.
|
472
|
+
# [ Authenticating Requests: Using Query Parameters (Amazon Web Services
|
473
|
+
# Signature Version 4)][2] in the *Amazon S3 API Reference*. An invalid
|
474
|
+
# or improperly signed `PresignedUrl` will cause the copy operation to
|
475
|
+
# fail asynchronously, and the snapshot will move to an `error` state.
|
424
476
|
#
|
425
477
|
#
|
426
478
|
#
|
@@ -430,6 +482,18 @@ module Aws::EC2
|
|
430
482
|
# The ID of the Region that contains the snapshot to be copied.
|
431
483
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
432
484
|
# The tags to apply to the new snapshot.
|
485
|
+
# @option options [Integer] :completion_duration_minutes
|
486
|
+
# Specify a completion duration, in 15 minute increments, to initiate a
|
487
|
+
# time-based snapshot copy. Time-based snapshot copy operations complete
|
488
|
+
# within the specified duration. For more information, see [ Time-based
|
489
|
+
# copies][1].
|
490
|
+
#
|
491
|
+
# If you do not specify a value, the snapshot copy operation is
|
492
|
+
# completed on a best-effort basis.
|
493
|
+
#
|
494
|
+
#
|
495
|
+
#
|
496
|
+
# [1]: https://docs.aws.amazon.com/ebs/latest/userguide/time-based-copies.html
|
433
497
|
# @option options [Boolean] :dry_run
|
434
498
|
# Checks whether you have the required permissions for the action,
|
435
499
|
# without actually making the request, and provides an error response.
|
@@ -438,7 +502,7 @@ module Aws::EC2
|
|
438
502
|
# @return [Types::CopySnapshotResult]
|
439
503
|
def copy(options = {})
|
440
504
|
options = options.merge(source_snapshot_id: @id)
|
441
|
-
resp = Aws::Plugins::UserAgent.
|
505
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
442
506
|
@client.copy_snapshot(options)
|
443
507
|
end
|
444
508
|
resp.data
|
@@ -469,7 +533,7 @@ module Aws::EC2
|
|
469
533
|
def create_tags(options = {})
|
470
534
|
batch = []
|
471
535
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
472
|
-
resp = Aws::Plugins::UserAgent.
|
536
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
473
537
|
@client.create_tags(options)
|
474
538
|
end
|
475
539
|
options[:tags].each do |t|
|
@@ -516,7 +580,7 @@ module Aws::EC2
|
|
516
580
|
def delete_tags(options = {})
|
517
581
|
batch = []
|
518
582
|
options = Aws::Util.deep_merge(options, resources: [@id])
|
519
|
-
resp = Aws::Plugins::UserAgent.
|
583
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
520
584
|
@client.delete_tags(options)
|
521
585
|
end
|
522
586
|
options[:tags].each do |t|
|
@@ -544,7 +608,7 @@ module Aws::EC2
|
|
544
608
|
# @return [EmptyStructure]
|
545
609
|
def delete(options = {})
|
546
610
|
options = options.merge(snapshot_id: @id)
|
547
|
-
resp = Aws::Plugins::UserAgent.
|
611
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
548
612
|
@client.delete_snapshot(options)
|
549
613
|
end
|
550
614
|
resp.data
|
@@ -567,7 +631,7 @@ module Aws::EC2
|
|
567
631
|
# @return [Types::DescribeSnapshotAttributeResult]
|
568
632
|
def describe_attribute(options = {})
|
569
633
|
options = options.merge(snapshot_id: @id)
|
570
|
-
resp = Aws::Plugins::UserAgent.
|
634
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
571
635
|
@client.describe_snapshot_attribute(options)
|
572
636
|
end
|
573
637
|
resp.data
|
@@ -580,14 +644,14 @@ module Aws::EC2
|
|
580
644
|
# create_volume_permission: {
|
581
645
|
# add: [
|
582
646
|
# {
|
583
|
-
# group: "all", # accepts all
|
584
647
|
# user_id: "String",
|
648
|
+
# group: "all", # accepts all
|
585
649
|
# },
|
586
650
|
# ],
|
587
651
|
# remove: [
|
588
652
|
# {
|
589
|
-
# group: "all", # accepts all
|
590
653
|
# user_id: "String",
|
654
|
+
# group: "all", # accepts all
|
591
655
|
# },
|
592
656
|
# ],
|
593
657
|
# },
|
@@ -616,7 +680,7 @@ module Aws::EC2
|
|
616
680
|
# @return [EmptyStructure]
|
617
681
|
def modify_attribute(options = {})
|
618
682
|
options = options.merge(snapshot_id: @id)
|
619
|
-
resp = Aws::Plugins::UserAgent.
|
683
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
620
684
|
@client.modify_snapshot_attribute(options)
|
621
685
|
end
|
622
686
|
resp.data
|
@@ -640,7 +704,7 @@ module Aws::EC2
|
|
640
704
|
# @return [EmptyStructure]
|
641
705
|
def reset_attribute(options = {})
|
642
706
|
options = options.merge(snapshot_id: @id)
|
643
|
-
resp = Aws::Plugins::UserAgent.
|
707
|
+
resp = Aws::Plugins::UserAgent.metric('RESOURCE_MODEL') do
|
644
708
|
@client.reset_snapshot_attribute(options)
|
645
709
|
end
|
646
710
|
resp.data
|