aws-sdk-ec2 1.414.0 → 1.416.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 +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +89 -4
- data/lib/aws-sdk-ec2/client_api.rb +40 -0
- data/lib/aws-sdk-ec2/endpoints.rb +14 -0
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +2 -0
- data/lib/aws-sdk-ec2/types.rb +149 -5
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: be9cd549908340f8b6d774a7c901825fc651feb1cd3df0dbcdd865e067d58390
|
4
|
+
data.tar.gz: 69c5daac300e84329abbaba6aa5cc878fc65eca8628e0e6a915cd10c5dbb0e12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a39112c01ebb25500d3f8aa72dd3f809c5de94928cfbf969806b27338ec4eae44b9308495c205e910bceb6e12decd7c668b3b9d888834a44cc17b504fe229382
|
7
|
+
data.tar.gz: 19c8d323bd3e6ee1570f206a36169e356662506d3b687330e0840ed5afa8bb2f241ce78de82eb47ba850e99f72d82f61709fa1c8b077424e2ef89c25f5b2ca95
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,16 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.416.0 (2023-10-26)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Launching GetSecurityGroupsForVpc API. This API gets security groups that can be associated by the AWS account making the request with network interfaces in the specified VPC.
|
8
|
+
|
9
|
+
1.415.0 (2023-10-24)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - This release updates the documentation for InstanceInterruptionBehavior and HibernationOptionsRequest to more accurately describe the behavior of these two parameters when using Spot hibernation.
|
13
|
+
|
4
14
|
1.414.0 (2023-10-19)
|
5
15
|
------------------
|
6
16
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.416.0
|
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -32498,9 +32498,9 @@ module Aws::EC2
|
|
32498
32498
|
# wildcards; greater than or less than comparison is not supported).
|
32499
32499
|
#
|
32500
32500
|
# * `timestamp` - The time stamp of the Spot price history, in UTC
|
32501
|
-
# format (for example, *
|
32502
|
-
# wildcards (
|
32503
|
-
# supported.
|
32501
|
+
# format (for example, *ddd MMM dd HH*:*mm*:*ss* UTC *YYYY*). You can
|
32502
|
+
# use wildcards (`*` and `?`). Greater than or less than comparison is
|
32503
|
+
# not supported.
|
32504
32504
|
#
|
32505
32505
|
# @option params [String] :availability_zone
|
32506
32506
|
# Filters the results by the specified Availability Zone.
|
@@ -42131,6 +42131,91 @@ module Aws::EC2
|
|
42131
42131
|
req.send_request(options)
|
42132
42132
|
end
|
42133
42133
|
|
42134
|
+
# Gets security groups that can be associated by the Amazon Web Services
|
42135
|
+
# account making the request with network interfaces in the specified
|
42136
|
+
# VPC.
|
42137
|
+
#
|
42138
|
+
# @option params [required, String] :vpc_id
|
42139
|
+
# The VPC ID where the security group can be used.
|
42140
|
+
#
|
42141
|
+
# @option params [String] :next_token
|
42142
|
+
# The token returned from a previous paginated request. Pagination
|
42143
|
+
# continues from the end of the items returned by the previous request.
|
42144
|
+
#
|
42145
|
+
# @option params [Integer] :max_results
|
42146
|
+
# The maximum number of items to return for this request. To get the
|
42147
|
+
# next page of items, make another request with the token returned in
|
42148
|
+
# the output. For more information, see [Pagination][1].
|
42149
|
+
#
|
42150
|
+
#
|
42151
|
+
#
|
42152
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
42153
|
+
#
|
42154
|
+
# @option params [Array<Types::Filter>] :filters
|
42155
|
+
# The filters. If using multiple filters, the results include security
|
42156
|
+
# groups which match all filters.
|
42157
|
+
#
|
42158
|
+
# * `group-id`: The security group ID.
|
42159
|
+
#
|
42160
|
+
# * `description`: The security group's description.
|
42161
|
+
#
|
42162
|
+
# * `group-name`: The security group name.
|
42163
|
+
#
|
42164
|
+
# * `owner-id`: The security group owner ID.
|
42165
|
+
#
|
42166
|
+
# * `primary-vpc-id`: The VPC ID in which the security group was
|
42167
|
+
# created.
|
42168
|
+
#
|
42169
|
+
# @option params [Boolean] :dry_run
|
42170
|
+
# Checks whether you have the required permissions for the action,
|
42171
|
+
# without actually making the request, and provides an error response.
|
42172
|
+
# If you have the required permissions, the error response is
|
42173
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
42174
|
+
#
|
42175
|
+
# @return [Types::GetSecurityGroupsForVpcResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
42176
|
+
#
|
42177
|
+
# * {Types::GetSecurityGroupsForVpcResult#next_token #next_token} => String
|
42178
|
+
# * {Types::GetSecurityGroupsForVpcResult#security_group_for_vpcs #security_group_for_vpcs} => Array<Types::SecurityGroupForVpc>
|
42179
|
+
#
|
42180
|
+
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
42181
|
+
#
|
42182
|
+
# @example Request syntax with placeholder values
|
42183
|
+
#
|
42184
|
+
# resp = client.get_security_groups_for_vpc({
|
42185
|
+
# vpc_id: "VpcId", # required
|
42186
|
+
# next_token: "String",
|
42187
|
+
# max_results: 1,
|
42188
|
+
# filters: [
|
42189
|
+
# {
|
42190
|
+
# name: "String",
|
42191
|
+
# values: ["String"],
|
42192
|
+
# },
|
42193
|
+
# ],
|
42194
|
+
# dry_run: false,
|
42195
|
+
# })
|
42196
|
+
#
|
42197
|
+
# @example Response structure
|
42198
|
+
#
|
42199
|
+
# resp.next_token #=> String
|
42200
|
+
# resp.security_group_for_vpcs #=> Array
|
42201
|
+
# resp.security_group_for_vpcs[0].description #=> String
|
42202
|
+
# resp.security_group_for_vpcs[0].group_name #=> String
|
42203
|
+
# resp.security_group_for_vpcs[0].owner_id #=> String
|
42204
|
+
# resp.security_group_for_vpcs[0].group_id #=> String
|
42205
|
+
# resp.security_group_for_vpcs[0].tags #=> Array
|
42206
|
+
# resp.security_group_for_vpcs[0].tags[0].key #=> String
|
42207
|
+
# resp.security_group_for_vpcs[0].tags[0].value #=> String
|
42208
|
+
# resp.security_group_for_vpcs[0].primary_vpc_id #=> String
|
42209
|
+
#
|
42210
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSecurityGroupsForVpc AWS API Documentation
|
42211
|
+
#
|
42212
|
+
# @overload get_security_groups_for_vpc(params = {})
|
42213
|
+
# @param [Hash] params ({})
|
42214
|
+
def get_security_groups_for_vpc(params = {}, options = {})
|
42215
|
+
req = build_request(:get_security_groups_for_vpc, params)
|
42216
|
+
req.send_request(options)
|
42217
|
+
end
|
42218
|
+
|
42134
42219
|
# Retrieves the access status of your account to the EC2 serial console
|
42135
42220
|
# of all instances. By default, access to the EC2 serial console is
|
42136
42221
|
# disabled for your account. For more information, see [Manage account
|
@@ -57184,7 +57269,7 @@ module Aws::EC2
|
|
57184
57269
|
params: params,
|
57185
57270
|
config: config)
|
57186
57271
|
context[:gem_name] = 'aws-sdk-ec2'
|
57187
|
-
context[:gem_version] = '1.
|
57272
|
+
context[:gem_version] = '1.416.0'
|
57188
57273
|
Seahorse::Client::Request.new(handlers, context)
|
57189
57274
|
end
|
57190
57275
|
|
@@ -1448,6 +1448,9 @@ module Aws::EC2
|
|
1448
1448
|
GetPasswordDataResult = Shapes::StructureShape.new(name: 'GetPasswordDataResult')
|
1449
1449
|
GetReservedInstancesExchangeQuoteRequest = Shapes::StructureShape.new(name: 'GetReservedInstancesExchangeQuoteRequest')
|
1450
1450
|
GetReservedInstancesExchangeQuoteResult = Shapes::StructureShape.new(name: 'GetReservedInstancesExchangeQuoteResult')
|
1451
|
+
GetSecurityGroupsForVpcRequest = Shapes::StructureShape.new(name: 'GetSecurityGroupsForVpcRequest')
|
1452
|
+
GetSecurityGroupsForVpcRequestMaxResults = Shapes::IntegerShape.new(name: 'GetSecurityGroupsForVpcRequestMaxResults')
|
1453
|
+
GetSecurityGroupsForVpcResult = Shapes::StructureShape.new(name: 'GetSecurityGroupsForVpcResult')
|
1451
1454
|
GetSerialConsoleAccessStatusRequest = Shapes::StructureShape.new(name: 'GetSerialConsoleAccessStatusRequest')
|
1452
1455
|
GetSerialConsoleAccessStatusResult = Shapes::StructureShape.new(name: 'GetSerialConsoleAccessStatusResult')
|
1453
1456
|
GetSpotPlacementScoresRequest = Shapes::StructureShape.new(name: 'GetSpotPlacementScoresRequest')
|
@@ -2554,6 +2557,8 @@ module Aws::EC2
|
|
2554
2557
|
SearchTransitGatewayRoutesRequest = Shapes::StructureShape.new(name: 'SearchTransitGatewayRoutesRequest')
|
2555
2558
|
SearchTransitGatewayRoutesResult = Shapes::StructureShape.new(name: 'SearchTransitGatewayRoutesResult')
|
2556
2559
|
SecurityGroup = Shapes::StructureShape.new(name: 'SecurityGroup')
|
2560
|
+
SecurityGroupForVpc = Shapes::StructureShape.new(name: 'SecurityGroupForVpc')
|
2561
|
+
SecurityGroupForVpcList = Shapes::ListShape.new(name: 'SecurityGroupForVpcList')
|
2557
2562
|
SecurityGroupId = Shapes::StringShape.new(name: 'SecurityGroupId')
|
2558
2563
|
SecurityGroupIdList = Shapes::ListShape.new(name: 'SecurityGroupIdList')
|
2559
2564
|
SecurityGroupIdSet = Shapes::ListShape.new(name: 'SecurityGroupIdSet')
|
@@ -8927,6 +8932,17 @@ module Aws::EC2
|
|
8927
8932
|
GetReservedInstancesExchangeQuoteResult.add_member(:validation_failure_reason, Shapes::ShapeRef.new(shape: String, location_name: "validationFailureReason"))
|
8928
8933
|
GetReservedInstancesExchangeQuoteResult.struct_class = Types::GetReservedInstancesExchangeQuoteResult
|
8929
8934
|
|
8935
|
+
GetSecurityGroupsForVpcRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
|
8936
|
+
GetSecurityGroupsForVpcRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
8937
|
+
GetSecurityGroupsForVpcRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: GetSecurityGroupsForVpcRequestMaxResults, location_name: "MaxResults"))
|
8938
|
+
GetSecurityGroupsForVpcRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
8939
|
+
GetSecurityGroupsForVpcRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
8940
|
+
GetSecurityGroupsForVpcRequest.struct_class = Types::GetSecurityGroupsForVpcRequest
|
8941
|
+
|
8942
|
+
GetSecurityGroupsForVpcResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
|
8943
|
+
GetSecurityGroupsForVpcResult.add_member(:security_group_for_vpcs, Shapes::ShapeRef.new(shape: SecurityGroupForVpcList, location_name: "securityGroupForVpcSet"))
|
8944
|
+
GetSecurityGroupsForVpcResult.struct_class = Types::GetSecurityGroupsForVpcResult
|
8945
|
+
|
8930
8946
|
GetSerialConsoleAccessStatusRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
8931
8947
|
GetSerialConsoleAccessStatusRequest.struct_class = Types::GetSerialConsoleAccessStatusRequest
|
8932
8948
|
|
@@ -13292,6 +13308,16 @@ module Aws::EC2
|
|
13292
13308
|
SecurityGroup.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "vpcId"))
|
13293
13309
|
SecurityGroup.struct_class = Types::SecurityGroup
|
13294
13310
|
|
13311
|
+
SecurityGroupForVpc.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "description"))
|
13312
|
+
SecurityGroupForVpc.add_member(:group_name, Shapes::ShapeRef.new(shape: String, location_name: "groupName"))
|
13313
|
+
SecurityGroupForVpc.add_member(:owner_id, Shapes::ShapeRef.new(shape: String, location_name: "ownerId"))
|
13314
|
+
SecurityGroupForVpc.add_member(:group_id, Shapes::ShapeRef.new(shape: String, location_name: "groupId"))
|
13315
|
+
SecurityGroupForVpc.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
13316
|
+
SecurityGroupForVpc.add_member(:primary_vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "primaryVpcId"))
|
13317
|
+
SecurityGroupForVpc.struct_class = Types::SecurityGroupForVpc
|
13318
|
+
|
13319
|
+
SecurityGroupForVpcList.member = Shapes::ShapeRef.new(shape: SecurityGroupForVpc, location_name: "item")
|
13320
|
+
|
13295
13321
|
SecurityGroupIdList.member = Shapes::ShapeRef.new(shape: SecurityGroupId, location_name: "item")
|
13296
13322
|
|
13297
13323
|
SecurityGroupIdSet.member = Shapes::ShapeRef.new(shape: SecurityGroupId, location_name: "item")
|
@@ -19400,6 +19426,20 @@ module Aws::EC2
|
|
19400
19426
|
o.output = Shapes::ShapeRef.new(shape: GetReservedInstancesExchangeQuoteResult)
|
19401
19427
|
end)
|
19402
19428
|
|
19429
|
+
api.add_operation(:get_security_groups_for_vpc, Seahorse::Model::Operation.new.tap do |o|
|
19430
|
+
o.name = "GetSecurityGroupsForVpc"
|
19431
|
+
o.http_method = "POST"
|
19432
|
+
o.http_request_uri = "/"
|
19433
|
+
o.input = Shapes::ShapeRef.new(shape: GetSecurityGroupsForVpcRequest)
|
19434
|
+
o.output = Shapes::ShapeRef.new(shape: GetSecurityGroupsForVpcResult)
|
19435
|
+
o[:pager] = Aws::Pager.new(
|
19436
|
+
limit_key: "max_results",
|
19437
|
+
tokens: {
|
19438
|
+
"next_token" => "next_token"
|
19439
|
+
}
|
19440
|
+
)
|
19441
|
+
end)
|
19442
|
+
|
19403
19443
|
api.add_operation(:get_serial_console_access_status, Seahorse::Model::Operation.new.tap do |o|
|
19404
19444
|
o.name = "GetSerialConsoleAccessStatus"
|
19405
19445
|
o.http_method = "POST"
|
@@ -6242,6 +6242,20 @@ module Aws::EC2
|
|
6242
6242
|
end
|
6243
6243
|
end
|
6244
6244
|
|
6245
|
+
class GetSecurityGroupsForVpc
|
6246
|
+
def self.build(context)
|
6247
|
+
unless context.config.regional_endpoint
|
6248
|
+
endpoint = context.config.endpoint.to_s
|
6249
|
+
end
|
6250
|
+
Aws::EC2::EndpointParameters.new(
|
6251
|
+
region: context.config.region,
|
6252
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
6253
|
+
use_fips: context.config.use_fips_endpoint,
|
6254
|
+
endpoint: endpoint,
|
6255
|
+
)
|
6256
|
+
end
|
6257
|
+
end
|
6258
|
+
|
6245
6259
|
class GetSerialConsoleAccessStatus
|
6246
6260
|
def self.build(context)
|
6247
6261
|
unless context.config.regional_endpoint
|
@@ -946,6 +946,8 @@ module Aws::EC2
|
|
946
946
|
Aws::EC2::Endpoints::GetPasswordData.build(context)
|
947
947
|
when :get_reserved_instances_exchange_quote
|
948
948
|
Aws::EC2::Endpoints::GetReservedInstancesExchangeQuote.build(context)
|
949
|
+
when :get_security_groups_for_vpc
|
950
|
+
Aws::EC2::Endpoints::GetSecurityGroupsForVpc.build(context)
|
949
951
|
when :get_serial_console_access_status
|
950
952
|
Aws::EC2::Endpoints::GetSerialConsoleAccessStatus.build(context)
|
951
953
|
when :get_spot_placement_scores
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -24137,9 +24137,9 @@ module Aws::EC2
|
|
24137
24137
|
# supported).
|
24138
24138
|
#
|
24139
24139
|
# * `timestamp` - The time stamp of the Spot price history, in UTC
|
24140
|
-
# format (for example, *
|
24141
|
-
# use wildcards (
|
24142
|
-
# not supported.
|
24140
|
+
# format (for example, *ddd MMM dd HH*:*mm*:*ss* UTC *YYYY*). You
|
24141
|
+
# can use wildcards (`*` and `?`). Greater than or less than
|
24142
|
+
# comparison is not supported.
|
24143
24143
|
# @return [Array<Types::Filter>]
|
24144
24144
|
#
|
24145
24145
|
# @!attribute [rw] availability_zone
|
@@ -34153,6 +34153,79 @@ module Aws::EC2
|
|
34153
34153
|
include Aws::Structure
|
34154
34154
|
end
|
34155
34155
|
|
34156
|
+
# @!attribute [rw] vpc_id
|
34157
|
+
# The VPC ID where the security group can be used.
|
34158
|
+
# @return [String]
|
34159
|
+
#
|
34160
|
+
# @!attribute [rw] next_token
|
34161
|
+
# The token returned from a previous paginated request. Pagination
|
34162
|
+
# continues from the end of the items returned by the previous
|
34163
|
+
# request.
|
34164
|
+
# @return [String]
|
34165
|
+
#
|
34166
|
+
# @!attribute [rw] max_results
|
34167
|
+
# The maximum number of items to return for this request. To get the
|
34168
|
+
# next page of items, make another request with the token returned in
|
34169
|
+
# the output. For more information, see [Pagination][1].
|
34170
|
+
#
|
34171
|
+
#
|
34172
|
+
#
|
34173
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination
|
34174
|
+
# @return [Integer]
|
34175
|
+
#
|
34176
|
+
# @!attribute [rw] filters
|
34177
|
+
# The filters. If using multiple filters, the results include security
|
34178
|
+
# groups which match all filters.
|
34179
|
+
#
|
34180
|
+
# * `group-id`: The security group ID.
|
34181
|
+
#
|
34182
|
+
# * `description`: The security group's description.
|
34183
|
+
#
|
34184
|
+
# * `group-name`: The security group name.
|
34185
|
+
#
|
34186
|
+
# * `owner-id`: The security group owner ID.
|
34187
|
+
#
|
34188
|
+
# * `primary-vpc-id`: The VPC ID in which the security group was
|
34189
|
+
# created.
|
34190
|
+
# @return [Array<Types::Filter>]
|
34191
|
+
#
|
34192
|
+
# @!attribute [rw] dry_run
|
34193
|
+
# Checks whether you have the required permissions for the action,
|
34194
|
+
# without actually making the request, and provides an error response.
|
34195
|
+
# If you have the required permissions, the error response is
|
34196
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
34197
|
+
# @return [Boolean]
|
34198
|
+
#
|
34199
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSecurityGroupsForVpcRequest AWS API Documentation
|
34200
|
+
#
|
34201
|
+
class GetSecurityGroupsForVpcRequest < Struct.new(
|
34202
|
+
:vpc_id,
|
34203
|
+
:next_token,
|
34204
|
+
:max_results,
|
34205
|
+
:filters,
|
34206
|
+
:dry_run)
|
34207
|
+
SENSITIVE = []
|
34208
|
+
include Aws::Structure
|
34209
|
+
end
|
34210
|
+
|
34211
|
+
# @!attribute [rw] next_token
|
34212
|
+
# The token to include in another request to get the next page of
|
34213
|
+
# items. This value is `null` when there are no more items to return.
|
34214
|
+
# @return [String]
|
34215
|
+
#
|
34216
|
+
# @!attribute [rw] security_group_for_vpcs
|
34217
|
+
# The security group that can be used by interfaces in the VPC.
|
34218
|
+
# @return [Array<Types::SecurityGroupForVpc>]
|
34219
|
+
#
|
34220
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetSecurityGroupsForVpcResult AWS API Documentation
|
34221
|
+
#
|
34222
|
+
class GetSecurityGroupsForVpcResult < Struct.new(
|
34223
|
+
:next_token,
|
34224
|
+
:security_group_for_vpcs)
|
34225
|
+
SENSITIVE = []
|
34226
|
+
include Aws::Structure
|
34227
|
+
end
|
34228
|
+
|
34156
34229
|
# @!attribute [rw] dry_run
|
34157
34230
|
# Checks whether you have the required permissions for the action,
|
34158
34231
|
# without actually making the request, and provides an error response.
|
@@ -35170,7 +35243,22 @@ module Aws::EC2
|
|
35170
35243
|
# @!attribute [rw] configured
|
35171
35244
|
# Set to `true` to enable your instance for hibernation.
|
35172
35245
|
#
|
35246
|
+
# For Spot Instances, if you set `Configured` to `true`, either omit
|
35247
|
+
# the `InstanceInterruptionBehavior` parameter (for [
|
35248
|
+
# `SpotMarketOptions` ][1]), or set it to `hibernate`. When
|
35249
|
+
# `Configured` is true:
|
35250
|
+
#
|
35251
|
+
# * If you omit `InstanceInterruptionBehavior`, it defaults to
|
35252
|
+
# `hibernate`.
|
35253
|
+
#
|
35254
|
+
# * If you set `InstanceInterruptionBehavior` to a value other than
|
35255
|
+
# `hibernate`, you'll get an error.
|
35256
|
+
#
|
35173
35257
|
# Default: `false`
|
35258
|
+
#
|
35259
|
+
#
|
35260
|
+
#
|
35261
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_SpotMarketOptions.html
|
35174
35262
|
# @return [Boolean]
|
35175
35263
|
#
|
35176
35264
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/HibernationOptionsRequest AWS API Documentation
|
@@ -57425,6 +57513,45 @@ module Aws::EC2
|
|
57425
57513
|
include Aws::Structure
|
57426
57514
|
end
|
57427
57515
|
|
57516
|
+
# A security group that can be used by interfaces in the VPC.
|
57517
|
+
#
|
57518
|
+
# @!attribute [rw] description
|
57519
|
+
# The security group's description.
|
57520
|
+
# @return [String]
|
57521
|
+
#
|
57522
|
+
# @!attribute [rw] group_name
|
57523
|
+
# The security group name.
|
57524
|
+
# @return [String]
|
57525
|
+
#
|
57526
|
+
# @!attribute [rw] owner_id
|
57527
|
+
# The security group owner ID.
|
57528
|
+
# @return [String]
|
57529
|
+
#
|
57530
|
+
# @!attribute [rw] group_id
|
57531
|
+
# The security group ID.
|
57532
|
+
# @return [String]
|
57533
|
+
#
|
57534
|
+
# @!attribute [rw] tags
|
57535
|
+
# The security group tags.
|
57536
|
+
# @return [Array<Types::Tag>]
|
57537
|
+
#
|
57538
|
+
# @!attribute [rw] primary_vpc_id
|
57539
|
+
# The VPC ID in which the security group was created.
|
57540
|
+
# @return [String]
|
57541
|
+
#
|
57542
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SecurityGroupForVpc AWS API Documentation
|
57543
|
+
#
|
57544
|
+
class SecurityGroupForVpc < Struct.new(
|
57545
|
+
:description,
|
57546
|
+
:group_name,
|
57547
|
+
:owner_id,
|
57548
|
+
:group_id,
|
57549
|
+
:tags,
|
57550
|
+
:primary_vpc_id)
|
57551
|
+
SENSITIVE = []
|
57552
|
+
include Aws::Structure
|
57553
|
+
end
|
57554
|
+
|
57428
57555
|
# Describes a security group.
|
57429
57556
|
#
|
57430
57557
|
# @!attribute [rw] group_id
|
@@ -59331,8 +59458,25 @@ module Aws::EC2
|
|
59331
59458
|
# @return [Time]
|
59332
59459
|
#
|
59333
59460
|
# @!attribute [rw] instance_interruption_behavior
|
59334
|
-
# The behavior when a Spot Instance is interrupted.
|
59335
|
-
#
|
59461
|
+
# The behavior when a Spot Instance is interrupted.
|
59462
|
+
#
|
59463
|
+
# If `Configured` (for [ `HibernationOptions` ][1]) is set to `true`,
|
59464
|
+
# the `InstanceInterruptionBehavior` parameter is automatically set to
|
59465
|
+
# `hibernate`. If you set it to `stop` or `terminate`, you'll get an
|
59466
|
+
# error.
|
59467
|
+
#
|
59468
|
+
# If `Configured` (for [ `HibernationOptions` ][1]) is set to `false`
|
59469
|
+
# or `null`, the `InstanceInterruptionBehavior` parameter is
|
59470
|
+
# automatically set to `terminate`. You can also set it to `stop` or
|
59471
|
+
# `hibernate`.
|
59472
|
+
#
|
59473
|
+
# For more information, see [Interruption behavior][2] in the *Amazon
|
59474
|
+
# EC2 User Guide*.
|
59475
|
+
#
|
59476
|
+
#
|
59477
|
+
#
|
59478
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_HibernationOptionsRequest.html
|
59479
|
+
# [2]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/interruption-behavior.html
|
59336
59480
|
# @return [String]
|
59337
59481
|
#
|
59338
59482
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/SpotMarketOptions AWS API Documentation
|
data/lib/aws-sdk-ec2.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.416.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Amazon Web Services
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-10-
|
11
|
+
date: 2023-10-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|