aws-sdk-ec2 1.71.0 → 1.72.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5470156d009ab02566195d8b85ceb815f209f486
4
- data.tar.gz: cbad7ead9a1becbdb4c59a0707633871e5278a71
3
+ metadata.gz: f77403c9cd1ebb7c28407dbf854d56461c63ed9d
4
+ data.tar.gz: 58a38375f565e630c1c0d60c00b388e3992a10ed
5
5
  SHA512:
6
- metadata.gz: 9a15e36c820cdb8134c395c2ed9a29ab0058124dfe8df5e4d2dbcb2950c6a4ee1ca43f71ab19ab0c36e6b6925bc5adbcb952e78ef295389dca2c05ca38229456
7
- data.tar.gz: 401ebe7b2f1044abeda30e363f6cb4ec1bbca69165a1c04be3ffc1d060be78467386501cf7f0d3ebcef9ba4f9bb2b6b2ec482db16b708ccd8fa3f1be9f535c50
6
+ metadata.gz: 0d9a5442d330ce96569172461976903fb1f642364d5e00e4a2cd42b94399a6cf8dfc4e161c64086bed31f7eb32887533bb9da22a2e8ee276cf00a4f0e127d599
7
+ data.tar.gz: 2857b2bcf559967e52c02ff3ff51674348acfc041ba5223852a55f30bd833c2617404e006b85da55fa5587b7c74df9dc6be897c9ced16faadb4b4e3d2fc8e0a0
@@ -65,6 +65,6 @@ require_relative 'aws-sdk-ec2/customizations'
65
65
  # @service
66
66
  module Aws::EC2
67
67
 
68
- GEM_VERSION = '1.71.0'
68
+ GEM_VERSION = '1.72.0'
69
69
 
70
70
  end
@@ -10543,18 +10543,15 @@ module Aws::EC2
10543
10543
  # ClassicLink.
10544
10544
  #
10545
10545
  # @option params [Integer] :max_results
10546
- # The maximum number of results to return for the request in a single
10547
- # page. The remaining results of the initial request can be seen by
10548
- # sending another request with the returned `NextToken` value. This
10549
- # value can be between 5 and 1000. If `MaxResults` is given a value
10550
- # larger than 1000, only 1000 results are returned. You cannot specify
10551
- # this parameter and the instance IDs parameter in the same request.
10546
+ # The maximum number of results to return with a single call. To
10547
+ # retrieve the remaining results, make another call with the returned
10548
+ # `nextToken` value.
10552
10549
  #
10553
10550
  # Constraint: If the value is greater than 1000, we return only 1000
10554
10551
  # items.
10555
10552
  #
10556
10553
  # @option params [String] :next_token
10557
- # The token to retrieve the next page of results.
10554
+ # The token for the next page of results.
10558
10555
  #
10559
10556
  # @return [Types::DescribeClassicLinkInstancesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
10560
10557
  #
@@ -11259,14 +11256,12 @@ module Aws::EC2
11259
11256
  # One or more egress-only internet gateway IDs.
11260
11257
  #
11261
11258
  # @option params [Integer] :max_results
11262
- # The maximum number of results to return for the request in a single
11263
- # page. The remaining results can be seen by sending another request
11264
- # with the returned `NextToken` value. This value can be between 5 and
11265
- # 1000. If `MaxResults` is given a value larger than 1000, only 1000
11266
- # results are returned.
11259
+ # The maximum number of results to return with a single call. To
11260
+ # retrieve the remaining results, make another call with the returned
11261
+ # `nextToken` value.
11267
11262
  #
11268
11263
  # @option params [String] :next_token
11269
- # The token to retrieve the next page of results.
11264
+ # The token for the next page of results.
11270
11265
  #
11271
11266
  # @return [Types::DescribeEgressOnlyInternetGatewaysResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
11272
11267
  #
@@ -11737,15 +11732,12 @@ module Aws::EC2
11737
11732
  # One or more flow log IDs.
11738
11733
  #
11739
11734
  # @option params [Integer] :max_results
11740
- # The maximum number of results to return for the request in a single
11741
- # page. The remaining results can be seen by sending another request
11742
- # with the returned `NextToken` value. This value can be between 5 and
11743
- # 1000. If `MaxResults` is given a value larger than 1000, only 1000
11744
- # results are returned. You cannot specify this parameter and the flow
11745
- # log IDs parameter in the same request.
11735
+ # The maximum number of results to return with a single call. To
11736
+ # retrieve the remaining results, make another call with the returned
11737
+ # `nextToken` value.
11746
11738
  #
11747
11739
  # @option params [String] :next_token
11748
- # The token to retrieve the next page of results.
11740
+ # The token for the next page of results.
11749
11741
  #
11750
11742
  # @return [Types::DescribeFlowLogsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
11751
11743
  #
@@ -13928,9 +13920,18 @@ module Aws::EC2
13928
13920
  #
13929
13921
  # Default: Describes all your internet gateways.
13930
13922
  #
13923
+ # @option params [String] :next_token
13924
+ # The token for the next page of results.
13925
+ #
13926
+ # @option params [Integer] :max_results
13927
+ # The maximum number of results to return with a single call. To
13928
+ # retrieve the remaining results, make another call with the returned
13929
+ # `nextToken` value.
13930
+ #
13931
13931
  # @return [Types::DescribeInternetGatewaysResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
13932
13932
  #
13933
13933
  # * {Types::DescribeInternetGatewaysResult#internet_gateways #internet_gateways} => Array<Types::InternetGateway>
13934
+ # * {Types::DescribeInternetGatewaysResult#next_token #next_token} => String
13934
13935
  #
13935
13936
  #
13936
13937
  # @example Example: To describe the Internet gateway for a VPC
@@ -13976,6 +13977,8 @@ module Aws::EC2
13976
13977
  # ],
13977
13978
  # dry_run: false,
13978
13979
  # internet_gateway_ids: ["String"],
13980
+ # next_token: "String",
13981
+ # max_results: 1,
13979
13982
  # })
13980
13983
  #
13981
13984
  # @example Response structure
@@ -13989,6 +13992,7 @@ module Aws::EC2
13989
13992
  # resp.internet_gateways[0].tags #=> Array
13990
13993
  # resp.internet_gateways[0].tags[0].key #=> String
13991
13994
  # resp.internet_gateways[0].tags[0].value #=> String
13995
+ # resp.next_token #=> String
13992
13996
  #
13993
13997
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGateways AWS API Documentation
13994
13998
  #
@@ -14535,18 +14539,15 @@ module Aws::EC2
14535
14539
  # * `vpc-id` - The ID of the VPC in which the NAT gateway resides.
14536
14540
  #
14537
14541
  # @option params [Integer] :max_results
14538
- # The maximum number of items to return for this request. The request
14539
- # returns a token that you can specify in a subsequent call to get the
14540
- # next set of results.
14541
- #
14542
- # Constraint: If the value specified is greater than 1000, we return
14543
- # only 1000 items.
14542
+ # The maximum number of results to return with a single call. To
14543
+ # retrieve the remaining results, make another call with the returned
14544
+ # `nextToken` value.
14544
14545
  #
14545
14546
  # @option params [Array<String>] :nat_gateway_ids
14546
14547
  # One or more NAT gateway IDs.
14547
14548
  #
14548
14549
  # @option params [String] :next_token
14549
- # The token to retrieve the next page of results.
14550
+ # The token for the next page of results.
14550
14551
  #
14551
14552
  # @return [Types::DescribeNatGatewaysResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
14552
14553
  #
@@ -14713,9 +14714,18 @@ module Aws::EC2
14713
14714
  #
14714
14715
  # Default: Describes all your network ACLs.
14715
14716
  #
14717
+ # @option params [String] :next_token
14718
+ # The token for the next page of results.
14719
+ #
14720
+ # @option params [Integer] :max_results
14721
+ # The maximum number of results to return with a single call. To
14722
+ # retrieve the remaining results, make another call with the returned
14723
+ # `nextToken` value.
14724
+ #
14716
14725
  # @return [Types::DescribeNetworkAclsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
14717
14726
  #
14718
14727
  # * {Types::DescribeNetworkAclsResult#network_acls #network_acls} => Array&lt;Types::NetworkAcl&gt;
14728
+ # * {Types::DescribeNetworkAclsResult#next_token #next_token} => String
14719
14729
  #
14720
14730
  #
14721
14731
  # @example Example: To describe a network ACL
@@ -14775,6 +14785,8 @@ module Aws::EC2
14775
14785
  # ],
14776
14786
  # dry_run: false,
14777
14787
  # network_acl_ids: ["String"],
14788
+ # next_token: "String",
14789
+ # max_results: 1,
14778
14790
  # })
14779
14791
  #
14780
14792
  # @example Response structure
@@ -14802,6 +14814,7 @@ module Aws::EC2
14802
14814
  # resp.network_acls[0].tags[0].value #=> String
14803
14815
  # resp.network_acls[0].vpc_id #=> String
14804
14816
  # resp.network_acls[0].owner_id #=> String
14817
+ # resp.next_token #=> String
14805
14818
  #
14806
14819
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAcls AWS API Documentation
14807
14820
  #
@@ -15379,16 +15392,12 @@ module Aws::EC2
15379
15392
  # * `prefix-list-name`\: The name of a prefix list.
15380
15393
  #
15381
15394
  # @option params [Integer] :max_results
15382
- # The maximum number of items to return for this request. The request
15383
- # returns a token that you can specify in a subsequent call to get the
15384
- # next set of results.
15385
- #
15386
- # Constraint: If the value specified is greater than 1000, we return
15387
- # only 1000 items.
15395
+ # The maximum number of results to return with a single call. To
15396
+ # retrieve the remaining results, make another call with the returned
15397
+ # `nextToken` value.
15388
15398
  #
15389
15399
  # @option params [String] :next_token
15390
- # The token for the next set of items to return. (You received this
15391
- # token from a prior call.)
15400
+ # The token for the next page of results.
15392
15401
  #
15393
15402
  # @option params [Array<String>] :prefix_list_ids
15394
15403
  # One or more prefix list IDs.
@@ -16309,12 +16318,12 @@ module Aws::EC2
16309
16318
  # Default: Describes all your route tables.
16310
16319
  #
16311
16320
  # @option params [String] :next_token
16312
- # The token to retrieve the next page of results.
16321
+ # The token for the next page of results.
16313
16322
  #
16314
16323
  # @option params [Integer] :max_results
16315
- # The maximum number of results to return in a single call. To retrieve
16316
- # the remaining results, make another call with the returned
16317
- # **NextToken** value. This value can be between 5 and 100.
16324
+ # The maximum number of results to return with a single call. To
16325
+ # retrieve the remaining results, make another call with the returned
16326
+ # `nextToken` value.
16318
16327
  #
16319
16328
  # @return [Types::DescribeRouteTablesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
16320
16329
  #
@@ -19751,13 +19760,12 @@ module Aws::EC2
19751
19760
  # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html
19752
19761
  #
19753
19762
  # @option params [Integer] :max_results
19754
- # The maximum number of items to return for this request. The request
19755
- # returns a token that you can specify in a subsequent call to get the
19756
- # next set of results.
19763
+ # The maximum number of results to return with a single call. To
19764
+ # retrieve the remaining results, make another call with the returned
19765
+ # `nextToken` value.
19757
19766
  #
19758
19767
  # @option params [String] :next_token
19759
- # The token for the next set of items to return. (You received this
19760
- # token from a prior call.)
19768
+ # The token for the next page of results.
19761
19769
  #
19762
19770
  # @option params [Array<String>] :vpc_ids
19763
19771
  # One or more VPC IDs.
@@ -20308,13 +20316,12 @@ module Aws::EC2
20308
20316
  # Default: Describes all your VPC peering connections.
20309
20317
  #
20310
20318
  # @option params [String] :next_token
20311
- # The token to request the next page of results. (You received this
20312
- # token from a prior call.)
20319
+ # The token for the next page of results.
20313
20320
  #
20314
20321
  # @option params [Integer] :max_results
20315
- # The maximum number of results to return for this request. The request
20316
- # returns a token that you can specify in a subsequent call to get the
20317
- # next set of results.
20322
+ # The maximum number of results to return with a single call. To
20323
+ # retrieve the remaining results, make another call with the returned
20324
+ # `nextToken` value.
20318
20325
  #
20319
20326
  # @return [Types::DescribeVpcPeeringConnectionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
20320
20327
  #
@@ -20438,9 +20445,18 @@ module Aws::EC2
20438
20445
  # If you have the required permissions, the error response is
20439
20446
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
20440
20447
  #
20448
+ # @option params [String] :next_token
20449
+ # The token for the next page of results.
20450
+ #
20451
+ # @option params [Integer] :max_results
20452
+ # The maximum number of results to return with a single call. To
20453
+ # retrieve the remaining results, make another call with the returned
20454
+ # `nextToken` value.
20455
+ #
20441
20456
  # @return [Types::DescribeVpcsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
20442
20457
  #
20443
20458
  # * {Types::DescribeVpcsResult#vpcs #vpcs} => Array&lt;Types::Vpc&gt;
20459
+ # * {Types::DescribeVpcsResult#next_token #next_token} => String
20444
20460
  #
20445
20461
  #
20446
20462
  # @example Example: To describe a VPC
@@ -20484,6 +20500,8 @@ module Aws::EC2
20484
20500
  # ],
20485
20501
  # vpc_ids: ["String"],
20486
20502
  # dry_run: false,
20503
+ # next_token: "String",
20504
+ # max_results: 1,
20487
20505
  # })
20488
20506
  #
20489
20507
  # @example Response structure
@@ -20509,6 +20527,7 @@ module Aws::EC2
20509
20527
  # resp.vpcs[0].tags #=> Array
20510
20528
  # resp.vpcs[0].tags[0].key #=> String
20511
20529
  # resp.vpcs[0].tags[0].value #=> String
20530
+ # resp.next_token #=> String
20512
20531
  #
20513
20532
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcs AWS API Documentation
20514
20533
  #
@@ -29945,7 +29964,7 @@ module Aws::EC2
29945
29964
  params: params,
29946
29965
  config: config)
29947
29966
  context[:gem_name] = 'aws-sdk-ec2'
29948
- context[:gem_version] = '1.71.0'
29967
+ context[:gem_version] = '1.72.0'
29949
29968
  Seahorse::Client::Request.new(handlers, context)
29950
29969
  end
29951
29970
 
@@ -452,6 +452,7 @@ module Aws::EC2
452
452
  DescribeInstanceStatusResult = Shapes::StructureShape.new(name: 'DescribeInstanceStatusResult')
453
453
  DescribeInstancesRequest = Shapes::StructureShape.new(name: 'DescribeInstancesRequest')
454
454
  DescribeInstancesResult = Shapes::StructureShape.new(name: 'DescribeInstancesResult')
455
+ DescribeInternetGatewaysMaxResults = Shapes::IntegerShape.new(name: 'DescribeInternetGatewaysMaxResults')
455
456
  DescribeInternetGatewaysRequest = Shapes::StructureShape.new(name: 'DescribeInternetGatewaysRequest')
456
457
  DescribeInternetGatewaysResult = Shapes::StructureShape.new(name: 'DescribeInternetGatewaysResult')
457
458
  DescribeKeyPairsRequest = Shapes::StructureShape.new(name: 'DescribeKeyPairsRequest')
@@ -464,6 +465,7 @@ module Aws::EC2
464
465
  DescribeMovingAddressesResult = Shapes::StructureShape.new(name: 'DescribeMovingAddressesResult')
465
466
  DescribeNatGatewaysRequest = Shapes::StructureShape.new(name: 'DescribeNatGatewaysRequest')
466
467
  DescribeNatGatewaysResult = Shapes::StructureShape.new(name: 'DescribeNatGatewaysResult')
468
+ DescribeNetworkAclsMaxResults = Shapes::IntegerShape.new(name: 'DescribeNetworkAclsMaxResults')
467
469
  DescribeNetworkAclsRequest = Shapes::StructureShape.new(name: 'DescribeNetworkAclsRequest')
468
470
  DescribeNetworkAclsResult = Shapes::StructureShape.new(name: 'DescribeNetworkAclsResult')
469
471
  DescribeNetworkInterfaceAttributeRequest = Shapes::StructureShape.new(name: 'DescribeNetworkInterfaceAttributeRequest')
@@ -559,6 +561,7 @@ module Aws::EC2
559
561
  DescribeVpcPeeringConnectionsMaxResults = Shapes::IntegerShape.new(name: 'DescribeVpcPeeringConnectionsMaxResults')
560
562
  DescribeVpcPeeringConnectionsRequest = Shapes::StructureShape.new(name: 'DescribeVpcPeeringConnectionsRequest')
561
563
  DescribeVpcPeeringConnectionsResult = Shapes::StructureShape.new(name: 'DescribeVpcPeeringConnectionsResult')
564
+ DescribeVpcsMaxResults = Shapes::IntegerShape.new(name: 'DescribeVpcsMaxResults')
562
565
  DescribeVpcsRequest = Shapes::StructureShape.new(name: 'DescribeVpcsRequest')
563
566
  DescribeVpcsResult = Shapes::StructureShape.new(name: 'DescribeVpcsResult')
564
567
  DescribeVpnConnectionsRequest = Shapes::StructureShape.new(name: 'DescribeVpnConnectionsRequest')
@@ -3295,9 +3298,12 @@ module Aws::EC2
3295
3298
  DescribeInternetGatewaysRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
3296
3299
  DescribeInternetGatewaysRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
3297
3300
  DescribeInternetGatewaysRequest.add_member(:internet_gateway_ids, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "internetGatewayId"))
3301
+ DescribeInternetGatewaysRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
3302
+ DescribeInternetGatewaysRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeInternetGatewaysMaxResults, location_name: "MaxResults"))
3298
3303
  DescribeInternetGatewaysRequest.struct_class = Types::DescribeInternetGatewaysRequest
3299
3304
 
3300
3305
  DescribeInternetGatewaysResult.add_member(:internet_gateways, Shapes::ShapeRef.new(shape: InternetGatewayList, location_name: "internetGatewaySet"))
3306
+ DescribeInternetGatewaysResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
3301
3307
  DescribeInternetGatewaysResult.struct_class = Types::DescribeInternetGatewaysResult
3302
3308
 
3303
3309
  DescribeKeyPairsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
@@ -3359,9 +3365,12 @@ module Aws::EC2
3359
3365
  DescribeNetworkAclsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
3360
3366
  DescribeNetworkAclsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
3361
3367
  DescribeNetworkAclsRequest.add_member(:network_acl_ids, Shapes::ShapeRef.new(shape: ValueStringList, location_name: "NetworkAclId"))
3368
+ DescribeNetworkAclsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
3369
+ DescribeNetworkAclsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeNetworkAclsMaxResults, location_name: "MaxResults"))
3362
3370
  DescribeNetworkAclsRequest.struct_class = Types::DescribeNetworkAclsRequest
3363
3371
 
3364
3372
  DescribeNetworkAclsResult.add_member(:network_acls, Shapes::ShapeRef.new(shape: NetworkAclList, location_name: "networkAclSet"))
3373
+ DescribeNetworkAclsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
3365
3374
  DescribeNetworkAclsResult.struct_class = Types::DescribeNetworkAclsResult
3366
3375
 
3367
3376
  DescribeNetworkInterfaceAttributeRequest.add_member(:attribute, Shapes::ShapeRef.new(shape: NetworkInterfaceAttribute, location_name: "attribute"))
@@ -3860,9 +3869,12 @@ module Aws::EC2
3860
3869
  DescribeVpcsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
3861
3870
  DescribeVpcsRequest.add_member(:vpc_ids, Shapes::ShapeRef.new(shape: VpcIdStringList, location_name: "VpcId"))
3862
3871
  DescribeVpcsRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
3872
+ DescribeVpcsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
3873
+ DescribeVpcsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: DescribeVpcsMaxResults, location_name: "MaxResults"))
3863
3874
  DescribeVpcsRequest.struct_class = Types::DescribeVpcsRequest
3864
3875
 
3865
3876
  DescribeVpcsResult.add_member(:vpcs, Shapes::ShapeRef.new(shape: VpcList, location_name: "vpcSet"))
3877
+ DescribeVpcsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "nextToken"))
3866
3878
  DescribeVpcsResult.struct_class = Types::DescribeVpcsResult
3867
3879
 
3868
3880
  DescribeVpnConnectionsRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
@@ -8857,6 +8869,12 @@ module Aws::EC2
8857
8869
  o.http_request_uri = "/"
8858
8870
  o.input = Shapes::ShapeRef.new(shape: DescribeInternetGatewaysRequest)
8859
8871
  o.output = Shapes::ShapeRef.new(shape: DescribeInternetGatewaysResult)
8872
+ o[:pager] = Aws::Pager.new(
8873
+ limit_key: "max_results",
8874
+ tokens: {
8875
+ "next_token" => "next_token"
8876
+ }
8877
+ )
8860
8878
  end)
8861
8879
 
8862
8880
  api.add_operation(:describe_key_pairs, Seahorse::Model::Operation.new.tap do |o|
@@ -8911,6 +8929,12 @@ module Aws::EC2
8911
8929
  o.http_request_uri = "/"
8912
8930
  o.input = Shapes::ShapeRef.new(shape: DescribeNetworkAclsRequest)
8913
8931
  o.output = Shapes::ShapeRef.new(shape: DescribeNetworkAclsResult)
8932
+ o[:pager] = Aws::Pager.new(
8933
+ limit_key: "max_results",
8934
+ tokens: {
8935
+ "next_token" => "next_token"
8936
+ }
8937
+ )
8914
8938
  end)
8915
8939
 
8916
8940
  api.add_operation(:describe_network_interface_attribute, Seahorse::Model::Operation.new.tap do |o|
@@ -9344,6 +9368,12 @@ module Aws::EC2
9344
9368
  o.http_request_uri = "/"
9345
9369
  o.input = Shapes::ShapeRef.new(shape: DescribeVpcPeeringConnectionsRequest)
9346
9370
  o.output = Shapes::ShapeRef.new(shape: DescribeVpcPeeringConnectionsResult)
9371
+ o[:pager] = Aws::Pager.new(
9372
+ limit_key: "max_results",
9373
+ tokens: {
9374
+ "next_token" => "next_token"
9375
+ }
9376
+ )
9347
9377
  end)
9348
9378
 
9349
9379
  api.add_operation(:describe_vpcs, Seahorse::Model::Operation.new.tap do |o|
@@ -9352,6 +9382,12 @@ module Aws::EC2
9352
9382
  o.http_request_uri = "/"
9353
9383
  o.input = Shapes::ShapeRef.new(shape: DescribeVpcsRequest)
9354
9384
  o.output = Shapes::ShapeRef.new(shape: DescribeVpcsResult)
9385
+ o[:pager] = Aws::Pager.new(
9386
+ limit_key: "max_results",
9387
+ tokens: {
9388
+ "next_token" => "next_token"
9389
+ }
9390
+ )
9355
9391
  end)
9356
9392
 
9357
9393
  api.add_operation(:describe_vpn_connections, Seahorse::Model::Operation.new.tap do |o|
@@ -1838,16 +1838,18 @@ module Aws::EC2
1838
1838
  # @return [InternetGateway::Collection]
1839
1839
  def internet_gateways(options = {})
1840
1840
  batches = Enumerator.new do |y|
1841
- batch = []
1842
1841
  resp = @client.describe_internet_gateways(options)
1843
- resp.data.internet_gateways.each do |i|
1844
- batch << InternetGateway.new(
1845
- id: i.internet_gateway_id,
1846
- data: i,
1847
- client: @client
1848
- )
1842
+ resp.each_page do |page|
1843
+ batch = []
1844
+ page.data.internet_gateways.each do |i|
1845
+ batch << InternetGateway.new(
1846
+ id: i.internet_gateway_id,
1847
+ data: i,
1848
+ client: @client
1849
+ )
1850
+ end
1851
+ y.yield(batch)
1849
1852
  end
1850
- y.yield(batch)
1851
1853
  end
1852
1854
  InternetGateway::Collection.new(batches)
1853
1855
  end
@@ -1993,16 +1995,18 @@ module Aws::EC2
1993
1995
  # @return [NetworkAcl::Collection]
1994
1996
  def network_acls(options = {})
1995
1997
  batches = Enumerator.new do |y|
1996
- batch = []
1997
1998
  resp = @client.describe_network_acls(options)
1998
- resp.data.network_acls.each do |n|
1999
- batch << NetworkAcl.new(
2000
- id: n.network_acl_id,
2001
- data: n,
2002
- client: @client
2003
- )
1999
+ resp.each_page do |page|
2000
+ batch = []
2001
+ page.data.network_acls.each do |n|
2002
+ batch << NetworkAcl.new(
2003
+ id: n.network_acl_id,
2004
+ data: n,
2005
+ client: @client
2006
+ )
2007
+ end
2008
+ y.yield(batch)
2004
2009
  end
2005
- y.yield(batch)
2006
2010
  end
2007
2011
  NetworkAcl::Collection.new(batches)
2008
2012
  end
@@ -2891,8 +2895,6 @@ module Aws::EC2
2891
2895
  # ],
2892
2896
  # dry_run: false,
2893
2897
  # vpc_peering_connection_ids: ["String"],
2894
- # next_token: "String",
2895
- # max_results: 1,
2896
2898
  # })
2897
2899
  # @param [Hash] options ({})
2898
2900
  # @option options [Array<Types::Filter>] :filters
@@ -2944,26 +2946,21 @@ module Aws::EC2
2944
2946
  # One or more VPC peering connection IDs.
2945
2947
  #
2946
2948
  # Default: Describes all your VPC peering connections.
2947
- # @option options [String] :next_token
2948
- # The token to request the next page of results. (You received this
2949
- # token from a prior call.)
2950
- # @option options [Integer] :max_results
2951
- # The maximum number of results to return for this request. The request
2952
- # returns a token that you can specify in a subsequent call to get the
2953
- # next set of results.
2954
2949
  # @return [VpcPeeringConnection::Collection]
2955
2950
  def vpc_peering_connections(options = {})
2956
2951
  batches = Enumerator.new do |y|
2957
- batch = []
2958
2952
  resp = @client.describe_vpc_peering_connections(options)
2959
- resp.data.vpc_peering_connections.each do |v|
2960
- batch << VpcPeeringConnection.new(
2961
- id: v.vpc_peering_connection_id,
2962
- data: v,
2963
- client: @client
2964
- )
2953
+ resp.each_page do |page|
2954
+ batch = []
2955
+ page.data.vpc_peering_connections.each do |v|
2956
+ batch << VpcPeeringConnection.new(
2957
+ id: v.vpc_peering_connection_id,
2958
+ data: v,
2959
+ client: @client
2960
+ )
2961
+ end
2962
+ y.yield(batch)
2965
2963
  end
2966
- y.yield(batch)
2967
2964
  end
2968
2965
  VpcPeeringConnection::Collection.new(batches)
2969
2966
  end
@@ -3038,16 +3035,18 @@ module Aws::EC2
3038
3035
  # @return [Vpc::Collection]
3039
3036
  def vpcs(options = {})
3040
3037
  batches = Enumerator.new do |y|
3041
- batch = []
3042
3038
  resp = @client.describe_vpcs(options)
3043
- resp.data.vpcs.each do |v|
3044
- batch << Vpc.new(
3045
- id: v.vpc_id,
3046
- data: v,
3047
- client: @client
3048
- )
3039
+ resp.each_page do |page|
3040
+ batch = []
3041
+ page.data.vpcs.each do |v|
3042
+ batch << Vpc.new(
3043
+ id: v.vpc_id,
3044
+ data: v,
3045
+ client: @client
3046
+ )
3047
+ end
3048
+ y.yield(batch)
3049
3049
  end
3050
- y.yield(batch)
3051
3050
  end
3052
3051
  Vpc::Collection.new(batches)
3053
3052
  end
@@ -2732,6 +2732,12 @@ module Aws::EC2
2732
2732
 
2733
2733
  # Provides authorization for Amazon to bring a specific IP address range
2734
2734
  # to a specific AWS account using bring your own IP addresses (BYOIP).
2735
+ # For more information, see [Prepare to Bring Your Address Range to Your
2736
+ # AWS Account][1] in the *Amazon Elastic Compute Cloud User Guide*.
2737
+ #
2738
+ #
2739
+ #
2740
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-byoip.html#prepare-for-byoip
2735
2741
  #
2736
2742
  # @note When making an API call, you may pass CidrAuthorizationContext
2737
2743
  # data as a hash:
@@ -9653,19 +9659,16 @@ module Aws::EC2
9653
9659
  # @return [Array<String>]
9654
9660
  #
9655
9661
  # @!attribute [rw] max_results
9656
- # The maximum number of results to return for the request in a single
9657
- # page. The remaining results of the initial request can be seen by
9658
- # sending another request with the returned `NextToken` value. This
9659
- # value can be between 5 and 1000. If `MaxResults` is given a value
9660
- # larger than 1000, only 1000 results are returned. You cannot specify
9661
- # this parameter and the instance IDs parameter in the same request.
9662
+ # The maximum number of results to return with a single call. To
9663
+ # retrieve the remaining results, make another call with the returned
9664
+ # `nextToken` value.
9662
9665
  #
9663
9666
  # Constraint: If the value is greater than 1000, we return only 1000
9664
9667
  # items.
9665
9668
  # @return [Integer]
9666
9669
  #
9667
9670
  # @!attribute [rw] next_token
9668
- # The token to retrieve the next page of results.
9671
+ # The token for the next page of results.
9669
9672
  # @return [String]
9670
9673
  #
9671
9674
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeClassicLinkInstancesRequest AWS API Documentation
@@ -10261,15 +10264,13 @@ module Aws::EC2
10261
10264
  # @return [Array<String>]
10262
10265
  #
10263
10266
  # @!attribute [rw] max_results
10264
- # The maximum number of results to return for the request in a single
10265
- # page. The remaining results can be seen by sending another request
10266
- # with the returned `NextToken` value. This value can be between 5 and
10267
- # 1000. If `MaxResults` is given a value larger than 1000, only 1000
10268
- # results are returned.
10267
+ # The maximum number of results to return with a single call. To
10268
+ # retrieve the remaining results, make another call with the returned
10269
+ # `nextToken` value.
10269
10270
  # @return [Integer]
10270
10271
  #
10271
10272
  # @!attribute [rw] next_token
10272
- # The token to retrieve the next page of results.
10273
+ # The token for the next page of results.
10273
10274
  # @return [String]
10274
10275
  #
10275
10276
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysRequest AWS API Documentation
@@ -10287,7 +10288,8 @@ module Aws::EC2
10287
10288
  # @return [Array<Types::EgressOnlyInternetGateway>]
10288
10289
  #
10289
10290
  # @!attribute [rw] next_token
10290
- # The token to use to retrieve the next page of results.
10291
+ # The token to use to retrieve the next page of results. This value is
10292
+ # `null` when there are no more results to return.
10291
10293
  # @return [String]
10292
10294
  #
10293
10295
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeEgressOnlyInternetGatewaysResult AWS API Documentation
@@ -10808,16 +10810,13 @@ module Aws::EC2
10808
10810
  # @return [Array<String>]
10809
10811
  #
10810
10812
  # @!attribute [rw] max_results
10811
- # The maximum number of results to return for the request in a single
10812
- # page. The remaining results can be seen by sending another request
10813
- # with the returned `NextToken` value. This value can be between 5 and
10814
- # 1000. If `MaxResults` is given a value larger than 1000, only 1000
10815
- # results are returned. You cannot specify this parameter and the flow
10816
- # log IDs parameter in the same request.
10813
+ # The maximum number of results to return with a single call. To
10814
+ # retrieve the remaining results, make another call with the returned
10815
+ # `nextToken` value.
10817
10816
  # @return [Integer]
10818
10817
  #
10819
10818
  # @!attribute [rw] next_token
10820
- # The token to retrieve the next page of results.
10819
+ # The token for the next page of results.
10821
10820
  # @return [String]
10822
10821
  #
10823
10822
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeFlowLogsRequest AWS API Documentation
@@ -12339,6 +12338,8 @@ module Aws::EC2
12339
12338
  # ],
12340
12339
  # dry_run: false,
12341
12340
  # internet_gateway_ids: ["String"],
12341
+ # next_token: "String",
12342
+ # max_results: 1,
12342
12343
  # }
12343
12344
  #
12344
12345
  # @!attribute [rw] filters
@@ -12379,12 +12380,24 @@ module Aws::EC2
12379
12380
  # Default: Describes all your internet gateways.
12380
12381
  # @return [Array<String>]
12381
12382
  #
12383
+ # @!attribute [rw] next_token
12384
+ # The token for the next page of results.
12385
+ # @return [String]
12386
+ #
12387
+ # @!attribute [rw] max_results
12388
+ # The maximum number of results to return with a single call. To
12389
+ # retrieve the remaining results, make another call with the returned
12390
+ # `nextToken` value.
12391
+ # @return [Integer]
12392
+ #
12382
12393
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysRequest AWS API Documentation
12383
12394
  #
12384
12395
  class DescribeInternetGatewaysRequest < Struct.new(
12385
12396
  :filters,
12386
12397
  :dry_run,
12387
- :internet_gateway_ids)
12398
+ :internet_gateway_ids,
12399
+ :next_token,
12400
+ :max_results)
12388
12401
  include Aws::Structure
12389
12402
  end
12390
12403
 
@@ -12392,10 +12405,16 @@ module Aws::EC2
12392
12405
  # Information about one or more internet gateways.
12393
12406
  # @return [Array<Types::InternetGateway>]
12394
12407
  #
12408
+ # @!attribute [rw] next_token
12409
+ # The token to use to retrieve the next page of results. This value is
12410
+ # `null` when there are no more results to return.
12411
+ # @return [String]
12412
+ #
12395
12413
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeInternetGatewaysResult AWS API Documentation
12396
12414
  #
12397
12415
  class DescribeInternetGatewaysResult < Struct.new(
12398
- :internet_gateways)
12416
+ :internet_gateways,
12417
+ :next_token)
12399
12418
  include Aws::Structure
12400
12419
  end
12401
12420
 
@@ -12774,12 +12793,9 @@ module Aws::EC2
12774
12793
  # @return [Array<Types::Filter>]
12775
12794
  #
12776
12795
  # @!attribute [rw] max_results
12777
- # The maximum number of items to return for this request. The request
12778
- # returns a token that you can specify in a subsequent call to get the
12779
- # next set of results.
12780
- #
12781
- # Constraint: If the value specified is greater than 1000, we return
12782
- # only 1000 items.
12796
+ # The maximum number of results to return with a single call. To
12797
+ # retrieve the remaining results, make another call with the returned
12798
+ # `nextToken` value.
12783
12799
  # @return [Integer]
12784
12800
  #
12785
12801
  # @!attribute [rw] nat_gateway_ids
@@ -12787,7 +12803,7 @@ module Aws::EC2
12787
12803
  # @return [Array<String>]
12788
12804
  #
12789
12805
  # @!attribute [rw] next_token
12790
- # The token to retrieve the next page of results.
12806
+ # The token for the next page of results.
12791
12807
  # @return [String]
12792
12808
  #
12793
12809
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNatGatewaysRequest AWS API Documentation
@@ -12829,6 +12845,8 @@ module Aws::EC2
12829
12845
  # ],
12830
12846
  # dry_run: false,
12831
12847
  # network_acl_ids: ["String"],
12848
+ # next_token: "String",
12849
+ # max_results: 1,
12832
12850
  # }
12833
12851
  #
12834
12852
  # @!attribute [rw] filters
@@ -12899,12 +12917,24 @@ module Aws::EC2
12899
12917
  # Default: Describes all your network ACLs.
12900
12918
  # @return [Array<String>]
12901
12919
  #
12920
+ # @!attribute [rw] next_token
12921
+ # The token for the next page of results.
12922
+ # @return [String]
12923
+ #
12924
+ # @!attribute [rw] max_results
12925
+ # The maximum number of results to return with a single call. To
12926
+ # retrieve the remaining results, make another call with the returned
12927
+ # `nextToken` value.
12928
+ # @return [Integer]
12929
+ #
12902
12930
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsRequest AWS API Documentation
12903
12931
  #
12904
12932
  class DescribeNetworkAclsRequest < Struct.new(
12905
12933
  :filters,
12906
12934
  :dry_run,
12907
- :network_acl_ids)
12935
+ :network_acl_ids,
12936
+ :next_token,
12937
+ :max_results)
12908
12938
  include Aws::Structure
12909
12939
  end
12910
12940
 
@@ -12912,10 +12942,16 @@ module Aws::EC2
12912
12942
  # Information about one or more network ACLs.
12913
12943
  # @return [Array<Types::NetworkAcl>]
12914
12944
  #
12945
+ # @!attribute [rw] next_token
12946
+ # The token to use to retrieve the next page of results. This value is
12947
+ # `null` when there are no more results to return.
12948
+ # @return [String]
12949
+ #
12915
12950
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeNetworkAclsResult AWS API Documentation
12916
12951
  #
12917
12952
  class DescribeNetworkAclsResult < Struct.new(
12918
- :network_acls)
12953
+ :network_acls,
12954
+ :next_token)
12919
12955
  include Aws::Structure
12920
12956
  end
12921
12957
 
@@ -13343,17 +13379,13 @@ module Aws::EC2
13343
13379
  # @return [Array<Types::Filter>]
13344
13380
  #
13345
13381
  # @!attribute [rw] max_results
13346
- # The maximum number of items to return for this request. The request
13347
- # returns a token that you can specify in a subsequent call to get the
13348
- # next set of results.
13349
- #
13350
- # Constraint: If the value specified is greater than 1000, we return
13351
- # only 1000 items.
13382
+ # The maximum number of results to return with a single call. To
13383
+ # retrieve the remaining results, make another call with the returned
13384
+ # `nextToken` value.
13352
13385
  # @return [Integer]
13353
13386
  #
13354
13387
  # @!attribute [rw] next_token
13355
- # The token for the next set of items to return. (You received this
13356
- # token from a prior call.)
13388
+ # The token for the next page of results.
13357
13389
  # @return [String]
13358
13390
  #
13359
13391
  # @!attribute [rw] prefix_list_ids
@@ -13372,8 +13404,8 @@ module Aws::EC2
13372
13404
  end
13373
13405
 
13374
13406
  # @!attribute [rw] next_token
13375
- # The token to use when requesting the next set of items. If there are
13376
- # no additional items to return, the string is empty.
13407
+ # The token to use to retrieve the next page of results. This value is
13408
+ # `null` when there are no more results to return.
13377
13409
  # @return [String]
13378
13410
  #
13379
13411
  # @!attribute [rw] prefix_lists
@@ -14140,13 +14172,13 @@ module Aws::EC2
14140
14172
  # @return [Array<String>]
14141
14173
  #
14142
14174
  # @!attribute [rw] next_token
14143
- # The token to retrieve the next page of results.
14175
+ # The token for the next page of results.
14144
14176
  # @return [String]
14145
14177
  #
14146
14178
  # @!attribute [rw] max_results
14147
- # The maximum number of results to return in a single call. To
14179
+ # The maximum number of results to return with a single call. To
14148
14180
  # retrieve the remaining results, make another call with the returned
14149
- # **NextToken** value. This value can be between 5 and 100.
14181
+ # `nextToken` value.
14150
14182
  # @return [Integer]
14151
14183
  #
14152
14184
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeRouteTablesRequest AWS API Documentation
@@ -16418,14 +16450,13 @@ module Aws::EC2
16418
16450
  # }
16419
16451
  #
16420
16452
  # @!attribute [rw] max_results
16421
- # The maximum number of items to return for this request. The request
16422
- # returns a token that you can specify in a subsequent call to get the
16423
- # next set of results.
16453
+ # The maximum number of results to return with a single call. To
16454
+ # retrieve the remaining results, make another call with the returned
16455
+ # `nextToken` value.
16424
16456
  # @return [Integer]
16425
16457
  #
16426
16458
  # @!attribute [rw] next_token
16427
- # The token for the next set of items to return. (You received this
16428
- # token from a prior call.)
16459
+ # The token for the next page of results.
16429
16460
  # @return [String]
16430
16461
  #
16431
16462
  # @!attribute [rw] vpc_ids
@@ -16442,7 +16473,8 @@ module Aws::EC2
16442
16473
  end
16443
16474
 
16444
16475
  # @!attribute [rw] next_token
16445
- # The token to use when requesting the next set of items.
16476
+ # The token to use to retrieve the next page of results. This value is
16477
+ # `null` when there are no more results to return.
16446
16478
  # @return [String]
16447
16479
  #
16448
16480
  # @!attribute [rw] vpcs
@@ -17079,14 +17111,13 @@ module Aws::EC2
17079
17111
  # @return [Array<String>]
17080
17112
  #
17081
17113
  # @!attribute [rw] next_token
17082
- # The token to request the next page of results. (You received this
17083
- # token from a prior call.)
17114
+ # The token for the next page of results.
17084
17115
  # @return [String]
17085
17116
  #
17086
17117
  # @!attribute [rw] max_results
17087
- # The maximum number of results to return for this request. The
17088
- # request returns a token that you can specify in a subsequent call to
17089
- # get the next set of results.
17118
+ # The maximum number of results to return with a single call. To
17119
+ # retrieve the remaining results, make another call with the returned
17120
+ # `nextToken` value.
17090
17121
  # @return [Integer]
17091
17122
  #
17092
17123
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcPeeringConnectionsRequest AWS API Documentation
@@ -17129,6 +17160,8 @@ module Aws::EC2
17129
17160
  # ],
17130
17161
  # vpc_ids: ["String"],
17131
17162
  # dry_run: false,
17163
+ # next_token: "String",
17164
+ # max_results: 1,
17132
17165
  # }
17133
17166
  #
17134
17167
  # @!attribute [rw] filters
@@ -17191,12 +17224,24 @@ module Aws::EC2
17191
17224
  # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
17192
17225
  # @return [Boolean]
17193
17226
  #
17227
+ # @!attribute [rw] next_token
17228
+ # The token for the next page of results.
17229
+ # @return [String]
17230
+ #
17231
+ # @!attribute [rw] max_results
17232
+ # The maximum number of results to return with a single call. To
17233
+ # retrieve the remaining results, make another call with the returned
17234
+ # `nextToken` value.
17235
+ # @return [Integer]
17236
+ #
17194
17237
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsRequest AWS API Documentation
17195
17238
  #
17196
17239
  class DescribeVpcsRequest < Struct.new(
17197
17240
  :filters,
17198
17241
  :vpc_ids,
17199
- :dry_run)
17242
+ :dry_run,
17243
+ :next_token,
17244
+ :max_results)
17200
17245
  include Aws::Structure
17201
17246
  end
17202
17247
 
@@ -17204,10 +17249,16 @@ module Aws::EC2
17204
17249
  # Information about one or more VPCs.
17205
17250
  # @return [Array<Types::Vpc>]
17206
17251
  #
17252
+ # @!attribute [rw] next_token
17253
+ # The token to use to retrieve the next page of results. This value is
17254
+ # `null` when there are no more results to return.
17255
+ # @return [String]
17256
+ #
17207
17257
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeVpcsResult AWS API Documentation
17208
17258
  #
17209
17259
  class DescribeVpcsResult < Struct.new(
17210
- :vpcs)
17260
+ :vpcs,
17261
+ :next_token)
17211
17262
  include Aws::Structure
17212
17263
  end
17213
17264
 
@@ -700,8 +700,6 @@ module Aws::EC2
700
700
  # ],
701
701
  # dry_run: false,
702
702
  # vpc_peering_connection_ids: ["String"],
703
- # next_token: "String",
704
- # max_results: 1,
705
703
  # })
706
704
  # @param [Hash] options ({})
707
705
  # @option options [Array<Types::Filter>] :filters
@@ -753,30 +751,25 @@ module Aws::EC2
753
751
  # One or more VPC peering connection IDs.
754
752
  #
755
753
  # Default: Describes all your VPC peering connections.
756
- # @option options [String] :next_token
757
- # The token to request the next page of results. (You received this
758
- # token from a prior call.)
759
- # @option options [Integer] :max_results
760
- # The maximum number of results to return for this request. The request
761
- # returns a token that you can specify in a subsequent call to get the
762
- # next set of results.
763
754
  # @return [VpcPeeringConnection::Collection]
764
755
  def accepted_vpc_peering_connections(options = {})
765
756
  batches = Enumerator.new do |y|
766
- batch = []
767
757
  options = Aws::Util.deep_merge(options, filters: [{
768
758
  name: "accepter-vpc-info.vpc-id",
769
759
  values: [@id]
770
760
  }])
771
761
  resp = @client.describe_vpc_peering_connections(options)
772
- resp.data.vpc_peering_connections.each do |v|
773
- batch << VpcPeeringConnection.new(
774
- id: v.vpc_peering_connection_id,
775
- data: v,
776
- client: @client
777
- )
762
+ resp.each_page do |page|
763
+ batch = []
764
+ page.data.vpc_peering_connections.each do |v|
765
+ batch << VpcPeeringConnection.new(
766
+ id: v.vpc_peering_connection_id,
767
+ data: v,
768
+ client: @client
769
+ )
770
+ end
771
+ y.yield(batch)
778
772
  end
779
- y.yield(batch)
780
773
  end
781
774
  VpcPeeringConnection::Collection.new(batches)
782
775
  end
@@ -1150,20 +1143,22 @@ module Aws::EC2
1150
1143
  # @return [InternetGateway::Collection]
1151
1144
  def internet_gateways(options = {})
1152
1145
  batches = Enumerator.new do |y|
1153
- batch = []
1154
1146
  options = Aws::Util.deep_merge(options, filters: [{
1155
1147
  name: "attachment.vpc-id",
1156
1148
  values: [@id]
1157
1149
  }])
1158
1150
  resp = @client.describe_internet_gateways(options)
1159
- resp.data.internet_gateways.each do |i|
1160
- batch << InternetGateway.new(
1161
- id: i.internet_gateway_id,
1162
- data: i,
1163
- client: @client
1164
- )
1151
+ resp.each_page do |page|
1152
+ batch = []
1153
+ page.data.internet_gateways.each do |i|
1154
+ batch << InternetGateway.new(
1155
+ id: i.internet_gateway_id,
1156
+ data: i,
1157
+ client: @client
1158
+ )
1159
+ end
1160
+ y.yield(batch)
1165
1161
  end
1166
- y.yield(batch)
1167
1162
  end
1168
1163
  InternetGateway::Collection.new(batches)
1169
1164
  end
@@ -1246,20 +1241,22 @@ module Aws::EC2
1246
1241
  # @return [NetworkAcl::Collection]
1247
1242
  def network_acls(options = {})
1248
1243
  batches = Enumerator.new do |y|
1249
- batch = []
1250
1244
  options = Aws::Util.deep_merge(options, filters: [{
1251
1245
  name: "vpc-id",
1252
1246
  values: [@id]
1253
1247
  }])
1254
1248
  resp = @client.describe_network_acls(options)
1255
- resp.data.network_acls.each do |n|
1256
- batch << NetworkAcl.new(
1257
- id: n.network_acl_id,
1258
- data: n,
1259
- client: @client
1260
- )
1249
+ resp.each_page do |page|
1250
+ batch = []
1251
+ page.data.network_acls.each do |n|
1252
+ batch << NetworkAcl.new(
1253
+ id: n.network_acl_id,
1254
+ data: n,
1255
+ client: @client
1256
+ )
1257
+ end
1258
+ y.yield(batch)
1261
1259
  end
1262
- y.yield(batch)
1263
1260
  end
1264
1261
  NetworkAcl::Collection.new(batches)
1265
1262
  end
@@ -1432,8 +1429,6 @@ module Aws::EC2
1432
1429
  # ],
1433
1430
  # dry_run: false,
1434
1431
  # vpc_peering_connection_ids: ["String"],
1435
- # next_token: "String",
1436
- # max_results: 1,
1437
1432
  # })
1438
1433
  # @param [Hash] options ({})
1439
1434
  # @option options [Array<Types::Filter>] :filters
@@ -1485,30 +1480,25 @@ module Aws::EC2
1485
1480
  # One or more VPC peering connection IDs.
1486
1481
  #
1487
1482
  # Default: Describes all your VPC peering connections.
1488
- # @option options [String] :next_token
1489
- # The token to request the next page of results. (You received this
1490
- # token from a prior call.)
1491
- # @option options [Integer] :max_results
1492
- # The maximum number of results to return for this request. The request
1493
- # returns a token that you can specify in a subsequent call to get the
1494
- # next set of results.
1495
1483
  # @return [VpcPeeringConnection::Collection]
1496
1484
  def requested_vpc_peering_connections(options = {})
1497
1485
  batches = Enumerator.new do |y|
1498
- batch = []
1499
1486
  options = Aws::Util.deep_merge(options, filters: [{
1500
1487
  name: "requester-vpc-info.vpc-id",
1501
1488
  values: [@id]
1502
1489
  }])
1503
1490
  resp = @client.describe_vpc_peering_connections(options)
1504
- resp.data.vpc_peering_connections.each do |v|
1505
- batch << VpcPeeringConnection.new(
1506
- id: v.vpc_peering_connection_id,
1507
- data: v,
1508
- client: @client
1509
- )
1491
+ resp.each_page do |page|
1492
+ batch = []
1493
+ page.data.vpc_peering_connections.each do |v|
1494
+ batch << VpcPeeringConnection.new(
1495
+ id: v.vpc_peering_connection_id,
1496
+ data: v,
1497
+ client: @client
1498
+ )
1499
+ end
1500
+ y.yield(batch)
1510
1501
  end
1511
- y.yield(batch)
1512
1502
  end
1513
1503
  VpcPeeringConnection::Collection.new(batches)
1514
1504
  end
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.71.0
4
+ version: 1.72.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: 2019-03-01 00:00:00.000000000 Z
11
+ date: 2019-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4