aws-sdk-ec2 1.514.0 → 1.517.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 +15 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +259 -149
- data/lib/aws-sdk-ec2/client_api.rb +16 -1
- data/lib/aws-sdk-ec2/instance.rb +36 -8
- data/lib/aws-sdk-ec2/types.rb +252 -45
- data/lib/aws-sdk-ec2.rb +1 -1
- data/sig/classic_address.rbs +1 -1
- data/sig/client.rbs +10 -2
- data/sig/types.rbs +17 -1
- data/sig/vpc_address.rbs +1 -1
- metadata +2 -2
@@ -367,6 +367,8 @@ module Aws::EC2
|
|
367
367
|
ClientData = Shapes::StructureShape.new(name: 'ClientData')
|
368
368
|
ClientLoginBannerOptions = Shapes::StructureShape.new(name: 'ClientLoginBannerOptions')
|
369
369
|
ClientLoginBannerResponseOptions = Shapes::StructureShape.new(name: 'ClientLoginBannerResponseOptions')
|
370
|
+
ClientRouteEnforcementOptions = Shapes::StructureShape.new(name: 'ClientRouteEnforcementOptions')
|
371
|
+
ClientRouteEnforcementResponseOptions = Shapes::StructureShape.new(name: 'ClientRouteEnforcementResponseOptions')
|
370
372
|
ClientSecretType = Shapes::StringShape.new(name: 'ClientSecretType')
|
371
373
|
ClientVpnAuthentication = Shapes::StructureShape.new(name: 'ClientVpnAuthentication')
|
372
374
|
ClientVpnAuthenticationList = Shapes::ListShape.new(name: 'ClientVpnAuthenticationList')
|
@@ -1980,6 +1982,7 @@ module Aws::EC2
|
|
1980
1982
|
IpamId = Shapes::StringShape.new(name: 'IpamId')
|
1981
1983
|
IpamManagementState = Shapes::StringShape.new(name: 'IpamManagementState')
|
1982
1984
|
IpamMaxResults = Shapes::IntegerShape.new(name: 'IpamMaxResults')
|
1985
|
+
IpamMeteredAccount = Shapes::StringShape.new(name: 'IpamMeteredAccount')
|
1983
1986
|
IpamNetmaskLength = Shapes::IntegerShape.new(name: 'IpamNetmaskLength')
|
1984
1987
|
IpamNetworkInterfaceAttachmentStatus = Shapes::StringShape.new(name: 'IpamNetworkInterfaceAttachmentStatus')
|
1985
1988
|
IpamOperatingRegion = Shapes::StructureShape.new(name: 'IpamOperatingRegion')
|
@@ -4695,6 +4698,12 @@ module Aws::EC2
|
|
4695
4698
|
ClientLoginBannerResponseOptions.add_member(:banner_text, Shapes::ShapeRef.new(shape: String, location_name: "bannerText"))
|
4696
4699
|
ClientLoginBannerResponseOptions.struct_class = Types::ClientLoginBannerResponseOptions
|
4697
4700
|
|
4701
|
+
ClientRouteEnforcementOptions.add_member(:enforced, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enforced"))
|
4702
|
+
ClientRouteEnforcementOptions.struct_class = Types::ClientRouteEnforcementOptions
|
4703
|
+
|
4704
|
+
ClientRouteEnforcementResponseOptions.add_member(:enforced, Shapes::ShapeRef.new(shape: Boolean, location_name: "enforced"))
|
4705
|
+
ClientRouteEnforcementResponseOptions.struct_class = Types::ClientRouteEnforcementResponseOptions
|
4706
|
+
|
4698
4707
|
ClientVpnAuthentication.add_member(:type, Shapes::ShapeRef.new(shape: ClientVpnAuthenticationType, location_name: "type"))
|
4699
4708
|
ClientVpnAuthentication.add_member(:active_directory, Shapes::ShapeRef.new(shape: DirectoryServiceAuthentication, location_name: "activeDirectory"))
|
4700
4709
|
ClientVpnAuthentication.add_member(:mutual_authentication, Shapes::ShapeRef.new(shape: CertificateAuthentication, location_name: "mutualAuthentication"))
|
@@ -4760,6 +4769,7 @@ module Aws::EC2
|
|
4760
4769
|
ClientVpnEndpoint.add_member(:client_connect_options, Shapes::ShapeRef.new(shape: ClientConnectResponseOptions, location_name: "clientConnectOptions"))
|
4761
4770
|
ClientVpnEndpoint.add_member(:session_timeout_hours, Shapes::ShapeRef.new(shape: Integer, location_name: "sessionTimeoutHours"))
|
4762
4771
|
ClientVpnEndpoint.add_member(:client_login_banner_options, Shapes::ShapeRef.new(shape: ClientLoginBannerResponseOptions, location_name: "clientLoginBannerOptions"))
|
4772
|
+
ClientVpnEndpoint.add_member(:client_route_enforcement_options, Shapes::ShapeRef.new(shape: ClientRouteEnforcementResponseOptions, location_name: "clientRouteEnforcementOptions"))
|
4763
4773
|
ClientVpnEndpoint.add_member(:disconnect_on_session_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "disconnectOnSessionTimeout"))
|
4764
4774
|
ClientVpnEndpoint.struct_class = Types::ClientVpnEndpoint
|
4765
4775
|
|
@@ -5040,6 +5050,7 @@ module Aws::EC2
|
|
5040
5050
|
CreateClientVpnEndpointRequest.add_member(:client_connect_options, Shapes::ShapeRef.new(shape: ClientConnectOptions, location_name: "ClientConnectOptions"))
|
5041
5051
|
CreateClientVpnEndpointRequest.add_member(:session_timeout_hours, Shapes::ShapeRef.new(shape: Integer, location_name: "SessionTimeoutHours"))
|
5042
5052
|
CreateClientVpnEndpointRequest.add_member(:client_login_banner_options, Shapes::ShapeRef.new(shape: ClientLoginBannerOptions, location_name: "ClientLoginBannerOptions"))
|
5053
|
+
CreateClientVpnEndpointRequest.add_member(:client_route_enforcement_options, Shapes::ShapeRef.new(shape: ClientRouteEnforcementOptions, location_name: "ClientRouteEnforcementOptions"))
|
5043
5054
|
CreateClientVpnEndpointRequest.add_member(:disconnect_on_session_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisconnectOnSessionTimeout"))
|
5044
5055
|
CreateClientVpnEndpointRequest.struct_class = Types::CreateClientVpnEndpointRequest
|
5045
5056
|
|
@@ -5282,6 +5293,7 @@ module Aws::EC2
|
|
5282
5293
|
CreateIpamRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
5283
5294
|
CreateIpamRequest.add_member(:tier, Shapes::ShapeRef.new(shape: IpamTier, location_name: "Tier"))
|
5284
5295
|
CreateIpamRequest.add_member(:enable_private_gua, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnablePrivateGua"))
|
5296
|
+
CreateIpamRequest.add_member(:metered_account, Shapes::ShapeRef.new(shape: IpamMeteredAccount, location_name: "MeteredAccount"))
|
5285
5297
|
CreateIpamRequest.struct_class = Types::CreateIpamRequest
|
5286
5298
|
|
5287
5299
|
CreateIpamResourceDiscoveryRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
@@ -9744,7 +9756,7 @@ module Aws::EC2
|
|
9744
9756
|
FleetLaunchTemplateOverridesRequest.add_member(:placement, Shapes::ShapeRef.new(shape: Placement, location_name: "Placement"))
|
9745
9757
|
FleetLaunchTemplateOverridesRequest.add_member(:block_device_mappings, Shapes::ShapeRef.new(shape: FleetBlockDeviceMappingRequestList, location_name: "BlockDeviceMapping"))
|
9746
9758
|
FleetLaunchTemplateOverridesRequest.add_member(:instance_requirements, Shapes::ShapeRef.new(shape: InstanceRequirementsRequest, location_name: "InstanceRequirements"))
|
9747
|
-
FleetLaunchTemplateOverridesRequest.add_member(:image_id, Shapes::ShapeRef.new(shape:
|
9759
|
+
FleetLaunchTemplateOverridesRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, location_name: "ImageId"))
|
9748
9760
|
FleetLaunchTemplateOverridesRequest.struct_class = Types::FleetLaunchTemplateOverridesRequest
|
9749
9761
|
|
9750
9762
|
FleetLaunchTemplateSpecification.add_member(:launch_template_id, Shapes::ShapeRef.new(shape: String, location_name: "launchTemplateId"))
|
@@ -11460,6 +11472,7 @@ module Aws::EC2
|
|
11460
11472
|
Ipam.add_member(:state_message, Shapes::ShapeRef.new(shape: String, location_name: "stateMessage"))
|
11461
11473
|
Ipam.add_member(:tier, Shapes::ShapeRef.new(shape: IpamTier, location_name: "tier"))
|
11462
11474
|
Ipam.add_member(:enable_private_gua, Shapes::ShapeRef.new(shape: Boolean, location_name: "enablePrivateGua"))
|
11475
|
+
Ipam.add_member(:metered_account, Shapes::ShapeRef.new(shape: IpamMeteredAccount, location_name: "meteredAccount"))
|
11463
11476
|
Ipam.struct_class = Types::Ipam
|
11464
11477
|
|
11465
11478
|
IpamAddressHistoryRecord.add_member(:resource_owner_id, Shapes::ShapeRef.new(shape: String, location_name: "resourceOwnerId"))
|
@@ -12441,6 +12454,7 @@ module Aws::EC2
|
|
12441
12454
|
ModifyClientVpnEndpointRequest.add_member(:client_connect_options, Shapes::ShapeRef.new(shape: ClientConnectOptions, location_name: "ClientConnectOptions"))
|
12442
12455
|
ModifyClientVpnEndpointRequest.add_member(:session_timeout_hours, Shapes::ShapeRef.new(shape: Integer, location_name: "SessionTimeoutHours"))
|
12443
12456
|
ModifyClientVpnEndpointRequest.add_member(:client_login_banner_options, Shapes::ShapeRef.new(shape: ClientLoginBannerOptions, location_name: "ClientLoginBannerOptions"))
|
12457
|
+
ModifyClientVpnEndpointRequest.add_member(:client_route_enforcement_options, Shapes::ShapeRef.new(shape: ClientRouteEnforcementOptions, location_name: "ClientRouteEnforcementOptions"))
|
12444
12458
|
ModifyClientVpnEndpointRequest.add_member(:disconnect_on_session_timeout, Shapes::ShapeRef.new(shape: Boolean, location_name: "DisconnectOnSessionTimeout"))
|
12445
12459
|
ModifyClientVpnEndpointRequest.struct_class = Types::ModifyClientVpnEndpointRequest
|
12446
12460
|
|
@@ -12666,6 +12680,7 @@ module Aws::EC2
|
|
12666
12680
|
ModifyIpamRequest.add_member(:remove_operating_regions, Shapes::ShapeRef.new(shape: RemoveIpamOperatingRegionSet, location_name: "RemoveOperatingRegion"))
|
12667
12681
|
ModifyIpamRequest.add_member(:tier, Shapes::ShapeRef.new(shape: IpamTier, location_name: "Tier"))
|
12668
12682
|
ModifyIpamRequest.add_member(:enable_private_gua, Shapes::ShapeRef.new(shape: Boolean, location_name: "EnablePrivateGua"))
|
12683
|
+
ModifyIpamRequest.add_member(:metered_account, Shapes::ShapeRef.new(shape: IpamMeteredAccount, location_name: "MeteredAccount"))
|
12669
12684
|
ModifyIpamRequest.struct_class = Types::ModifyIpamRequest
|
12670
12685
|
|
12671
12686
|
ModifyIpamResourceCidrRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -1115,6 +1115,14 @@ module Aws::EC2
|
|
1115
1115
|
# @option options [String] :attribute
|
1116
1116
|
# The name of the attribute to modify.
|
1117
1117
|
#
|
1118
|
+
# <note markdown="1"> When changing the instance type: If the original instance type is
|
1119
|
+
# configured for configurable bandwidth, and the desired instance type
|
1120
|
+
# doesn't support configurable bandwidth, first set the existing
|
1121
|
+
# bandwidth configuration to `default` using the
|
1122
|
+
# ModifyInstanceNetworkPerformanceOptions operation.
|
1123
|
+
#
|
1124
|
+
# </note>
|
1125
|
+
#
|
1118
1126
|
# You can modify the following attributes only: `disableApiTermination`
|
1119
1127
|
# \| `instanceType` \| `kernel` \| `ramdisk` \|
|
1120
1128
|
# `instanceInitiatedShutdownBehavior` \| `blockDeviceMapping` \|
|
@@ -1480,12 +1488,22 @@ module Aws::EC2
|
|
1480
1488
|
# If you have the required permissions, the error response is
|
1481
1489
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1482
1490
|
# @option options [Boolean] :force
|
1483
|
-
# Forces the
|
1484
|
-
#
|
1485
|
-
#
|
1486
|
-
#
|
1491
|
+
# Forces the instance to stop. The instance will first attempt a
|
1492
|
+
# graceful shutdown, which includes flushing file system caches and
|
1493
|
+
# metadata. If the graceful shutdown fails to complete within the
|
1494
|
+
# timeout period, the instance shuts down forcibly without flushing the
|
1495
|
+
# file system caches and metadata.
|
1496
|
+
#
|
1497
|
+
# After using this option, you must perform file system check and repair
|
1498
|
+
# procedures. This option is not recommended for Windows instances. For
|
1499
|
+
# more information, see [Troubleshoot Amazon EC2 instance stop
|
1500
|
+
# issues][1] in the *Amazon EC2 User Guide*.
|
1487
1501
|
#
|
1488
1502
|
# Default: `false`
|
1503
|
+
#
|
1504
|
+
#
|
1505
|
+
#
|
1506
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html
|
1489
1507
|
# @return [Types::StopInstancesResult]
|
1490
1508
|
def stop(options = {})
|
1491
1509
|
options = Aws::Util.deep_merge(options, instance_ids: [@id])
|
@@ -2047,12 +2065,22 @@ module Aws::EC2
|
|
2047
2065
|
# If you have the required permissions, the error response is
|
2048
2066
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
2049
2067
|
# @option options [Boolean] :force
|
2050
|
-
# Forces the
|
2051
|
-
#
|
2052
|
-
#
|
2053
|
-
#
|
2068
|
+
# Forces the instance to stop. The instance will first attempt a
|
2069
|
+
# graceful shutdown, which includes flushing file system caches and
|
2070
|
+
# metadata. If the graceful shutdown fails to complete within the
|
2071
|
+
# timeout period, the instance shuts down forcibly without flushing the
|
2072
|
+
# file system caches and metadata.
|
2073
|
+
#
|
2074
|
+
# After using this option, you must perform file system check and repair
|
2075
|
+
# procedures. This option is not recommended for Windows instances. For
|
2076
|
+
# more information, see [Troubleshoot Amazon EC2 instance stop
|
2077
|
+
# issues][1] in the *Amazon EC2 User Guide*.
|
2054
2078
|
#
|
2055
2079
|
# Default: `false`
|
2080
|
+
#
|
2081
|
+
#
|
2082
|
+
#
|
2083
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesStopping.html
|
2056
2084
|
# @return [void]
|
2057
2085
|
def batch_stop(options = {})
|
2058
2086
|
batch_enum.each do |batch|
|