@aws-sdk/client-ec2 3.758.0 → 3.760.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.
Files changed (66) hide show
  1. package/dist-cjs/index.js +311 -217
  2. package/dist-es/commands/CreateVpnConnectionCommand.js +2 -1
  3. package/dist-es/models/models_1.js +19 -4
  4. package/dist-es/models/models_2.js +4 -9
  5. package/dist-es/models/models_3.js +10 -15
  6. package/dist-es/models/models_4.js +15 -0
  7. package/dist-es/models/models_5.js +1 -1
  8. package/dist-es/models/models_6.js +0 -6
  9. package/dist-es/models/models_7.js +7 -1
  10. package/dist-es/protocols/Aws_ec2.js +74 -4
  11. package/dist-types/commands/CreateDefaultVpcCommand.d.ts +37 -2
  12. package/dist-types/commands/CreateLocalGatewayRouteTableCommand.d.ts +1 -1
  13. package/dist-types/commands/CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand.d.ts +1 -2
  14. package/dist-types/commands/CreateVpcCommand.d.ts +37 -2
  15. package/dist-types/commands/CreateVpnConnectionCommand.d.ts +2 -1
  16. package/dist-types/commands/CreateVpnConnectionRouteCommand.d.ts +1 -1
  17. package/dist-types/commands/CreateVpnGatewayCommand.d.ts +1 -1
  18. package/dist-types/commands/DescribeFastLaunchImagesCommand.d.ts +2 -1
  19. package/dist-types/commands/DescribeFastSnapshotRestoresCommand.d.ts +1 -2
  20. package/dist-types/commands/DescribePrincipalIdFormatCommand.d.ts +2 -1
  21. package/dist-types/commands/DescribePublicIpv4PoolsCommand.d.ts +1 -1
  22. package/dist-types/commands/DescribeRegionsCommand.d.ts +1 -2
  23. package/dist-types/commands/DescribeVpcsCommand.d.ts +37 -2
  24. package/dist-types/commands/DisassociateTransitGatewayMulticastDomainCommand.d.ts +1 -1
  25. package/dist-types/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
  26. package/dist-types/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +1 -1
  27. package/dist-types/commands/ModifyInstanceCpuOptionsCommand.d.ts +1 -1
  28. package/dist-types/commands/ModifyInstanceCreditSpecificationCommand.d.ts +1 -2
  29. package/dist-types/commands/StopInstancesCommand.d.ts +2 -1
  30. package/dist-types/commands/TerminateClientVpnConnectionsCommand.d.ts +1 -1
  31. package/dist-types/commands/TerminateInstancesCommand.d.ts +1 -1
  32. package/dist-types/models/models_1.d.ts +73 -222
  33. package/dist-types/models/models_2.d.ts +224 -214
  34. package/dist-types/models/models_3.d.ts +211 -230
  35. package/dist-types/models/models_4.d.ts +234 -181
  36. package/dist-types/models/models_5.d.ts +182 -105
  37. package/dist-types/models/models_6.d.ts +104 -122
  38. package/dist-types/models/models_7.d.ts +124 -111
  39. package/dist-types/models/models_8.d.ts +108 -1
  40. package/dist-types/ts3.4/commands/CreateLocalGatewayRouteTableCommand.d.ts +1 -1
  41. package/dist-types/ts3.4/commands/CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationCommand.d.ts +4 -2
  42. package/dist-types/ts3.4/commands/CreateVpnConnectionCommand.d.ts +2 -4
  43. package/dist-types/ts3.4/commands/CreateVpnConnectionRouteCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/CreateVpnGatewayCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/DescribeFastLaunchImagesCommand.d.ts +2 -4
  46. package/dist-types/ts3.4/commands/DescribeFastSnapshotRestoresCommand.d.ts +4 -2
  47. package/dist-types/ts3.4/commands/DescribePrincipalIdFormatCommand.d.ts +2 -4
  48. package/dist-types/ts3.4/commands/DescribePublicIpv4PoolsCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/DescribeRegionsCommand.d.ts +4 -2
  50. package/dist-types/ts3.4/commands/DisassociateTransitGatewayMulticastDomainCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/DisassociateTransitGatewayPolicyTableCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/DisassociateTransitGatewayRouteTableCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/ModifyInstanceCpuOptionsCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/ModifyInstanceCreditSpecificationCommand.d.ts +4 -2
  55. package/dist-types/ts3.4/commands/StopInstancesCommand.d.ts +2 -1
  56. package/dist-types/ts3.4/commands/TerminateClientVpnConnectionsCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/TerminateInstancesCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/models/models_1.d.ts +46 -36
  59. package/dist-types/ts3.4/models/models_2.d.ts +36 -51
  60. package/dist-types/ts3.4/models/models_3.d.ts +58 -54
  61. package/dist-types/ts3.4/models/models_4.d.ts +58 -38
  62. package/dist-types/ts3.4/models/models_5.d.ts +40 -32
  63. package/dist-types/ts3.4/models/models_6.d.ts +29 -35
  64. package/dist-types/ts3.4/models/models_7.d.ts +35 -31
  65. package/dist-types/ts3.4/models/models_8.d.ts +28 -1
  66. package/package.json +1 -1
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { TerminateClientVpnConnectionsRequest, TerminateClientVpnConnectionsResult } from "../models/models_7";
4
+ import { TerminateClientVpnConnectionsRequest, TerminateClientVpnConnectionsResult } from "../models/models_8";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { EC2ClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EC2Client";
4
- import { TerminateInstancesRequest, TerminateInstancesResult } from "../models/models_7";
4
+ import { TerminateInstancesRequest, TerminateInstancesResult } from "../models/models_8";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -2960,6 +2960,78 @@ export interface CreateDefaultVpcRequest {
2960
2960
  */
2961
2961
  DryRun?: boolean | undefined;
2962
2962
  }
2963
+ /**
2964
+ * @public
2965
+ * @enum
2966
+ */
2967
+ export declare const VpcEncryptionControlMode: {
2968
+ readonly enforce: "enforce";
2969
+ readonly monitor: "monitor";
2970
+ };
2971
+ /**
2972
+ * @public
2973
+ */
2974
+ export type VpcEncryptionControlMode = (typeof VpcEncryptionControlMode)[keyof typeof VpcEncryptionControlMode];
2975
+ /**
2976
+ * @public
2977
+ * @enum
2978
+ */
2979
+ export declare const VpcEncryptionControlExclusionState: {
2980
+ readonly disabled: "disabled";
2981
+ readonly disabling: "disabling";
2982
+ readonly enabled: "enabled";
2983
+ readonly enabling: "enabling";
2984
+ };
2985
+ /**
2986
+ * @public
2987
+ */
2988
+ export type VpcEncryptionControlExclusionState = (typeof VpcEncryptionControlExclusionState)[keyof typeof VpcEncryptionControlExclusionState];
2989
+ /**
2990
+ * @public
2991
+ */
2992
+ export interface VpcEncryptionControlExclusion {
2993
+ State?: VpcEncryptionControlExclusionState | undefined;
2994
+ StateMessage?: string | undefined;
2995
+ }
2996
+ /**
2997
+ * @public
2998
+ */
2999
+ export interface VpcEncryptionControlExclusions {
3000
+ InternetGateway?: VpcEncryptionControlExclusion | undefined;
3001
+ EgressOnlyInternetGateway?: VpcEncryptionControlExclusion | undefined;
3002
+ NatGateway?: VpcEncryptionControlExclusion | undefined;
3003
+ VirtualPrivateGateway?: VpcEncryptionControlExclusion | undefined;
3004
+ VpcPeering?: VpcEncryptionControlExclusion | undefined;
3005
+ }
3006
+ /**
3007
+ * @public
3008
+ * @enum
3009
+ */
3010
+ export declare const VpcEncryptionControlState: {
3011
+ readonly available: "available";
3012
+ readonly deleted: "deleted";
3013
+ readonly deleting: "deleting";
3014
+ readonly enforce_failed: "enforce-failed";
3015
+ readonly enforce_in_progress: "enforce-in-progress";
3016
+ readonly monitor_failed: "monitor-failed";
3017
+ readonly monitor_in_progress: "monitor-in-progress";
3018
+ };
3019
+ /**
3020
+ * @public
3021
+ */
3022
+ export type VpcEncryptionControlState = (typeof VpcEncryptionControlState)[keyof typeof VpcEncryptionControlState];
3023
+ /**
3024
+ * @public
3025
+ */
3026
+ export interface VpcEncryptionControl {
3027
+ VpcId?: string | undefined;
3028
+ VpcEncryptionControlId?: string | undefined;
3029
+ Mode?: VpcEncryptionControlMode | undefined;
3030
+ State?: VpcEncryptionControlState | undefined;
3031
+ StateMessage?: string | undefined;
3032
+ ResourceExclusions?: VpcEncryptionControlExclusions | undefined;
3033
+ Tags?: Tag[] | undefined;
3034
+ }
2963
3035
  /**
2964
3036
  * @public
2965
3037
  * @enum
@@ -3015,6 +3087,7 @@ export interface Vpc {
3015
3087
  * @public
3016
3088
  */
3017
3089
  IsDefault?: boolean | undefined;
3090
+ EncryptionControl?: VpcEncryptionControl | undefined;
3018
3091
  /**
3019
3092
  * <p>Any tags assigned to the VPC.</p>
3020
3093
  * @public
@@ -11197,228 +11270,6 @@ export interface CreateLocalGatewayRouteResult {
11197
11270
  */
11198
11271
  Route?: LocalGatewayRoute | undefined;
11199
11272
  }
11200
- /**
11201
- * @public
11202
- * @enum
11203
- */
11204
- export declare const LocalGatewayRouteTableMode: {
11205
- readonly coip: "coip";
11206
- readonly direct_vpc_routing: "direct-vpc-routing";
11207
- };
11208
- /**
11209
- * @public
11210
- */
11211
- export type LocalGatewayRouteTableMode = (typeof LocalGatewayRouteTableMode)[keyof typeof LocalGatewayRouteTableMode];
11212
- /**
11213
- * @public
11214
- */
11215
- export interface CreateLocalGatewayRouteTableRequest {
11216
- /**
11217
- * <p>
11218
- * The ID of the local gateway.
11219
- * </p>
11220
- * @public
11221
- */
11222
- LocalGatewayId: string | undefined;
11223
- /**
11224
- * <p>
11225
- * The mode of the local gateway route table.
11226
- * </p>
11227
- * @public
11228
- */
11229
- Mode?: LocalGatewayRouteTableMode | undefined;
11230
- /**
11231
- * <p>
11232
- * The tags assigned to the local gateway route table.
11233
- * </p>
11234
- * @public
11235
- */
11236
- TagSpecifications?: TagSpecification[] | undefined;
11237
- /**
11238
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
11239
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
11240
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
11241
- * @public
11242
- */
11243
- DryRun?: boolean | undefined;
11244
- }
11245
- /**
11246
- * <p>Describes a state change.</p>
11247
- * @public
11248
- */
11249
- export interface StateReason {
11250
- /**
11251
- * <p>The reason code for the state change.</p>
11252
- * @public
11253
- */
11254
- Code?: string | undefined;
11255
- /**
11256
- * <p>The message for the state change.</p>
11257
- * <ul>
11258
- * <li>
11259
- * <p>
11260
- * <code>Server.InsufficientInstanceCapacity</code>: There was insufficient
11261
- * capacity available to satisfy the launch request.</p>
11262
- * </li>
11263
- * <li>
11264
- * <p>
11265
- * <code>Server.InternalError</code>: An internal error caused the instance to
11266
- * terminate during launch.</p>
11267
- * </li>
11268
- * <li>
11269
- * <p>
11270
- * <code>Server.ScheduledStop</code>: The instance was stopped due to a scheduled
11271
- * retirement.</p>
11272
- * </li>
11273
- * <li>
11274
- * <p>
11275
- * <code>Server.SpotInstanceShutdown</code>: The instance was stopped because the
11276
- * number of Spot requests with a maximum price equal to or higher than the Spot
11277
- * price exceeded available capacity or because of an increase in the Spot
11278
- * price.</p>
11279
- * </li>
11280
- * <li>
11281
- * <p>
11282
- * <code>Server.SpotInstanceTermination</code>: The instance was terminated
11283
- * because the number of Spot requests with a maximum price equal to or higher than
11284
- * the Spot price exceeded available capacity or because of an increase in the Spot
11285
- * price.</p>
11286
- * </li>
11287
- * <li>
11288
- * <p>
11289
- * <code>Client.InstanceInitiatedShutdown</code>: The instance was shut down
11290
- * from the operating system of the instance.</p>
11291
- * </li>
11292
- * <li>
11293
- * <p>
11294
- * <code>Client.InstanceTerminated</code>: The instance was terminated or
11295
- * rebooted during AMI creation.</p>
11296
- * </li>
11297
- * <li>
11298
- * <p>
11299
- * <code>Client.InternalError</code>: A client error caused the instance to
11300
- * terminate during launch.</p>
11301
- * </li>
11302
- * <li>
11303
- * <p>
11304
- * <code>Client.InvalidSnapshot.NotFound</code>: The specified snapshot was not
11305
- * found.</p>
11306
- * </li>
11307
- * <li>
11308
- * <p>
11309
- * <code>Client.UserInitiatedHibernate</code>: Hibernation was initiated on the
11310
- * instance.</p>
11311
- * </li>
11312
- * <li>
11313
- * <p>
11314
- * <code>Client.UserInitiatedShutdown</code>: The instance was shut down using
11315
- * the Amazon EC2 API.</p>
11316
- * </li>
11317
- * <li>
11318
- * <p>
11319
- * <code>Client.VolumeLimitExceeded</code>: The limit on the number of EBS
11320
- * volumes or total storage was exceeded. Decrease usage or request an increase in
11321
- * your account limits.</p>
11322
- * </li>
11323
- * </ul>
11324
- * @public
11325
- */
11326
- Message?: string | undefined;
11327
- }
11328
- /**
11329
- * <p>Describes a local gateway route table.</p>
11330
- * @public
11331
- */
11332
- export interface LocalGatewayRouteTable {
11333
- /**
11334
- * <p>The ID of the local gateway route table.</p>
11335
- * @public
11336
- */
11337
- LocalGatewayRouteTableId?: string | undefined;
11338
- /**
11339
- * <p>The Amazon Resource Name (ARN) of the local gateway route table.</p>
11340
- * @public
11341
- */
11342
- LocalGatewayRouteTableArn?: string | undefined;
11343
- /**
11344
- * <p>The ID of the local gateway.</p>
11345
- * @public
11346
- */
11347
- LocalGatewayId?: string | undefined;
11348
- /**
11349
- * <p>The Amazon Resource Name (ARN) of the Outpost.</p>
11350
- * @public
11351
- */
11352
- OutpostArn?: string | undefined;
11353
- /**
11354
- * <p>The ID of the Amazon Web Services account that owns the local gateway route table.</p>
11355
- * @public
11356
- */
11357
- OwnerId?: string | undefined;
11358
- /**
11359
- * <p>The state of the local gateway route table.</p>
11360
- * @public
11361
- */
11362
- State?: string | undefined;
11363
- /**
11364
- * <p>The tags assigned to the local gateway route table.</p>
11365
- * @public
11366
- */
11367
- Tags?: Tag[] | undefined;
11368
- /**
11369
- * <p>The mode of the local gateway route table.</p>
11370
- * @public
11371
- */
11372
- Mode?: LocalGatewayRouteTableMode | undefined;
11373
- /**
11374
- * <p>Information about the state change.</p>
11375
- * @public
11376
- */
11377
- StateReason?: StateReason | undefined;
11378
- }
11379
- /**
11380
- * @public
11381
- */
11382
- export interface CreateLocalGatewayRouteTableResult {
11383
- /**
11384
- * <p>Information about the local gateway route table.</p>
11385
- * @public
11386
- */
11387
- LocalGatewayRouteTable?: LocalGatewayRouteTable | undefined;
11388
- }
11389
- /**
11390
- * @public
11391
- */
11392
- export interface CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociationRequest {
11393
- /**
11394
- * <p>
11395
- * The ID of the local gateway route table.
11396
- * </p>
11397
- * @public
11398
- */
11399
- LocalGatewayRouteTableId: string | undefined;
11400
- /**
11401
- * <p>
11402
- * The ID of the local gateway route table virtual interface group association.
11403
- * </p>
11404
- * @public
11405
- */
11406
- LocalGatewayVirtualInterfaceGroupId: string | undefined;
11407
- /**
11408
- * <p>
11409
- * The tags assigned to the local gateway route table virtual interface group association.
11410
- * </p>
11411
- * @public
11412
- */
11413
- TagSpecifications?: TagSpecification[] | undefined;
11414
- /**
11415
- * <p>Checks whether you have the required permissions for the action, without actually making the request,
11416
- * and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>.
11417
- * Otherwise, it is <code>UnauthorizedOperation</code>.</p>
11418
- * @public
11419
- */
11420
- DryRun?: boolean | undefined;
11421
- }
11422
11273
  /**
11423
11274
  * @internal
11424
11275
  */