@aws-sdk/client-ec2 3.245.0 → 3.252.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.
- package/README.md +4 -4
- package/dist-types/EC2.d.ts +36 -59
- package/dist-types/EC2Client.d.ts +4 -4
- package/dist-types/commands/AcceptVpcEndpointConnectionsCommand.d.ts +1 -1
- package/dist-types/commands/CreateSubnetCommand.d.ts +12 -13
- package/dist-types/commands/CreateVpcCommand.d.ts +4 -6
- package/dist-types/commands/CreateVpcEndpointServiceConfigurationCommand.d.ts +1 -1
- package/dist-types/commands/DeleteVpcEndpointConnectionNotificationsCommand.d.ts +1 -1
- package/dist-types/commands/DeleteVpcEndpointServiceConfigurationsCommand.d.ts +3 -3
- package/dist-types/commands/DeleteVpcEndpointsCommand.d.ts +5 -25
- package/dist-types/commands/DescribeVpcEndpointsCommand.d.ts +1 -1
- package/dist-types/commands/ModifyVpcEndpointServicePermissionsCommand.d.ts +3 -2
- package/dist-types/commands/RejectVpcEndpointConnectionsCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +20 -18
- package/dist-types/models/models_1.d.ts +37 -26
- package/dist-types/models/models_2.d.ts +15 -22
- package/dist-types/models/models_3.d.ts +37 -24
- package/dist-types/models/models_4.d.ts +10 -16
- package/dist-types/models/models_5.d.ts +11 -25
- package/dist-types/models/models_6.d.ts +62 -42
- package/package.json +4 -4
|
@@ -215,17 +215,27 @@ export interface ModifyInstanceMetadataOptionsRequest {
|
|
|
215
215
|
*/
|
|
216
216
|
InstanceId: string | undefined;
|
|
217
217
|
/**
|
|
218
|
-
* <p>
|
|
219
|
-
*
|
|
220
|
-
*
|
|
221
|
-
*
|
|
222
|
-
*
|
|
223
|
-
*
|
|
224
|
-
*
|
|
225
|
-
*
|
|
226
|
-
*
|
|
227
|
-
*
|
|
228
|
-
*
|
|
218
|
+
* <p>IMDSv2 uses token-backed sessions. Set the use of HTTP tokens to <code>optional</code>
|
|
219
|
+
* (in other words, set the use of IMDSv2 to <code>optional</code>) or
|
|
220
|
+
* <code>required</code> (in other words, set the use of IMDSv2 to
|
|
221
|
+
* <code>required</code>).</p>
|
|
222
|
+
* <ul>
|
|
223
|
+
* <li>
|
|
224
|
+
* <p>
|
|
225
|
+
* <code>optional</code> - When IMDSv2 is optional, you can choose to retrieve instance metadata with or without
|
|
226
|
+
* a session token in your request. If you retrieve the IAM role credentials
|
|
227
|
+
* without a token, the IMDSv1 role credentials are returned. If you retrieve the IAM role credentials
|
|
228
|
+
* using a valid session token, the IMDSv2 role credentials are returned.</p>
|
|
229
|
+
* </li>
|
|
230
|
+
* <li>
|
|
231
|
+
* <p>
|
|
232
|
+
* <code>required</code> - When IMDSv2 is required, you must send a session token
|
|
233
|
+
* with any instance metadata retrieval requests. In this state, retrieving the IAM role
|
|
234
|
+
* credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.</p>
|
|
235
|
+
* </li>
|
|
236
|
+
* </ul>
|
|
237
|
+
* <p>Default: <code>optional</code>
|
|
238
|
+
* </p>
|
|
229
239
|
*/
|
|
230
240
|
HttpTokens?: HttpTokensState | string;
|
|
231
241
|
/**
|
|
@@ -765,11 +775,15 @@ export interface SecurityGroupRuleRequest {
|
|
|
765
775
|
*/
|
|
766
776
|
IpProtocol?: string;
|
|
767
777
|
/**
|
|
768
|
-
* <p>
|
|
778
|
+
* <p>If the protocol is TCP or UDP, this is the start of the port range.
|
|
779
|
+
* If the protocol is ICMP or ICMPv6, this is the type number. A value of -1 indicates all ICMP/ICMPv6 types.
|
|
780
|
+
* If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.</p>
|
|
769
781
|
*/
|
|
770
782
|
FromPort?: number;
|
|
771
783
|
/**
|
|
772
|
-
* <p>
|
|
784
|
+
* <p>If the protocol is TCP or UDP, this is the end of the port range.
|
|
785
|
+
* If the protocol is ICMP or ICMPv6, this is the code. A value of -1 indicates all ICMP/ICMPv6 codes.
|
|
786
|
+
* If you specify all ICMP/ICMPv6 types, you must specify all ICMP/ICMPv6 codes.</p>
|
|
773
787
|
*/
|
|
774
788
|
ToPort?: number;
|
|
775
789
|
/**
|
|
@@ -1764,9 +1778,6 @@ export interface ModifyVpcAttributeRequest {
|
|
|
1764
1778
|
*/
|
|
1765
1779
|
EnableNetworkAddressUsageMetrics?: AttributeBooleanValue;
|
|
1766
1780
|
}
|
|
1767
|
-
/**
|
|
1768
|
-
* <p>Contains the parameters for ModifyVpcEndpoint.</p>
|
|
1769
|
-
*/
|
|
1770
1781
|
export interface ModifyVpcEndpointRequest {
|
|
1771
1782
|
/**
|
|
1772
1783
|
* <p>Checks whether you have the required permissions for the action, without actually making the request,
|
|
@@ -1789,27 +1800,28 @@ export interface ModifyVpcEndpointRequest {
|
|
|
1789
1800
|
*/
|
|
1790
1801
|
PolicyDocument?: string;
|
|
1791
1802
|
/**
|
|
1792
|
-
* <p>(Gateway endpoint)
|
|
1803
|
+
* <p>(Gateway endpoint) The IDs of the route tables to associate with the endpoint.</p>
|
|
1793
1804
|
*/
|
|
1794
1805
|
AddRouteTableIds?: string[];
|
|
1795
1806
|
/**
|
|
1796
|
-
* <p>(Gateway endpoint)
|
|
1807
|
+
* <p>(Gateway endpoint) The IDs of the route tables to disassociate from the endpoint.</p>
|
|
1797
1808
|
*/
|
|
1798
1809
|
RemoveRouteTableIds?: string[];
|
|
1799
1810
|
/**
|
|
1800
|
-
* <p>(Interface and Gateway Load Balancer endpoints)
|
|
1811
|
+
* <p>(Interface and Gateway Load Balancer endpoints) The IDs of the subnets in which to serve the endpoint.
|
|
1812
|
+
* For a Gateway Load Balancer endpoint, you can specify only one subnet.</p>
|
|
1801
1813
|
*/
|
|
1802
1814
|
AddSubnetIds?: string[];
|
|
1803
1815
|
/**
|
|
1804
|
-
* <p>(Interface endpoint)
|
|
1816
|
+
* <p>(Interface endpoint) The IDs of the subnets from which to remove the endpoint.</p>
|
|
1805
1817
|
*/
|
|
1806
1818
|
RemoveSubnetIds?: string[];
|
|
1807
1819
|
/**
|
|
1808
|
-
* <p>(Interface endpoint)
|
|
1820
|
+
* <p>(Interface endpoint) The IDs of the security groups to associate with the network interface.</p>
|
|
1809
1821
|
*/
|
|
1810
1822
|
AddSecurityGroupIds?: string[];
|
|
1811
1823
|
/**
|
|
1812
|
-
* <p>(Interface endpoint)
|
|
1824
|
+
* <p>(Interface endpoint) The IDs of the security groups to disassociate from the network interface.</p>
|
|
1813
1825
|
*/
|
|
1814
1826
|
RemoveSecurityGroupIds?: string[];
|
|
1815
1827
|
/**
|
|
@@ -1848,7 +1860,7 @@ export interface ModifyVpcEndpointConnectionNotificationRequest {
|
|
|
1848
1860
|
*/
|
|
1849
1861
|
ConnectionNotificationArn?: string;
|
|
1850
1862
|
/**
|
|
1851
|
-
* <p>
|
|
1863
|
+
* <p>The events for the endpoint. Valid values are <code>Accept</code>,
|
|
1852
1864
|
* <code>Connect</code>, <code>Delete</code>, and <code>Reject</code>.</p>
|
|
1853
1865
|
*/
|
|
1854
1866
|
ConnectionEvents?: string[];
|
|
@@ -1953,13 +1965,13 @@ export interface ModifyVpcEndpointServicePermissionsRequest {
|
|
|
1953
1965
|
*/
|
|
1954
1966
|
ServiceId: string | undefined;
|
|
1955
1967
|
/**
|
|
1956
|
-
* <p>The Amazon Resource Names (ARN) of
|
|
1968
|
+
* <p>The Amazon Resource Names (ARN) of the principals.
|
|
1957
1969
|
* Permissions are granted to the principals in this list.
|
|
1958
1970
|
* To grant permissions to all principals, specify an asterisk (*).</p>
|
|
1959
1971
|
*/
|
|
1960
1972
|
AddAllowedPrincipals?: string[];
|
|
1961
1973
|
/**
|
|
1962
|
-
* <p>The Amazon Resource Names (ARN) of
|
|
1974
|
+
* <p>The Amazon Resource Names (ARN) of the principals.
|
|
1963
1975
|
* Permissions are revoked for principals in this list.</p>
|
|
1964
1976
|
*/
|
|
1965
1977
|
RemoveAllowedPrincipals?: string[];
|
|
@@ -3074,7 +3086,7 @@ export interface RejectVpcEndpointConnectionsRequest {
|
|
|
3074
3086
|
*/
|
|
3075
3087
|
ServiceId: string | undefined;
|
|
3076
3088
|
/**
|
|
3077
|
-
* <p>The IDs of
|
|
3089
|
+
* <p>The IDs of the VPC endpoints.</p>
|
|
3078
3090
|
*/
|
|
3079
3091
|
VpcEndpointIds: string[] | undefined;
|
|
3080
3092
|
}
|
|
@@ -4098,8 +4110,8 @@ export interface RevokeSecurityGroupIngressRequest {
|
|
|
4098
4110
|
*/
|
|
4099
4111
|
CidrIp?: string;
|
|
4100
4112
|
/**
|
|
4101
|
-
* <p>
|
|
4102
|
-
*
|
|
4113
|
+
* <p>If the protocol is TCP or UDP, this is the start of the port range.
|
|
4114
|
+
* If the protocol is ICMP, this is the type number. A value of -1 indicates all ICMP types.</p>
|
|
4103
4115
|
*/
|
|
4104
4116
|
FromPort?: number;
|
|
4105
4117
|
/**
|
|
@@ -4133,8 +4145,8 @@ export interface RevokeSecurityGroupIngressRequest {
|
|
|
4133
4145
|
*/
|
|
4134
4146
|
SourceSecurityGroupOwnerId?: string;
|
|
4135
4147
|
/**
|
|
4136
|
-
* <p>
|
|
4137
|
-
*
|
|
4148
|
+
* <p>If the protocol is TCP or UDP, this is the end of the port range.
|
|
4149
|
+
* If the protocol is ICMP, this is the code. A value of -1 indicates all ICMP codes.</p>
|
|
4138
4150
|
*/
|
|
4139
4151
|
ToPort?: number;
|
|
4140
4152
|
/**
|
|
@@ -4336,16 +4348,25 @@ export interface InstanceMaintenanceOptionsRequest {
|
|
|
4336
4348
|
*/
|
|
4337
4349
|
export interface InstanceMetadataOptionsRequest {
|
|
4338
4350
|
/**
|
|
4339
|
-
* <p>
|
|
4340
|
-
*
|
|
4341
|
-
*
|
|
4342
|
-
*
|
|
4343
|
-
*
|
|
4344
|
-
*
|
|
4345
|
-
*
|
|
4346
|
-
*
|
|
4347
|
-
*
|
|
4348
|
-
*
|
|
4351
|
+
* <p>IMDSv2 uses token-backed sessions. Set the use of HTTP tokens to <code>optional</code>
|
|
4352
|
+
* (in other words, set the use of IMDSv2 to <code>optional</code>) or
|
|
4353
|
+
* <code>required</code> (in other words, set the use of IMDSv2 to
|
|
4354
|
+
* <code>required</code>).</p>
|
|
4355
|
+
* <ul>
|
|
4356
|
+
* <li>
|
|
4357
|
+
* <p>
|
|
4358
|
+
* <code>optional</code> - When IMDSv2 is optional, you can choose to retrieve instance metadata with or without
|
|
4359
|
+
* a session token in your request. If you retrieve the IAM role credentials
|
|
4360
|
+
* without a token, the IMDSv1 role credentials are returned. If you retrieve the IAM role credentials
|
|
4361
|
+
* using a valid session token, the IMDSv2 role credentials are returned.</p>
|
|
4362
|
+
* </li>
|
|
4363
|
+
* <li>
|
|
4364
|
+
* <p>
|
|
4365
|
+
* <code>required</code> - When IMDSv2 is required, you must send a session token
|
|
4366
|
+
* with any instance metadata retrieval requests. In this state, retrieving the IAM role
|
|
4367
|
+
* credentials always returns IMDSv2 credentials; IMDSv1 credentials are not available.</p>
|
|
4368
|
+
* </li>
|
|
4369
|
+
* </ul>
|
|
4349
4370
|
* <p>Default: <code>optional</code>
|
|
4350
4371
|
* </p>
|
|
4351
4372
|
*/
|
|
@@ -4504,8 +4525,7 @@ export interface RunInstancesRequest {
|
|
|
4504
4525
|
*/
|
|
4505
4526
|
SecurityGroupIds?: string[];
|
|
4506
4527
|
/**
|
|
4507
|
-
* <p>[EC2-Classic, default VPC] The names of the security groups
|
|
4508
|
-
* must use security group IDs instead.</p>
|
|
4528
|
+
* <p>[EC2-Classic, default VPC] The names of the security groups.</p>
|
|
4509
4529
|
* <p>If you specify a network interface, you must specify any security groups as part of
|
|
4510
4530
|
* the network interface.</p>
|
|
4511
4531
|
* <p>Default: Amazon EC2 uses the default security group.</p>
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-ec2",
|
|
3
3
|
"description": "AWS SDK for JavaScript Ec2 Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.252.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"build:types": "tsc -p tsconfig.types.json",
|
|
12
12
|
"build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
|
|
13
13
|
"clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
|
|
14
|
-
"generate:client": "
|
|
14
|
+
"generate:client": "node ../../scripts/generate-clients/single-service --solo ec2"
|
|
15
15
|
},
|
|
16
16
|
"main": "./dist-cjs/index.js",
|
|
17
17
|
"types": "./dist-types/index.d.ts",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.252.0",
|
|
24
24
|
"@aws-sdk/config-resolver": "3.234.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.252.0",
|
|
26
26
|
"@aws-sdk/fetch-http-handler": "3.226.0",
|
|
27
27
|
"@aws-sdk/hash-node": "3.226.0",
|
|
28
28
|
"@aws-sdk/invalid-dependency": "3.226.0",
|