aws-sdk-ec2 1.422.0 → 1.423.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-ec2/client.rb +563 -38
- data/lib/aws-sdk-ec2/client_api.rb +258 -1
- data/lib/aws-sdk-ec2/endpoints.rb +84 -0
- data/lib/aws-sdk-ec2/instance.rb +2 -1
- data/lib/aws-sdk-ec2/network_interface.rb +20 -0
- data/lib/aws-sdk-ec2/plugins/endpoints.rb +12 -0
- data/lib/aws-sdk-ec2/resource.rb +26 -4
- data/lib/aws-sdk-ec2/subnet.rb +12 -0
- data/lib/aws-sdk-ec2/types.rb +919 -28
- data/lib/aws-sdk-ec2/vpc.rb +14 -4
- data/lib/aws-sdk-ec2.rb +1 -1
- metadata +2 -2
@@ -306,6 +306,20 @@ module Aws::EC2
|
|
306
306
|
end
|
307
307
|
end
|
308
308
|
|
309
|
+
class AssociateIpamByoasn
|
310
|
+
def self.build(context)
|
311
|
+
unless context.config.regional_endpoint
|
312
|
+
endpoint = context.config.endpoint.to_s
|
313
|
+
end
|
314
|
+
Aws::EC2::EndpointParameters.new(
|
315
|
+
region: context.config.region,
|
316
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
317
|
+
use_fips: context.config.use_fips_endpoint,
|
318
|
+
endpoint: endpoint,
|
319
|
+
)
|
320
|
+
end
|
321
|
+
end
|
322
|
+
|
309
323
|
class AssociateIpamResourceDiscovery
|
310
324
|
def self.build(context)
|
311
325
|
unless context.config.regional_endpoint
|
@@ -2966,6 +2980,20 @@ module Aws::EC2
|
|
2966
2980
|
end
|
2967
2981
|
end
|
2968
2982
|
|
2983
|
+
class DeprovisionIpamByoasn
|
2984
|
+
def self.build(context)
|
2985
|
+
unless context.config.regional_endpoint
|
2986
|
+
endpoint = context.config.endpoint.to_s
|
2987
|
+
end
|
2988
|
+
Aws::EC2::EndpointParameters.new(
|
2989
|
+
region: context.config.region,
|
2990
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
2991
|
+
use_fips: context.config.use_fips_endpoint,
|
2992
|
+
endpoint: endpoint,
|
2993
|
+
)
|
2994
|
+
end
|
2995
|
+
end
|
2996
|
+
|
2969
2997
|
class DeprovisionIpamPoolCidr
|
2970
2998
|
def self.build(context)
|
2971
2999
|
unless context.config.regional_endpoint
|
@@ -3834,6 +3862,20 @@ module Aws::EC2
|
|
3834
3862
|
end
|
3835
3863
|
end
|
3836
3864
|
|
3865
|
+
class DescribeIpamByoasn
|
3866
|
+
def self.build(context)
|
3867
|
+
unless context.config.regional_endpoint
|
3868
|
+
endpoint = context.config.endpoint.to_s
|
3869
|
+
end
|
3870
|
+
Aws::EC2::EndpointParameters.new(
|
3871
|
+
region: context.config.region,
|
3872
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
3873
|
+
use_fips: context.config.use_fips_endpoint,
|
3874
|
+
endpoint: endpoint,
|
3875
|
+
)
|
3876
|
+
end
|
3877
|
+
end
|
3878
|
+
|
3837
3879
|
class DescribeIpamPools
|
3838
3880
|
def self.build(context)
|
3839
3881
|
unless context.config.regional_endpoint
|
@@ -5486,6 +5528,20 @@ module Aws::EC2
|
|
5486
5528
|
end
|
5487
5529
|
end
|
5488
5530
|
|
5531
|
+
class DisassociateIpamByoasn
|
5532
|
+
def self.build(context)
|
5533
|
+
unless context.config.regional_endpoint
|
5534
|
+
endpoint = context.config.endpoint.to_s
|
5535
|
+
end
|
5536
|
+
Aws::EC2::EndpointParameters.new(
|
5537
|
+
region: context.config.region,
|
5538
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
5539
|
+
use_fips: context.config.use_fips_endpoint,
|
5540
|
+
endpoint: endpoint,
|
5541
|
+
)
|
5542
|
+
end
|
5543
|
+
end
|
5544
|
+
|
5489
5545
|
class DisassociateIpamResourceDiscovery
|
5490
5546
|
def self.build(context)
|
5491
5547
|
unless context.config.regional_endpoint
|
@@ -6158,6 +6214,20 @@ module Aws::EC2
|
|
6158
6214
|
end
|
6159
6215
|
end
|
6160
6216
|
|
6217
|
+
class GetIpamDiscoveredPublicAddresses
|
6218
|
+
def self.build(context)
|
6219
|
+
unless context.config.regional_endpoint
|
6220
|
+
endpoint = context.config.endpoint.to_s
|
6221
|
+
end
|
6222
|
+
Aws::EC2::EndpointParameters.new(
|
6223
|
+
region: context.config.region,
|
6224
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
6225
|
+
use_fips: context.config.use_fips_endpoint,
|
6226
|
+
endpoint: endpoint,
|
6227
|
+
)
|
6228
|
+
end
|
6229
|
+
end
|
6230
|
+
|
6161
6231
|
class GetIpamDiscoveredResourceCidrs
|
6162
6232
|
def self.build(context)
|
6163
6233
|
unless context.config.regional_endpoint
|
@@ -7628,6 +7698,20 @@ module Aws::EC2
|
|
7628
7698
|
end
|
7629
7699
|
end
|
7630
7700
|
|
7701
|
+
class ProvisionIpamByoasn
|
7702
|
+
def self.build(context)
|
7703
|
+
unless context.config.regional_endpoint
|
7704
|
+
endpoint = context.config.endpoint.to_s
|
7705
|
+
end
|
7706
|
+
Aws::EC2::EndpointParameters.new(
|
7707
|
+
region: context.config.region,
|
7708
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
7709
|
+
use_fips: context.config.use_fips_endpoint,
|
7710
|
+
endpoint: endpoint,
|
7711
|
+
)
|
7712
|
+
end
|
7713
|
+
end
|
7714
|
+
|
7631
7715
|
class ProvisionIpamPoolCidr
|
7632
7716
|
def self.build(context)
|
7633
7717
|
unless context.config.regional_endpoint
|
data/lib/aws-sdk-ec2/instance.rb
CHANGED
@@ -85,7 +85,8 @@ module Aws::EC2
|
|
85
85
|
data[:placement]
|
86
86
|
end
|
87
87
|
|
88
|
-
# The value is `
|
88
|
+
# The platform. This value is `windows` for Windows instances;
|
89
|
+
# otherwise, it is empty.
|
89
90
|
# @return [String]
|
90
91
|
def platform
|
91
92
|
data[:platform]
|
@@ -47,6 +47,19 @@ module Aws::EC2
|
|
47
47
|
data[:availability_zone]
|
48
48
|
end
|
49
49
|
|
50
|
+
# A security group connection tracking configuration that enables you to
|
51
|
+
# set the timeout for connection tracking on an Elastic network
|
52
|
+
# interface. For more information, see [Connection tracking timeouts][1]
|
53
|
+
# in the *Amazon Elastic Compute Cloud User Guide*.
|
54
|
+
#
|
55
|
+
#
|
56
|
+
#
|
57
|
+
# [1]: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/security-group-connection-tracking.html#connection-tracking-timeouts
|
58
|
+
# @return [Types::ConnectionTrackingConfiguration]
|
59
|
+
def connection_tracking_configuration
|
60
|
+
data[:connection_tracking_configuration]
|
61
|
+
end
|
62
|
+
|
50
63
|
# A description.
|
51
64
|
# @return [String]
|
52
65
|
def description
|
@@ -599,6 +612,11 @@ module Aws::EC2
|
|
599
612
|
# },
|
600
613
|
# },
|
601
614
|
# enable_primary_ipv_6: false,
|
615
|
+
# connection_tracking_specification: {
|
616
|
+
# tcp_established_timeout: 1,
|
617
|
+
# udp_stream_timeout: 1,
|
618
|
+
# udp_timeout: 1,
|
619
|
+
# },
|
602
620
|
# })
|
603
621
|
# @param [Hash] options ({})
|
604
622
|
# @option options [Types::NetworkInterfaceAttachmentChanges] :attachment
|
@@ -643,6 +661,8 @@ module Aws::EC2
|
|
643
661
|
# with an ENI attached to your instance and you enable a primary IPv6
|
644
662
|
# address, the first IPv6 GUA address associated with the ENI becomes
|
645
663
|
# the primary IPv6 address.
|
664
|
+
# @option options [Types::ConnectionTrackingSpecificationRequest] :connection_tracking_specification
|
665
|
+
# A connection tracking specification.
|
646
666
|
# @return [EmptyStructure]
|
647
667
|
def modify_attribute(options = {})
|
648
668
|
options = options.merge(network_interface_id: @id)
|
@@ -98,6 +98,8 @@ module Aws::EC2
|
|
98
98
|
Aws::EC2::Endpoints::AssociateIamInstanceProfile.build(context)
|
99
99
|
when :associate_instance_event_window
|
100
100
|
Aws::EC2::Endpoints::AssociateInstanceEventWindow.build(context)
|
101
|
+
when :associate_ipam_byoasn
|
102
|
+
Aws::EC2::Endpoints::AssociateIpamByoasn.build(context)
|
101
103
|
when :associate_ipam_resource_discovery
|
102
104
|
Aws::EC2::Endpoints::AssociateIpamResourceDiscovery.build(context)
|
103
105
|
when :associate_nat_gateway_address
|
@@ -478,6 +480,8 @@ module Aws::EC2
|
|
478
480
|
Aws::EC2::Endpoints::DeleteVpnGateway.build(context)
|
479
481
|
when :deprovision_byoip_cidr
|
480
482
|
Aws::EC2::Endpoints::DeprovisionByoipCidr.build(context)
|
483
|
+
when :deprovision_ipam_byoasn
|
484
|
+
Aws::EC2::Endpoints::DeprovisionIpamByoasn.build(context)
|
481
485
|
when :deprovision_ipam_pool_cidr
|
482
486
|
Aws::EC2::Endpoints::DeprovisionIpamPoolCidr.build(context)
|
483
487
|
when :deprovision_public_ipv_4_pool_cidr
|
@@ -602,6 +606,8 @@ module Aws::EC2
|
|
602
606
|
Aws::EC2::Endpoints::DescribeInstances.build(context)
|
603
607
|
when :describe_internet_gateways
|
604
608
|
Aws::EC2::Endpoints::DescribeInternetGateways.build(context)
|
609
|
+
when :describe_ipam_byoasn
|
610
|
+
Aws::EC2::Endpoints::DescribeIpamByoasn.build(context)
|
605
611
|
when :describe_ipam_pools
|
606
612
|
Aws::EC2::Endpoints::DescribeIpamPools.build(context)
|
607
613
|
when :describe_ipam_resource_discoveries
|
@@ -838,6 +844,8 @@ module Aws::EC2
|
|
838
844
|
Aws::EC2::Endpoints::DisassociateIamInstanceProfile.build(context)
|
839
845
|
when :disassociate_instance_event_window
|
840
846
|
Aws::EC2::Endpoints::DisassociateInstanceEventWindow.build(context)
|
847
|
+
when :disassociate_ipam_byoasn
|
848
|
+
Aws::EC2::Endpoints::DisassociateIpamByoasn.build(context)
|
841
849
|
when :disassociate_ipam_resource_discovery
|
842
850
|
Aws::EC2::Endpoints::DisassociateIpamResourceDiscovery.build(context)
|
843
851
|
when :disassociate_nat_gateway_address
|
@@ -934,6 +942,8 @@ module Aws::EC2
|
|
934
942
|
Aws::EC2::Endpoints::GetIpamAddressHistory.build(context)
|
935
943
|
when :get_ipam_discovered_accounts
|
936
944
|
Aws::EC2::Endpoints::GetIpamDiscoveredAccounts.build(context)
|
945
|
+
when :get_ipam_discovered_public_addresses
|
946
|
+
Aws::EC2::Endpoints::GetIpamDiscoveredPublicAddresses.build(context)
|
937
947
|
when :get_ipam_discovered_resource_cidrs
|
938
948
|
Aws::EC2::Endpoints::GetIpamDiscoveredResourceCidrs.build(context)
|
939
949
|
when :get_ipam_pool_allocations
|
@@ -1144,6 +1154,8 @@ module Aws::EC2
|
|
1144
1154
|
Aws::EC2::Endpoints::MoveByoipCidrToIpam.build(context)
|
1145
1155
|
when :provision_byoip_cidr
|
1146
1156
|
Aws::EC2::Endpoints::ProvisionByoipCidr.build(context)
|
1157
|
+
when :provision_ipam_byoasn
|
1158
|
+
Aws::EC2::Endpoints::ProvisionIpamByoasn.build(context)
|
1147
1159
|
when :provision_ipam_pool_cidr
|
1148
1160
|
Aws::EC2::Endpoints::ProvisionIpamPoolCidr.build(context)
|
1149
1161
|
when :provision_public_ipv_4_pool_cidr
|
data/lib/aws-sdk-ec2/resource.rb
CHANGED
@@ -188,6 +188,11 @@ module Aws::EC2
|
|
188
188
|
# ena_srd_udp_enabled: false,
|
189
189
|
# },
|
190
190
|
# },
|
191
|
+
# connection_tracking_specification: {
|
192
|
+
# tcp_established_timeout: 1,
|
193
|
+
# udp_stream_timeout: 1,
|
194
|
+
# udp_timeout: 1,
|
195
|
+
# },
|
191
196
|
# },
|
192
197
|
# ],
|
193
198
|
# private_ip_address: "String",
|
@@ -911,6 +916,11 @@ module Aws::EC2
|
|
911
916
|
# ],
|
912
917
|
# client_token: "String",
|
913
918
|
# enable_primary_ipv_6: false,
|
919
|
+
# connection_tracking_specification: {
|
920
|
+
# tcp_established_timeout: 1,
|
921
|
+
# udp_stream_timeout: 1,
|
922
|
+
# udp_timeout: 1,
|
923
|
+
# },
|
914
924
|
# })
|
915
925
|
# @param [Hash] options ({})
|
916
926
|
# @option options [String] :description
|
@@ -1019,6 +1029,8 @@ module Aws::EC2
|
|
1019
1029
|
# with an ENI attached to your instance and you enable a primary IPv6
|
1020
1030
|
# address, the first IPv6 GUA address associated with the ENI becomes
|
1021
1031
|
# the primary IPv6 address.
|
1032
|
+
# @option options [Types::ConnectionTrackingSpecificationRequest] :connection_tracking_specification
|
1033
|
+
# A connection tracking specification for the network interface.
|
1022
1034
|
# @return [NetworkInterface]
|
1023
1035
|
def create_network_interface(options = {})
|
1024
1036
|
resp = Aws::Plugins::UserAgent.feature('resource') do
|
@@ -1265,6 +1277,10 @@ module Aws::EC2
|
|
1265
1277
|
# vpc_id: "VpcId", # required
|
1266
1278
|
# dry_run: false,
|
1267
1279
|
# ipv_6_native: false,
|
1280
|
+
# ipv_4_ipam_pool_id: "IpamPoolId",
|
1281
|
+
# ipv_4_netmask_length: 1,
|
1282
|
+
# ipv_6_ipam_pool_id: "IpamPoolId",
|
1283
|
+
# ipv_6_netmask_length: 1,
|
1268
1284
|
# })
|
1269
1285
|
# @param [Hash] options ({})
|
1270
1286
|
# @option options [Array<Types::TagSpecification>] :tag_specifications
|
@@ -1296,10 +1312,8 @@ module Aws::EC2
|
|
1296
1312
|
#
|
1297
1313
|
# This parameter is not supported for an IPv6 only subnet.
|
1298
1314
|
# @option options [String] :ipv_6_cidr_block
|
1299
|
-
# The IPv6 network range for the subnet, in CIDR notation.
|
1300
|
-
#
|
1301
|
-
#
|
1302
|
-
# This parameter is required for an IPv6 only subnet.
|
1315
|
+
# The IPv6 network range for the subnet, in CIDR notation. This
|
1316
|
+
# parameter is required for an IPv6 only subnet.
|
1303
1317
|
# @option options [String] :outpost_arn
|
1304
1318
|
# The Amazon Resource Name (ARN) of the Outpost. If you specify an
|
1305
1319
|
# Outpost ARN, you must also specify the Availability Zone of the
|
@@ -1313,6 +1327,14 @@ module Aws::EC2
|
|
1313
1327
|
# `DryRunOperation`. Otherwise, it is `UnauthorizedOperation`.
|
1314
1328
|
# @option options [Boolean] :ipv_6_native
|
1315
1329
|
# Indicates whether to create an IPv6 only subnet.
|
1330
|
+
# @option options [String] :ipv_4_ipam_pool_id
|
1331
|
+
# An IPv4 IPAM pool ID for the subnet.
|
1332
|
+
# @option options [Integer] :ipv_4_netmask_length
|
1333
|
+
# An IPv4 netmask length for the subnet.
|
1334
|
+
# @option options [String] :ipv_6_ipam_pool_id
|
1335
|
+
# An IPv6 IPAM pool ID for the subnet.
|
1336
|
+
# @option options [Integer] :ipv_6_netmask_length
|
1337
|
+
# An IPv6 netmask length for the subnet.
|
1316
1338
|
# @return [Subnet]
|
1317
1339
|
def create_subnet(options = {})
|
1318
1340
|
resp = Aws::Plugins::UserAgent.feature('resource') do
|
data/lib/aws-sdk-ec2/subnet.rb
CHANGED
@@ -414,6 +414,11 @@ module Aws::EC2
|
|
414
414
|
# ena_srd_udp_enabled: false,
|
415
415
|
# },
|
416
416
|
# },
|
417
|
+
# connection_tracking_specification: {
|
418
|
+
# tcp_established_timeout: 1,
|
419
|
+
# udp_stream_timeout: 1,
|
420
|
+
# udp_timeout: 1,
|
421
|
+
# },
|
417
422
|
# },
|
418
423
|
# ],
|
419
424
|
# private_ip_address: "String",
|
@@ -912,6 +917,11 @@ module Aws::EC2
|
|
912
917
|
# ],
|
913
918
|
# client_token: "String",
|
914
919
|
# enable_primary_ipv_6: false,
|
920
|
+
# connection_tracking_specification: {
|
921
|
+
# tcp_established_timeout: 1,
|
922
|
+
# udp_stream_timeout: 1,
|
923
|
+
# udp_timeout: 1,
|
924
|
+
# },
|
915
925
|
# })
|
916
926
|
# @param [Hash] options ({})
|
917
927
|
# @option options [String] :description
|
@@ -1018,6 +1028,8 @@ module Aws::EC2
|
|
1018
1028
|
# with an ENI attached to your instance and you enable a primary IPv6
|
1019
1029
|
# address, the first IPv6 GUA address associated with the ENI becomes
|
1020
1030
|
# the primary IPv6 address.
|
1031
|
+
# @option options [Types::ConnectionTrackingSpecificationRequest] :connection_tracking_specification
|
1032
|
+
# A connection tracking specification for the network interface.
|
1021
1033
|
# @return [NetworkInterface]
|
1022
1034
|
def create_network_interface(options = {})
|
1023
1035
|
options = options.merge(subnet_id: @id)
|