aws-sdk-ec2 1.144.0 → 1.149.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.
@@ -1270,6 +1270,9 @@ module Aws::EC2
1270
1270
  MemoryInfo = Shapes::StructureShape.new(name: 'MemoryInfo')
1271
1271
  MemorySize = Shapes::IntegerShape.new(name: 'MemorySize')
1272
1272
  MillisecondDateTime = Shapes::TimestampShape.new(name: 'MillisecondDateTime')
1273
+ ModifyAvailabilityZoneGroupRequest = Shapes::StructureShape.new(name: 'ModifyAvailabilityZoneGroupRequest')
1274
+ ModifyAvailabilityZoneGroupResult = Shapes::StructureShape.new(name: 'ModifyAvailabilityZoneGroupResult')
1275
+ ModifyAvailabilityZoneOptInStatus = Shapes::StringShape.new(name: 'ModifyAvailabilityZoneOptInStatus')
1273
1276
  ModifyCapacityReservationRequest = Shapes::StructureShape.new(name: 'ModifyCapacityReservationRequest')
1274
1277
  ModifyCapacityReservationResult = Shapes::StructureShape.new(name: 'ModifyCapacityReservationResult')
1275
1278
  ModifyClientVpnEndpointRequest = Shapes::StructureShape.new(name: 'ModifyClientVpnEndpointRequest')
@@ -2632,6 +2635,8 @@ module Aws::EC2
2632
2635
  ClientVpnEndpoint.add_member(:authentication_options, Shapes::ShapeRef.new(shape: ClientVpnAuthenticationList, location_name: "authenticationOptions"))
2633
2636
  ClientVpnEndpoint.add_member(:connection_log_options, Shapes::ShapeRef.new(shape: ConnectionLogResponseOptions, location_name: "connectionLogOptions"))
2634
2637
  ClientVpnEndpoint.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
2638
+ ClientVpnEndpoint.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: ClientVpnSecurityGroupIdSet, location_name: "securityGroupIdSet"))
2639
+ ClientVpnEndpoint.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "vpcId"))
2635
2640
  ClientVpnEndpoint.struct_class = Types::ClientVpnEndpoint
2636
2641
 
2637
2642
  ClientVpnEndpointIdList.member = Shapes::ShapeRef.new(shape: ClientVpnEndpointId, location_name: "item")
@@ -2796,6 +2801,8 @@ module Aws::EC2
2796
2801
  CreateClientVpnEndpointRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
2797
2802
  CreateClientVpnEndpointRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
2798
2803
  CreateClientVpnEndpointRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
2804
+ CreateClientVpnEndpointRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: ClientVpnSecurityGroupIdSet, location_name: "SecurityGroupId"))
2805
+ CreateClientVpnEndpointRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
2799
2806
  CreateClientVpnEndpointRequest.struct_class = Types::CreateClientVpnEndpointRequest
2800
2807
 
2801
2808
  CreateClientVpnEndpointResult.add_member(:client_vpn_endpoint_id, Shapes::ShapeRef.new(shape: String, location_name: "clientVpnEndpointId"))
@@ -2901,6 +2908,7 @@ module Aws::EC2
2901
2908
  CreateFlowLogsRequest.add_member(:log_destination_type, Shapes::ShapeRef.new(shape: LogDestinationType, location_name: "LogDestinationType"))
2902
2909
  CreateFlowLogsRequest.add_member(:log_destination, Shapes::ShapeRef.new(shape: String, location_name: "LogDestination"))
2903
2910
  CreateFlowLogsRequest.add_member(:log_format, Shapes::ShapeRef.new(shape: String, location_name: "LogFormat"))
2911
+ CreateFlowLogsRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
2904
2912
  CreateFlowLogsRequest.add_member(:max_aggregation_interval, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxAggregationInterval"))
2905
2913
  CreateFlowLogsRequest.struct_class = Types::CreateFlowLogsRequest
2906
2914
 
@@ -2993,8 +3001,10 @@ module Aws::EC2
2993
3001
  CreateLocalGatewayRouteTableVpcAssociationResult.struct_class = Types::CreateLocalGatewayRouteTableVpcAssociationResult
2994
3002
 
2995
3003
  CreateNatGatewayRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, required: true, location_name: "AllocationId"))
2996
- CreateNatGatewayRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken"))
3004
+ CreateNatGatewayRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
3005
+ CreateNatGatewayRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
2997
3006
  CreateNatGatewayRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "SubnetId"))
3007
+ CreateNatGatewayRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
2998
3008
  CreateNatGatewayRequest.struct_class = Types::CreateNatGatewayRequest
2999
3009
 
3000
3010
  CreateNatGatewayResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
@@ -3508,6 +3518,7 @@ module Aws::EC2
3508
3518
  DeleteLocalGatewayRouteTableVpcAssociationResult.add_member(:local_gateway_route_table_vpc_association, Shapes::ShapeRef.new(shape: LocalGatewayRouteTableVpcAssociation, location_name: "localGatewayRouteTableVpcAssociation"))
3509
3519
  DeleteLocalGatewayRouteTableVpcAssociationResult.struct_class = Types::DeleteLocalGatewayRouteTableVpcAssociationResult
3510
3520
 
3521
+ DeleteNatGatewayRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
3511
3522
  DeleteNatGatewayRequest.add_member(:nat_gateway_id, Shapes::ShapeRef.new(shape: NatGatewayId, required: true, location_name: "NatGatewayId"))
3512
3523
  DeleteNatGatewayRequest.struct_class = Types::DeleteNatGatewayRequest
3513
3524
 
@@ -4340,6 +4351,7 @@ module Aws::EC2
4340
4351
  DescribeMovingAddressesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
4341
4352
  DescribeMovingAddressesResult.struct_class = Types::DescribeMovingAddressesResult
4342
4353
 
4354
+ DescribeNatGatewaysRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
4343
4355
  DescribeNatGatewaysRequest.add_member(:filter, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
4344
4356
  DescribeNatGatewaysRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeNatGatewaysMaxResults, location_name: "MaxResults"))
4345
4357
  DescribeNatGatewaysRequest.add_member(:nat_gateway_ids, Shapes::ShapeRef.new(shape: NatGatewayIdStringList, location_name: "NatGatewayId"))
@@ -5502,7 +5514,7 @@ module Aws::EC2
5502
5514
 
5503
5515
  FleetSet.member = Shapes::ShapeRef.new(shape: FleetData, location_name: "item")
5504
5516
 
5505
- FlowLog.add_member(:creation_time, Shapes::ShapeRef.new(shape: DateTime, location_name: "creationTime"))
5517
+ FlowLog.add_member(:creation_time, Shapes::ShapeRef.new(shape: MillisecondDateTime, location_name: "creationTime"))
5506
5518
  FlowLog.add_member(:deliver_logs_error_message, Shapes::ShapeRef.new(shape: String, location_name: "deliverLogsErrorMessage"))
5507
5519
  FlowLog.add_member(:deliver_logs_permission_arn, Shapes::ShapeRef.new(shape: String, location_name: "deliverLogsPermissionArn"))
5508
5520
  FlowLog.add_member(:deliver_logs_status, Shapes::ShapeRef.new(shape: String, location_name: "deliverLogsStatus"))
@@ -5514,6 +5526,7 @@ module Aws::EC2
5514
5526
  FlowLog.add_member(:log_destination_type, Shapes::ShapeRef.new(shape: LogDestinationType, location_name: "logDestinationType"))
5515
5527
  FlowLog.add_member(:log_destination, Shapes::ShapeRef.new(shape: String, location_name: "logDestination"))
5516
5528
  FlowLog.add_member(:log_format, Shapes::ShapeRef.new(shape: String, location_name: "logFormat"))
5529
+ FlowLog.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
5517
5530
  FlowLog.add_member(:max_aggregation_interval, Shapes::ShapeRef.new(shape: Integer, location_name: "maxAggregationInterval"))
5518
5531
  FlowLog.struct_class = Types::FlowLog
5519
5532
 
@@ -6876,6 +6889,14 @@ module Aws::EC2
6876
6889
  MemoryInfo.add_member(:size_in_mi_b, Shapes::ShapeRef.new(shape: MemorySize, location_name: "sizeInMiB"))
6877
6890
  MemoryInfo.struct_class = Types::MemoryInfo
6878
6891
 
6892
+ ModifyAvailabilityZoneGroupRequest.add_member(:group_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "GroupName"))
6893
+ ModifyAvailabilityZoneGroupRequest.add_member(:opt_in_status, Shapes::ShapeRef.new(shape: ModifyAvailabilityZoneOptInStatus, required: true, location_name: "OptInStatus"))
6894
+ ModifyAvailabilityZoneGroupRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
6895
+ ModifyAvailabilityZoneGroupRequest.struct_class = Types::ModifyAvailabilityZoneGroupRequest
6896
+
6897
+ ModifyAvailabilityZoneGroupResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
6898
+ ModifyAvailabilityZoneGroupResult.struct_class = Types::ModifyAvailabilityZoneGroupResult
6899
+
6879
6900
  ModifyCapacityReservationRequest.add_member(:capacity_reservation_id, Shapes::ShapeRef.new(shape: CapacityReservationId, required: true, location_name: "CapacityReservationId"))
6880
6901
  ModifyCapacityReservationRequest.add_member(:instance_count, Shapes::ShapeRef.new(shape: Integer, location_name: "InstanceCount"))
6881
6902
  ModifyCapacityReservationRequest.add_member(:end_date, Shapes::ShapeRef.new(shape: DateTime, location_name: "EndDate"))
@@ -6894,6 +6915,8 @@ module Aws::EC2
6894
6915
  ModifyClientVpnEndpointRequest.add_member(:description, Shapes::ShapeRef.new(shape: String, location_name: "Description"))
6895
6916
  ModifyClientVpnEndpointRequest.add_member(:split_tunnel, Shapes::ShapeRef.new(shape: Boolean, location_name: "SplitTunnel"))
6896
6917
  ModifyClientVpnEndpointRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
6918
+ ModifyClientVpnEndpointRequest.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: ClientVpnSecurityGroupIdSet, location_name: "SecurityGroupId"))
6919
+ ModifyClientVpnEndpointRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, location_name: "VpcId"))
6897
6920
  ModifyClientVpnEndpointRequest.struct_class = Types::ModifyClientVpnEndpointRequest
6898
6921
 
6899
6922
  ModifyClientVpnEndpointResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
@@ -11029,6 +11052,12 @@ module Aws::EC2
11029
11052
  o.http_request_uri = "/"
11030
11053
  o.input = Shapes::ShapeRef.new(shape: DescribeCoipPoolsRequest)
11031
11054
  o.output = Shapes::ShapeRef.new(shape: DescribeCoipPoolsResult)
11055
+ o[:pager] = Aws::Pager.new(
11056
+ limit_key: "max_results",
11057
+ tokens: {
11058
+ "next_token" => "next_token"
11059
+ }
11060
+ )
11032
11061
  end)
11033
11062
 
11034
11063
  api.add_operation(:describe_conversion_tasks, Seahorse::Model::Operation.new.tap do |o|
@@ -11343,6 +11372,12 @@ module Aws::EC2
11343
11372
  o.http_request_uri = "/"
11344
11373
  o.input = Shapes::ShapeRef.new(shape: DescribeInstanceTypeOfferingsRequest)
11345
11374
  o.output = Shapes::ShapeRef.new(shape: DescribeInstanceTypeOfferingsResult)
11375
+ o[:pager] = Aws::Pager.new(
11376
+ limit_key: "max_results",
11377
+ tokens: {
11378
+ "next_token" => "next_token"
11379
+ }
11380
+ )
11346
11381
  end)
11347
11382
 
11348
11383
  api.add_operation(:describe_instance_types, Seahorse::Model::Operation.new.tap do |o|
@@ -11351,6 +11386,12 @@ module Aws::EC2
11351
11386
  o.http_request_uri = "/"
11352
11387
  o.input = Shapes::ShapeRef.new(shape: DescribeInstanceTypesRequest)
11353
11388
  o.output = Shapes::ShapeRef.new(shape: DescribeInstanceTypesResult)
11389
+ o[:pager] = Aws::Pager.new(
11390
+ limit_key: "max_results",
11391
+ tokens: {
11392
+ "next_token" => "next_token"
11393
+ }
11394
+ )
11354
11395
  end)
11355
11396
 
11356
11397
  api.add_operation(:describe_instances, Seahorse::Model::Operation.new.tap do |o|
@@ -11437,6 +11478,12 @@ module Aws::EC2
11437
11478
  o.http_request_uri = "/"
11438
11479
  o.input = Shapes::ShapeRef.new(shape: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest)
11439
11480
  o.output = Shapes::ShapeRef.new(shape: DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult)
11481
+ o[:pager] = Aws::Pager.new(
11482
+ limit_key: "max_results",
11483
+ tokens: {
11484
+ "next_token" => "next_token"
11485
+ }
11486
+ )
11440
11487
  end)
11441
11488
 
11442
11489
  api.add_operation(:describe_local_gateway_route_table_vpc_associations, Seahorse::Model::Operation.new.tap do |o|
@@ -11445,6 +11492,12 @@ module Aws::EC2
11445
11492
  o.http_request_uri = "/"
11446
11493
  o.input = Shapes::ShapeRef.new(shape: DescribeLocalGatewayRouteTableVpcAssociationsRequest)
11447
11494
  o.output = Shapes::ShapeRef.new(shape: DescribeLocalGatewayRouteTableVpcAssociationsResult)
11495
+ o[:pager] = Aws::Pager.new(
11496
+ limit_key: "max_results",
11497
+ tokens: {
11498
+ "next_token" => "next_token"
11499
+ }
11500
+ )
11448
11501
  end)
11449
11502
 
11450
11503
  api.add_operation(:describe_local_gateway_route_tables, Seahorse::Model::Operation.new.tap do |o|
@@ -11453,6 +11506,12 @@ module Aws::EC2
11453
11506
  o.http_request_uri = "/"
11454
11507
  o.input = Shapes::ShapeRef.new(shape: DescribeLocalGatewayRouteTablesRequest)
11455
11508
  o.output = Shapes::ShapeRef.new(shape: DescribeLocalGatewayRouteTablesResult)
11509
+ o[:pager] = Aws::Pager.new(
11510
+ limit_key: "max_results",
11511
+ tokens: {
11512
+ "next_token" => "next_token"
11513
+ }
11514
+ )
11456
11515
  end)
11457
11516
 
11458
11517
  api.add_operation(:describe_local_gateway_virtual_interface_groups, Seahorse::Model::Operation.new.tap do |o|
@@ -11461,6 +11520,12 @@ module Aws::EC2
11461
11520
  o.http_request_uri = "/"
11462
11521
  o.input = Shapes::ShapeRef.new(shape: DescribeLocalGatewayVirtualInterfaceGroupsRequest)
11463
11522
  o.output = Shapes::ShapeRef.new(shape: DescribeLocalGatewayVirtualInterfaceGroupsResult)
11523
+ o[:pager] = Aws::Pager.new(
11524
+ limit_key: "max_results",
11525
+ tokens: {
11526
+ "next_token" => "next_token"
11527
+ }
11528
+ )
11464
11529
  end)
11465
11530
 
11466
11531
  api.add_operation(:describe_local_gateway_virtual_interfaces, Seahorse::Model::Operation.new.tap do |o|
@@ -11469,6 +11534,12 @@ module Aws::EC2
11469
11534
  o.http_request_uri = "/"
11470
11535
  o.input = Shapes::ShapeRef.new(shape: DescribeLocalGatewayVirtualInterfacesRequest)
11471
11536
  o.output = Shapes::ShapeRef.new(shape: DescribeLocalGatewayVirtualInterfacesResult)
11537
+ o[:pager] = Aws::Pager.new(
11538
+ limit_key: "max_results",
11539
+ tokens: {
11540
+ "next_token" => "next_token"
11541
+ }
11542
+ )
11472
11543
  end)
11473
11544
 
11474
11545
  api.add_operation(:describe_local_gateways, Seahorse::Model::Operation.new.tap do |o|
@@ -11477,6 +11548,12 @@ module Aws::EC2
11477
11548
  o.http_request_uri = "/"
11478
11549
  o.input = Shapes::ShapeRef.new(shape: DescribeLocalGatewaysRequest)
11479
11550
  o.output = Shapes::ShapeRef.new(shape: DescribeLocalGatewaysResult)
11551
+ o[:pager] = Aws::Pager.new(
11552
+ limit_key: "max_results",
11553
+ tokens: {
11554
+ "next_token" => "next_token"
11555
+ }
11556
+ )
11480
11557
  end)
11481
11558
 
11482
11559
  api.add_operation(:describe_moving_addresses, Seahorse::Model::Operation.new.tap do |o|
@@ -11914,6 +11991,12 @@ module Aws::EC2
11914
11991
  o.http_request_uri = "/"
11915
11992
  o.input = Shapes::ShapeRef.new(shape: DescribeTransitGatewayMulticastDomainsRequest)
11916
11993
  o.output = Shapes::ShapeRef.new(shape: DescribeTransitGatewayMulticastDomainsResult)
11994
+ o[:pager] = Aws::Pager.new(
11995
+ limit_key: "max_results",
11996
+ tokens: {
11997
+ "next_token" => "next_token"
11998
+ }
11999
+ )
11917
12000
  end)
11918
12001
 
11919
12002
  api.add_operation(:describe_transit_gateway_peering_attachments, Seahorse::Model::Operation.new.tap do |o|
@@ -11922,6 +12005,12 @@ module Aws::EC2
11922
12005
  o.http_request_uri = "/"
11923
12006
  o.input = Shapes::ShapeRef.new(shape: DescribeTransitGatewayPeeringAttachmentsRequest)
11924
12007
  o.output = Shapes::ShapeRef.new(shape: DescribeTransitGatewayPeeringAttachmentsResult)
12008
+ o[:pager] = Aws::Pager.new(
12009
+ limit_key: "max_results",
12010
+ tokens: {
12011
+ "next_token" => "next_token"
12012
+ }
12013
+ )
11925
12014
  end)
11926
12015
 
11927
12016
  api.add_operation(:describe_transit_gateway_route_tables, Seahorse::Model::Operation.new.tap do |o|
@@ -12530,6 +12619,12 @@ module Aws::EC2
12530
12619
  o.http_request_uri = "/"
12531
12620
  o.input = Shapes::ShapeRef.new(shape: GetTransitGatewayMulticastDomainAssociationsRequest)
12532
12621
  o.output = Shapes::ShapeRef.new(shape: GetTransitGatewayMulticastDomainAssociationsResult)
12622
+ o[:pager] = Aws::Pager.new(
12623
+ limit_key: "max_results",
12624
+ tokens: {
12625
+ "next_token" => "next_token"
12626
+ }
12627
+ )
12533
12628
  end)
12534
12629
 
12535
12630
  api.add_operation(:get_transit_gateway_route_table_associations, Seahorse::Model::Operation.new.tap do |o|
@@ -12608,6 +12703,14 @@ module Aws::EC2
12608
12703
  o.output = Shapes::ShapeRef.new(shape: ImportVolumeResult)
12609
12704
  end)
12610
12705
 
12706
+ api.add_operation(:modify_availability_zone_group, Seahorse::Model::Operation.new.tap do |o|
12707
+ o.name = "ModifyAvailabilityZoneGroup"
12708
+ o.http_method = "POST"
12709
+ o.http_request_uri = "/"
12710
+ o.input = Shapes::ShapeRef.new(shape: ModifyAvailabilityZoneGroupRequest)
12711
+ o.output = Shapes::ShapeRef.new(shape: ModifyAvailabilityZoneGroupResult)
12712
+ end)
12713
+
12611
12714
  api.add_operation(:modify_capacity_reservation, Seahorse::Model::Operation.new.tap do |o|
12612
12715
  o.name = "ModifyCapacityReservation"
12613
12716
  o.http_method = "POST"
@@ -13214,6 +13317,12 @@ module Aws::EC2
13214
13317
  o.http_request_uri = "/"
13215
13318
  o.input = Shapes::ShapeRef.new(shape: SearchLocalGatewayRoutesRequest)
13216
13319
  o.output = Shapes::ShapeRef.new(shape: SearchLocalGatewayRoutesResult)
13320
+ o[:pager] = Aws::Pager.new(
13321
+ limit_key: "max_results",
13322
+ tokens: {
13323
+ "next_token" => "next_token"
13324
+ }
13325
+ )
13217
13326
  end)
13218
13327
 
13219
13328
  api.add_operation(:search_transit_gateway_multicast_groups, Seahorse::Model::Operation.new.tap do |o|
@@ -13222,6 +13331,12 @@ module Aws::EC2
13222
13331
  o.http_request_uri = "/"
13223
13332
  o.input = Shapes::ShapeRef.new(shape: SearchTransitGatewayMulticastGroupsRequest)
13224
13333
  o.output = Shapes::ShapeRef.new(shape: SearchTransitGatewayMulticastGroupsResult)
13334
+ o[:pager] = Aws::Pager.new(
13335
+ limit_key: "max_results",
13336
+ tokens: {
13337
+ "next_token" => "next_token"
13338
+ }
13339
+ )
13225
13340
  end)
13226
13341
 
13227
13342
  api.add_operation(:search_transit_gateway_routes, Seahorse::Model::Operation.new.tap do |o|
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class DhcpOptions
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,28 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
10
+ # When EC2 returns an error response, the Ruby SDK constructs and raises an error.
11
+ # These errors all extend Aws::EC2::Errors::ServiceError < {Aws::Errors::ServiceError}
12
+ #
13
+ # You can rescue all EC2 errors using ServiceError:
14
+ #
15
+ # begin
16
+ # # do stuff
17
+ # rescue Aws::EC2::Errors::ServiceError
18
+ # # rescues all EC2 API errors
19
+ # end
20
+ #
21
+ #
22
+ # ## Request Context
23
+ # ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
24
+ # information about the request that generated the error.
25
+ # See {Seahorse::Client::RequestContext} for more information.
26
+ #
27
+ # ## Error Classes
28
+ #
29
+ # Additionally, error classes are dynamically generated for service errors based on the error code
30
+ # if they are not defined above.
9
31
  module Errors
10
32
 
11
33
  extend Aws::Errors::DynamicErrors
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class Image
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class Instance
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class InternetGateway
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class KeyPair
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class KeyPairInfo
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class NatGateway
10
11
 
11
12
  extend Aws::Deprecations
@@ -353,8 +354,15 @@ module Aws::EC2
353
354
 
354
355
  # @example Request syntax with placeholder values
355
356
  #
356
- # nat_gateway.delete()
357
+ # nat_gateway.delete({
358
+ # dry_run: false,
359
+ # })
357
360
  # @param [Hash] options ({})
361
+ # @option options [Boolean] :dry_run
362
+ # Checks whether you have the required permissions for the action,
363
+ # without actually making the request, and provides an error response.
364
+ # If you have the required permissions, the error response is
365
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
358
366
  # @return [Types::DeleteNatGatewayResult]
359
367
  def delete(options = {})
360
368
  options = options.merge(nat_gateway_id: @id)
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class NetworkAcl
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class NetworkInterface
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class NetworkInterfaceAssociation
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,7 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+
9
10
  class PlacementGroup
10
11
 
11
12
  extend Aws::Deprecations
@@ -6,6 +6,13 @@
6
6
  # WARNING ABOUT GENERATED CODE
7
7
 
8
8
  module Aws::EC2
9
+ # This class provides a resource oriented interface for EC2.
10
+ # To create a resource object:
11
+ # resource = Aws::EC2::Resource.new(region: 'us-west-2')
12
+ # You can supply a client object with custom configuration that will be used for all resource operations.
13
+ # If you do not pass +:client+, a default client will be constructed.
14
+ # client = Aws::EC2::Client.new(region: 'us-west-2')
15
+ # resource = Aws::EC2::Resource.new(client: client)
9
16
  class Resource
10
17
 
11
18
  # @param options ({})
@@ -149,7 +156,7 @@ module Aws::EC2
149
156
  # ],
150
157
  # tag_specifications: [
151
158
  # {
152
- # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
159
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
153
160
  # tags: [
154
161
  # {
155
162
  # key: "String",
@@ -543,7 +550,19 @@ module Aws::EC2
543
550
  # natgateway = ec2.create_nat_gateway({
544
551
  # allocation_id: "AllocationId", # required
545
552
  # client_token: "String",
553
+ # dry_run: false,
546
554
  # subnet_id: "SubnetId", # required
555
+ # tag_specifications: [
556
+ # {
557
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
558
+ # tags: [
559
+ # {
560
+ # key: "String",
561
+ # value: "String",
562
+ # },
563
+ # ],
564
+ # },
565
+ # ],
547
566
  # })
548
567
  # @param [Hash] options ({})
549
568
  # @option options [required, String] :allocation_id
@@ -560,8 +579,15 @@ module Aws::EC2
560
579
  #
561
580
  #
562
581
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
582
+ # @option options [Boolean] :dry_run
583
+ # Checks whether you have the required permissions for the action,
584
+ # without actually making the request, and provides an error response.
585
+ # If you have the required permissions, the error response is
586
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
563
587
  # @option options [required, String] :subnet_id
564
588
  # The subnet in which to create the NAT gateway.
589
+ # @option options [Array<Types::TagSpecification>] :tag_specifications
590
+ # The tags to assign to the NAT gateway.
565
591
  # @return [NatGateway]
566
592
  def create_nat_gateway(options = {})
567
593
  resp = @client.create_nat_gateway(options)
@@ -789,7 +815,7 @@ module Aws::EC2
789
815
  # volume_id: "VolumeId", # required
790
816
  # tag_specifications: [
791
817
  # {
792
- # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
818
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
793
819
  # tags: [
794
820
  # {
795
821
  # key: "String",
@@ -962,7 +988,7 @@ module Aws::EC2
962
988
  # dry_run: false,
963
989
  # tag_specifications: [
964
990
  # {
965
- # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway
991
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, fleet, fpga-image, host-reservation, image, instance, internet-gateway, key-pair, launch-template, natgateway, network-acl, network-interface, placement-group, reserved-instances, route-table, security-group, snapshot, spot-fleet-request, spot-instances-request, subnet, traffic-mirror-filter, traffic-mirror-session, traffic-mirror-target, transit-gateway, transit-gateway-attachment, transit-gateway-multicast-domain, transit-gateway-route-table, volume, vpc, vpc-peering-connection, vpn-connection, vpn-gateway, vpc-flow-log
966
992
  # tags: [
967
993
  # {
968
994
  # key: "String",
@@ -2096,6 +2122,7 @@ module Aws::EC2
2096
2122
  # @example Request syntax with placeholder values
2097
2123
  #
2098
2124
  # nat_gateways = ec2.nat_gateways({
2125
+ # dry_run: false,
2099
2126
  # filter: [
2100
2127
  # {
2101
2128
  # name: "String",
@@ -2105,6 +2132,11 @@ module Aws::EC2
2105
2132
  # nat_gateway_ids: ["NatGatewayId"],
2106
2133
  # })
2107
2134
  # @param [Hash] options ({})
2135
+ # @option options [Boolean] :dry_run
2136
+ # Checks whether you have the required permissions for the action,
2137
+ # without actually making the request, and provides an error response.
2138
+ # If you have the required permissions, the error response is
2139
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
2108
2140
  # @option options [Array<Types::Filter>] :filter
2109
2141
  # One or more filters.
2110
2142
  #