aws-sdk-ec2 1.240.0 → 1.241.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: 13d00c8dce8b24cf4f9902ba7961f4e17cb7262173edda8fe687a5eb360213cc
4
- data.tar.gz: 88ad3a0d37fb4a6996853cb3bdd9b9a9ef21d101d5bdf19df13729eddf67d8dd
3
+ metadata.gz: 73880bbc8722151ac769256443ddf0854526af34f345375bee7710154b65db65
4
+ data.tar.gz: 67c391fcacd196a3e498798ce44f02127d05a507e4d69e075f342f7a5a5ea3fa
5
5
  SHA512:
6
- metadata.gz: f3831a78b525905f063a2a0334d127a21705793b774f40d2678d3a4fbbd7546061672cacf75e8d465e7a7863807104c71421fa81aaf6a5434ee923a1d41e07a6
7
- data.tar.gz: 59729c046e0cd5ff579b621bde6118e4fe31ef3ed6bad4cd38d14e16040b95caa828e2068e0d04f2c8c23e4667e5859f7d250880c7e9315ce98f3c588b45dfd6
6
+ metadata.gz: 995cc5f98ead54cc7cb1fcc825305a6ccd93879150dc6aab0eaa05d183819daea93e2486e1d43757f8a5eb2093ef3b3fccbe54441766804ebca266159e8a7fbb
7
+ data.tar.gz: 17f4e32d943c6c2f8beb1b9afe8aa697388cafd0db76c5fef2027186a947f92412e47ae58328f6caab0fef01ec23cf0c2edf7b06876b415ff56a29b6765b0a26
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
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
+
4
9
  1.240.0 (2021-06-01)
5
10
  ------------------
6
11
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.240.0
1
+ 1.241.0
data/lib/aws-sdk-ec2.rb CHANGED
@@ -72,6 +72,6 @@ require_relative 'aws-sdk-ec2/customizations'
72
72
  # @!group service
73
73
  module Aws::EC2
74
74
 
75
- GEM_VERSION = '1.240.0'
75
+ GEM_VERSION = '1.241.0'
76
76
 
77
77
  end
@@ -6515,18 +6515,35 @@ module Aws::EC2
6515
6515
  req.send_request(options)
6516
6516
  end
6517
6517
 
6518
- # Creates a NAT gateway in the specified public subnet. This action
6519
- # creates a network interface in the specified subnet with a private IP
6520
- # address from the IP address range of the subnet. Internet-bound
6521
- # traffic from a private subnet can be routed to the NAT gateway,
6522
- # therefore enabling instances in the private subnet to connect to the
6523
- # internet. For more information, see [NAT Gateways][1] in the *Amazon
6524
- # Virtual Private Cloud User Guide*.
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*.
6525
6535
  #
6526
6536
  #
6527
6537
  #
6528
6538
  # [1]: https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
6529
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
+ #
6530
6547
  # @option params [String] :client_token
6531
6548
  # Unique, case-sensitive identifier that you provide to ensure the
6532
6549
  # idempotency of the request. For more information, see [How to Ensure
@@ -6553,10 +6570,9 @@ module Aws::EC2
6553
6570
  # @option params [Array<Types::TagSpecification>] :tag_specifications
6554
6571
  # The tags to assign to the NAT gateway.
6555
6572
  #
6556
- # @option params [required, String] :allocation_id
6557
- # The allocation ID of an Elastic IP address to associate with the NAT
6558
- # gateway. If the Elastic IP address is associated with another
6559
- # 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.
6560
6576
  #
6561
6577
  # @return [Types::CreateNatGatewayResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
6562
6578
  #
@@ -6593,6 +6609,7 @@ module Aws::EC2
6593
6609
  # @example Request syntax with placeholder values
6594
6610
  #
6595
6611
  # resp = client.create_nat_gateway({
6612
+ # allocation_id: "AllocationId",
6596
6613
  # client_token: "String",
6597
6614
  # dry_run: false,
6598
6615
  # subnet_id: "SubnetId", # required
@@ -6607,7 +6624,7 @@ module Aws::EC2
6607
6624
  # ],
6608
6625
  # },
6609
6626
  # ],
6610
- # allocation_id: "AllocationId", # required
6627
+ # connectivity_type: "private", # accepts private, public
6611
6628
  # })
6612
6629
  #
6613
6630
  # @example Response structure
@@ -6634,6 +6651,7 @@ module Aws::EC2
6634
6651
  # resp.nat_gateway.tags #=> Array
6635
6652
  # resp.nat_gateway.tags[0].key #=> String
6636
6653
  # resp.nat_gateway.tags[0].value #=> String
6654
+ # resp.nat_gateway.connectivity_type #=> String, one of "private", "public"
6637
6655
  #
6638
6656
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGateway AWS API Documentation
6639
6657
  #
@@ -11888,7 +11906,7 @@ module Aws::EC2
11888
11906
  req.send_request(options)
11889
11907
  end
11890
11908
 
11891
- # Deletes the specified NAT gateway. Deleting a NAT gateway
11909
+ # Deletes the specified NAT gateway. Deleting a public NAT gateway
11892
11910
  # disassociates its Elastic IP address, but does not release the address
11893
11911
  # from your account. Deleting a NAT gateway does not delete any NAT
11894
11912
  # gateway routes in your route tables.
@@ -20543,6 +20561,7 @@ module Aws::EC2
20543
20561
  # resp.nat_gateways[0].tags #=> Array
20544
20562
  # resp.nat_gateways[0].tags[0].key #=> String
20545
20563
  # resp.nat_gateways[0].tags[0].value #=> String
20564
+ # resp.nat_gateways[0].connectivity_type #=> String, one of "private", "public"
20546
20565
  # resp.next_token #=> String
20547
20566
  #
20548
20567
  #
@@ -30863,7 +30882,7 @@ module Aws::EC2
30863
30882
  #
30864
30883
  # @return [Types::GetManagedPrefixListEntriesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
30865
30884
  #
30866
- # * {Types::GetManagedPrefixListEntriesResult#entries #entries} => Array&lt;Types::PrefixListEntry&gt;
30885
+ # * {Types::GetManagedPrefixListEntriesResult#entries #data.entries} => Array&lt;Types::PrefixListEntry&gt; (This method conflicts with a method on Response, call it through the data member)
30867
30886
  # * {Types::GetManagedPrefixListEntriesResult#next_token #next_token} => String
30868
30887
  #
30869
30888
  # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
@@ -30880,9 +30899,9 @@ module Aws::EC2
30880
30899
  #
30881
30900
  # @example Response structure
30882
30901
  #
30883
- # resp.entries #=> Array
30884
- # resp.entries[0].cidr #=> String
30885
- # resp.entries[0].description #=> String
30902
+ # resp.data.entries #=> Array
30903
+ # resp.data.entries[0].cidr #=> String
30904
+ # resp.data.entries[0].description #=> String
30886
30905
  # resp.next_token #=> String
30887
30906
  #
30888
30907
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListEntries AWS API Documentation
@@ -41896,7 +41915,7 @@ module Aws::EC2
41896
41915
  params: params,
41897
41916
  config: config)
41898
41917
  context[:gem_name] = 'aws-sdk-ec2'
41899
- context[:gem_version] = '1.240.0'
41918
+ context[:gem_version] = '1.241.0'
41900
41919
  Seahorse::Client::Request.new(handlers, context)
41901
41920
  end
41902
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')
@@ -3463,11 +3464,12 @@ module Aws::EC2
3463
3464
  CreateManagedPrefixListResult.add_member(:prefix_list, Shapes::ShapeRef.new(shape: ManagedPrefixList, location_name: "prefixList"))
3464
3465
  CreateManagedPrefixListResult.struct_class = Types::CreateManagedPrefixListResult
3465
3466
 
3467
+ CreateNatGatewayRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
3466
3468
  CreateNatGatewayRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
3467
3469
  CreateNatGatewayRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
3468
3470
  CreateNatGatewayRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "SubnetId"))
3469
3471
  CreateNatGatewayRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
3470
- CreateNatGatewayRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, required: true, location_name: "AllocationId"))
3472
+ CreateNatGatewayRequest.add_member(:connectivity_type, Shapes::ShapeRef.new(shape: ConnectivityType, location_name: "ConnectivityType"))
3471
3473
  CreateNatGatewayRequest.struct_class = Types::CreateNatGatewayRequest
3472
3474
 
3473
3475
  CreateNatGatewayResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
@@ -8392,6 +8394,7 @@ module Aws::EC2
8392
8394
  NatGateway.add_member(:subnet_id, Shapes::ShapeRef.new(shape: String, location_name: "subnetId"))
8393
8395
  NatGateway.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "vpcId"))
8394
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"))
8395
8398
  NatGateway.struct_class = Types::NatGateway
8396
8399
 
8397
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]
@@ -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
- # allocation_id: "AllocationId", # required
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 [required, String] :allocation_id
660
- # The allocation ID of an Elastic IP address to associate with the NAT
661
- # gateway. If the Elastic IP address is associated with another
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)
@@ -7808,6 +7808,7 @@ module Aws::EC2
7808
7808
  # data as a hash:
7809
7809
  #
7810
7810
  # {
7811
+ # allocation_id: "AllocationId",
7811
7812
  # client_token: "String",
7812
7813
  # dry_run: false,
7813
7814
  # subnet_id: "SubnetId", # required
@@ -7822,9 +7823,17 @@ module Aws::EC2
7822
7823
  # ],
7823
7824
  # },
7824
7825
  # ],
7825
- # allocation_id: "AllocationId", # required
7826
+ # connectivity_type: "private", # accepts private, public
7826
7827
  # }
7827
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
+ #
7828
7837
  # @!attribute [rw] client_token
7829
7838
  # Unique, case-sensitive identifier that you provide to ensure the
7830
7839
  # idempotency of the request. For more information, see [How to Ensure
@@ -7855,20 +7864,20 @@ module Aws::EC2
7855
7864
  # The tags to assign to the NAT gateway.
7856
7865
  # @return [Array<Types::TagSpecification>]
7857
7866
  #
7858
- # @!attribute [rw] allocation_id
7859
- # The allocation ID of an Elastic IP address to associate with the NAT
7860
- # gateway. If the Elastic IP address is associated with another
7861
- # 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.
7862
7870
  # @return [String]
7863
7871
  #
7864
7872
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNatGatewayRequest AWS API Documentation
7865
7873
  #
7866
7874
  class CreateNatGatewayRequest < Struct.new(
7875
+ :allocation_id,
7867
7876
  :client_token,
7868
7877
  :dry_run,
7869
7878
  :subnet_id,
7870
7879
  :tag_specifications,
7871
- :allocation_id)
7880
+ :connectivity_type)
7872
7881
  SENSITIVE = []
7873
7882
  include Aws::Structure
7874
7883
  end
@@ -41314,6 +41323,11 @@ module Aws::EC2
41314
41323
  # The tags for the NAT gateway.
41315
41324
  # @return [Array<Types::Tag>]
41316
41325
  #
41326
+ # @!attribute [rw] connectivity_type
41327
+ # Indicates whether the NAT gateway supports public or private
41328
+ # connectivity.
41329
+ # @return [String]
41330
+ #
41317
41331
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGateway AWS API Documentation
41318
41332
  #
41319
41333
  class NatGateway < Struct.new(
@@ -41327,7 +41341,8 @@ module Aws::EC2
41327
41341
  :state,
41328
41342
  :subnet_id,
41329
41343
  :vpc_id,
41330
- :tags)
41344
+ :tags,
41345
+ :connectivity_type)
41331
41346
  SENSITIVE = []
41332
41347
  include Aws::Structure
41333
41348
  end
@@ -41336,8 +41351,8 @@ module Aws::EC2
41336
41351
  # gateway.
41337
41352
  #
41338
41353
  # @!attribute [rw] allocation_id
41339
- # The allocation ID of the Elastic IP address that's associated with
41340
- # the NAT gateway.
41354
+ # \[Public NAT gateway only\] The allocation ID of the Elastic IP
41355
+ # address that's associated with the NAT gateway.
41341
41356
  # @return [String]
41342
41357
  #
41343
41358
  # @!attribute [rw] network_interface_id
@@ -41345,11 +41360,12 @@ module Aws::EC2
41345
41360
  # @return [String]
41346
41361
  #
41347
41362
  # @!attribute [rw] private_ip
41348
- # The private IP address associated with the Elastic IP address.
41363
+ # The private IP address associated with the NAT gateway.
41349
41364
  # @return [String]
41350
41365
  #
41351
41366
  # @!attribute [rw] public_ip
41352
- # The Elastic IP address associated with the NAT gateway.
41367
+ # \[Public NAT gateway only\] The Elastic IP address associated with
41368
+ # the NAT gateway.
41353
41369
  # @return [String]
41354
41370
  #
41355
41371
  # @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGatewayAddress AWS API Documentation
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.240.0
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-06-01 00:00:00.000000000 Z
11
+ date: 2021-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sigv4