aws-sdk-ec2 1.479.0 → 1.480.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/classic_address.rb +11 -11
- data/lib/aws-sdk-ec2/client.rb +2723 -2713
- data/lib/aws-sdk-ec2/client_api.rb +438 -436
- data/lib/aws-sdk-ec2/dhcp_options.rb +6 -6
- data/lib/aws-sdk-ec2/image.rb +82 -82
- data/lib/aws-sdk-ec2/instance.rb +285 -285
- data/lib/aws-sdk-ec2/key_pair.rb +12 -12
- data/lib/aws-sdk-ec2/key_pair_info.rb +27 -27
- data/lib/aws-sdk-ec2/network_acl.rb +60 -60
- data/lib/aws-sdk-ec2/network_interface.rb +65 -65
- data/lib/aws-sdk-ec2/placement_group.rb +11 -11
- data/lib/aws-sdk-ec2/resource.rb +597 -597
- data/lib/aws-sdk-ec2/route.rb +30 -30
- data/lib/aws-sdk-ec2/route_table.rb +37 -37
- data/lib/aws-sdk-ec2/security_group.rb +137 -137
- data/lib/aws-sdk-ec2/snapshot.rb +77 -77
- data/lib/aws-sdk-ec2/subnet.rb +276 -276
- data/lib/aws-sdk-ec2/types.rb +3284 -3291
- data/lib/aws-sdk-ec2/volume.rb +93 -93
- data/lib/aws-sdk-ec2/vpc.rb +143 -143
- data/lib/aws-sdk-ec2/vpc_address.rb +17 -17
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/classic_address.rbs +5 -5
- data/sig/client.rbs +872 -872
- data/sig/dhcp_options.rbs +3 -3
- data/sig/image.rbs +41 -41
- data/sig/instance.rbs +108 -108
- data/sig/key_pair.rbs +6 -6
- data/sig/key_pair_info.rbs +3 -3
- data/sig/network_acl.rbs +16 -16
- data/sig/network_interface.rbs +22 -22
- data/sig/placement_group.rbs +3 -3
- data/sig/resource.rbs +201 -201
- data/sig/route.rbs +9 -9
- data/sig/route_table.rbs +10 -10
- data/sig/security_group.rbs +110 -110
- data/sig/snapshot.rbs +34 -34
- data/sig/subnet.rbs +116 -116
- data/sig/types.rbs +438 -437
- data/sig/volume.rbs +33 -33
- data/sig/vpc.rbs +46 -46
- data/sig/vpc_address.rbs +8 -8
- data/sig/waiters.rbs +113 -113
- metadata +2 -2
@@ -35,30 +35,6 @@ module Aws::EC2
|
|
35
35
|
end
|
36
36
|
alias :group_id :id
|
37
37
|
|
38
|
-
# A description of the security group.
|
39
|
-
# @return [String]
|
40
|
-
def description
|
41
|
-
data[:description]
|
42
|
-
end
|
43
|
-
|
44
|
-
# The name of the security group.
|
45
|
-
# @return [String]
|
46
|
-
def group_name
|
47
|
-
data[:group_name]
|
48
|
-
end
|
49
|
-
|
50
|
-
# The inbound rules associated with the security group.
|
51
|
-
# @return [Array<Types::IpPermission>]
|
52
|
-
def ip_permissions
|
53
|
-
data[:ip_permissions]
|
54
|
-
end
|
55
|
-
|
56
|
-
# The Amazon Web Services account ID of the owner of the security group.
|
57
|
-
# @return [String]
|
58
|
-
def owner_id
|
59
|
-
data[:owner_id]
|
60
|
-
end
|
61
|
-
|
62
38
|
# The outbound rules associated with the security group.
|
63
39
|
# @return [Array<Types::IpPermission>]
|
64
40
|
def ip_permissions_egress
|
@@ -77,6 +53,30 @@ module Aws::EC2
|
|
77
53
|
data[:vpc_id]
|
78
54
|
end
|
79
55
|
|
56
|
+
# The Amazon Web Services account ID of the owner of the security group.
|
57
|
+
# @return [String]
|
58
|
+
def owner_id
|
59
|
+
data[:owner_id]
|
60
|
+
end
|
61
|
+
|
62
|
+
# The name of the security group.
|
63
|
+
# @return [String]
|
64
|
+
def group_name
|
65
|
+
data[:group_name]
|
66
|
+
end
|
67
|
+
|
68
|
+
# A description of the security group.
|
69
|
+
# @return [String]
|
70
|
+
def description
|
71
|
+
data[:description]
|
72
|
+
end
|
73
|
+
|
74
|
+
# The inbound rules associated with the security group.
|
75
|
+
# @return [Array<Types::IpPermission>]
|
76
|
+
def ip_permissions
|
77
|
+
data[:ip_permissions]
|
78
|
+
end
|
79
|
+
|
80
80
|
# @!endgroup
|
81
81
|
|
82
82
|
# @return [Client]
|
@@ -218,83 +218,83 @@ module Aws::EC2
|
|
218
218
|
# @example Request syntax with placeholder values
|
219
219
|
#
|
220
220
|
# security_group.authorize_egress({
|
221
|
+
# tag_specifications: [
|
222
|
+
# {
|
223
|
+
# 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, ipam-external-resource-verification-token
|
224
|
+
# tags: [
|
225
|
+
# {
|
226
|
+
# key: "String",
|
227
|
+
# value: "String",
|
228
|
+
# },
|
229
|
+
# ],
|
230
|
+
# },
|
231
|
+
# ],
|
221
232
|
# dry_run: false,
|
233
|
+
# source_security_group_name: "String",
|
234
|
+
# source_security_group_owner_id: "String",
|
235
|
+
# ip_protocol: "String",
|
236
|
+
# from_port: 1,
|
237
|
+
# to_port: 1,
|
238
|
+
# cidr_ip: "String",
|
222
239
|
# ip_permissions: [
|
223
240
|
# {
|
224
|
-
# from_port: 1,
|
225
241
|
# ip_protocol: "String",
|
226
|
-
#
|
242
|
+
# from_port: 1,
|
243
|
+
# to_port: 1,
|
244
|
+
# user_id_group_pairs: [
|
227
245
|
# {
|
228
|
-
# cidr_ip: "String",
|
229
246
|
# description: "String",
|
247
|
+
# user_id: "String",
|
248
|
+
# group_name: "String",
|
249
|
+
# group_id: "String",
|
250
|
+
# vpc_id: "String",
|
251
|
+
# vpc_peering_connection_id: "String",
|
252
|
+
# peering_status: "String",
|
230
253
|
# },
|
231
254
|
# ],
|
232
|
-
#
|
255
|
+
# ip_ranges: [
|
233
256
|
# {
|
234
|
-
# cidr_ipv_6: "String",
|
235
257
|
# description: "String",
|
258
|
+
# cidr_ip: "String",
|
236
259
|
# },
|
237
260
|
# ],
|
238
|
-
#
|
261
|
+
# ipv_6_ranges: [
|
239
262
|
# {
|
240
263
|
# description: "String",
|
241
|
-
#
|
264
|
+
# cidr_ipv_6: "String",
|
242
265
|
# },
|
243
266
|
# ],
|
244
|
-
#
|
245
|
-
# user_id_group_pairs: [
|
267
|
+
# prefix_list_ids: [
|
246
268
|
# {
|
247
269
|
# description: "String",
|
248
|
-
#
|
249
|
-
# group_name: "String",
|
250
|
-
# peering_status: "String",
|
251
|
-
# user_id: "String",
|
252
|
-
# vpc_id: "String",
|
253
|
-
# vpc_peering_connection_id: "String",
|
254
|
-
# },
|
255
|
-
# ],
|
256
|
-
# },
|
257
|
-
# ],
|
258
|
-
# tag_specifications: [
|
259
|
-
# {
|
260
|
-
# 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, ipam-external-resource-verification-token
|
261
|
-
# tags: [
|
262
|
-
# {
|
263
|
-
# key: "String",
|
264
|
-
# value: "String",
|
270
|
+
# prefix_list_id: "String",
|
265
271
|
# },
|
266
272
|
# ],
|
267
273
|
# },
|
268
274
|
# ],
|
269
|
-
# cidr_ip: "String",
|
270
|
-
# from_port: 1,
|
271
|
-
# ip_protocol: "String",
|
272
|
-
# to_port: 1,
|
273
|
-
# source_security_group_name: "String",
|
274
|
-
# source_security_group_owner_id: "String",
|
275
275
|
# })
|
276
276
|
# @param [Hash] options ({})
|
277
|
+
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
278
|
+
# The tags applied to the security group rule.
|
277
279
|
# @option options [Boolean] :dry_run
|
278
280
|
# Checks whether you have the required permissions for the action,
|
279
281
|
# without actually making the request, and provides an error response.
|
280
282
|
# If you have the required permissions, the error response is
|
281
283
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
282
|
-
# @option options [
|
283
|
-
# The permissions for the security group rules.
|
284
|
-
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
285
|
-
# The tags applied to the security group rule.
|
286
|
-
# @option options [String] :cidr_ip
|
284
|
+
# @option options [String] :source_security_group_name
|
287
285
|
# Not supported. Use IP permissions instead.
|
288
|
-
# @option options [
|
286
|
+
# @option options [String] :source_security_group_owner_id
|
289
287
|
# Not supported. Use IP permissions instead.
|
290
288
|
# @option options [String] :ip_protocol
|
291
289
|
# Not supported. Use IP permissions instead.
|
292
|
-
# @option options [Integer] :
|
290
|
+
# @option options [Integer] :from_port
|
293
291
|
# Not supported. Use IP permissions instead.
|
294
|
-
# @option options [
|
292
|
+
# @option options [Integer] :to_port
|
295
293
|
# Not supported. Use IP permissions instead.
|
296
|
-
# @option options [String] :
|
294
|
+
# @option options [String] :cidr_ip
|
297
295
|
# Not supported. Use IP permissions instead.
|
296
|
+
# @option options [Array<Types::IpPermission>] :ip_permissions
|
297
|
+
# The permissions for the security group rules.
|
298
298
|
# @return [Types::AuthorizeSecurityGroupEgressResult]
|
299
299
|
def authorize_egress(options = {})
|
300
300
|
options = options.merge(group_id: @id)
|
@@ -312,36 +312,36 @@ module Aws::EC2
|
|
312
312
|
# group_name: "SecurityGroupName",
|
313
313
|
# ip_permissions: [
|
314
314
|
# {
|
315
|
-
# from_port: 1,
|
316
315
|
# ip_protocol: "String",
|
317
|
-
#
|
316
|
+
# from_port: 1,
|
317
|
+
# to_port: 1,
|
318
|
+
# user_id_group_pairs: [
|
318
319
|
# {
|
319
|
-
# cidr_ip: "String",
|
320
320
|
# description: "String",
|
321
|
+
# user_id: "String",
|
322
|
+
# group_name: "String",
|
323
|
+
# group_id: "String",
|
324
|
+
# vpc_id: "String",
|
325
|
+
# vpc_peering_connection_id: "String",
|
326
|
+
# peering_status: "String",
|
321
327
|
# },
|
322
328
|
# ],
|
323
|
-
#
|
329
|
+
# ip_ranges: [
|
324
330
|
# {
|
325
|
-
# cidr_ipv_6: "String",
|
326
331
|
# description: "String",
|
332
|
+
# cidr_ip: "String",
|
327
333
|
# },
|
328
334
|
# ],
|
329
|
-
#
|
335
|
+
# ipv_6_ranges: [
|
330
336
|
# {
|
331
337
|
# description: "String",
|
332
|
-
#
|
338
|
+
# cidr_ipv_6: "String",
|
333
339
|
# },
|
334
340
|
# ],
|
335
|
-
#
|
336
|
-
# user_id_group_pairs: [
|
341
|
+
# prefix_list_ids: [
|
337
342
|
# {
|
338
343
|
# description: "String",
|
339
|
-
#
|
340
|
-
# group_name: "String",
|
341
|
-
# peering_status: "String",
|
342
|
-
# user_id: "String",
|
343
|
-
# vpc_id: "String",
|
344
|
-
# vpc_peering_connection_id: "String",
|
344
|
+
# prefix_list_id: "String",
|
345
345
|
# },
|
346
346
|
# ],
|
347
347
|
# },
|
@@ -350,7 +350,6 @@ module Aws::EC2
|
|
350
350
|
# source_security_group_name: "String",
|
351
351
|
# source_security_group_owner_id: "String",
|
352
352
|
# to_port: 1,
|
353
|
-
# dry_run: false,
|
354
353
|
# tag_specifications: [
|
355
354
|
# {
|
356
355
|
# 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, ipam-external-resource-verification-token
|
@@ -362,6 +361,7 @@ module Aws::EC2
|
|
362
361
|
# ],
|
363
362
|
# },
|
364
363
|
# ],
|
364
|
+
# dry_run: false,
|
365
365
|
# })
|
366
366
|
# @param [Hash] options ({})
|
367
367
|
# @option options [String] :cidr_ip
|
@@ -420,13 +420,13 @@ module Aws::EC2
|
|
420
420
|
#
|
421
421
|
# To specify multiple rules and descriptions for the rules, use IP
|
422
422
|
# permissions instead.
|
423
|
+
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
424
|
+
# The tags applied to the security group rule.
|
423
425
|
# @option options [Boolean] :dry_run
|
424
426
|
# Checks whether you have the required permissions for the action,
|
425
427
|
# without actually making the request, and provides an error response.
|
426
428
|
# If you have the required permissions, the error response is
|
427
429
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
428
|
-
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
429
|
-
# The tags applied to the security group rule.
|
430
430
|
# @return [Types::AuthorizeSecurityGroupIngressResult]
|
431
431
|
def authorize_ingress(options = {})
|
432
432
|
options = options.merge(group_id: @id)
|
@@ -550,77 +550,77 @@ module Aws::EC2
|
|
550
550
|
# @example Request syntax with placeholder values
|
551
551
|
#
|
552
552
|
# security_group.revoke_egress({
|
553
|
+
# security_group_rule_ids: ["String"],
|
553
554
|
# dry_run: false,
|
555
|
+
# source_security_group_name: "String",
|
556
|
+
# source_security_group_owner_id: "String",
|
557
|
+
# ip_protocol: "String",
|
558
|
+
# from_port: 1,
|
559
|
+
# to_port: 1,
|
560
|
+
# cidr_ip: "String",
|
554
561
|
# ip_permissions: [
|
555
562
|
# {
|
556
|
-
# from_port: 1,
|
557
563
|
# ip_protocol: "String",
|
558
|
-
#
|
564
|
+
# from_port: 1,
|
565
|
+
# to_port: 1,
|
566
|
+
# user_id_group_pairs: [
|
559
567
|
# {
|
560
|
-
# cidr_ip: "String",
|
561
568
|
# description: "String",
|
569
|
+
# user_id: "String",
|
570
|
+
# group_name: "String",
|
571
|
+
# group_id: "String",
|
572
|
+
# vpc_id: "String",
|
573
|
+
# vpc_peering_connection_id: "String",
|
574
|
+
# peering_status: "String",
|
562
575
|
# },
|
563
576
|
# ],
|
564
|
-
#
|
577
|
+
# ip_ranges: [
|
565
578
|
# {
|
566
|
-
# cidr_ipv_6: "String",
|
567
579
|
# description: "String",
|
580
|
+
# cidr_ip: "String",
|
568
581
|
# },
|
569
582
|
# ],
|
570
|
-
#
|
583
|
+
# ipv_6_ranges: [
|
571
584
|
# {
|
572
585
|
# description: "String",
|
573
|
-
#
|
586
|
+
# cidr_ipv_6: "String",
|
574
587
|
# },
|
575
588
|
# ],
|
576
|
-
#
|
577
|
-
# user_id_group_pairs: [
|
589
|
+
# prefix_list_ids: [
|
578
590
|
# {
|
579
591
|
# description: "String",
|
580
|
-
#
|
581
|
-
# group_name: "String",
|
582
|
-
# peering_status: "String",
|
583
|
-
# user_id: "String",
|
584
|
-
# vpc_id: "String",
|
585
|
-
# vpc_peering_connection_id: "String",
|
592
|
+
# prefix_list_id: "String",
|
586
593
|
# },
|
587
594
|
# ],
|
588
595
|
# },
|
589
596
|
# ],
|
590
|
-
# security_group_rule_ids: ["String"],
|
591
|
-
# cidr_ip: "String",
|
592
|
-
# from_port: 1,
|
593
|
-
# ip_protocol: "String",
|
594
|
-
# to_port: 1,
|
595
|
-
# source_security_group_name: "String",
|
596
|
-
# source_security_group_owner_id: "String",
|
597
597
|
# })
|
598
598
|
# @param [Hash] options ({})
|
599
|
+
# @option options [Array<String>] :security_group_rule_ids
|
600
|
+
# The IDs of the security group rules.
|
599
601
|
# @option options [Boolean] :dry_run
|
600
602
|
# Checks whether you have the required permissions for the action,
|
601
603
|
# without actually making the request, and provides an error response.
|
602
604
|
# If you have the required permissions, the error response is
|
603
605
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
604
|
-
# @option options [Array<Types::IpPermission>] :ip_permissions
|
605
|
-
# The sets of IP permissions. You can't specify a destination security
|
606
|
-
# group and a CIDR IP address range in the same set of permissions.
|
607
|
-
# @option options [Array<String>] :security_group_rule_ids
|
608
|
-
# The IDs of the security group rules.
|
609
|
-
# @option options [String] :cidr_ip
|
610
|
-
# Not supported. Use a set of IP permissions to specify the CIDR.
|
611
|
-
# @option options [Integer] :from_port
|
612
|
-
# Not supported. Use a set of IP permissions to specify the port.
|
613
|
-
# @option options [String] :ip_protocol
|
614
|
-
# Not supported. Use a set of IP permissions to specify the protocol
|
615
|
-
# name or number.
|
616
|
-
# @option options [Integer] :to_port
|
617
|
-
# Not supported. Use a set of IP permissions to specify the port.
|
618
606
|
# @option options [String] :source_security_group_name
|
619
607
|
# Not supported. Use a set of IP permissions to specify a destination
|
620
608
|
# security group.
|
621
609
|
# @option options [String] :source_security_group_owner_id
|
622
610
|
# Not supported. Use a set of IP permissions to specify a destination
|
623
611
|
# security group.
|
612
|
+
# @option options [String] :ip_protocol
|
613
|
+
# Not supported. Use a set of IP permissions to specify the protocol
|
614
|
+
# name or number.
|
615
|
+
# @option options [Integer] :from_port
|
616
|
+
# Not supported. Use a set of IP permissions to specify the port.
|
617
|
+
# @option options [Integer] :to_port
|
618
|
+
# Not supported. Use a set of IP permissions to specify the port.
|
619
|
+
# @option options [String] :cidr_ip
|
620
|
+
# Not supported. Use a set of IP permissions to specify the CIDR.
|
621
|
+
# @option options [Array<Types::IpPermission>] :ip_permissions
|
622
|
+
# The sets of IP permissions. You can't specify a destination security
|
623
|
+
# group and a CIDR IP address range in the same set of permissions.
|
624
624
|
# @return [Types::RevokeSecurityGroupEgressResult]
|
625
625
|
def revoke_egress(options = {})
|
626
626
|
options = options.merge(group_id: @id)
|
@@ -638,36 +638,36 @@ module Aws::EC2
|
|
638
638
|
# group_name: "SecurityGroupName",
|
639
639
|
# ip_permissions: [
|
640
640
|
# {
|
641
|
-
# from_port: 1,
|
642
641
|
# ip_protocol: "String",
|
643
|
-
#
|
642
|
+
# from_port: 1,
|
643
|
+
# to_port: 1,
|
644
|
+
# user_id_group_pairs: [
|
644
645
|
# {
|
645
|
-
# cidr_ip: "String",
|
646
646
|
# description: "String",
|
647
|
+
# user_id: "String",
|
648
|
+
# group_name: "String",
|
649
|
+
# group_id: "String",
|
650
|
+
# vpc_id: "String",
|
651
|
+
# vpc_peering_connection_id: "String",
|
652
|
+
# peering_status: "String",
|
647
653
|
# },
|
648
654
|
# ],
|
649
|
-
#
|
655
|
+
# ip_ranges: [
|
650
656
|
# {
|
651
|
-
# cidr_ipv_6: "String",
|
652
657
|
# description: "String",
|
658
|
+
# cidr_ip: "String",
|
653
659
|
# },
|
654
660
|
# ],
|
655
|
-
#
|
661
|
+
# ipv_6_ranges: [
|
656
662
|
# {
|
657
663
|
# description: "String",
|
658
|
-
#
|
664
|
+
# cidr_ipv_6: "String",
|
659
665
|
# },
|
660
666
|
# ],
|
661
|
-
#
|
662
|
-
# user_id_group_pairs: [
|
667
|
+
# prefix_list_ids: [
|
663
668
|
# {
|
664
669
|
# description: "String",
|
665
|
-
#
|
666
|
-
# group_name: "String",
|
667
|
-
# peering_status: "String",
|
668
|
-
# user_id: "String",
|
669
|
-
# vpc_id: "String",
|
670
|
-
# vpc_peering_connection_id: "String",
|
670
|
+
# prefix_list_id: "String",
|
671
671
|
# },
|
672
672
|
# ],
|
673
673
|
# },
|
@@ -676,8 +676,8 @@ module Aws::EC2
|
|
676
676
|
# source_security_group_name: "String",
|
677
677
|
# source_security_group_owner_id: "String",
|
678
678
|
# to_port: 1,
|
679
|
-
# dry_run: false,
|
680
679
|
# security_group_rule_ids: ["String"],
|
680
|
+
# dry_run: false,
|
681
681
|
# })
|
682
682
|
# @param [Hash] options ({})
|
683
683
|
# @option options [String] :cidr_ip
|
@@ -713,13 +713,13 @@ module Aws::EC2
|
|
713
713
|
# @option options [Integer] :to_port
|
714
714
|
# If the protocol is TCP or UDP, this is the end of the port range. If
|
715
715
|
# the protocol is ICMP, this is the ICMP code or -1 (all ICMP codes).
|
716
|
+
# @option options [Array<String>] :security_group_rule_ids
|
717
|
+
# The IDs of the security group rules.
|
716
718
|
# @option options [Boolean] :dry_run
|
717
719
|
# Checks whether you have the required permissions for the action,
|
718
720
|
# without actually making the request, and provides an error response.
|
719
721
|
# If you have the required permissions, the error response is
|
720
722
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
721
|
-
# @option options [Array<String>] :security_group_rule_ids
|
722
|
-
# The IDs of the security group rules.
|
723
723
|
# @return [Types::RevokeSecurityGroupIngressResult]
|
724
724
|
def revoke_ingress(options = {})
|
725
725
|
options = options.merge(group_id: @id)
|
data/lib/aws-sdk-ec2/snapshot.rb
CHANGED
@@ -35,53 +35,61 @@ 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
|
-
# the
|
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.
|
64
68
|
# @return [String]
|
65
|
-
def
|
66
|
-
data[:
|
69
|
+
def storage_tier
|
70
|
+
data[:storage_tier]
|
67
71
|
end
|
68
72
|
|
69
|
-
#
|
70
|
-
#
|
71
|
-
|
72
|
-
|
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]
|
73
79
|
end
|
74
80
|
|
75
|
-
#
|
81
|
+
# Reserved for future use.
|
76
82
|
# @return [String]
|
77
|
-
def
|
78
|
-
data[:
|
83
|
+
def sse_type
|
84
|
+
data[:sse_type]
|
79
85
|
end
|
80
86
|
|
81
|
-
# The
|
82
|
-
#
|
83
|
-
|
84
|
-
|
87
|
+
# The ID of the volume that was used to create the snapshot. Snapshots
|
88
|
+
# created by the CopySnapshot action have an arbitrary volume ID that
|
89
|
+
# should not be used for any purpose.
|
90
|
+
# @return [String]
|
91
|
+
def volume_id
|
92
|
+
data[:volume_id]
|
85
93
|
end
|
86
94
|
|
87
95
|
# The snapshot state.
|
@@ -100,67 +108,59 @@ module Aws::EC2
|
|
100
108
|
data[:state_message]
|
101
109
|
end
|
102
110
|
|
103
|
-
# The
|
104
|
-
#
|
105
|
-
|
106
|
-
|
107
|
-
def volume_id
|
108
|
-
data[:volume_id]
|
111
|
+
# The time stamp when the snapshot was initiated.
|
112
|
+
# @return [Time]
|
113
|
+
def start_time
|
114
|
+
data[:start_time]
|
109
115
|
end
|
110
116
|
|
111
|
-
# The
|
112
|
-
# @return [
|
113
|
-
def
|
114
|
-
data[:
|
117
|
+
# The progress of the snapshot, as a percentage.
|
118
|
+
# @return [String]
|
119
|
+
def progress
|
120
|
+
data[:progress]
|
115
121
|
end
|
116
122
|
|
117
|
-
# The Amazon Web Services
|
118
|
-
# (`amazon`). This is not the user-configured Amazon Web Services
|
119
|
-
# account alias set using the IAM console.
|
123
|
+
# The ID of the Amazon Web Services account that owns the EBS snapshot.
|
120
124
|
# @return [String]
|
121
|
-
def
|
122
|
-
data[:
|
125
|
+
def owner_id
|
126
|
+
data[:owner_id]
|
123
127
|
end
|
124
128
|
|
125
|
-
# The
|
126
|
-
# information, see [Amazon EBS local snapshots on Outposts][1] in the
|
127
|
-
# *Amazon EBS User Guide*.
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
# [1]: https://docs.aws.amazon.com/ebs/latest/userguide/snapshots-outposts.html
|
129
|
+
# The description for the snapshot.
|
132
130
|
# @return [String]
|
133
|
-
def
|
134
|
-
data[:
|
131
|
+
def description
|
132
|
+
data[:description]
|
135
133
|
end
|
136
134
|
|
137
|
-
#
|
138
|
-
# @return [
|
139
|
-
def
|
140
|
-
data[:
|
135
|
+
# The size of the volume, in GiB.
|
136
|
+
# @return [Integer]
|
137
|
+
def volume_size
|
138
|
+
data[:volume_size]
|
141
139
|
end
|
142
140
|
|
143
|
-
#
|
144
|
-
#
|
145
|
-
|
146
|
-
|
147
|
-
# @return [String]
|
148
|
-
def storage_tier
|
149
|
-
data[:storage_tier]
|
141
|
+
# Indicates whether the snapshot is encrypted.
|
142
|
+
# @return [Boolean]
|
143
|
+
def encrypted
|
144
|
+
data[:encrypted]
|
150
145
|
end
|
151
146
|
|
152
|
-
#
|
153
|
-
# the
|
154
|
-
#
|
155
|
-
|
156
|
-
|
157
|
-
data[:restore_expiry_time]
|
147
|
+
# The Amazon Resource Name (ARN) of the KMS key that was used to protect
|
148
|
+
# the volume encryption key for the parent volume.
|
149
|
+
# @return [String]
|
150
|
+
def kms_key_id
|
151
|
+
data[:kms_key_id]
|
158
152
|
end
|
159
153
|
|
160
|
-
#
|
154
|
+
# The data encryption key identifier for the snapshot. This value is a
|
155
|
+
# unique identifier that corresponds to the data encryption key that was
|
156
|
+
# used to encrypt the original volume or snapshot copy. Because data
|
157
|
+
# encryption keys are inherited by volumes created from snapshots, and
|
158
|
+
# vice versa, if snapshots share the same data encryption key
|
159
|
+
# identifier, then they belong to the same volume/snapshot lineage. This
|
160
|
+
# parameter is only returned by DescribeSnapshots.
|
161
161
|
# @return [String]
|
162
|
-
def
|
163
|
-
data[:
|
162
|
+
def data_encryption_key_id
|
163
|
+
data[:data_encryption_key_id]
|
164
164
|
end
|
165
165
|
|
166
166
|
# @!endgroup
|
@@ -576,14 +576,14 @@ module Aws::EC2
|
|
576
576
|
# create_volume_permission: {
|
577
577
|
# add: [
|
578
578
|
# {
|
579
|
-
# group: "all", # accepts all
|
580
579
|
# user_id: "String",
|
580
|
+
# group: "all", # accepts all
|
581
581
|
# },
|
582
582
|
# ],
|
583
583
|
# remove: [
|
584
584
|
# {
|
585
|
-
# group: "all", # accepts all
|
586
585
|
# user_id: "String",
|
586
|
+
# group: "all", # accepts all
|
587
587
|
# },
|
588
588
|
# ],
|
589
589
|
# },
|