@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.
@@ -215,17 +215,27 @@ export interface ModifyInstanceMetadataOptionsRequest {
215
215
  */
216
216
  InstanceId: string | undefined;
217
217
  /**
218
- * <p>The state of token usage for your instance metadata requests. If the parameter is not
219
- * specified in the request, the default state is <code>optional</code>.</p>
220
- * <p>If the state is <code>optional</code>, you can choose to retrieve instance metadata
221
- * with or without a session token on your request. If you retrieve the IAM
222
- * role credentials without a token, the version 1.0 role credentials are returned. If you
223
- * retrieve the IAM role credentials using a valid session token, the
224
- * version 2.0 role credentials are returned.</p>
225
- * <p>If the state is <code>required</code>, you must send a session token with any instance
226
- * metadata retrieval requests. In this state, retrieving the IAM role
227
- * credentials always returns the version 2.0 credentials; the version 1.0 credentials are
228
- * not available.</p>
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>The start of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 type. A value of -1 indicates all ICMP/ICMPv6 types. If you specify all ICMP/ICMPv6 types, you must specify all codes.</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>The end of port range for the TCP and UDP protocols, or an ICMP/ICMPv6 code. A value of <code>-1</code> indicates all ICMP/ICMPv6 codes. If you specify all ICMP/ICMPv6 types, you must specify all codes. </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) One or more route tables IDs to associate with the endpoint.</p>
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) One or more route table IDs to disassociate from the endpoint.</p>
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) One or more subnet IDs in which to serve the endpoint. For a Gateway Load Balancer endpoint, you can specify only one subnet.</p>
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) One or more subnets IDs in which to remove the endpoint.</p>
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) One or more security group IDs to associate with the network interface.</p>
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) One or more security group IDs to disassociate from the network interface.</p>
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>One or more events for the endpoint. Valid values are <code>Accept</code>,
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 one or more principals.
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 one or more principals.
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 one or more VPC endpoints.</p>
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>The start of port range for the TCP and UDP protocols, or an ICMP type number. For the ICMP type number,
4102
- * use <code>-1</code> to specify all ICMP types.</p>
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>The end of port range for the TCP and UDP protocols, or an ICMP code number. For the ICMP code number,
4137
- * use <code>-1</code> to specify all ICMP codes for the ICMP type.</p>
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>The state of token usage for your instance metadata requests.</p>
4340
- * <p>If the state is <code>optional</code>, you can choose to retrieve instance metadata
4341
- * with or without a session token on your request. If you retrieve the IAM
4342
- * role credentials without a token, the version 1.0 role credentials are returned. If you
4343
- * retrieve the IAM role credentials using a valid session token, the
4344
- * version 2.0 role credentials are returned.</p>
4345
- * <p>If the state is <code>required</code>, you must send a session token with any instance
4346
- * metadata retrieval requests. In this state, retrieving the IAM role
4347
- * credentials always returns the version 2.0 credentials; the version 1.0 credentials are
4348
- * not available.</p>
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. For a nondefault VPC, you
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.245.0",
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": "(cd ../../ && yarn generate-clients -g ./codegen/sdk-codegen/aws-models/ec2.json --keepFiles)"
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.245.0",
23
+ "@aws-sdk/client-sts": "3.252.0",
24
24
  "@aws-sdk/config-resolver": "3.234.0",
25
- "@aws-sdk/credential-provider-node": "3.245.0",
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",