aws-sdk-ec2 1.237.0 → 1.242.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 +161 -19
- data/lib/aws-sdk-ec2/client_api.rb +43 -1
- data/lib/aws-sdk-ec2/image.rb +8 -0
- data/lib/aws-sdk-ec2/nat_gateway.rb +7 -0
- data/lib/aws-sdk-ec2/resource.rb +31 -5
- data/lib/aws-sdk-ec2/subnet.rb +9 -0
- data/lib/aws-sdk-ec2/types.rb +165 -14
- 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: 0ac9de936fe99f536320733719f7eb0dd530ed2d6c9ac3712840d3de01bc2fc8
|
4
|
+
data.tar.gz: a5f9bdc800afbddf4e25f690c0e7d0f854da6496474069ec91f08960b40f3f2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 868627239b4b75e37b51cbdab1f1c334292645b6ba2290a982ab2a52c16295d00e5a6f32916494f7ea6bebfa49fceba9c5ef85ee3d5273f6c04bc14ad29c1087
|
7
|
+
data.tar.gz: 116579752af868de9681cdacbbb17137a1b8c47d101dd959692a72ca0eddcee5b206566481bae7985d3e53d5bb9f7c5983b7d68781e01803af4171e03e979dd1
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,31 @@
|
|
1
1
|
Unreleased Changes
|
2
2
|
------------------
|
3
3
|
|
4
|
+
1.242.0 (2021-06-11)
|
5
|
+
------------------
|
6
|
+
|
7
|
+
* Feature - Amazon EC2 adds new AMI property to flag outdated AMIs
|
8
|
+
|
9
|
+
1.241.0 (2021-06-10)
|
10
|
+
------------------
|
11
|
+
|
12
|
+
* 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.
|
13
|
+
|
14
|
+
1.240.0 (2021-06-01)
|
15
|
+
------------------
|
16
|
+
|
17
|
+
* Feature - Added idempotency to CreateNetworkInterface using the ClientToken parameter.
|
18
|
+
|
19
|
+
1.239.0 (2021-05-27)
|
20
|
+
------------------
|
21
|
+
|
22
|
+
* Feature - This release removes resource ids and tagging support for VPC security group rules.
|
23
|
+
|
24
|
+
1.238.0 (2021-05-26)
|
25
|
+
------------------
|
26
|
+
|
27
|
+
* Feature - This release adds resource ids and tagging support for VPC security group rules.
|
28
|
+
|
4
29
|
1.237.0 (2021-05-24)
|
5
30
|
------------------
|
6
31
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.242.0
|
data/lib/aws-sdk-ec2.rb
CHANGED
data/lib/aws-sdk-ec2/client.rb
CHANGED
@@ -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
|
6519
|
-
#
|
6520
|
-
#
|
6521
|
-
#
|
6522
|
-
#
|
6523
|
-
#
|
6524
|
-
#
|
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 [
|
6557
|
-
#
|
6558
|
-
#
|
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
|
-
#
|
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
|
#
|
@@ -7063,9 +7081,22 @@ module Aws::EC2
|
|
7063
7081
|
# @option params [Array<Types::TagSpecification>] :tag_specifications
|
7064
7082
|
# The tags to apply to the new network interface.
|
7065
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
|
+
#
|
7066
7096
|
# @return [Types::CreateNetworkInterfaceResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
7067
7097
|
#
|
7068
7098
|
# * {Types::CreateNetworkInterfaceResult#network_interface #network_interface} => Types::NetworkInterface
|
7099
|
+
# * {Types::CreateNetworkInterfaceResult#client_token #client_token} => String
|
7069
7100
|
#
|
7070
7101
|
#
|
7071
7102
|
# @example Example: To create a network interface
|
@@ -7145,6 +7176,7 @@ module Aws::EC2
|
|
7145
7176
|
# ],
|
7146
7177
|
# },
|
7147
7178
|
# ],
|
7179
|
+
# client_token: "String",
|
7148
7180
|
# })
|
7149
7181
|
#
|
7150
7182
|
# @example Response structure
|
@@ -7198,6 +7230,7 @@ module Aws::EC2
|
|
7198
7230
|
# resp.network_interface.tag_set[0].key #=> String
|
7199
7231
|
# resp.network_interface.tag_set[0].value #=> String
|
7200
7232
|
# resp.network_interface.vpc_id #=> String
|
7233
|
+
# resp.client_token #=> String
|
7201
7234
|
#
|
7202
7235
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterface AWS API Documentation
|
7203
7236
|
#
|
@@ -11873,7 +11906,7 @@ module Aws::EC2
|
|
11873
11906
|
req.send_request(options)
|
11874
11907
|
end
|
11875
11908
|
|
11876
|
-
# Deletes the specified NAT gateway. Deleting a NAT gateway
|
11909
|
+
# Deletes the specified NAT gateway. Deleting a public NAT gateway
|
11877
11910
|
# disassociates its Elastic IP address, but does not release the address
|
11878
11911
|
# from your account. Deleting a NAT gateway does not delete any NAT
|
11879
11912
|
# gateway routes in your route tables.
|
@@ -17285,7 +17318,8 @@ module Aws::EC2
|
|
17285
17318
|
# Recently deregistered images appear in the returned results for a
|
17286
17319
|
# short interval and then return empty results. After all instances that
|
17287
17320
|
# reference a deregistered AMI are terminated, specifying the ID of the
|
17288
|
-
# image
|
17321
|
+
# image will eventually return an error indicating that the AMI ID
|
17322
|
+
# cannot be found.
|
17289
17323
|
#
|
17290
17324
|
# @option params [Array<String>] :executable_users
|
17291
17325
|
# Scopes the images by users with explicit launch permissions. Specify
|
@@ -17396,6 +17430,17 @@ module Aws::EC2
|
|
17396
17430
|
# `aws-marketplace`. If you omit this parameter, the results include all
|
17397
17431
|
# images for which you have launch permissions, regardless of ownership.
|
17398
17432
|
#
|
17433
|
+
# @option params [Boolean] :include_deprecated
|
17434
|
+
# If `true`, all deprecated AMIs are included in the response. If
|
17435
|
+
# `false`, no deprecated AMIs are included in the response. If no value
|
17436
|
+
# is specified, the default value is `false`.
|
17437
|
+
#
|
17438
|
+
# <note markdown="1"> If you are the AMI owner, all deprecated AMIs appear in the response
|
17439
|
+
# regardless of the value (`true` or `false`) that you set for this
|
17440
|
+
# parameter.
|
17441
|
+
#
|
17442
|
+
# </note>
|
17443
|
+
#
|
17399
17444
|
# @option params [Boolean] :dry_run
|
17400
17445
|
# Checks whether you have the required permissions for the action,
|
17401
17446
|
# without actually making the request, and provides an error response.
|
@@ -17462,6 +17507,7 @@ module Aws::EC2
|
|
17462
17507
|
# ],
|
17463
17508
|
# image_ids: ["ImageId"],
|
17464
17509
|
# owners: ["String"],
|
17510
|
+
# include_deprecated: false,
|
17465
17511
|
# dry_run: false,
|
17466
17512
|
# })
|
17467
17513
|
#
|
@@ -17512,6 +17558,7 @@ module Aws::EC2
|
|
17512
17558
|
# resp.images[0].tags[0].value #=> String
|
17513
17559
|
# resp.images[0].virtualization_type #=> String, one of "hvm", "paravirtual"
|
17514
17560
|
# resp.images[0].boot_mode #=> String, one of "legacy-bios", "uefi"
|
17561
|
+
# resp.images[0].deprecation_time #=> String
|
17515
17562
|
#
|
17516
17563
|
#
|
17517
17564
|
# The following waiters are defined for this operation (see {Client#wait_until} for detailed usage):
|
@@ -20528,6 +20575,7 @@ module Aws::EC2
|
|
20528
20575
|
# resp.nat_gateways[0].tags #=> Array
|
20529
20576
|
# resp.nat_gateways[0].tags[0].key #=> String
|
20530
20577
|
# resp.nat_gateways[0].tags[0].value #=> String
|
20578
|
+
# resp.nat_gateways[0].connectivity_type #=> String, one of "private", "public"
|
20531
20579
|
# resp.next_token #=> String
|
20532
20580
|
#
|
20533
20581
|
#
|
@@ -28614,6 +28662,48 @@ module Aws::EC2
|
|
28614
28662
|
req.send_request(options)
|
28615
28663
|
end
|
28616
28664
|
|
28665
|
+
# Cancels the deprecation of the specified AMI.
|
28666
|
+
#
|
28667
|
+
# For more information, see [Deprecate an AMI][1] in the *Amazon Elastic
|
28668
|
+
# Compute Cloud User Guide*.
|
28669
|
+
#
|
28670
|
+
#
|
28671
|
+
#
|
28672
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html
|
28673
|
+
#
|
28674
|
+
# @option params [required, String] :image_id
|
28675
|
+
# The ID of the AMI.
|
28676
|
+
#
|
28677
|
+
# @option params [Boolean] :dry_run
|
28678
|
+
# Checks whether you have the required permissions for the action,
|
28679
|
+
# without actually making the request, and provides an error response.
|
28680
|
+
# If you have the required permissions, the error response is
|
28681
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
28682
|
+
#
|
28683
|
+
# @return [Types::DisableImageDeprecationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
28684
|
+
#
|
28685
|
+
# * {Types::DisableImageDeprecationResult#return #return} => Boolean
|
28686
|
+
#
|
28687
|
+
# @example Request syntax with placeholder values
|
28688
|
+
#
|
28689
|
+
# resp = client.disable_image_deprecation({
|
28690
|
+
# image_id: "ImageId", # required
|
28691
|
+
# dry_run: false,
|
28692
|
+
# })
|
28693
|
+
#
|
28694
|
+
# @example Response structure
|
28695
|
+
#
|
28696
|
+
# resp.return #=> Boolean
|
28697
|
+
#
|
28698
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeprecation AWS API Documentation
|
28699
|
+
#
|
28700
|
+
# @overload disable_image_deprecation(params = {})
|
28701
|
+
# @param [Hash] params ({})
|
28702
|
+
def disable_image_deprecation(params = {}, options = {})
|
28703
|
+
req = build_request(:disable_image_deprecation, params)
|
28704
|
+
req.send_request(options)
|
28705
|
+
end
|
28706
|
+
|
28617
28707
|
# Disables access to the EC2 serial console of all instances for your
|
28618
28708
|
# account. By default, access to the EC2 serial console is disabled for
|
28619
28709
|
# your account. For more information, see [Manage account access to the
|
@@ -29385,6 +29475,58 @@ module Aws::EC2
|
|
29385
29475
|
req.send_request(options)
|
29386
29476
|
end
|
29387
29477
|
|
29478
|
+
# Enables deprecation of the specified AMI at the specified date and
|
29479
|
+
# time.
|
29480
|
+
#
|
29481
|
+
# For more information, see [Deprecate an AMI][1] in the *Amazon Elastic
|
29482
|
+
# Compute Cloud User Guide*.
|
29483
|
+
#
|
29484
|
+
#
|
29485
|
+
#
|
29486
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-deprecate.html
|
29487
|
+
#
|
29488
|
+
# @option params [required, String] :image_id
|
29489
|
+
# The ID of the AMI.
|
29490
|
+
#
|
29491
|
+
# @option params [required, Time,DateTime,Date,Integer,String] :deprecate_at
|
29492
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
29493
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specify a value for
|
29494
|
+
# seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
29495
|
+
#
|
29496
|
+
# You can’t specify a date in the past. The upper limit for
|
29497
|
+
# `DeprecateAt` is 10 years from now.
|
29498
|
+
#
|
29499
|
+
# @option params [Boolean] :dry_run
|
29500
|
+
# Checks whether you have the required permissions for the action,
|
29501
|
+
# without actually making the request, and provides an error response.
|
29502
|
+
# If you have the required permissions, the error response is
|
29503
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
29504
|
+
#
|
29505
|
+
# @return [Types::EnableImageDeprecationResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
29506
|
+
#
|
29507
|
+
# * {Types::EnableImageDeprecationResult#return #return} => Boolean
|
29508
|
+
#
|
29509
|
+
# @example Request syntax with placeholder values
|
29510
|
+
#
|
29511
|
+
# resp = client.enable_image_deprecation({
|
29512
|
+
# image_id: "ImageId", # required
|
29513
|
+
# deprecate_at: Time.now, # required
|
29514
|
+
# dry_run: false,
|
29515
|
+
# })
|
29516
|
+
#
|
29517
|
+
# @example Response structure
|
29518
|
+
#
|
29519
|
+
# resp.return #=> Boolean
|
29520
|
+
#
|
29521
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeprecation AWS API Documentation
|
29522
|
+
#
|
29523
|
+
# @overload enable_image_deprecation(params = {})
|
29524
|
+
# @param [Hash] params ({})
|
29525
|
+
def enable_image_deprecation(params = {}, options = {})
|
29526
|
+
req = build_request(:enable_image_deprecation, params)
|
29527
|
+
req.send_request(options)
|
29528
|
+
end
|
29529
|
+
|
29388
29530
|
# Enables access to the EC2 serial console of all instances for your
|
29389
29531
|
# account. By default, access to the EC2 serial console is disabled for
|
29390
29532
|
# your account. For more information, see [Manage account access to the
|
@@ -30848,7 +30990,7 @@ module Aws::EC2
|
|
30848
30990
|
#
|
30849
30991
|
# @return [Types::GetManagedPrefixListEntriesResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
30850
30992
|
#
|
30851
|
-
# * {Types::GetManagedPrefixListEntriesResult#entries #entries} => Array<Types::PrefixListEntry>
|
30993
|
+
# * {Types::GetManagedPrefixListEntriesResult#entries #data.entries} => Array<Types::PrefixListEntry> (This method conflicts with a method on Response, call it through the data member)
|
30852
30994
|
# * {Types::GetManagedPrefixListEntriesResult#next_token #next_token} => String
|
30853
30995
|
#
|
30854
30996
|
# The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
|
@@ -30865,9 +31007,9 @@ module Aws::EC2
|
|
30865
31007
|
#
|
30866
31008
|
# @example Response structure
|
30867
31009
|
#
|
30868
|
-
# resp.entries #=> Array
|
30869
|
-
# resp.entries[0].cidr #=> String
|
30870
|
-
# resp.entries[0].description #=> String
|
31010
|
+
# resp.data.entries #=> Array
|
31011
|
+
# resp.data.entries[0].cidr #=> String
|
31012
|
+
# resp.data.entries[0].description #=> String
|
30871
31013
|
# resp.next_token #=> String
|
30872
31014
|
#
|
30873
31015
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/GetManagedPrefixListEntries AWS API Documentation
|
@@ -41881,7 +42023,7 @@ module Aws::EC2
|
|
41881
42023
|
params: params,
|
41882
42024
|
config: config)
|
41883
42025
|
context[:gem_name] = 'aws-sdk-ec2'
|
41884
|
-
context[:gem_version] = '1.
|
42026
|
+
context[:gem_version] = '1.242.0'
|
41885
42027
|
Seahorse::Client::Request.new(handlers, context)
|
41886
42028
|
end
|
41887
42029
|
|
@@ -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')
|
@@ -860,6 +861,8 @@ module Aws::EC2
|
|
860
861
|
DisableFastSnapshotRestoreSuccessSet = Shapes::ListShape.new(name: 'DisableFastSnapshotRestoreSuccessSet')
|
861
862
|
DisableFastSnapshotRestoresRequest = Shapes::StructureShape.new(name: 'DisableFastSnapshotRestoresRequest')
|
862
863
|
DisableFastSnapshotRestoresResult = Shapes::StructureShape.new(name: 'DisableFastSnapshotRestoresResult')
|
864
|
+
DisableImageDeprecationRequest = Shapes::StructureShape.new(name: 'DisableImageDeprecationRequest')
|
865
|
+
DisableImageDeprecationResult = Shapes::StructureShape.new(name: 'DisableImageDeprecationResult')
|
863
866
|
DisableSerialConsoleAccessRequest = Shapes::StructureShape.new(name: 'DisableSerialConsoleAccessRequest')
|
864
867
|
DisableSerialConsoleAccessResult = Shapes::StructureShape.new(name: 'DisableSerialConsoleAccessResult')
|
865
868
|
DisableTransitGatewayRouteTablePropagationRequest = Shapes::StructureShape.new(name: 'DisableTransitGatewayRouteTablePropagationRequest')
|
@@ -949,6 +952,8 @@ module Aws::EC2
|
|
949
952
|
EnableFastSnapshotRestoreSuccessSet = Shapes::ListShape.new(name: 'EnableFastSnapshotRestoreSuccessSet')
|
950
953
|
EnableFastSnapshotRestoresRequest = Shapes::StructureShape.new(name: 'EnableFastSnapshotRestoresRequest')
|
951
954
|
EnableFastSnapshotRestoresResult = Shapes::StructureShape.new(name: 'EnableFastSnapshotRestoresResult')
|
955
|
+
EnableImageDeprecationRequest = Shapes::StructureShape.new(name: 'EnableImageDeprecationRequest')
|
956
|
+
EnableImageDeprecationResult = Shapes::StructureShape.new(name: 'EnableImageDeprecationResult')
|
952
957
|
EnableSerialConsoleAccessRequest = Shapes::StructureShape.new(name: 'EnableSerialConsoleAccessRequest')
|
953
958
|
EnableSerialConsoleAccessResult = Shapes::StructureShape.new(name: 'EnableSerialConsoleAccessResult')
|
954
959
|
EnableTransitGatewayRouteTablePropagationRequest = Shapes::StructureShape.new(name: 'EnableTransitGatewayRouteTablePropagationRequest')
|
@@ -3463,11 +3468,12 @@ module Aws::EC2
|
|
3463
3468
|
CreateManagedPrefixListResult.add_member(:prefix_list, Shapes::ShapeRef.new(shape: ManagedPrefixList, location_name: "prefixList"))
|
3464
3469
|
CreateManagedPrefixListResult.struct_class = Types::CreateManagedPrefixListResult
|
3465
3470
|
|
3471
|
+
CreateNatGatewayRequest.add_member(:allocation_id, Shapes::ShapeRef.new(shape: AllocationId, location_name: "AllocationId"))
|
3466
3472
|
CreateNatGatewayRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
3467
3473
|
CreateNatGatewayRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
3468
3474
|
CreateNatGatewayRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "SubnetId"))
|
3469
3475
|
CreateNatGatewayRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3470
|
-
CreateNatGatewayRequest.add_member(:
|
3476
|
+
CreateNatGatewayRequest.add_member(:connectivity_type, Shapes::ShapeRef.new(shape: ConnectivityType, location_name: "ConnectivityType"))
|
3471
3477
|
CreateNatGatewayRequest.struct_class = Types::CreateNatGatewayRequest
|
3472
3478
|
|
3473
3479
|
CreateNatGatewayResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
|
@@ -3529,9 +3535,11 @@ module Aws::EC2
|
|
3529
3535
|
CreateNetworkInterfaceRequest.add_member(:interface_type, Shapes::ShapeRef.new(shape: NetworkInterfaceCreationType, location_name: "InterfaceType"))
|
3530
3536
|
CreateNetworkInterfaceRequest.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, required: true, location_name: "subnetId"))
|
3531
3537
|
CreateNetworkInterfaceRequest.add_member(:tag_specifications, Shapes::ShapeRef.new(shape: TagSpecificationList, location_name: "TagSpecification"))
|
3538
|
+
CreateNetworkInterfaceRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "ClientToken", metadata: {"idempotencyToken"=>true}))
|
3532
3539
|
CreateNetworkInterfaceRequest.struct_class = Types::CreateNetworkInterfaceRequest
|
3533
3540
|
|
3534
3541
|
CreateNetworkInterfaceResult.add_member(:network_interface, Shapes::ShapeRef.new(shape: NetworkInterface, location_name: "networkInterface"))
|
3542
|
+
CreateNetworkInterfaceResult.add_member(:client_token, Shapes::ShapeRef.new(shape: String, location_name: "clientToken"))
|
3535
3543
|
CreateNetworkInterfaceResult.struct_class = Types::CreateNetworkInterfaceResult
|
3536
3544
|
|
3537
3545
|
CreatePlacementGroupRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
@@ -4780,6 +4788,7 @@ module Aws::EC2
|
|
4780
4788
|
DescribeImagesRequest.add_member(:filters, Shapes::ShapeRef.new(shape: FilterList, location_name: "Filter"))
|
4781
4789
|
DescribeImagesRequest.add_member(:image_ids, Shapes::ShapeRef.new(shape: ImageIdStringList, location_name: "ImageId"))
|
4782
4790
|
DescribeImagesRequest.add_member(:owners, Shapes::ShapeRef.new(shape: OwnerStringList, location_name: "Owner"))
|
4791
|
+
DescribeImagesRequest.add_member(:include_deprecated, Shapes::ShapeRef.new(shape: Boolean, location_name: "IncludeDeprecated"))
|
4783
4792
|
DescribeImagesRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "dryRun"))
|
4784
4793
|
DescribeImagesRequest.struct_class = Types::DescribeImagesRequest
|
4785
4794
|
|
@@ -5793,6 +5802,13 @@ module Aws::EC2
|
|
5793
5802
|
DisableFastSnapshotRestoresResult.add_member(:unsuccessful, Shapes::ShapeRef.new(shape: DisableFastSnapshotRestoreErrorSet, location_name: "unsuccessful"))
|
5794
5803
|
DisableFastSnapshotRestoresResult.struct_class = Types::DisableFastSnapshotRestoresResult
|
5795
5804
|
|
5805
|
+
DisableImageDeprecationRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
5806
|
+
DisableImageDeprecationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
5807
|
+
DisableImageDeprecationRequest.struct_class = Types::DisableImageDeprecationRequest
|
5808
|
+
|
5809
|
+
DisableImageDeprecationResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
5810
|
+
DisableImageDeprecationResult.struct_class = Types::DisableImageDeprecationResult
|
5811
|
+
|
5796
5812
|
DisableSerialConsoleAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
5797
5813
|
DisableSerialConsoleAccessRequest.struct_class = Types::DisableSerialConsoleAccessRequest
|
5798
5814
|
|
@@ -6071,6 +6087,14 @@ module Aws::EC2
|
|
6071
6087
|
EnableFastSnapshotRestoresResult.add_member(:unsuccessful, Shapes::ShapeRef.new(shape: EnableFastSnapshotRestoreErrorSet, location_name: "unsuccessful"))
|
6072
6088
|
EnableFastSnapshotRestoresResult.struct_class = Types::EnableFastSnapshotRestoresResult
|
6073
6089
|
|
6090
|
+
EnableImageDeprecationRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: ImageId, required: true, location_name: "ImageId"))
|
6091
|
+
EnableImageDeprecationRequest.add_member(:deprecate_at, Shapes::ShapeRef.new(shape: MillisecondDateTime, required: true, location_name: "DeprecateAt"))
|
6092
|
+
EnableImageDeprecationRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
6093
|
+
EnableImageDeprecationRequest.struct_class = Types::EnableImageDeprecationRequest
|
6094
|
+
|
6095
|
+
EnableImageDeprecationResult.add_member(:return, Shapes::ShapeRef.new(shape: Boolean, location_name: "return"))
|
6096
|
+
EnableImageDeprecationResult.struct_class = Types::EnableImageDeprecationResult
|
6097
|
+
|
6074
6098
|
EnableSerialConsoleAccessRequest.add_member(:dry_run, Shapes::ShapeRef.new(shape: Boolean, location_name: "DryRun"))
|
6075
6099
|
EnableSerialConsoleAccessRequest.struct_class = Types::EnableSerialConsoleAccessRequest
|
6076
6100
|
|
@@ -6842,6 +6866,7 @@ module Aws::EC2
|
|
6842
6866
|
Image.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
6843
6867
|
Image.add_member(:virtualization_type, Shapes::ShapeRef.new(shape: VirtualizationType, location_name: "virtualizationType"))
|
6844
6868
|
Image.add_member(:boot_mode, Shapes::ShapeRef.new(shape: BootModeValues, location_name: "bootMode"))
|
6869
|
+
Image.add_member(:deprecation_time, Shapes::ShapeRef.new(shape: String, location_name: "deprecationTime"))
|
6845
6870
|
Image.struct_class = Types::Image
|
6846
6871
|
|
6847
6872
|
ImageAttribute.add_member(:block_device_mappings, Shapes::ShapeRef.new(shape: BlockDeviceMappingList, location_name: "blockDeviceMapping"))
|
@@ -8390,6 +8415,7 @@ module Aws::EC2
|
|
8390
8415
|
NatGateway.add_member(:subnet_id, Shapes::ShapeRef.new(shape: String, location_name: "subnetId"))
|
8391
8416
|
NatGateway.add_member(:vpc_id, Shapes::ShapeRef.new(shape: String, location_name: "vpcId"))
|
8392
8417
|
NatGateway.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tagSet"))
|
8418
|
+
NatGateway.add_member(:connectivity_type, Shapes::ShapeRef.new(shape: ConnectivityType, location_name: "connectivityType"))
|
8393
8419
|
NatGateway.struct_class = Types::NatGateway
|
8394
8420
|
|
8395
8421
|
NatGatewayAddress.add_member(:allocation_id, Shapes::ShapeRef.new(shape: String, location_name: "allocationId"))
|
@@ -13978,6 +14004,14 @@ module Aws::EC2
|
|
13978
14004
|
o.output = Shapes::ShapeRef.new(shape: DisableFastSnapshotRestoresResult)
|
13979
14005
|
end)
|
13980
14006
|
|
14007
|
+
api.add_operation(:disable_image_deprecation, Seahorse::Model::Operation.new.tap do |o|
|
14008
|
+
o.name = "DisableImageDeprecation"
|
14009
|
+
o.http_method = "POST"
|
14010
|
+
o.http_request_uri = "/"
|
14011
|
+
o.input = Shapes::ShapeRef.new(shape: DisableImageDeprecationRequest)
|
14012
|
+
o.output = Shapes::ShapeRef.new(shape: DisableImageDeprecationResult)
|
14013
|
+
end)
|
14014
|
+
|
13981
14015
|
api.add_operation(:disable_serial_console_access, Seahorse::Model::Operation.new.tap do |o|
|
13982
14016
|
o.name = "DisableSerialConsoleAccess"
|
13983
14017
|
o.http_method = "POST"
|
@@ -14106,6 +14140,14 @@ module Aws::EC2
|
|
14106
14140
|
o.output = Shapes::ShapeRef.new(shape: EnableFastSnapshotRestoresResult)
|
14107
14141
|
end)
|
14108
14142
|
|
14143
|
+
api.add_operation(:enable_image_deprecation, Seahorse::Model::Operation.new.tap do |o|
|
14144
|
+
o.name = "EnableImageDeprecation"
|
14145
|
+
o.http_method = "POST"
|
14146
|
+
o.http_request_uri = "/"
|
14147
|
+
o.input = Shapes::ShapeRef.new(shape: EnableImageDeprecationRequest)
|
14148
|
+
o.output = Shapes::ShapeRef.new(shape: EnableImageDeprecationResult)
|
14149
|
+
end)
|
14150
|
+
|
14109
14151
|
api.add_operation(:enable_serial_console_access, Seahorse::Model::Operation.new.tap do |o|
|
14110
14152
|
o.name = "EnableSerialConsoleAccess"
|
14111
14153
|
o.http_method = "POST"
|
data/lib/aws-sdk-ec2/image.rb
CHANGED
@@ -222,6 +222,14 @@ module Aws::EC2
|
|
222
222
|
data[:boot_mode]
|
223
223
|
end
|
224
224
|
|
225
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
226
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specified a value
|
227
|
+
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
228
|
+
# @return [String]
|
229
|
+
def deprecation_time
|
230
|
+
data[:deprecation_time]
|
231
|
+
end
|
232
|
+
|
225
233
|
# @!endgroup
|
226
234
|
|
227
235
|
# @return [Client]
|
@@ -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)
|
@@ -1810,6 +1825,7 @@ module Aws::EC2
|
|
1810
1825
|
# ],
|
1811
1826
|
# image_ids: ["ImageId"],
|
1812
1827
|
# owners: ["String"],
|
1828
|
+
# include_deprecated: false,
|
1813
1829
|
# dry_run: false,
|
1814
1830
|
# })
|
1815
1831
|
# @param [Hash] options ({})
|
@@ -1918,6 +1934,16 @@ module Aws::EC2
|
|
1918
1934
|
# specify a combination of AWS account IDs, `self`, `amazon`, and
|
1919
1935
|
# `aws-marketplace`. If you omit this parameter, the results include all
|
1920
1936
|
# images for which you have launch permissions, regardless of ownership.
|
1937
|
+
# @option options [Boolean] :include_deprecated
|
1938
|
+
# If `true`, all deprecated AMIs are included in the response. If
|
1939
|
+
# `false`, no deprecated AMIs are included in the response. If no value
|
1940
|
+
# is specified, the default value is `false`.
|
1941
|
+
#
|
1942
|
+
# <note markdown="1"> If you are the AMI owner, all deprecated AMIs appear in the response
|
1943
|
+
# regardless of the value (`true` or `false`) that you set for this
|
1944
|
+
# parameter.
|
1945
|
+
#
|
1946
|
+
# </note>
|
1921
1947
|
# @option options [Boolean] :dry_run
|
1922
1948
|
# Checks whether you have the required permissions for the action,
|
1923
1949
|
# without actually making the request, and provides an error response.
|
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
@@ -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
|
-
#
|
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]
|
7859
|
-
#
|
7860
|
-
#
|
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
|
-
:
|
7880
|
+
:connectivity_type)
|
7872
7881
|
SENSITIVE = []
|
7873
7882
|
include Aws::Structure
|
7874
7883
|
end
|
@@ -8250,6 +8259,7 @@ module Aws::EC2
|
|
8250
8259
|
# ],
|
8251
8260
|
# },
|
8252
8261
|
# ],
|
8262
|
+
# client_token: "String",
|
8253
8263
|
# }
|
8254
8264
|
#
|
8255
8265
|
# @!attribute [rw] description
|
@@ -8329,6 +8339,19 @@ module Aws::EC2
|
|
8329
8339
|
# The tags to apply to the new network interface.
|
8330
8340
|
# @return [Array<Types::TagSpecification>]
|
8331
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
|
+
#
|
8332
8355
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceRequest AWS API Documentation
|
8333
8356
|
#
|
8334
8357
|
class CreateNetworkInterfaceRequest < Struct.new(
|
@@ -8342,7 +8365,8 @@ module Aws::EC2
|
|
8342
8365
|
:secondary_private_ip_address_count,
|
8343
8366
|
:interface_type,
|
8344
8367
|
:subnet_id,
|
8345
|
-
:tag_specifications
|
8368
|
+
:tag_specifications,
|
8369
|
+
:client_token)
|
8346
8370
|
SENSITIVE = []
|
8347
8371
|
include Aws::Structure
|
8348
8372
|
end
|
@@ -8353,10 +8377,16 @@ module Aws::EC2
|
|
8353
8377
|
# Information about the network interface.
|
8354
8378
|
# @return [Types::NetworkInterface]
|
8355
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
|
+
#
|
8356
8385
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CreateNetworkInterfaceResult AWS API Documentation
|
8357
8386
|
#
|
8358
8387
|
class CreateNetworkInterfaceResult < Struct.new(
|
8359
|
-
:network_interface
|
8388
|
+
:network_interface,
|
8389
|
+
:client_token)
|
8360
8390
|
SENSITIVE = []
|
8361
8391
|
include Aws::Structure
|
8362
8392
|
end
|
@@ -17168,6 +17198,7 @@ module Aws::EC2
|
|
17168
17198
|
# ],
|
17169
17199
|
# image_ids: ["ImageId"],
|
17170
17200
|
# owners: ["String"],
|
17201
|
+
# include_deprecated: false,
|
17171
17202
|
# dry_run: false,
|
17172
17203
|
# }
|
17173
17204
|
#
|
@@ -17287,6 +17318,18 @@ module Aws::EC2
|
|
17287
17318
|
# ownership.
|
17288
17319
|
# @return [Array<String>]
|
17289
17320
|
#
|
17321
|
+
# @!attribute [rw] include_deprecated
|
17322
|
+
# If `true`, all deprecated AMIs are included in the response. If
|
17323
|
+
# `false`, no deprecated AMIs are included in the response. If no
|
17324
|
+
# value is specified, the default value is `false`.
|
17325
|
+
#
|
17326
|
+
# <note markdown="1"> If you are the AMI owner, all deprecated AMIs appear in the response
|
17327
|
+
# regardless of the value (`true` or `false`) that you set for this
|
17328
|
+
# parameter.
|
17329
|
+
#
|
17330
|
+
# </note>
|
17331
|
+
# @return [Boolean]
|
17332
|
+
#
|
17290
17333
|
# @!attribute [rw] dry_run
|
17291
17334
|
# Checks whether you have the required permissions for the action,
|
17292
17335
|
# without actually making the request, and provides an error response.
|
@@ -17301,6 +17344,7 @@ module Aws::EC2
|
|
17301
17344
|
:filters,
|
17302
17345
|
:image_ids,
|
17303
17346
|
:owners,
|
17347
|
+
:include_deprecated,
|
17304
17348
|
:dry_run)
|
17305
17349
|
SENSITIVE = []
|
17306
17350
|
include Aws::Structure
|
@@ -25895,6 +25939,47 @@ module Aws::EC2
|
|
25895
25939
|
include Aws::Structure
|
25896
25940
|
end
|
25897
25941
|
|
25942
|
+
# @note When making an API call, you may pass DisableImageDeprecationRequest
|
25943
|
+
# data as a hash:
|
25944
|
+
#
|
25945
|
+
# {
|
25946
|
+
# image_id: "ImageId", # required
|
25947
|
+
# dry_run: false,
|
25948
|
+
# }
|
25949
|
+
#
|
25950
|
+
# @!attribute [rw] image_id
|
25951
|
+
# The ID of the AMI.
|
25952
|
+
# @return [String]
|
25953
|
+
#
|
25954
|
+
# @!attribute [rw] dry_run
|
25955
|
+
# Checks whether you have the required permissions for the action,
|
25956
|
+
# without actually making the request, and provides an error response.
|
25957
|
+
# If you have the required permissions, the error response is
|
25958
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
25959
|
+
# @return [Boolean]
|
25960
|
+
#
|
25961
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeprecationRequest AWS API Documentation
|
25962
|
+
#
|
25963
|
+
class DisableImageDeprecationRequest < Struct.new(
|
25964
|
+
:image_id,
|
25965
|
+
:dry_run)
|
25966
|
+
SENSITIVE = []
|
25967
|
+
include Aws::Structure
|
25968
|
+
end
|
25969
|
+
|
25970
|
+
# @!attribute [rw] return
|
25971
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
25972
|
+
# error.
|
25973
|
+
# @return [Boolean]
|
25974
|
+
#
|
25975
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/DisableImageDeprecationResult AWS API Documentation
|
25976
|
+
#
|
25977
|
+
class DisableImageDeprecationResult < Struct.new(
|
25978
|
+
:return)
|
25979
|
+
SENSITIVE = []
|
25980
|
+
include Aws::Structure
|
25981
|
+
end
|
25982
|
+
|
25898
25983
|
# @note When making an API call, you may pass DisableSerialConsoleAccessRequest
|
25899
25984
|
# data as a hash:
|
25900
25985
|
#
|
@@ -27426,6 +27511,58 @@ module Aws::EC2
|
|
27426
27511
|
include Aws::Structure
|
27427
27512
|
end
|
27428
27513
|
|
27514
|
+
# @note When making an API call, you may pass EnableImageDeprecationRequest
|
27515
|
+
# data as a hash:
|
27516
|
+
#
|
27517
|
+
# {
|
27518
|
+
# image_id: "ImageId", # required
|
27519
|
+
# deprecate_at: Time.now, # required
|
27520
|
+
# dry_run: false,
|
27521
|
+
# }
|
27522
|
+
#
|
27523
|
+
# @!attribute [rw] image_id
|
27524
|
+
# The ID of the AMI.
|
27525
|
+
# @return [String]
|
27526
|
+
#
|
27527
|
+
# @!attribute [rw] deprecate_at
|
27528
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
27529
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specify a value
|
27530
|
+
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
27531
|
+
#
|
27532
|
+
# You can’t specify a date in the past. The upper limit for
|
27533
|
+
# `DeprecateAt` is 10 years from now.
|
27534
|
+
# @return [Time]
|
27535
|
+
#
|
27536
|
+
# @!attribute [rw] dry_run
|
27537
|
+
# Checks whether you have the required permissions for the action,
|
27538
|
+
# without actually making the request, and provides an error response.
|
27539
|
+
# If you have the required permissions, the error response is
|
27540
|
+
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
27541
|
+
# @return [Boolean]
|
27542
|
+
#
|
27543
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeprecationRequest AWS API Documentation
|
27544
|
+
#
|
27545
|
+
class EnableImageDeprecationRequest < Struct.new(
|
27546
|
+
:image_id,
|
27547
|
+
:deprecate_at,
|
27548
|
+
:dry_run)
|
27549
|
+
SENSITIVE = []
|
27550
|
+
include Aws::Structure
|
27551
|
+
end
|
27552
|
+
|
27553
|
+
# @!attribute [rw] return
|
27554
|
+
# Returns `true` if the request succeeds; otherwise, it returns an
|
27555
|
+
# error.
|
27556
|
+
# @return [Boolean]
|
27557
|
+
#
|
27558
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/EnableImageDeprecationResult AWS API Documentation
|
27559
|
+
#
|
27560
|
+
class EnableImageDeprecationResult < Struct.new(
|
27561
|
+
:return)
|
27562
|
+
SENSITIVE = []
|
27563
|
+
include Aws::Structure
|
27564
|
+
end
|
27565
|
+
|
27429
27566
|
# @note When making an API call, you may pass EnableSerialConsoleAccessRequest
|
27430
27567
|
# data as a hash:
|
27431
27568
|
#
|
@@ -31832,6 +31969,12 @@ module Aws::EC2
|
|
31832
31969
|
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot.html
|
31833
31970
|
# @return [String]
|
31834
31971
|
#
|
31972
|
+
# @!attribute [rw] deprecation_time
|
31973
|
+
# The date and time to deprecate the AMI, in UTC, in the following
|
31974
|
+
# format: *YYYY*-*MM*-*DD*T*HH*\:*MM*\:*SS*Z. If you specified a value
|
31975
|
+
# for seconds, Amazon EC2 rounds the seconds to the nearest minute.
|
31976
|
+
# @return [String]
|
31977
|
+
#
|
31835
31978
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/Image AWS API Documentation
|
31836
31979
|
#
|
31837
31980
|
class Image < Struct.new(
|
@@ -31861,7 +32004,8 @@ module Aws::EC2
|
|
31861
32004
|
:state_reason,
|
31862
32005
|
:tags,
|
31863
32006
|
:virtualization_type,
|
31864
|
-
:boot_mode
|
32007
|
+
:boot_mode,
|
32008
|
+
:deprecation_time)
|
31865
32009
|
SENSITIVE = []
|
31866
32010
|
include Aws::Structure
|
31867
32011
|
end
|
@@ -41293,6 +41437,11 @@ module Aws::EC2
|
|
41293
41437
|
# The tags for the NAT gateway.
|
41294
41438
|
# @return [Array<Types::Tag>]
|
41295
41439
|
#
|
41440
|
+
# @!attribute [rw] connectivity_type
|
41441
|
+
# Indicates whether the NAT gateway supports public or private
|
41442
|
+
# connectivity.
|
41443
|
+
# @return [String]
|
41444
|
+
#
|
41296
41445
|
# @see http://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/NatGateway AWS API Documentation
|
41297
41446
|
#
|
41298
41447
|
class NatGateway < Struct.new(
|
@@ -41306,7 +41455,8 @@ module Aws::EC2
|
|
41306
41455
|
:state,
|
41307
41456
|
:subnet_id,
|
41308
41457
|
:vpc_id,
|
41309
|
-
:tags
|
41458
|
+
:tags,
|
41459
|
+
:connectivity_type)
|
41310
41460
|
SENSITIVE = []
|
41311
41461
|
include Aws::Structure
|
41312
41462
|
end
|
@@ -41315,8 +41465,8 @@ module Aws::EC2
|
|
41315
41465
|
# gateway.
|
41316
41466
|
#
|
41317
41467
|
# @!attribute [rw] allocation_id
|
41318
|
-
# The allocation ID of the Elastic IP
|
41319
|
-
# the NAT gateway.
|
41468
|
+
# \[Public NAT gateway only\] The allocation ID of the Elastic IP
|
41469
|
+
# address that's associated with the NAT gateway.
|
41320
41470
|
# @return [String]
|
41321
41471
|
#
|
41322
41472
|
# @!attribute [rw] network_interface_id
|
@@ -41324,11 +41474,12 @@ module Aws::EC2
|
|
41324
41474
|
# @return [String]
|
41325
41475
|
#
|
41326
41476
|
# @!attribute [rw] private_ip
|
41327
|
-
# The private IP address associated with the
|
41477
|
+
# The private IP address associated with the NAT gateway.
|
41328
41478
|
# @return [String]
|
41329
41479
|
#
|
41330
41480
|
# @!attribute [rw] public_ip
|
41331
|
-
# The Elastic IP address associated with
|
41481
|
+
# \[Public NAT gateway only\] The Elastic IP address associated with
|
41482
|
+
# the NAT gateway.
|
41332
41483
|
# @return [String]
|
41333
41484
|
#
|
41334
41485
|
# @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.
|
4
|
+
version: 1.242.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-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sigv4
|