aws-sdk-ec2 1.236.0 → 1.241.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2.rb +1 -1
- data/lib/aws-sdk-ec2/client.rb +85 -39
- data/lib/aws-sdk-ec2/client_api.rb +11 -3
- data/lib/aws-sdk-ec2/nat_gateway.rb +7 -0
- data/lib/aws-sdk-ec2/resource.rb +26 -11
- data/lib/aws-sdk-ec2/subnet.rb +9 -0
- data/lib/aws-sdk-ec2/types.rb +97 -42
- data/lib/aws-sdk-ec2/vpc.rb +6 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73880bbc8722151ac769256443ddf0854526af34f345375bee7710154b65db65
|
4
|
+
data.tar.gz: 67c391fcacd196a3e498798ce44f02127d05a507e4d69e075f342f7a5a5ea3fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 995cc5f98ead54cc7cb1fcc825305a6ccd93879150dc6aab0eaa05d183819daea93e2486e1d43757f8a5eb2093ef3b3fccbe54441766804ebca266159e8a7fbb
|
7
|
+
data.tar.gz: 17f4e32d943c6c2f8beb1b9afe8aa697388cafd0db76c5fef2027186a947f92412e47ae58328f6caab0fef01ec23cf0c2edf7b06876b415ff56a29b6765b0a26
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.241.0 (2021-06-10)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - This release adds a new optional parameter connectivityType (public, private) for the CreateNatGateway API. Private NatGateway does not require customers to attach an InternetGateway to the VPC and can be used for communication with other VPCs and on-premise networks.
|
8
|
+
|
9
|
+
1.240.0 (2021-06-01)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* Feature - Added idempotency to CreateNetworkInterface using the ClientToken parameter.
|
13
|
+
|
14
|
+
1.239.0 (2021-05-27)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - This release removes resource ids and tagging support for VPC security group rules.
|
18
|
+
|
19
|
+
1.238.0 (2021-05-26)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release adds resource ids and tagging support for VPC security group rules.
|
23
|
+
|
24
|
+
1.237.0 (2021-05-24)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - This release adds support for creating and managing EC2 On-Demand Capacity Reservations on Outposts.
|
28
|
+
|
4
29
|
1.236.0 (2021-05-12)
|
5
30
|
------------------
|
6
31
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.241.0
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -1682,13 +1682,13 @@ module Aws::EC2
|
|
1682
1682
|
# single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have
|
1683
1683
|
# a prefix length of /64.
|
1684
1684
|
#
|
1685
|
-
# @option params [required, String] :subnet_id
|
1686
|
-
# The ID of your subnet.
|
1687
|
-
#
|
1688
1685
|
# @option params [required, String] :ipv_6_cidr_block
|
1689
1686
|
# The IPv6 CIDR block for your subnet. The subnet must have a /64 prefix
|
1690
1687
|
# length.
|
1691
1688
|
#
|
1689
|
+
# @option params [required, String] :subnet_id
|
1690
|
+
# The ID of your subnet.
|
1691
|
+
#
|
1692
1692
|
# @return [Types::AssociateSubnetCidrBlockResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1693
1693
|
#
|
1694
1694
|
# * {Types::AssociateSubnetCidrBlockResult#ipv_6_cidr_block_association #ipv_6_cidr_block_association} => Types::SubnetIpv6CidrBlockAssociation
|
@@ -1697,8 +1697,8 @@ module Aws::EC2
|
|
1697
1697
|
# @example Request syntax with placeholder values
|
1698
1698
|
#
|
1699
1699
|
# resp = client.associate_subnet_cidr_block({
|
1700
|
-
# subnet_id: "SubnetId", # required
|
1701
1700
|
# ipv_6_cidr_block: "String", # required
|
1701
|
+
# subnet_id: "SubnetId", # required
|
1702
1702
|
# })
|
1703
1703
|
#
|
1704
1704
|
# @example Response structure
|
@@ -3848,6 +3848,10 @@ module Aws::EC2
|
|
3848
3848
|
# If you have the required permissions, the error response is
|
3849
3849
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
3850
3850
|
#
|
3851
|
+
# @option params [String] :outpost_arn
|
3852
|
+
# The Amazon Resource Name (ARN) of the Outpost on which to create the
|
3853
|
+
# Capacity Reservation.
|
3854
|
+
#
|
3851
3855
|
# @return [Types::CreateCapacityReservationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
3852
3856
|
#
|
3853
3857
|
# * {Types::CreateCapacityReservationResult#capacity_reservation #capacity_reservation} => Types::CapacityReservation
|
@@ -3879,6 +3883,7 @@ module Aws::EC2
|
|
3879
3883
|
# },
|
3880
3884
|
# ],
|
3881
3885
|
# dry_run: false,
|
3886
|
+
# outpost_arn: "OutpostArn",
|
3882
3887
|
# })
|
3883
3888
|
#
|
3884
3889
|
# @example Response structure
|
@@ -3904,6 +3909,7 @@ module Aws::EC2
|
|
3904
3909
|
# resp.capacity_reservation.tags #=> Array
|
3905
3910
|
# resp.capacity_reservation.tags[0].key #=> String
|
3906
3911
|
# resp.capacity_reservation.tags[0].value #=> String
|
3912
|
+
# resp.capacity_reservation.outpost_arn #=> String
|
3907
3913
|
#
|
3908
3914
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservation AWS API Documentation
|
3909
3915
|
#
|
@@ -6509,18 +6515,35 @@ module Aws::EC2
|
|
6509
6515
|
req.send_request(options)
|
6510
6516
|
end
|
6511
6517
|
|
6512
|
-
# Creates a NAT gateway in the specified
|
6513
|
-
#
|
6514
|
-
#
|
6515
|
-
#
|
6516
|
-
#
|
6517
|
-
#
|
6518
|
-
#
|
6518
|
+
# Creates a NAT gateway in the specified subnet. This action creates a
|
6519
|
+
# network interface in the specified subnet with a private IP address
|
6520
|
+
# from the IP address range of the subnet. You can create either a
|
6521
|
+
# public NAT gateway or a private NAT gateway.
|
6522
|
+
#
|
6523
|
+
# With a public NAT gateway, internet-bound traffic from a private
|
6524
|
+
# subnet can be routed to the NAT gateway, so that instances in a
|
6525
|
+
# private subnet can connect to the internet.
|
6526
|
+
#
|
6527
|
+
# With a private NAT gateway, private communication is routed across
|
6528
|
+
# VPCs and on-premises networks through a transit gateway or virtual
|
6529
|
+
# private gateway. Common use cases include running large workloads
|
6530
|
+
# behind a small pool of allowlisted IPv4 addresses, preserving private
|
6531
|
+
# IPv4 addresses, and communicating between overlapping networks.
|
6532
|
+
#
|
6533
|
+
# For more information, see [NAT Gateways][1] in the *Amazon Virtual
|
6534
|
+
# Private Cloud User Guide*.
|
6519
6535
|
#
|
6520
6536
|
#
|
6521
6537
|
#
|
6522
6538
|
# [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
|
6523
6539
|
#
|
6540
|
+
# @option params [String] :allocation_id
|
6541
|
+
# \[Public NAT gateways only\] The allocation ID of an Elastic IP
|
6542
|
+
# address to associate with the NAT gateway. You cannot specify an
|
6543
|
+
# Elastic IP address with a private NAT gateway. If the Elastic IP
|
6544
|
+
# address is associated with another resource, you must first
|
6545
|
+
# disassociate it.
|
6546
|
+
#
|
6524
6547
|
# @option params [String] :client_token
|
6525
6548
|
# Unique, case-sensitive identifier that you provide to ensure the
|
6526
6549
|
# idempotency of the request. For more information, see [How to Ensure
|
@@ -6547,10 +6570,9 @@ module Aws::EC2
|
|
6547
6570
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
6548
6571
|
# The tags to assign to the NAT gateway.
|
6549
6572
|
#
|
6550
|
-
# @option params [
|
6551
|
-
#
|
6552
|
-
#
|
6553
|
-
# resource, you must first disassociate it.
|
6573
|
+
# @option params [String] :connectivity_type
|
6574
|
+
# Indicates whether the NAT gateway supports public or private
|
6575
|
+
# connectivity. The default is public connectivity.
|
6554
6576
|
#
|
6555
6577
|
# @return [Types::CreateNatGatewayResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
6556
6578
|
#
|
@@ -6587,6 +6609,7 @@ module Aws::EC2
|
|
6587
6609
|
# @example Request syntax with placeholder values
|
6588
6610
|
#
|
6589
6611
|
# resp = client.create_nat_gateway({
|
6612
|
+
# allocation_id: "AllocationId",
|
6590
6613
|
# client_token: "String",
|
6591
6614
|
# dry_run: false,
|
6592
6615
|
# subnet_id: "SubnetId", # required
|
@@ -6601,7 +6624,7 @@ module Aws::EC2
|
|
6601
6624
|
# ],
|
6602
6625
|
# },
|
6603
6626
|
# ],
|
6604
|
-
#
|
6627
|
+
# connectivity_type: "private", # accepts private, public
|
6605
6628
|
# })
|
6606
6629
|
#
|
6607
6630
|
# @example Response structure
|
@@ -6628,6 +6651,7 @@ module Aws::EC2
|
|
6628
6651
|
# resp.nat_gateway.tags #=> Array
|
6629
6652
|
# resp.nat_gateway.tags[0].key #=> String
|
6630
6653
|
# resp.nat_gateway.tags[0].value #=> String
|
6654
|
+
# resp.nat_gateway.connectivity_type #=> String, one of "private", "public"
|
6631
6655
|
#
|
6632
6656
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway AWS API Documentation
|
6633
6657
|
#
|
@@ -7057,9 +7081,22 @@ module Aws::EC2
|
|
7057
7081
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
7058
7082
|
# The tags to apply to the new network interface.
|
7059
7083
|
#
|
7084
|
+
# @option params [String] :client_token
|
7085
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
7086
|
+
# idempotency of the request. For more information, see [Ensuring
|
7087
|
+
# Idempotency][1].
|
7088
|
+
#
|
7089
|
+
# **A suitable default value is auto-generated.** You should normally
|
7090
|
+
# not need to pass this option.**
|
7091
|
+
#
|
7092
|
+
#
|
7093
|
+
#
|
7094
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
7095
|
+
#
|
7060
7096
|
# @return [Types::CreateNetworkInterfaceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7061
7097
|
#
|
7062
7098
|
# * {Types::CreateNetworkInterfaceResult#network_interface #network_interface} => Types::NetworkInterface
|
7099
|
+
# * {Types::CreateNetworkInterfaceResult#client_token #client_token} => String
|
7063
7100
|
#
|
7064
7101
|
#
|
7065
7102
|
# @example Example: To create a network interface
|
@@ -7139,6 +7176,7 @@ module Aws::EC2
|
|
7139
7176
|
# ],
|
7140
7177
|
# },
|
7141
7178
|
# ],
|
7179
|
+
# client_token: "String",
|
7142
7180
|
# })
|
7143
7181
|
#
|
7144
7182
|
# @example Response structure
|
@@ -7192,6 +7230,7 @@ module Aws::EC2
|
|
7192
7230
|
# resp.network_interface.tag_set[0].key #=> String
|
7193
7231
|
# resp.network_interface.tag_set[0].value #=> String
|
7194
7232
|
# resp.network_interface.vpc_id #=> String
|
7233
|
+
# resp.client_token #=> String
|
7195
7234
|
#
|
7196
7235
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface AWS API Documentation
|
7197
7236
|
#
|
@@ -8483,6 +8522,12 @@ module Aws::EC2
|
|
8483
8522
|
# @option params [String] :availability_zone_id
|
8484
8523
|
# The AZ ID or the Local Zone ID of the subnet.
|
8485
8524
|
#
|
8525
|
+
# @option params [required, String] :cidr_block
|
8526
|
+
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
8527
|
+
# `10.0.0.0/24`. We modify the specified CIDR block to its canonical
|
8528
|
+
# form; for example, if you specify `100.68.0.18/18`, we modify it to
|
8529
|
+
# `100.68.0.0/18`.
|
8530
|
+
#
|
8486
8531
|
# @option params [String] :ipv_6_cidr_block
|
8487
8532
|
# The IPv6 network range for the subnet, in CIDR notation. The subnet
|
8488
8533
|
# size must use a /64 prefix length.
|
@@ -8501,12 +8546,6 @@ module Aws::EC2
|
|
8501
8546
|
# If you have the required permissions, the error response is
|
8502
8547
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
8503
8548
|
#
|
8504
|
-
# @option params [required, String] :cidr_block
|
8505
|
-
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
8506
|
-
# `10.0.0.0/24`. We modify the specified CIDR block to its canonical
|
8507
|
-
# form; for example, if you specify `100.68.0.18/18`, we modify it to
|
8508
|
-
# `100.68.0.0/18`.
|
8509
|
-
#
|
8510
8549
|
# @return [Types::CreateSubnetResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
8511
8550
|
#
|
8512
8551
|
# * {Types::CreateSubnetResult#subnet #subnet} => Types::Subnet
|
@@ -8550,11 +8589,11 @@ module Aws::EC2
|
|
8550
8589
|
# ],
|
8551
8590
|
# availability_zone: "String",
|
8552
8591
|
# availability_zone_id: "String",
|
8592
|
+
# cidr_block: "String", # required
|
8553
8593
|
# ipv_6_cidr_block: "String",
|
8554
8594
|
# outpost_arn: "String",
|
8555
8595
|
# vpc_id: "VpcId", # required
|
8556
8596
|
# dry_run: false,
|
8557
|
-
# cidr_block: "String", # required
|
8558
8597
|
# })
|
8559
8598
|
#
|
8560
8599
|
# @example Response structure
|
@@ -11867,7 +11906,7 @@ module Aws::EC2
|
|
11867
11906
|
req.send_request(options)
|
11868
11907
|
end
|
11869
11908
|
|
11870
|
-
# Deletes the specified NAT gateway. Deleting a NAT gateway
|
11909
|
+
# Deletes the specified NAT gateway. Deleting a public NAT gateway
|
11871
11910
|
# disassociates its Elastic IP address, but does not release the address
|
11872
11911
|
# from your account. Deleting a NAT gateway does not delete any NAT
|
11873
11912
|
# gateway routes in your route tables.
|
@@ -14599,6 +14638,9 @@ module Aws::EC2
|
|
14599
14638
|
# * `dedicated` - The Capacity Reservation is created on single-tenant
|
14600
14639
|
# hardware that is dedicated to a single AWS account.
|
14601
14640
|
#
|
14641
|
+
# * `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost on
|
14642
|
+
# which the Capacity Reservation was created.
|
14643
|
+
#
|
14602
14644
|
# * `state` - The current state of the Capacity Reservation. A Capacity
|
14603
14645
|
# Reservation can be in one of the following states:
|
14604
14646
|
#
|
@@ -14707,6 +14749,7 @@ module Aws::EC2
|
|
14707
14749
|
# resp.capacity_reservations[0].tags #=> Array
|
14708
14750
|
# resp.capacity_reservations[0].tags[0].key #=> String
|
14709
14751
|
# resp.capacity_reservations[0].tags[0].value #=> String
|
14752
|
+
# resp.capacity_reservations[0].outpost_arn #=> String
|
14710
14753
|
#
|
14711
14754
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DescribeCapacityReservations AWS API Documentation
|
14712
14755
|
#
|
@@ -20518,6 +20561,7 @@ module Aws::EC2
|
|
20518
20561
|
# resp.nat_gateways[0].tags #=> Array
|
20519
20562
|
# resp.nat_gateways[0].tags[0].key #=> String
|
20520
20563
|
# resp.nat_gateways[0].tags[0].value #=> String
|
20564
|
+
# resp.nat_gateways[0].connectivity_type #=> String, one of "private", "public"
|
20521
20565
|
# resp.next_token #=> String
|
20522
20566
|
#
|
20523
20567
|
#
|
@@ -22160,11 +22204,12 @@ module Aws::EC2
|
|
22160
22204
|
# holders and are for use with Amazon VPC (`Linux/UNIX` \| `Linux/UNIX
|
22161
22205
|
# (Amazon VPC)` \| `SUSE Linux` \| `SUSE Linux (Amazon VPC)` \| `Red
|
22162
22206
|
# Hat Enterprise Linux` \| `Red Hat Enterprise Linux (Amazon VPC)` \|
|
22163
|
-
# `
|
22164
|
-
#
|
22165
|
-
# `Windows with SQL Server
|
22166
|
-
#
|
22167
|
-
# with SQL Server Enterprise
|
22207
|
+
# `Red Hat Enterprise Linux with HA (Amazon VPC)` \| `Windows` \|
|
22208
|
+
# `Windows (Amazon VPC)` \| `Windows with SQL Server Standard` \|
|
22209
|
+
# `Windows with SQL Server Standard (Amazon VPC)` \| `Windows with SQL
|
22210
|
+
# Server Web` \| `Windows with SQL Server Web (Amazon VPC)` \|
|
22211
|
+
# `Windows with SQL Server Enterprise` \| `Windows with SQL Server
|
22212
|
+
# Enterprise (Amazon VPC)`).
|
22168
22213
|
#
|
22169
22214
|
# * `reserved-instances-id` - The ID of the Reserved Instance.
|
22170
22215
|
#
|
@@ -22510,11 +22555,12 @@ module Aws::EC2
|
|
22510
22555
|
# holders and are for use with Amazon VPC. (`Linux/UNIX` \|
|
22511
22556
|
# `Linux/UNIX (Amazon VPC)` \| `SUSE Linux` \| `SUSE Linux (Amazon
|
22512
22557
|
# VPC)` \| `Red Hat Enterprise Linux` \| `Red Hat Enterprise Linux
|
22513
|
-
# (Amazon VPC)` \| `
|
22514
|
-
#
|
22515
|
-
#
|
22516
|
-
# Server Web
|
22517
|
-
# `Windows with SQL Server Enterprise
|
22558
|
+
# (Amazon VPC)` \| `Red Hat Enterprise Linux with HA (Amazon VPC)` \|
|
22559
|
+
# `Windows` \| `Windows (Amazon VPC)` \| `Windows with SQL Server
|
22560
|
+
# Standard` \| `Windows with SQL Server Standard (Amazon VPC)` \|
|
22561
|
+
# `Windows with SQL Server Web` \| ` Windows with SQL Server Web
|
22562
|
+
# (Amazon VPC)` \| `Windows with SQL Server Enterprise` \| `Windows
|
22563
|
+
# with SQL Server Enterprise (Amazon VPC)`)
|
22518
22564
|
#
|
22519
22565
|
# * `reserved-instances-offering-id` - The Reserved Instances offering
|
22520
22566
|
# ID.
|
@@ -30836,7 +30882,7 @@ module Aws::EC2
|
|
30836
30882
|
#
|
30837
30883
|
# @return [Types::GetManagedPrefixListEntriesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
30838
30884
|
#
|
30839
|
-
# * {Types::GetManagedPrefixListEntriesResult#entries #entries} => Array<Types::PrefixListEntry>
|
30885
|
+
# * {Types::GetManagedPrefixListEntriesResult#entries #data.entries} => Array<Types::PrefixListEntry> (This method conflicts with a method on Response, call it through the data member)
|
30840
30886
|
# * {Types::GetManagedPrefixListEntriesResult#next_token #next_token} => String
|
30841
30887
|
#
|
30842
30888
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
@@ -30853,9 +30899,9 @@ module Aws::EC2
|
|
30853
30899
|
#
|
30854
30900
|
# @example Response structure
|
30855
30901
|
#
|
30856
|
-
# resp.entries #=> Array
|
30857
|
-
# resp.entries[0].cidr #=> String
|
30858
|
-
# resp.entries[0].description #=> String
|
30902
|
+
# resp.data.entries #=> Array
|
30903
|
+
# resp.data.entries[0].cidr #=> String
|
30904
|
+
# resp.data.entries[0].description #=> String
|
30859
30905
|
# resp.next_token #=> String
|
30860
30906
|
#
|
30861
30907
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListEntries AWS API Documentation
|
@@ -41869,7 +41915,7 @@ module Aws::EC2
|
|
41869
41915
|
params: params,
|
41870
41916
|
config: config)
|
41871
41917
|
context[:gem_name] = 'aws-sdk-ec2'
|
41872
|
-
context[:gem_version] = '1.
|
41918
|
+
context[:gem_version] = '1.241.0'
|
41873
41919
|
Seahorse::Client::Request.new(handlers, context)
|
41874
41920
|
end
|
41875
41921
|
|
@@ -271,6 +271,7 @@ module Aws::EC2
|
|
271
271
|
ConnectionNotificationSet = Shapes::ListShape.new(name: 'ConnectionNotificationSet')
|
272
272
|
ConnectionNotificationState = Shapes::StringShape.new(name: 'ConnectionNotificationState')
|
273
273
|
ConnectionNotificationType = Shapes::StringShape.new(name: 'ConnectionNotificationType')
|
274
|
+
ConnectivityType = Shapes::StringShape.new(name: 'ConnectivityType')
|
274
275
|
ContainerFormat = Shapes::StringShape.new(name: 'ContainerFormat')
|
275
276
|
ConversionIdStringList = Shapes::ListShape.new(name: 'ConversionIdStringList')
|
276
277
|
ConversionTask = Shapes::StructureShape.new(name: 'ConversionTask')
|
@@ -1597,6 +1598,7 @@ module Aws::EC2
|
|
1597
1598
|
OnDemandOptions = Shapes::StructureShape.new(name: 'OnDemandOptions')
|
1598
1599
|
OnDemandOptionsRequest = Shapes::StructureShape.new(name: 'OnDemandOptionsRequest')
|
1599
1600
|
OperationType = Shapes::StringShape.new(name: 'OperationType')
|
1601
|
+
OutpostArn = Shapes::StringShape.new(name: 'OutpostArn')
|
1600
1602
|
OwnerStringList = Shapes::ListShape.new(name: 'OwnerStringList')
|
1601
1603
|
PartitionLoadFrequency = Shapes::StringShape.new(name: 'PartitionLoadFrequency')
|
1602
1604
|
PathComponent = Shapes::StructureShape.new(name: 'PathComponent')
|
@@ -2560,8 +2562,8 @@ module Aws::EC2
|
|
2560
2562
|
AssociateRouteTableResult.add_member(:association_state, Shapes::ShapeRef.new(shape: RouteTableAssociationState, location_name: "associationState"))
|
2561
2563
|
AssociateRouteTableResult.struct_class = Types::AssociateRouteTableResult
|
2562
2564
|
|
2563
|
-
AssociateSubnetCidrBlockRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
|
2564
2565
|
AssociateSubnetCidrBlockRequest.add_member(:ipv_6_cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "ipv6CidrBlock"))
|
2566
|
+
AssociateSubnetCidrBlockRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
|
2565
2567
|
AssociateSubnetCidrBlockRequest.struct_class = Types::AssociateSubnetCidrBlockRequest
|
2566
2568
|
|
2567
2569
|
AssociateSubnetCidrBlockResult.add_member(:ipv_6_cidr_block_association, Shapes::ShapeRef.new(shape: SubnetIpv6CidrBlockAssociation, location_name: "ipv6CidrBlockAssociation"))
|
@@ -2891,6 +2893,7 @@ module Aws::EC2
|
|
2891
2893
|
CapacityReservation.add_member(:instance_match_criteria, Shapes::ShapeRef.new(shape: InstanceMatchCriteria, location_name: "instanceMatchCriteria"))
|
2892
2894
|
CapacityReservation.add_member(:create_date, Shapes::ShapeRef.new(shape: DateTime, location_name: "createDate"))
|
2893
2895
|
CapacityReservation.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
2896
|
+
CapacityReservation.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: OutpostArn, location_name: "outpostArn"))
|
2894
2897
|
CapacityReservation.struct_class = Types::CapacityReservation
|
2895
2898
|
|
2896
2899
|
CapacityReservationGroup.add_member(:group_arn, Shapes::ShapeRef.new(shape: String, location_name: "groupArn"))
|
@@ -3211,6 +3214,7 @@ module Aws::EC2
|
|
3211
3214
|
CreateCapacityReservationRequest.add_member(:instance_match_criteria, Shapes::ShapeRef.new(shape: InstanceMatchCriteria, location_name: "InstanceMatchCriteria"))
|
3212
3215
|
CreateCapacityReservationRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecifications"))
|
3213
3216
|
CreateCapacityReservationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
3217
|
+
CreateCapacityReservationRequest.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: OutpostArn, location_name: "OutpostArn"))
|
3214
3218
|
CreateCapacityReservationRequest.struct_class = Types::CreateCapacityReservationRequest
|
3215
3219
|
|
3216
3220
|
CreateCapacityReservationResult.add_member(:capacity_reservation, Shapes::ShapeRef.new(shape: CapacityReservation, location_name: "capacityReservation"))
|
@@ -3460,11 +3464,12 @@ module Aws::EC2
|
|
3460
3464
|
CreateManagedPrefixListResult.add_member(:prefix_list, Shapes::ShapeRef.new(shape: ManagedPrefixList, location_name: "prefixList"))
|
3461
3465
|
CreateManagedPrefixListResult.struct_class = Types::CreateManagedPrefixListResult
|
3462
3466
|
|
3467
|
+
CreateNatGatewayRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
|
3463
3468
|
CreateNatGatewayRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
3464
3469
|
CreateNatGatewayRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
3465
3470
|
CreateNatGatewayRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "SubnetId"))
|
3466
3471
|
CreateNatGatewayRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3467
|
-
CreateNatGatewayRequest.add_member(:
|
3472
|
+
CreateNatGatewayRequest.add_member(:connectivity_type, Shapes::ShapeRef.new(shape: ConnectivityType, location_name: "ConnectivityType"))
|
3468
3473
|
CreateNatGatewayRequest.struct_class = Types::CreateNatGatewayRequest
|
3469
3474
|
|
3470
3475
|
CreateNatGatewayResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
|
@@ -3526,9 +3531,11 @@ module Aws::EC2
|
|
3526
3531
|
CreateNetworkInterfaceRequest.add_member(:interface_type, Shapes::ShapeRef.new(shape: NetworkInterfaceCreationType, location_name: "InterfaceType"))
|
3527
3532
|
CreateNetworkInterfaceRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
|
3528
3533
|
CreateNetworkInterfaceRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3534
|
+
CreateNetworkInterfaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
3529
3535
|
CreateNetworkInterfaceRequest.struct_class = Types::CreateNetworkInterfaceRequest
|
3530
3536
|
|
3531
3537
|
CreateNetworkInterfaceResult.add_member(:network_interface, Shapes::ShapeRef.new(shape: NetworkInterface, location_name: "networkInterface"))
|
3538
|
+
CreateNetworkInterfaceResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
|
3532
3539
|
CreateNetworkInterfaceResult.struct_class = Types::CreateNetworkInterfaceResult
|
3533
3540
|
|
3534
3541
|
CreatePlacementGroupRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
@@ -3647,11 +3654,11 @@ module Aws::EC2
|
|
3647
3654
|
CreateSubnetRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3648
3655
|
CreateSubnetRequest.add_member(:availability_zone, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZone"))
|
3649
3656
|
CreateSubnetRequest.add_member(:availability_zone_id, Shapes::ShapeRef.new(shape: String, location_name: "AvailabilityZoneId"))
|
3657
|
+
CreateSubnetRequest.add_member(:cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CidrBlock"))
|
3650
3658
|
CreateSubnetRequest.add_member(:ipv_6_cidr_block, Shapes::ShapeRef.new(shape: String, location_name: "Ipv6CidrBlock"))
|
3651
3659
|
CreateSubnetRequest.add_member(:outpost_arn, Shapes::ShapeRef.new(shape: String, location_name: "OutpostArn"))
|
3652
3660
|
CreateSubnetRequest.add_member(:vpc_id, Shapes::ShapeRef.new(shape: VpcId, required: true, location_name: "VpcId"))
|
3653
3661
|
CreateSubnetRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
3654
|
-
CreateSubnetRequest.add_member(:cidr_block, Shapes::ShapeRef.new(shape: String, required: true, location_name: "CidrBlock"))
|
3655
3662
|
CreateSubnetRequest.struct_class = Types::CreateSubnetRequest
|
3656
3663
|
|
3657
3664
|
CreateSubnetResult.add_member(:subnet, Shapes::ShapeRef.new(shape: Subnet, location_name: "subnet"))
|
@@ -8387,6 +8394,7 @@ module Aws::EC2
|
|
8387
8394
|
NatGateway.add_member(:subnet_id, Shapes::ShapeRef.new(shape: String, location_name: "subnetId"))
|
8388
8395
|
NatGateway.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "vpcId"))
|
8389
8396
|
NatGateway.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
8397
|
+
NatGateway.add_member(:connectivity_type, Shapes::ShapeRef.new(shape: ConnectivityType, location_name: "connectivityType"))
|
8390
8398
|
NatGateway.struct_class = Types::NatGateway
|
8391
8399
|
|
8392
8400
|
NatGatewayAddress.add_member(:allocation_id, Shapes::ShapeRef.new(shape: String, location_name: "allocationId"))
|
@@ -142,6 +142,13 @@ module Aws::EC2
|
|
142
142
|
data[:tags]
|
143
143
|
end
|
144
144
|
|
145
|
+
# Indicates whether the NAT gateway supports public or private
|
146
|
+
# connectivity.
|
147
|
+
# @return [String]
|
148
|
+
def connectivity_type
|
149
|
+
data[:connectivity_type]
|
150
|
+
end
|
151
|
+
|
145
152
|
# @!endgroup
|
146
153
|
|
147
154
|
# @return [Client]
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -620,6 +620,7 @@ module Aws::EC2
|
|
620
620
|
# @example Request syntax with placeholder values
|
621
621
|
#
|
622
622
|
# natgateway = ec2.create_nat_gateway({
|
623
|
+
# allocation_id: "AllocationId",
|
623
624
|
# client_token: "String",
|
624
625
|
# dry_run: false,
|
625
626
|
# subnet_id: "SubnetId", # required
|
@@ -634,9 +635,15 @@ module Aws::EC2
|
|
634
635
|
# ],
|
635
636
|
# },
|
636
637
|
# ],
|
637
|
-
#
|
638
|
+
# connectivity_type: "private", # accepts private, public
|
638
639
|
# })
|
639
640
|
# @param [Hash] options ({})
|
641
|
+
# @option options [String] :allocation_id
|
642
|
+
# \[Public NAT gateways only\] The allocation ID of an Elastic IP
|
643
|
+
# address to associate with the NAT gateway. You cannot specify an
|
644
|
+
# Elastic IP address with a private NAT gateway. If the Elastic IP
|
645
|
+
# address is associated with another resource, you must first
|
646
|
+
# disassociate it.
|
640
647
|
# @option options [String] :client_token
|
641
648
|
# Unique, case-sensitive identifier that you provide to ensure the
|
642
649
|
# idempotency of the request. For more information, see [How to Ensure
|
@@ -656,10 +663,9 @@ module Aws::EC2
|
|
656
663
|
# The subnet in which to create the NAT gateway.
|
657
664
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
658
665
|
# The tags to assign to the NAT gateway.
|
659
|
-
# @option options [
|
660
|
-
#
|
661
|
-
#
|
662
|
-
# resource, you must first disassociate it.
|
666
|
+
# @option options [String] :connectivity_type
|
667
|
+
# Indicates whether the NAT gateway supports public or private
|
668
|
+
# connectivity. The default is public connectivity.
|
663
669
|
# @return [NatGateway]
|
664
670
|
def create_nat_gateway(options = {})
|
665
671
|
resp = @client.create_nat_gateway(options)
|
@@ -740,6 +746,7 @@ module Aws::EC2
|
|
740
746
|
# ],
|
741
747
|
# },
|
742
748
|
# ],
|
749
|
+
# client_token: "String",
|
743
750
|
# })
|
744
751
|
# @param [Hash] options ({})
|
745
752
|
# @option options [String] :description
|
@@ -796,6 +803,14 @@ module Aws::EC2
|
|
796
803
|
# The ID of the subnet to associate with the network interface.
|
797
804
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
798
805
|
# The tags to apply to the new network interface.
|
806
|
+
# @option options [String] :client_token
|
807
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
808
|
+
# idempotency of the request. For more information, see [Ensuring
|
809
|
+
# Idempotency][1].
|
810
|
+
#
|
811
|
+
#
|
812
|
+
#
|
813
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
799
814
|
# @return [NetworkInterface]
|
800
815
|
def create_network_interface(options = {})
|
801
816
|
resp = @client.create_network_interface(options)
|
@@ -1023,11 +1038,11 @@ module Aws::EC2
|
|
1023
1038
|
# ],
|
1024
1039
|
# availability_zone: "String",
|
1025
1040
|
# availability_zone_id: "String",
|
1041
|
+
# cidr_block: "String", # required
|
1026
1042
|
# ipv_6_cidr_block: "String",
|
1027
1043
|
# outpost_arn: "String",
|
1028
1044
|
# vpc_id: "VpcId", # required
|
1029
1045
|
# dry_run: false,
|
1030
|
-
# cidr_block: "String", # required
|
1031
1046
|
# })
|
1032
1047
|
# @param [Hash] options ({})
|
1033
1048
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
@@ -1052,6 +1067,11 @@ module Aws::EC2
|
|
1052
1067
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
|
1053
1068
|
# @option options [String] :availability_zone_id
|
1054
1069
|
# The AZ ID or the Local Zone ID of the subnet.
|
1070
|
+
# @option options [required, String] :cidr_block
|
1071
|
+
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
1072
|
+
# `10.0.0.0/24`. We modify the specified CIDR block to its canonical
|
1073
|
+
# form; for example, if you specify `100.68.0.18/18`, we modify it to
|
1074
|
+
# `100.68.0.0/18`.
|
1055
1075
|
# @option options [String] :ipv_6_cidr_block
|
1056
1076
|
# The IPv6 network range for the subnet, in CIDR notation. The subnet
|
1057
1077
|
# size must use a /64 prefix length.
|
@@ -1066,11 +1086,6 @@ module Aws::EC2
|
|
1066
1086
|
# without actually making the request, and provides an error response.
|
1067
1087
|
# If you have the required permissions, the error response is
|
1068
1088
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1069
|
-
# @option options [required, String] :cidr_block
|
1070
|
-
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
1071
|
-
# `10.0.0.0/24`. We modify the specified CIDR block to its canonical
|
1072
|
-
# form; for example, if you specify `100.68.0.18/18`, we modify it to
|
1073
|
-
# `100.68.0.0/18`.
|
1074
1089
|
# @return [Subnet]
|
1075
1090
|
def create_subnet(options = {})
|
1076
1091
|
resp = @client.create_subnet(options)
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -766,6 +766,7 @@ module Aws::EC2
|
|
766
766
|
# ],
|
767
767
|
# },
|
768
768
|
# ],
|
769
|
+
# client_token: "String",
|
769
770
|
# })
|
770
771
|
# @param [Hash] options ({})
|
771
772
|
# @option options [String] :description
|
@@ -820,6 +821,14 @@ module Aws::EC2
|
|
820
821
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html
|
821
822
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
822
823
|
# The tags to apply to the new network interface.
|
824
|
+
# @option options [String] :client_token
|
825
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
826
|
+
# idempotency of the request. For more information, see [Ensuring
|
827
|
+
# Idempotency][1].
|
828
|
+
#
|
829
|
+
#
|
830
|
+
#
|
831
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
823
832
|
# @return [NetworkInterface]
|
824
833
|
def create_network_interface(options = {})
|
825
834
|
options = options.merge(subnet_id: @id)
|
data/lib/aws-sdk-ec2/types.rb
CHANGED
@@ -1647,24 +1647,24 @@ module Aws::EC2
|
|
1647
1647
|
# data as a hash:
|
1648
1648
|
#
|
1649
1649
|
# {
|
1650
|
-
# subnet_id: "SubnetId", # required
|
1651
1650
|
# ipv_6_cidr_block: "String", # required
|
1651
|
+
# subnet_id: "SubnetId", # required
|
1652
1652
|
# }
|
1653
1653
|
#
|
1654
|
-
# @!attribute [rw] subnet_id
|
1655
|
-
# The ID of your subnet.
|
1656
|
-
# @return [String]
|
1657
|
-
#
|
1658
1654
|
# @!attribute [rw] ipv_6_cidr_block
|
1659
1655
|
# The IPv6 CIDR block for your subnet. The subnet must have a /64
|
1660
1656
|
# prefix length.
|
1661
1657
|
# @return [String]
|
1662
1658
|
#
|
1659
|
+
# @!attribute [rw] subnet_id
|
1660
|
+
# The ID of your subnet.
|
1661
|
+
# @return [String]
|
1662
|
+
#
|
1663
1663
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/AssociateSubnetCidrBlockRequest AWS API Documentation
|
1664
1664
|
#
|
1665
1665
|
class AssociateSubnetCidrBlockRequest < Struct.new(
|
1666
|
-
:
|
1667
|
-
:
|
1666
|
+
:ipv_6_cidr_block,
|
1667
|
+
:subnet_id)
|
1668
1668
|
SENSITIVE = []
|
1669
1669
|
include Aws::Structure
|
1670
1670
|
end
|
@@ -3588,6 +3588,11 @@ module Aws::EC2
|
|
3588
3588
|
# Any tags assigned to the Capacity Reservation.
|
3589
3589
|
# @return [Array<Types::Tag>]
|
3590
3590
|
#
|
3591
|
+
# @!attribute [rw] outpost_arn
|
3592
|
+
# The Amazon Resource Name (ARN) of the Outpost on which the Capacity
|
3593
|
+
# Reservation was created.
|
3594
|
+
# @return [String]
|
3595
|
+
#
|
3591
3596
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CapacityReservation AWS API Documentation
|
3592
3597
|
#
|
3593
3598
|
class CapacityReservation < Struct.new(
|
@@ -3609,7 +3614,8 @@ module Aws::EC2
|
|
3609
3614
|
:end_date_type,
|
3610
3615
|
:instance_match_criteria,
|
3611
3616
|
:create_date,
|
3612
|
-
:tags
|
3617
|
+
:tags,
|
3618
|
+
:outpost_arn)
|
3613
3619
|
SENSITIVE = []
|
3614
3620
|
include Aws::Structure
|
3615
3621
|
end
|
@@ -5385,6 +5391,7 @@ module Aws::EC2
|
|
5385
5391
|
# },
|
5386
5392
|
# ],
|
5387
5393
|
# dry_run: false,
|
5394
|
+
# outpost_arn: "OutpostArn",
|
5388
5395
|
# }
|
5389
5396
|
#
|
5390
5397
|
# @!attribute [rw] client_token
|
@@ -5507,6 +5514,11 @@ module Aws::EC2
|
|
5507
5514
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
5508
5515
|
# @return [Boolean]
|
5509
5516
|
#
|
5517
|
+
# @!attribute [rw] outpost_arn
|
5518
|
+
# The Amazon Resource Name (ARN) of the Outpost on which to create the
|
5519
|
+
# Capacity Reservation.
|
5520
|
+
# @return [String]
|
5521
|
+
#
|
5510
5522
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateCapacityReservationRequest AWS API Documentation
|
5511
5523
|
#
|
5512
5524
|
class CreateCapacityReservationRequest < Struct.new(
|
@@ -5523,7 +5535,8 @@ module Aws::EC2
|
|
5523
5535
|
:end_date_type,
|
5524
5536
|
:instance_match_criteria,
|
5525
5537
|
:tag_specifications,
|
5526
|
-
:dry_run
|
5538
|
+
:dry_run,
|
5539
|
+
:outpost_arn)
|
5527
5540
|
SENSITIVE = []
|
5528
5541
|
include Aws::Structure
|
5529
5542
|
end
|
@@ -7795,6 +7808,7 @@ module Aws::EC2
|
|
7795
7808
|
# data as a hash:
|
7796
7809
|
#
|
7797
7810
|
# {
|
7811
|
+
# allocation_id: "AllocationId",
|
7798
7812
|
# client_token: "String",
|
7799
7813
|
# dry_run: false,
|
7800
7814
|
# subnet_id: "SubnetId", # required
|
@@ -7809,9 +7823,17 @@ module Aws::EC2
|
|
7809
7823
|
# ],
|
7810
7824
|
# },
|
7811
7825
|
# ],
|
7812
|
-
#
|
7826
|
+
# connectivity_type: "private", # accepts private, public
|
7813
7827
|
# }
|
7814
7828
|
#
|
7829
|
+
# @!attribute [rw] allocation_id
|
7830
|
+
# \[Public NAT gateways only\] The allocation ID of an Elastic IP
|
7831
|
+
# address to associate with the NAT gateway. You cannot specify an
|
7832
|
+
# Elastic IP address with a private NAT gateway. If the Elastic IP
|
7833
|
+
# address is associated with another resource, you must first
|
7834
|
+
# disassociate it.
|
7835
|
+
# @return [String]
|
7836
|
+
#
|
7815
7837
|
# @!attribute [rw] client_token
|
7816
7838
|
# Unique, case-sensitive identifier that you provide to ensure the
|
7817
7839
|
# idempotency of the request. For more information, see [How to Ensure
|
@@ -7842,20 +7864,20 @@ module Aws::EC2
|
|
7842
7864
|
# The tags to assign to the NAT gateway.
|
7843
7865
|
# @return [Array<Types::TagSpecification>]
|
7844
7866
|
#
|
7845
|
-
# @!attribute [rw]
|
7846
|
-
#
|
7847
|
-
#
|
7848
|
-
# resource, you must first disassociate it.
|
7867
|
+
# @!attribute [rw] connectivity_type
|
7868
|
+
# Indicates whether the NAT gateway supports public or private
|
7869
|
+
# connectivity. The default is public connectivity.
|
7849
7870
|
# @return [String]
|
7850
7871
|
#
|
7851
7872
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayRequest AWS API Documentation
|
7852
7873
|
#
|
7853
7874
|
class CreateNatGatewayRequest < Struct.new(
|
7875
|
+
:allocation_id,
|
7854
7876
|
:client_token,
|
7855
7877
|
:dry_run,
|
7856
7878
|
:subnet_id,
|
7857
7879
|
:tag_specifications,
|
7858
|
-
:
|
7880
|
+
:connectivity_type)
|
7859
7881
|
SENSITIVE = []
|
7860
7882
|
include Aws::Structure
|
7861
7883
|
end
|
@@ -8237,6 +8259,7 @@ module Aws::EC2
|
|
8237
8259
|
# ],
|
8238
8260
|
# },
|
8239
8261
|
# ],
|
8262
|
+
# client_token: "String",
|
8240
8263
|
# }
|
8241
8264
|
#
|
8242
8265
|
# @!attribute [rw] description
|
@@ -8316,6 +8339,19 @@ module Aws::EC2
|
|
8316
8339
|
# The tags to apply to the new network interface.
|
8317
8340
|
# @return [Array<Types::TagSpecification>]
|
8318
8341
|
#
|
8342
|
+
# @!attribute [rw] client_token
|
8343
|
+
# Unique, case-sensitive identifier that you provide to ensure the
|
8344
|
+
# idempotency of the request. For more information, see [Ensuring
|
8345
|
+
# Idempotency][1].
|
8346
|
+
#
|
8347
|
+
# **A suitable default value is auto-generated.** You should normally
|
8348
|
+
# not need to pass this option.
|
8349
|
+
#
|
8350
|
+
#
|
8351
|
+
#
|
8352
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Run_Instance_Idempotency.html
|
8353
|
+
# @return [String]
|
8354
|
+
#
|
8319
8355
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceRequest AWS API Documentation
|
8320
8356
|
#
|
8321
8357
|
class CreateNetworkInterfaceRequest < Struct.new(
|
@@ -8329,7 +8365,8 @@ module Aws::EC2
|
|
8329
8365
|
:secondary_private_ip_address_count,
|
8330
8366
|
:interface_type,
|
8331
8367
|
:subnet_id,
|
8332
|
-
:tag_specifications
|
8368
|
+
:tag_specifications,
|
8369
|
+
:client_token)
|
8333
8370
|
SENSITIVE = []
|
8334
8371
|
include Aws::Structure
|
8335
8372
|
end
|
@@ -8340,10 +8377,16 @@ module Aws::EC2
|
|
8340
8377
|
# Information about the network interface.
|
8341
8378
|
# @return [Types::NetworkInterface]
|
8342
8379
|
#
|
8380
|
+
# @!attribute [rw] client_token
|
8381
|
+
# The token to use to retrieve the next page of results. This value is
|
8382
|
+
# `null` when there are no more results to return.
|
8383
|
+
# @return [String]
|
8384
|
+
#
|
8343
8385
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceResult AWS API Documentation
|
8344
8386
|
#
|
8345
8387
|
class CreateNetworkInterfaceResult < Struct.new(
|
8346
|
-
:network_interface
|
8388
|
+
:network_interface,
|
8389
|
+
:client_token)
|
8347
8390
|
SENSITIVE = []
|
8348
8391
|
include Aws::Structure
|
8349
8392
|
end
|
@@ -9231,11 +9274,11 @@ module Aws::EC2
|
|
9231
9274
|
# ],
|
9232
9275
|
# availability_zone: "String",
|
9233
9276
|
# availability_zone_id: "String",
|
9277
|
+
# cidr_block: "String", # required
|
9234
9278
|
# ipv_6_cidr_block: "String",
|
9235
9279
|
# outpost_arn: "String",
|
9236
9280
|
# vpc_id: "VpcId", # required
|
9237
9281
|
# dry_run: false,
|
9238
|
-
# cidr_block: "String", # required
|
9239
9282
|
# }
|
9240
9283
|
#
|
9241
9284
|
# @!attribute [rw] tag_specifications
|
@@ -9266,6 +9309,13 @@ module Aws::EC2
|
|
9266
9309
|
# The AZ ID or the Local Zone ID of the subnet.
|
9267
9310
|
# @return [String]
|
9268
9311
|
#
|
9312
|
+
# @!attribute [rw] cidr_block
|
9313
|
+
# The IPv4 network range for the subnet, in CIDR notation. For
|
9314
|
+
# example, `10.0.0.0/24`. We modify the specified CIDR block to its
|
9315
|
+
# canonical form; for example, if you specify `100.68.0.18/18`, we
|
9316
|
+
# modify it to `100.68.0.0/18`.
|
9317
|
+
# @return [String]
|
9318
|
+
#
|
9269
9319
|
# @!attribute [rw] ipv_6_cidr_block
|
9270
9320
|
# The IPv6 network range for the subnet, in CIDR notation. The subnet
|
9271
9321
|
# size must use a /64 prefix length.
|
@@ -9288,24 +9338,17 @@ module Aws::EC2
|
|
9288
9338
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
9289
9339
|
# @return [Boolean]
|
9290
9340
|
#
|
9291
|
-
# @!attribute [rw] cidr_block
|
9292
|
-
# The IPv4 network range for the subnet, in CIDR notation. For
|
9293
|
-
# example, `10.0.0.0/24`. We modify the specified CIDR block to its
|
9294
|
-
# canonical form; for example, if you specify `100.68.0.18/18`, we
|
9295
|
-
# modify it to `100.68.0.0/18`.
|
9296
|
-
# @return [String]
|
9297
|
-
#
|
9298
9341
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateSubnetRequest AWS API Documentation
|
9299
9342
|
#
|
9300
9343
|
class CreateSubnetRequest < Struct.new(
|
9301
9344
|
:tag_specifications,
|
9302
9345
|
:availability_zone,
|
9303
9346
|
:availability_zone_id,
|
9347
|
+
:cidr_block,
|
9304
9348
|
:ipv_6_cidr_block,
|
9305
9349
|
:outpost_arn,
|
9306
9350
|
:vpc_id,
|
9307
|
-
:dry_run
|
9308
|
-
:cidr_block)
|
9351
|
+
:dry_run)
|
9309
9352
|
SENSITIVE = []
|
9310
9353
|
include Aws::Structure
|
9311
9354
|
end
|
@@ -14673,6 +14716,9 @@ module Aws::EC2
|
|
14673
14716
|
# single-tenant hardware that is dedicated to a single AWS
|
14674
14717
|
# account.
|
14675
14718
|
#
|
14719
|
+
# * `outpost-arn` - The Amazon Resource Name (ARN) of the Outpost on
|
14720
|
+
# which the Capacity Reservation was created.
|
14721
|
+
#
|
14676
14722
|
# * `state` - The current state of the Capacity Reservation. A
|
14677
14723
|
# Capacity Reservation can be in one of the following states:
|
14678
14724
|
#
|
@@ -20875,11 +20921,12 @@ module Aws::EC2
|
|
20875
20921
|
# holders and are for use with Amazon VPC. (`Linux/UNIX` \|
|
20876
20922
|
# `Linux/UNIX (Amazon VPC)` \| `SUSE Linux` \| `SUSE Linux (Amazon
|
20877
20923
|
# VPC)` \| `Red Hat Enterprise Linux` \| `Red Hat Enterprise Linux
|
20878
|
-
# (Amazon VPC)` \| `
|
20879
|
-
#
|
20880
|
-
#
|
20881
|
-
# SQL Server Web
|
20882
|
-
#
|
20924
|
+
# (Amazon VPC)` \| `Red Hat Enterprise Linux with HA (Amazon VPC)`
|
20925
|
+
# \| `Windows` \| `Windows (Amazon VPC)` \| `Windows with SQL Server
|
20926
|
+
# Standard` \| `Windows with SQL Server Standard (Amazon VPC)` \|
|
20927
|
+
# `Windows with SQL Server Web` \| ` Windows with SQL Server Web
|
20928
|
+
# (Amazon VPC)` \| `Windows with SQL Server Enterprise` \| `Windows
|
20929
|
+
# with SQL Server Enterprise (Amazon VPC)`)
|
20883
20930
|
#
|
20884
20931
|
# * `reserved-instances-offering-id` - The Reserved Instances offering
|
20885
20932
|
# ID.
|
@@ -21065,11 +21112,12 @@ module Aws::EC2
|
|
21065
21112
|
# holders and are for use with Amazon VPC (`Linux/UNIX` \|
|
21066
21113
|
# `Linux/UNIX (Amazon VPC)` \| `SUSE Linux` \| `SUSE Linux (Amazon
|
21067
21114
|
# VPC)` \| `Red Hat Enterprise Linux` \| `Red Hat Enterprise Linux
|
21068
|
-
# (Amazon VPC)` \| `
|
21069
|
-
#
|
21070
|
-
#
|
21071
|
-
# SQL Server Web
|
21072
|
-
#
|
21115
|
+
# (Amazon VPC)` \| `Red Hat Enterprise Linux with HA (Amazon VPC)`
|
21116
|
+
# \| `Windows` \| `Windows (Amazon VPC)` \| `Windows with SQL Server
|
21117
|
+
# Standard` \| `Windows with SQL Server Standard (Amazon VPC)` \|
|
21118
|
+
# `Windows with SQL Server Web` \| `Windows with SQL Server Web
|
21119
|
+
# (Amazon VPC)` \| `Windows with SQL Server Enterprise` \| `Windows
|
21120
|
+
# with SQL Server Enterprise (Amazon VPC)`).
|
21073
21121
|
#
|
21074
21122
|
# * `reserved-instances-id` - The ID of the Reserved Instance.
|
21075
21123
|
#
|
@@ -41275,6 +41323,11 @@ module Aws::EC2
|
|
41275
41323
|
# The tags for the NAT gateway.
|
41276
41324
|
# @return [Array<Types::Tag>]
|
41277
41325
|
#
|
41326
|
+
# @!attribute [rw] connectivity_type
|
41327
|
+
# Indicates whether the NAT gateway supports public or private
|
41328
|
+
# connectivity.
|
41329
|
+
# @return [String]
|
41330
|
+
#
|
41278
41331
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGateway AWS API Documentation
|
41279
41332
|
#
|
41280
41333
|
class NatGateway < Struct.new(
|
@@ -41288,7 +41341,8 @@ module Aws::EC2
|
|
41288
41341
|
:state,
|
41289
41342
|
:subnet_id,
|
41290
41343
|
:vpc_id,
|
41291
|
-
:tags
|
41344
|
+
:tags,
|
41345
|
+
:connectivity_type)
|
41292
41346
|
SENSITIVE = []
|
41293
41347
|
include Aws::Structure
|
41294
41348
|
end
|
@@ -41297,8 +41351,8 @@ module Aws::EC2
|
|
41297
41351
|
# gateway.
|
41298
41352
|
#
|
41299
41353
|
# @!attribute [rw] allocation_id
|
41300
|
-
# The allocation ID of the Elastic IP
|
41301
|
-
# the NAT gateway.
|
41354
|
+
# \[Public NAT gateway only\] The allocation ID of the Elastic IP
|
41355
|
+
# address that's associated with the NAT gateway.
|
41302
41356
|
# @return [String]
|
41303
41357
|
#
|
41304
41358
|
# @!attribute [rw] network_interface_id
|
@@ -41306,11 +41360,12 @@ module Aws::EC2
|
|
41306
41360
|
# @return [String]
|
41307
41361
|
#
|
41308
41362
|
# @!attribute [rw] private_ip
|
41309
|
-
# The private IP address associated with the
|
41363
|
+
# The private IP address associated with the NAT gateway.
|
41310
41364
|
# @return [String]
|
41311
41365
|
#
|
41312
41366
|
# @!attribute [rw] public_ip
|
41313
|
-
# The Elastic IP address associated with
|
41367
|
+
# \[Public NAT gateway only\] The Elastic IP address associated with
|
41368
|
+
# the NAT gateway.
|
41314
41369
|
# @return [String]
|
41315
41370
|
#
|
41316
41371
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGatewayAddress AWS API Documentation
|
data/lib/aws-sdk-ec2/vpc.rb
CHANGED
@@ -480,10 +480,10 @@ module Aws::EC2
|
|
480
480
|
# ],
|
481
481
|
# availability_zone: "String",
|
482
482
|
# availability_zone_id: "String",
|
483
|
+
# cidr_block: "String", # required
|
483
484
|
# ipv_6_cidr_block: "String",
|
484
485
|
# outpost_arn: "String",
|
485
486
|
# dry_run: false,
|
486
|
-
# cidr_block: "String", # required
|
487
487
|
# })
|
488
488
|
# @param [Hash] options ({})
|
489
489
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
@@ -508,6 +508,11 @@ module Aws::EC2
|
|
508
508
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/using-regions-availability-zones.html#concepts-available-regions
|
509
509
|
# @option options [String] :availability_zone_id
|
510
510
|
# The AZ ID or the Local Zone ID of the subnet.
|
511
|
+
# @option options [required, String] :cidr_block
|
512
|
+
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
513
|
+
# `10.0.0.0/24`. We modify the specified CIDR block to its canonical
|
514
|
+
# form; for example, if you specify `100.68.0.18/18`, we modify it to
|
515
|
+
# `100.68.0.0/18`.
|
511
516
|
# @option options [String] :ipv_6_cidr_block
|
512
517
|
# The IPv6 network range for the subnet, in CIDR notation. The subnet
|
513
518
|
# size must use a /64 prefix length.
|
@@ -520,11 +525,6 @@ module Aws::EC2
|
|
520
525
|
# without actually making the request, and provides an error response.
|
521
526
|
# If you have the required permissions, the error response is
|
522
527
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
523
|
-
# @option options [required, String] :cidr_block
|
524
|
-
# The IPv4 network range for the subnet, in CIDR notation. For example,
|
525
|
-
# `10.0.0.0/24`. We modify the specified CIDR block to its canonical
|
526
|
-
# form; for example, if you specify `100.68.0.18/18`, we modify it to
|
527
|
-
# `100.68.0.0/18`.
|
528
528
|
# @return [Subnet]
|
529
529
|
def create_subnet(options = {})
|
530
530
|
options = options.merge(vpc_id: @id)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-ec2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.241.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: 2021-
|
11
|
+
date: 2021-06-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|