aws-sdk-ec2 1.171.0 → 1.172.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8317d9e657a951e519fe068e23137cca9b41c4df5fafb88b2c4df79a77f86f02
4
- data.tar.gz: 2dbf840bc4ff720915903cfe4d7e439c8195d26deb0b82d2a585704edc98d434
3
+ metadata.gz: 88c536d792da59536c4a34d93356e4602715069f02a447d441e82f5dab2dd99e
4
+ data.tar.gz: d401e3e36ab7177b5d96d7eef179c6302501b3904f23a42dc3ee1ac0819d8921
5
5
  SHA512:
6
- metadata.gz: 35219e430abf9686b69ccd8f2d43a0f45a567b54cb6e924aa958dba6b8066838c553ad63d123b0429f86a91f601e7ea1438bc000a722c2afd4167d9302057c90
7
- data.tar.gz: 683a39419a000b2bc2b7a426be113eaa5a75df27362968b25bd64c6565a59772740f4d92a8e285144fd362753078c5b479eaf16f6ec0c5773b7651454fdfde60
6
+ metadata.gz: bbf03437c880e61b3b582a2df9f57024de330afd8b14637c1ade4434d4bfc125f633446764661d999e0d9bd6da90216bd9e8273b1634c4ee9ebea80a4dd96b0d
7
+ data.tar.gz: efd154ded05df8355f90a7d209f1b3e987293c0eb35949aa99fd09207fb26e487a07e876360cbc2a6d1586c8e556a03a5b7f39d03d3db15ab6f63ee49abdc2aa
@@ -71,6 +71,6 @@ require_relative 'aws-sdk-ec2/customizations'
71
71
  # @service
72
72
  module Aws::EC2
73
73
 
74
- GEM_VERSION = '1.171.0'
74
+ GEM_VERSION = '1.172.0'
75
75
 
76
76
  end
@@ -5953,6 +5953,108 @@ module Aws::EC2
5953
5953
  req.send_request(options)
5954
5954
  end
5955
5955
 
5956
+ # Creates a managed prefix list. You can specify one or more entries for
5957
+ # the prefix list. Each entry consists of a CIDR block and an optional
5958
+ # description.
5959
+ #
5960
+ # You must specify the maximum number of entries for the prefix list.
5961
+ # The maximum number of entries cannot be changed later.
5962
+ #
5963
+ # @option params [Boolean] :dry_run
5964
+ # Checks whether you have the required permissions for the action,
5965
+ # without actually making the request, and provides an error response.
5966
+ # If you have the required permissions, the error response is
5967
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
5968
+ #
5969
+ # @option params [required, String] :prefix_list_name
5970
+ # A name for the prefix list.
5971
+ #
5972
+ # Constraints: Up to 255 characters in length. The name cannot start
5973
+ # with `com.amazonaws`.
5974
+ #
5975
+ # @option params [Array<Types::AddPrefixListEntry>] :entries
5976
+ # One or more entries for the prefix list.
5977
+ #
5978
+ # @option params [required, Integer] :max_entries
5979
+ # The maximum number of entries for the prefix list.
5980
+ #
5981
+ # @option params [Array<Types::TagSpecification>] :tag_specifications
5982
+ # The tags to apply to the prefix list during creation.
5983
+ #
5984
+ # @option params [required, String] :address_family
5985
+ # The IP address type.
5986
+ #
5987
+ # Valid Values: `IPv4` \| `IPv6`
5988
+ #
5989
+ # @option params [String] :client_token
5990
+ # Unique, case-sensitive identifier you provide to ensure the
5991
+ # idempotency of the request. For more information, see [Ensuring
5992
+ # Idempotency][1].
5993
+ #
5994
+ # Constraints: Up to 255 UTF-8 characters in length.
5995
+ #
5996
+ # **A suitable default value is auto-generated.** You should normally
5997
+ # not need to pass this option.**
5998
+ #
5999
+ #
6000
+ #
6001
+ # [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
6002
+ #
6003
+ # @return [Types::CreateManagedPrefixListResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6004
+ #
6005
+ # * {Types::CreateManagedPrefixListResult#prefix_list #prefix_list} => Types::ManagedPrefixList
6006
+ #
6007
+ # @example Request syntax with placeholder values
6008
+ #
6009
+ # resp = client.create_managed_prefix_list({
6010
+ # dry_run: false,
6011
+ # prefix_list_name: "String", # required
6012
+ # entries: [
6013
+ # {
6014
+ # cidr: "String", # required
6015
+ # description: "String",
6016
+ # },
6017
+ # ],
6018
+ # max_entries: 1, # required
6019
+ # tag_specifications: [
6020
+ # {
6021
+ # resource_type: "client-vpn-endpoint", # accepts client-vpn-endpoint, customer-gateway, dedicated-host, dhcp-options, elastic-ip, elastic-gpu, export-image-task, export-instance-task, fleet, fpga-image, host-reservation, image, import-image-task, import-snapshot-task, instance, internet-gateway, key-pair, launch-template, local-gateway-route-table-vpc-association, 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
6022
+ # tags: [
6023
+ # {
6024
+ # key: "String",
6025
+ # value: "String",
6026
+ # },
6027
+ # ],
6028
+ # },
6029
+ # ],
6030
+ # address_family: "String", # required
6031
+ # client_token: "String",
6032
+ # })
6033
+ #
6034
+ # @example Response structure
6035
+ #
6036
+ # resp.prefix_list.prefix_list_id #=> String
6037
+ # resp.prefix_list.address_family #=> String
6038
+ # resp.prefix_list.state #=> String, one of "create-in-progress", "create-complete", "create-failed", "modify-in-progress", "modify-complete", "modify-failed", "restore-in-progress", "restore-complete", "restore-failed", "delete-in-progress", "delete-complete", "delete-failed"
6039
+ # resp.prefix_list.state_message #=> String
6040
+ # resp.prefix_list.prefix_list_arn #=> String
6041
+ # resp.prefix_list.prefix_list_name #=> String
6042
+ # resp.prefix_list.max_entries #=> Integer
6043
+ # resp.prefix_list.version #=> Integer
6044
+ # resp.prefix_list.tags #=> Array
6045
+ # resp.prefix_list.tags[0].key #=> String
6046
+ # resp.prefix_list.tags[0].value #=> String
6047
+ # resp.prefix_list.owner_id #=> String
6048
+ #
6049
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateManagedPrefixList AWS API Documentation
6050
+ #
6051
+ # @overload create_managed_prefix_list(params = {})
6052
+ # @param [Hash] params ({})
6053
+ def create_managed_prefix_list(params = {}, options = {})
6054
+ req = build_request(:create_managed_prefix_list, params)
6055
+ req.send_request(options)
6056
+ end
6057
+
5956
6058
  # Creates a NAT gateway in the specified public subnet. This action
5957
6059
  # creates a network interface in the specified subnet with a private IP
5958
6060
  # address from the IP address range of the subnet. Internet-bound
@@ -6210,7 +6312,9 @@ module Aws::EC2
6210
6312
  #
6211
6313
  # @option params [String] :cidr_block
6212
6314
  # The IPv4 network range to allow or deny, in CIDR notation (for example
6213
- # `172.16.0.0/24`).
6315
+ # `172.16.0.0/24`). We modify the specified CIDR block to its canonical
6316
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
6317
+ # `100.68.0.0/18`.
6214
6318
  #
6215
6319
  # @option params [Boolean] :dry_run
6216
6320
  # Checks whether you have the required permissions for the action,
@@ -6799,12 +6903,17 @@ module Aws::EC2
6799
6903
  #
6800
6904
  # @option params [String] :destination_cidr_block
6801
6905
  # The IPv4 CIDR address block used for the destination match. Routing
6802
- # decisions are based on the most specific match.
6906
+ # decisions are based on the most specific match. We modify the
6907
+ # specified CIDR block to its canonical form; for example, if you
6908
+ # specify `100.68.0.18/18`, we modify it to `100.68.0.0/18`.
6803
6909
  #
6804
6910
  # @option params [String] :destination_ipv_6_cidr_block
6805
6911
  # The IPv6 CIDR block used for the destination match. Routing decisions
6806
6912
  # are based on the most specific match.
6807
6913
  #
6914
+ # @option params [String] :destination_prefix_list_id
6915
+ # The ID of a prefix list used for the destination match.
6916
+ #
6808
6917
  # @option params [Boolean] :dry_run
6809
6918
  # Checks whether you have the required permissions for the action,
6810
6919
  # without actually making the request, and provides an error response.
@@ -6862,6 +6971,7 @@ module Aws::EC2
6862
6971
  # resp = client.create_route({
6863
6972
  # destination_cidr_block: "String",
6864
6973
  # destination_ipv_6_cidr_block: "String",
6974
+ # destination_prefix_list_id: "PrefixListResourceId",
6865
6975
  # dry_run: false,
6866
6976
  # egress_only_internet_gateway_id: "EgressOnlyInternetGatewayId",
6867
6977
  # gateway_id: "RouteGatewayId",
@@ -7385,16 +7495,13 @@ module Aws::EC2
7385
7495
  req.send_request(options)
7386
7496
  end
7387
7497
 
7388
- # Creates a subnet in an existing VPC.
7498
+ # Creates a subnet in a specified VPC.
7389
7499
  #
7390
- # When you create each subnet, you provide the VPC ID and IPv4 CIDR
7391
- # block for the subnet. After you create a subnet, you can't change its
7392
- # CIDR block. The size of the subnet's IPv4 CIDR block can be the same
7393
- # as a VPC's IPv4 CIDR block, or a subset of a VPC's IPv4 CIDR block.
7394
- # If you create more than one subnet in a VPC, the subnets' CIDR blocks
7395
- # must not overlap. The smallest IPv4 subnet (and VPC) you can create
7396
- # uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16
7397
- # netmask (65,536 IPv4 addresses).
7500
+ # You must specify an IPv4 CIDR block for the subnet. After you create a
7501
+ # subnet, you can't change its CIDR block. The allowed block size is
7502
+ # between a /16 netmask (65,536 IP addresses) and /28 netmask (16 IP
7503
+ # addresses). The CIDR block must not overlap with the CIDR block of an
7504
+ # existing subnet in the VPC.
7398
7505
  #
7399
7506
  # If you've associated an IPv6 CIDR block with your VPC, you can create
7400
7507
  # a subnet with an IPv6 CIDR block that uses a /64 prefix length.
@@ -7405,12 +7512,10 @@ module Aws::EC2
7405
7512
  # If you add more than one subnet to a VPC, they're set up in a star
7406
7513
  # topology with a logical router in the middle.
7407
7514
  #
7408
- # If you launch an instance in a VPC using an Amazon EBS-backed AMI, the
7409
- # IP address doesn't change if you stop and restart the instance
7410
- # (unlike a similar instance launched outside a VPC, which gets a new IP
7411
- # address when restarted). It's therefore possible to have a subnet
7412
- # with no running instances (they're all stopped), but no remaining IP
7413
- # addresses available.
7515
+ # When you stop an instance in a subnet, it retains its private IPv4
7516
+ # address. It's therefore possible to have a subnet with no running
7517
+ # instances (they're all stopped), but no remaining IP addresses
7518
+ # available.
7414
7519
  #
7415
7520
  # For more information about subnets, see [Your VPC and Subnets][1] in
7416
7521
  # the *Amazon Virtual Private Cloud User Guide*.
@@ -7443,7 +7548,9 @@ module Aws::EC2
7443
7548
  #
7444
7549
  # @option params [required, String] :cidr_block
7445
7550
  # The IPv4 network range for the subnet, in CIDR notation. For example,
7446
- # `10.0.0.0/24`.
7551
+ # `10.0.0.0/24`. We modify the specified CIDR block to its canonical
7552
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
7553
+ # `100.68.0.0/18`.
7447
7554
  #
7448
7555
  # @option params [String] :ipv_6_cidr_block
7449
7556
  # The IPv6 network range for the subnet, in CIDR notation. The subnet
@@ -8807,7 +8914,9 @@ module Aws::EC2
8807
8914
  #
8808
8915
  # @option params [required, String] :cidr_block
8809
8916
  # The IPv4 network range for the VPC, in CIDR notation. For example,
8810
- # `10.0.0.0/16`.
8917
+ # `10.0.0.0/16`. We modify the specified CIDR block to its canonical
8918
+ # form; for example, if you specify `100.68.0.18/18`, we modify it to
8919
+ # `100.68.0.0/18`.
8811
8920
  #
8812
8921
  # @option params [Boolean] :amazon_provided_ipv_6_cidr_block
8813
8922
  # Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length
@@ -10302,6 +10411,53 @@ module Aws::EC2
10302
10411
  req.send_request(options)
10303
10412
  end
10304
10413
 
10414
+ # Deletes the specified managed prefix list. You must first remove all
10415
+ # references to the prefix list in your resources.
10416
+ #
10417
+ # @option params [Boolean] :dry_run
10418
+ # Checks whether you have the required permissions for the action,
10419
+ # without actually making the request, and provides an error response.
10420
+ # If you have the required permissions, the error response is
10421
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
10422
+ #
10423
+ # @option params [required, String] :prefix_list_id
10424
+ # The ID of the prefix list.
10425
+ #
10426
+ # @return [Types::DeleteManagedPrefixListResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
10427
+ #
10428
+ # * {Types::DeleteManagedPrefixListResult#prefix_list #prefix_list} => Types::ManagedPrefixList
10429
+ #
10430
+ # @example Request syntax with placeholder values
10431
+ #
10432
+ # resp = client.delete_managed_prefix_list({
10433
+ # dry_run: false,
10434
+ # prefix_list_id: "PrefixListResourceId", # required
10435
+ # })
10436
+ #
10437
+ # @example Response structure
10438
+ #
10439
+ # resp.prefix_list.prefix_list_id #=> String
10440
+ # resp.prefix_list.address_family #=> String
10441
+ # resp.prefix_list.state #=> String, one of "create-in-progress", "create-complete", "create-failed", "modify-in-progress", "modify-complete", "modify-failed", "restore-in-progress", "restore-complete", "restore-failed", "delete-in-progress", "delete-complete", "delete-failed"
10442
+ # resp.prefix_list.state_message #=> String
10443
+ # resp.prefix_list.prefix_list_arn #=> String
10444
+ # resp.prefix_list.prefix_list_name #=> String
10445
+ # resp.prefix_list.max_entries #=> Integer
10446
+ # resp.prefix_list.version #=> Integer
10447
+ # resp.prefix_list.tags #=> Array
10448
+ # resp.prefix_list.tags[0].key #=> String
10449
+ # resp.prefix_list.tags[0].value #=> String
10450
+ # resp.prefix_list.owner_id #=> String
10451
+ #
10452
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DeleteManagedPrefixList AWS API Documentation
10453
+ #
10454
+ # @overload delete_managed_prefix_list(params = {})
10455
+ # @param [Hash] params ({})
10456
+ def delete_managed_prefix_list(params = {}, options = {})
10457
+ req = build_request(:delete_managed_prefix_list, params)
10458
+ req.send_request(options)
10459
+ end
10460
+
10305
10461
  # Deletes the specified NAT gateway. Deleting a NAT gateway
10306
10462
  # disassociates its Elastic IP address, but does not release the address
10307
10463
  # from your account. Deleting a NAT gateway does not delete any NAT
@@ -10625,6 +10781,9 @@ module Aws::EC2
10625
10781
  # The IPv6 CIDR range for the route. The value you specify must match
10626
10782
  # the CIDR for the route exactly.
10627
10783
  #
10784
+ # @option params [String] :destination_prefix_list_id
10785
+ # The ID of the prefix list for the route.
10786
+ #
10628
10787
  # @option params [Boolean] :dry_run
10629
10788
  # Checks whether you have the required permissions for the action,
10630
10789
  # without actually making the request, and provides an error response.
@@ -10651,6 +10810,7 @@ module Aws::EC2
10651
10810
  # resp = client.delete_route({
10652
10811
  # destination_cidr_block: "String",
10653
10812
  # destination_ipv_6_cidr_block: "String",
10813
+ # destination_prefix_list_id: "PrefixListResourceId",
10654
10814
  # dry_run: false,
10655
10815
  # route_table_id: "RouteTableId", # required
10656
10816
  # })
@@ -18121,6 +18281,85 @@ module Aws::EC2
18121
18281
  req.send_request(options)
18122
18282
  end
18123
18283
 
18284
+ # Describes your managed prefix lists and any AWS-managed prefix lists.
18285
+ #
18286
+ # To view the entries for your prefix list, use
18287
+ # GetManagedPrefixListEntries.
18288
+ #
18289
+ # @option params [Boolean] :dry_run
18290
+ # Checks whether you have the required permissions for the action,
18291
+ # without actually making the request, and provides an error response.
18292
+ # If you have the required permissions, the error response is
18293
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
18294
+ #
18295
+ # @option params [Array<Types::Filter>] :filters
18296
+ # One or more filters.
18297
+ #
18298
+ # * `owner-id` - The ID of the prefix list owner.
18299
+ #
18300
+ # * `prefix-list-id` - The ID of the prefix list.
18301
+ #
18302
+ # * `prefix-list-name` - The name of the prefix list.
18303
+ #
18304
+ # @option params [Integer] :max_results
18305
+ # The maximum number of results to return with a single call. To
18306
+ # retrieve the remaining results, make another call with the returned
18307
+ # `nextToken` value.
18308
+ #
18309
+ # @option params [String] :next_token
18310
+ # The token for the next page of results.
18311
+ #
18312
+ # @option params [Array<String>] :prefix_list_ids
18313
+ # One or more prefix list IDs.
18314
+ #
18315
+ # @return [Types::DescribeManagedPrefixListsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
18316
+ #
18317
+ # * {Types::DescribeManagedPrefixListsResult#next_token #next_token} => String
18318
+ # * {Types::DescribeManagedPrefixListsResult#prefix_lists #prefix_lists} => Array&lt;Types::ManagedPrefixList&gt;
18319
+ #
18320
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
18321
+ #
18322
+ # @example Request syntax with placeholder values
18323
+ #
18324
+ # resp = client.describe_managed_prefix_lists({
18325
+ # dry_run: false,
18326
+ # filters: [
18327
+ # {
18328
+ # name: "String",
18329
+ # values: ["String"],
18330
+ # },
18331
+ # ],
18332
+ # max_results: 1,
18333
+ # next_token: "NextToken",
18334
+ # prefix_list_ids: ["String"],
18335
+ # })
18336
+ #
18337
+ # @example Response structure
18338
+ #
18339
+ # resp.next_token #=> String
18340
+ # resp.prefix_lists #=> Array
18341
+ # resp.prefix_lists[0].prefix_list_id #=> String
18342
+ # resp.prefix_lists[0].address_family #=> String
18343
+ # resp.prefix_lists[0].state #=> String, one of "create-in-progress", "create-complete", "create-failed", "modify-in-progress", "modify-complete", "modify-failed", "restore-in-progress", "restore-complete", "restore-failed", "delete-in-progress", "delete-complete", "delete-failed"
18344
+ # resp.prefix_lists[0].state_message #=> String
18345
+ # resp.prefix_lists[0].prefix_list_arn #=> String
18346
+ # resp.prefix_lists[0].prefix_list_name #=> String
18347
+ # resp.prefix_lists[0].max_entries #=> Integer
18348
+ # resp.prefix_lists[0].version #=> Integer
18349
+ # resp.prefix_lists[0].tags #=> Array
18350
+ # resp.prefix_lists[0].tags[0].key #=> String
18351
+ # resp.prefix_lists[0].tags[0].value #=> String
18352
+ # resp.prefix_lists[0].owner_id #=> String
18353
+ #
18354
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeManagedPrefixLists AWS API Documentation
18355
+ #
18356
+ # @overload describe_managed_prefix_lists(params = {})
18357
+ # @param [Hash] params ({})
18358
+ def describe_managed_prefix_lists(params = {}, options = {})
18359
+ req = build_request(:describe_managed_prefix_lists, params)
18360
+ req.send_request(options)
18361
+ end
18362
+
18124
18363
  # Describes your Elastic IP addresses that are being moved to the
18125
18364
  # EC2-VPC platform, or that are being restored to the EC2-Classic
18126
18365
  # platform. This request does not return information about any other
@@ -18794,9 +19033,6 @@ module Aws::EC2
18794
19033
  # * `attachment.instance-owner-id` - The owner ID of the instance to
18795
19034
  # which the network interface is attached.
18796
19035
  #
18797
- # * `attachment.nat-gateway-id` - The ID of the NAT gateway to which the
18798
- # network interface is attached.
18799
- #
18800
19036
  # * `attachment.status` - The status of the attachment (`attaching` \|
18801
19037
  # `attached` \| `detaching` \| `detached`).
18802
19038
  #
@@ -19114,11 +19350,9 @@ module Aws::EC2
19114
19350
 
19115
19351
  # Describes available AWS services in a prefix list format, which
19116
19352
  # includes the prefix list name and prefix list ID of the service and
19117
- # the IP address range for the service. A prefix list ID is required for
19118
- # creating an outbound security group rule that allows traffic from a
19119
- # VPC to access an AWS service through a gateway VPC endpoint.
19120
- # Currently, the services that support this action are Amazon S3 and
19121
- # Amazon DynamoDB.
19353
+ # the IP address range for the service.
19354
+ #
19355
+ # We recommend that you use DescribeManagedPrefixLists instead.
19122
19356
  #
19123
19357
  # @option params [Boolean] :dry_run
19124
19358
  # Checks whether you have the required permissions for the action,
@@ -20627,8 +20861,8 @@ module Aws::EC2
20627
20861
  # * `egress.ip-permission.ipv6-cidr` - An IPv6 CIDR block for an
20628
20862
  # outbound security group rule.
20629
20863
  #
20630
- # * `egress.ip-permission.prefix-list-id` - The ID (prefix) of the AWS
20631
- # service to which a security group rule allows outbound access.
20864
+ # * `egress.ip-permission.prefix-list-id` - The ID of a prefix list to
20865
+ # which a security group rule allows outbound access.
20632
20866
  #
20633
20867
  # * `egress.ip-permission.protocol` - The IP protocol for an outbound
20634
20868
  # security group rule (`tcp` \| `udp` \| `icmp` or a protocol number).
@@ -20658,8 +20892,8 @@ module Aws::EC2
20658
20892
  # * `ip-permission.ipv6-cidr` - An IPv6 CIDR block for an inbound
20659
20893
  # security group rule.
20660
20894
  #
20661
- # * `ip-permission.prefix-list-id` - The ID (prefix) of the AWS service
20662
- # from which a security group rule allows inbound access.
20895
+ # * `ip-permission.prefix-list-id` - The ID of a prefix list from which
20896
+ # a security group rule allows inbound access.
20663
20897
  #
20664
20898
  # * `ip-permission.protocol` - The IP protocol for an inbound security
20665
20899
  # group rule (`tcp` \| `udp` \| `icmp` or a protocol number).
@@ -27482,6 +27716,115 @@ module Aws::EC2
27482
27716
  req.send_request(options)
27483
27717
  end
27484
27718
 
27719
+ # Gets information about the resources that are associated with the
27720
+ # specified managed prefix list.
27721
+ #
27722
+ # @option params [Boolean] :dry_run
27723
+ # Checks whether you have the required permissions for the action,
27724
+ # without actually making the request, and provides an error response.
27725
+ # If you have the required permissions, the error response is
27726
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
27727
+ #
27728
+ # @option params [required, String] :prefix_list_id
27729
+ # The ID of the prefix list.
27730
+ #
27731
+ # @option params [Integer] :max_results
27732
+ # The maximum number of results to return with a single call. To
27733
+ # retrieve the remaining results, make another call with the returned
27734
+ # `nextToken` value.
27735
+ #
27736
+ # @option params [String] :next_token
27737
+ # The token for the next page of results.
27738
+ #
27739
+ # @return [Types::GetManagedPrefixListAssociationsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
27740
+ #
27741
+ # * {Types::GetManagedPrefixListAssociationsResult#prefix_list_associations #prefix_list_associations} => Array&lt;Types::PrefixListAssociation&gt;
27742
+ # * {Types::GetManagedPrefixListAssociationsResult#next_token #next_token} => String
27743
+ #
27744
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
27745
+ #
27746
+ # @example Request syntax with placeholder values
27747
+ #
27748
+ # resp = client.get_managed_prefix_list_associations({
27749
+ # dry_run: false,
27750
+ # prefix_list_id: "PrefixListResourceId", # required
27751
+ # max_results: 1,
27752
+ # next_token: "NextToken",
27753
+ # })
27754
+ #
27755
+ # @example Response structure
27756
+ #
27757
+ # resp.prefix_list_associations #=> Array
27758
+ # resp.prefix_list_associations[0].resource_id #=> String
27759
+ # resp.prefix_list_associations[0].resource_owner #=> String
27760
+ # resp.next_token #=> String
27761
+ #
27762
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListAssociations AWS API Documentation
27763
+ #
27764
+ # @overload get_managed_prefix_list_associations(params = {})
27765
+ # @param [Hash] params ({})
27766
+ def get_managed_prefix_list_associations(params = {}, options = {})
27767
+ req = build_request(:get_managed_prefix_list_associations, params)
27768
+ req.send_request(options)
27769
+ end
27770
+
27771
+ # Gets information about the entries for a specified managed prefix
27772
+ # list.
27773
+ #
27774
+ # @option params [Boolean] :dry_run
27775
+ # Checks whether you have the required permissions for the action,
27776
+ # without actually making the request, and provides an error response.
27777
+ # If you have the required permissions, the error response is
27778
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
27779
+ #
27780
+ # @option params [required, String] :prefix_list_id
27781
+ # The ID of the prefix list.
27782
+ #
27783
+ # @option params [Integer] :target_version
27784
+ # The version of the prefix list for which to return the entries. The
27785
+ # default is the current version.
27786
+ #
27787
+ # @option params [Integer] :max_results
27788
+ # The maximum number of results to return with a single call. To
27789
+ # retrieve the remaining results, make another call with the returned
27790
+ # `nextToken` value.
27791
+ #
27792
+ # @option params [String] :next_token
27793
+ # The token for the next page of results.
27794
+ #
27795
+ # @return [Types::GetManagedPrefixListEntriesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
27796
+ #
27797
+ # * {Types::GetManagedPrefixListEntriesResult#entries #entries} => Array&lt;Types::PrefixListEntry&gt;
27798
+ # * {Types::GetManagedPrefixListEntriesResult#next_token #next_token} => String
27799
+ #
27800
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
27801
+ #
27802
+ # @example Request syntax with placeholder values
27803
+ #
27804
+ # resp = client.get_managed_prefix_list_entries({
27805
+ # dry_run: false,
27806
+ # prefix_list_id: "PrefixListResourceId", # required
27807
+ # target_version: 1,
27808
+ # max_results: 1,
27809
+ # next_token: "NextToken",
27810
+ # })
27811
+ #
27812
+ # @example Response structure
27813
+ #
27814
+ # resp.entries #=> Array
27815
+ # resp.entries[0].cidr #=> String
27816
+ # resp.entries[0].description #=> String
27817
+ # resp.next_token #=> String
27818
+ #
27819
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListEntries AWS API Documentation
27820
+ #
27821
+ # @overload get_managed_prefix_list_entries(params = {})
27822
+ # @param [Hash] params ({})
27823
+ def get_managed_prefix_list_entries(params = {}, options = {})
27824
+ req = build_request(:get_managed_prefix_list_entries, params)
27825
+ req.send_request(options)
27826
+ end
27827
+
27485
27828
  # Retrieves the encrypted administrator password for a running Windows
27486
27829
  # instance.
27487
27830
  #
@@ -30156,6 +30499,84 @@ module Aws::EC2
30156
30499
  req.send_request(options)
30157
30500
  end
30158
30501
 
30502
+ # Modifies the specified managed prefix list.
30503
+ #
30504
+ # Adding or removing entries in a prefix list creates a new version of
30505
+ # the prefix list. Changing the name of the prefix list does not affect
30506
+ # the version.
30507
+ #
30508
+ # If you specify a current version number that does not match the true
30509
+ # current version number, the request fails.
30510
+ #
30511
+ # @option params [Boolean] :dry_run
30512
+ # Checks whether you have the required permissions for the action,
30513
+ # without actually making the request, and provides an error response.
30514
+ # If you have the required permissions, the error response is
30515
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
30516
+ #
30517
+ # @option params [required, String] :prefix_list_id
30518
+ # The ID of the prefix list.
30519
+ #
30520
+ # @option params [Integer] :current_version
30521
+ # The current version of the prefix list.
30522
+ #
30523
+ # @option params [String] :prefix_list_name
30524
+ # A name for the prefix list.
30525
+ #
30526
+ # @option params [Array<Types::AddPrefixListEntry>] :add_entries
30527
+ # One or more entries to add to the prefix list.
30528
+ #
30529
+ # @option params [Array<Types::RemovePrefixListEntry>] :remove_entries
30530
+ # One or more entries to remove from the prefix list.
30531
+ #
30532
+ # @return [Types::ModifyManagedPrefixListResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
30533
+ #
30534
+ # * {Types::ModifyManagedPrefixListResult#prefix_list #prefix_list} => Types::ManagedPrefixList
30535
+ #
30536
+ # @example Request syntax with placeholder values
30537
+ #
30538
+ # resp = client.modify_managed_prefix_list({
30539
+ # dry_run: false,
30540
+ # prefix_list_id: "PrefixListResourceId", # required
30541
+ # current_version: 1,
30542
+ # prefix_list_name: "String",
30543
+ # add_entries: [
30544
+ # {
30545
+ # cidr: "String", # required
30546
+ # description: "String",
30547
+ # },
30548
+ # ],
30549
+ # remove_entries: [
30550
+ # {
30551
+ # cidr: "String", # required
30552
+ # },
30553
+ # ],
30554
+ # })
30555
+ #
30556
+ # @example Response structure
30557
+ #
30558
+ # resp.prefix_list.prefix_list_id #=> String
30559
+ # resp.prefix_list.address_family #=> String
30560
+ # resp.prefix_list.state #=> String, one of "create-in-progress", "create-complete", "create-failed", "modify-in-progress", "modify-complete", "modify-failed", "restore-in-progress", "restore-complete", "restore-failed", "delete-in-progress", "delete-complete", "delete-failed"
30561
+ # resp.prefix_list.state_message #=> String
30562
+ # resp.prefix_list.prefix_list_arn #=> String
30563
+ # resp.prefix_list.prefix_list_name #=> String
30564
+ # resp.prefix_list.max_entries #=> Integer
30565
+ # resp.prefix_list.version #=> Integer
30566
+ # resp.prefix_list.tags #=> Array
30567
+ # resp.prefix_list.tags[0].key #=> String
30568
+ # resp.prefix_list.tags[0].value #=> String
30569
+ # resp.prefix_list.owner_id #=> String
30570
+ #
30571
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/ModifyManagedPrefixList AWS API Documentation
30572
+ #
30573
+ # @overload modify_managed_prefix_list(params = {})
30574
+ # @param [Hash] params ({})
30575
+ def modify_managed_prefix_list(params = {}, options = {})
30576
+ req = build_request(:modify_managed_prefix_list, params)
30577
+ req.send_request(options)
30578
+ end
30579
+
30159
30580
  # Modifies the specified network interface attribute. You can specify
30160
30581
  # only one attribute at a time. You can use this action to attach and
30161
30582
  # detach security groups from an existing EC2 instance.
@@ -33442,6 +33863,9 @@ module Aws::EC2
33442
33863
  # that you provide must match the CIDR of an existing route in the
33443
33864
  # table.
33444
33865
  #
33866
+ # @option params [String] :destination_prefix_list_id
33867
+ # The ID of the prefix list for the route.
33868
+ #
33445
33869
  # @option params [Boolean] :dry_run
33446
33870
  # Checks whether you have the required permissions for the action,
33447
33871
  # without actually making the request, and provides an error response.
@@ -33498,6 +33922,7 @@ module Aws::EC2
33498
33922
  # resp = client.replace_route({
33499
33923
  # destination_cidr_block: "String",
33500
33924
  # destination_ipv_6_cidr_block: "String",
33925
+ # destination_prefix_list_id: "PrefixListResourceId",
33501
33926
  # dry_run: false,
33502
33927
  # egress_only_internet_gateway_id: "EgressOnlyInternetGatewayId",
33503
33928
  # gateway_id: "RouteGatewayId",
@@ -34768,6 +35193,61 @@ module Aws::EC2
34768
35193
  req.send_request(options)
34769
35194
  end
34770
35195
 
35196
+ # Restores the entries from a previous version of a managed prefix list
35197
+ # to a new version of the prefix list.
35198
+ #
35199
+ # @option params [Boolean] :dry_run
35200
+ # Checks whether you have the required permissions for the action,
35201
+ # without actually making the request, and provides an error response.
35202
+ # If you have the required permissions, the error response is
35203
+ # `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
35204
+ #
35205
+ # @option params [required, String] :prefix_list_id
35206
+ # The ID of the prefix list.
35207
+ #
35208
+ # @option params [required, Integer] :previous_version
35209
+ # The version to restore.
35210
+ #
35211
+ # @option params [required, Integer] :current_version
35212
+ # The current version number for the prefix list.
35213
+ #
35214
+ # @return [Types::RestoreManagedPrefixListVersionResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
35215
+ #
35216
+ # * {Types::RestoreManagedPrefixListVersionResult#prefix_list #prefix_list} => Types::ManagedPrefixList
35217
+ #
35218
+ # @example Request syntax with placeholder values
35219
+ #
35220
+ # resp = client.restore_managed_prefix_list_version({
35221
+ # dry_run: false,
35222
+ # prefix_list_id: "PrefixListResourceId", # required
35223
+ # previous_version: 1, # required
35224
+ # current_version: 1, # required
35225
+ # })
35226
+ #
35227
+ # @example Response structure
35228
+ #
35229
+ # resp.prefix_list.prefix_list_id #=> String
35230
+ # resp.prefix_list.address_family #=> String
35231
+ # resp.prefix_list.state #=> String, one of "create-in-progress", "create-complete", "create-failed", "modify-in-progress", "modify-complete", "modify-failed", "restore-in-progress", "restore-complete", "restore-failed", "delete-in-progress", "delete-complete", "delete-failed"
35232
+ # resp.prefix_list.state_message #=> String
35233
+ # resp.prefix_list.prefix_list_arn #=> String
35234
+ # resp.prefix_list.prefix_list_name #=> String
35235
+ # resp.prefix_list.max_entries #=> Integer
35236
+ # resp.prefix_list.version #=> Integer
35237
+ # resp.prefix_list.tags #=> Array
35238
+ # resp.prefix_list.tags[0].key #=> String
35239
+ # resp.prefix_list.tags[0].value #=> String
35240
+ # resp.prefix_list.owner_id #=> String
35241
+ #
35242
+ # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/RestoreManagedPrefixListVersion AWS API Documentation
35243
+ #
35244
+ # @overload restore_managed_prefix_list_version(params = {})
35245
+ # @param [Hash] params ({})
35246
+ def restore_managed_prefix_list_version(params = {}, options = {})
35247
+ req = build_request(:restore_managed_prefix_list_version, params)
35248
+ req.send_request(options)
35249
+ end
35250
+
34771
35251
  # Removes an ingress authorization rule from a Client VPN endpoint.
34772
35252
  #
34773
35253
  # @option params [required, String] :client_vpn_endpoint_id
@@ -37137,7 +37617,7 @@ module Aws::EC2
37137
37617
  params: params,
37138
37618
  config: config)
37139
37619
  context[:gem_name] = 'aws-sdk-ec2'
37140
- context[:gem_version] = '1.171.0'
37620
+ context[:gem_version] = '1.172.0'
37141
37621
  Seahorse::Client::Request.new(handlers, context)
37142
37622
  end
37143
37623