aws-sdk-ec2 1.460.0 → 1.462.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +580 -485
- data/lib/aws-sdk-ec2/client_api.rb +32 -1
- data/lib/aws-sdk-ec2/endpoints.rb +14 -0
- data/lib/aws-sdk-ec2/instance.rb +3 -3
- data/lib/aws-sdk-ec2/nat_gateway.rb +2 -3
- data/lib/aws-sdk-ec2/network_acl.rb +1 -1
- data/lib/aws-sdk-ec2/network_interface.rb +1 -1
- data/lib/aws-sdk-ec2/placement_group.rb +4 -0
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ec2/resource.rb +59 -67
- data/lib/aws-sdk-ec2/security_group.rb +2 -2
- data/lib/aws-sdk-ec2/snapshot.rb +14 -17
- data/lib/aws-sdk-ec2/subnet.rb +32 -31
- data/lib/aws-sdk-ec2/types.rb +421 -395
- data/lib/aws-sdk-ec2/volume.rb +4 -8
- data/lib/aws-sdk-ec2/vpc.rb +13 -13
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/client.rbs +121 -89
- data/sig/instance.rbs +1 -1
- data/sig/resource.rbs +17 -17
- data/sig/security_group.rbs +2 -2
- data/sig/snapshot.rbs +1 -1
- data/sig/subnet.rbs +2 -2
- data/sig/tag.rbs +1 -1
- data/sig/types.rbs +23 -5
- data/sig/volume.rbs +1 -1
- data/sig/vpc.rbs +5 -5
- metadata +4 -4
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -444,7 +444,7 @@ module Aws::EC2
|
|
444
444
|
# ],
|
445
445
|
# tag_specifications: [
|
446
446
|
# {
|
447
|
-
# 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
|
447
|
+
# 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, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
448
448
|
# tags: [
|
449
449
|
# {
|
450
450
|
# key: "String",
|
@@ -526,8 +526,8 @@ module Aws::EC2
|
|
526
526
|
# The ID of the AMI. An AMI ID is required to launch an instance and
|
527
527
|
# must be specified here or in a launch template.
|
528
528
|
# @option options [String] :instance_type
|
529
|
-
# The instance type. For more information, see [
|
530
|
-
# the *Amazon EC2 User Guide*.
|
529
|
+
# The instance type. For more information, see [Amazon EC2 instance
|
530
|
+
# types][1] in the *Amazon EC2 User Guide*.
|
531
531
|
#
|
532
532
|
#
|
533
533
|
#
|
@@ -572,32 +572,30 @@ module Aws::EC2
|
|
572
572
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateKeyPair.html
|
573
573
|
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_ImportKeyPair.html
|
574
574
|
# @option options [required, Integer] :max_count
|
575
|
-
# The maximum number of instances to launch. If you specify
|
576
|
-
#
|
577
|
-
# Amazon EC2 launches the largest possible number of instances
|
578
|
-
#
|
575
|
+
# The maximum number of instances to launch. If you specify a value that
|
576
|
+
# is more capacity than Amazon EC2 can launch in the target Availability
|
577
|
+
# Zone, Amazon EC2 launches the largest possible number of instances
|
578
|
+
# above the specified minimum count.
|
579
579
|
#
|
580
|
-
# Constraints: Between 1 and the
|
581
|
-
#
|
582
|
-
#
|
583
|
-
# run in Amazon EC2][1] in the Amazon EC2 FAQ.
|
580
|
+
# Constraints: Between 1 and the quota for the specified instance type
|
581
|
+
# for your account for this Region. For more information, see [Amazon
|
582
|
+
# EC2 instance type quotas][1].
|
584
583
|
#
|
585
584
|
#
|
586
585
|
#
|
587
|
-
# [1]:
|
586
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
|
588
587
|
# @option options [required, Integer] :min_count
|
589
|
-
# The minimum number of instances to launch. If you specify a
|
590
|
-
#
|
591
|
-
# Availability Zone, Amazon EC2
|
588
|
+
# The minimum number of instances to launch. If you specify a value that
|
589
|
+
# is more capacity than Amazon EC2 can provide in the target
|
590
|
+
# Availability Zone, Amazon EC2 does not launch any instances.
|
592
591
|
#
|
593
|
-
# Constraints: Between 1 and the
|
594
|
-
#
|
595
|
-
#
|
596
|
-
# run in Amazon EC2][1] in the Amazon EC2 General FAQ.
|
592
|
+
# Constraints: Between 1 and the quota for the specified instance type
|
593
|
+
# for your account for this Region. For more information, see [Amazon
|
594
|
+
# EC2 instance type quotas][1].
|
597
595
|
#
|
598
596
|
#
|
599
597
|
#
|
600
|
-
# [1]:
|
598
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-instance-quotas.html
|
601
599
|
# @option options [Types::RunInstancesMonitoringEnabled] :monitoring
|
602
600
|
# Specifies whether detailed monitoring is enabled for the instance.
|
603
601
|
# @option options [Types::Placement] :placement
|
@@ -636,16 +634,15 @@ module Aws::EC2
|
|
636
634
|
# Default: Amazon EC2 uses the default security group.
|
637
635
|
# @option options [String] :user_data
|
638
636
|
# The user data script to make available to the instance. For more
|
639
|
-
# information, see [Run commands on your
|
640
|
-
#
|
641
|
-
#
|
642
|
-
#
|
643
|
-
#
|
637
|
+
# information, see [Run commands on your Amazon EC2 instance at
|
638
|
+
# launch][1] in the *Amazon EC2 User Guide*. If you are using a command
|
639
|
+
# line tool, base64-encoding is performed for you, and you can load the
|
640
|
+
# text from a file. Otherwise, you must provide base64-encoded text.
|
641
|
+
# User data is limited to 16 KB.
|
644
642
|
#
|
645
643
|
#
|
646
644
|
#
|
647
645
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/user-data.html
|
648
|
-
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/WindowsGuide/ec2-windows-user-data.html
|
649
646
|
# @option options [String] :additional_info
|
650
647
|
# Reserved.
|
651
648
|
# @option options [String] :client_token
|
@@ -788,8 +785,8 @@ module Aws::EC2
|
|
788
785
|
# @option options [Types::HibernationOptionsRequest] :hibernation_options
|
789
786
|
# Indicates whether an instance is enabled for hibernation. This
|
790
787
|
# parameter is valid only if the instance meets the [hibernation
|
791
|
-
# prerequisites][1]. For more information, see [Hibernate your
|
792
|
-
# instance][2] in the *Amazon EC2 User Guide*.
|
788
|
+
# prerequisites][1]. For more information, see [Hibernate your Amazon
|
789
|
+
# EC2 instance][2] in the *Amazon EC2 User Guide*.
|
793
790
|
#
|
794
791
|
# You can't enable hibernation and Amazon Web Services Nitro Enclaves
|
795
792
|
# on the same instance.
|
@@ -901,7 +898,7 @@ module Aws::EC2
|
|
901
898
|
# interface_type: "efa", # accepts efa, branch, trunk
|
902
899
|
# tag_specifications: [
|
903
900
|
# {
|
904
|
-
# 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
|
901
|
+
# 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, vpc-encryption-control, ipam-resource-discovery, ipam-resource-discovery-association, instance-connect-endpoint
|
905
902
|
# tags: [
|
906
903
|
# {
|
907
904
|
# key: "String",
|
@@ -1002,11 +999,11 @@ module Aws::EC2
|
|
1002
999
|
# @option options [String] :client_token
|
1003
1000
|
# Unique, case-sensitive identifier that you provide to ensure the
|
1004
1001
|
# idempotency of the request. For more information, see [Ensuring
|
1005
|
-
#
|
1002
|
+
# idempotency][1].
|
1006
1003
|
#
|
1007
1004
|
#
|
1008
1005
|
#
|
1009
|
-
# [1]: https://docs.aws.amazon.com/
|
1006
|
+
# [1]: https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html
|
1010
1007
|
# @option options [Boolean] :enable_primary_ipv_6
|
1011
1008
|
# If you’re creating a network interface in a dual-stack or IPv6-only
|
1012
1009
|
# subnet, you have the option to assign a primary IPv6 IP address. A
|
@@ -1506,6 +1503,10 @@ module Aws::EC2
|
|
1506
1503
|
# (`ip-name` \| `resource-name`).
|
1507
1504
|
#
|
1508
1505
|
# * `private-ip-address` - The private IPv4 address of the instance.
|
1506
|
+
# This can only be used to filter by the primary IP address of the
|
1507
|
+
# network interface attached to the instance. To filter by additional
|
1508
|
+
# IP addresses assigned to the network interface, use the filter
|
1509
|
+
# `network-interface.addresses.private-ip-address`.
|
1509
1510
|
#
|
1510
1511
|
# * `product-code` - The product code associated with the AMI used to
|
1511
1512
|
# launch the instance.
|