@aws-sdk/client-ec2 3.410.0 → 3.411.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 (52) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/EC2.js +6 -0
  3. package/dist-cjs/commands/DisableImageBlockPublicAccessCommand.js +46 -0
  4. package/dist-cjs/commands/EnableImageBlockPublicAccessCommand.js +46 -0
  5. package/dist-cjs/commands/GetImageBlockPublicAccessStateCommand.js +46 -0
  6. package/dist-cjs/commands/GetVpnConnectionDeviceSampleConfigurationCommand.js +2 -2
  7. package/dist-cjs/commands/RunInstancesCommand.js +2 -2
  8. package/dist-cjs/commands/index.js +3 -0
  9. package/dist-cjs/models/models_5.js +7 -6
  10. package/dist-cjs/models/models_6.js +6 -6
  11. package/dist-cjs/models/models_7.js +6 -1
  12. package/dist-cjs/protocols/Aws_ec2.js +176 -17
  13. package/dist-es/EC2.js +6 -0
  14. package/dist-es/commands/DisableImageBlockPublicAccessCommand.js +42 -0
  15. package/dist-es/commands/EnableImageBlockPublicAccessCommand.js +42 -0
  16. package/dist-es/commands/GetImageBlockPublicAccessStateCommand.js +42 -0
  17. package/dist-es/commands/GetVpnConnectionDeviceSampleConfigurationCommand.js +1 -1
  18. package/dist-es/commands/RunInstancesCommand.js +1 -1
  19. package/dist-es/commands/index.js +3 -0
  20. package/dist-es/models/models_5.js +6 -4
  21. package/dist-es/models/models_6.js +4 -4
  22. package/dist-es/models/models_7.js +4 -0
  23. package/dist-es/protocols/Aws_ec2.js +153 -0
  24. package/dist-types/EC2.d.ts +21 -0
  25. package/dist-types/EC2Client.d.ts +5 -2
  26. package/dist-types/commands/DisableImageBlockPublicAccessCommand.d.ts +82 -0
  27. package/dist-types/commands/EnableImageBlockPublicAccessCommand.d.ts +82 -0
  28. package/dist-types/commands/GetImageBlockPublicAccessStateCommand.d.ts +76 -0
  29. package/dist-types/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
  30. package/dist-types/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
  31. package/dist-types/commands/GetVpnTunnelReplacementStatusCommand.d.ts +1 -1
  32. package/dist-types/commands/RunInstancesCommand.d.ts +1 -1
  33. package/dist-types/commands/index.d.ts +3 -0
  34. package/dist-types/models/models_5.d.ts +111 -204
  35. package/dist-types/models/models_6.d.ts +203 -585
  36. package/dist-types/models/models_7.d.ts +590 -4
  37. package/dist-types/protocols/Aws_ec2.d.ts +27 -0
  38. package/dist-types/ts3.4/EC2.d.ts +51 -0
  39. package/dist-types/ts3.4/EC2Client.d.ts +18 -0
  40. package/dist-types/ts3.4/commands/DisableImageBlockPublicAccessCommand.d.ts +42 -0
  41. package/dist-types/ts3.4/commands/EnableImageBlockPublicAccessCommand.d.ts +42 -0
  42. package/dist-types/ts3.4/commands/GetImageBlockPublicAccessStateCommand.d.ts +42 -0
  43. package/dist-types/ts3.4/commands/GetVpnConnectionDeviceSampleConfigurationCommand.d.ts +1 -1
  44. package/dist-types/ts3.4/commands/GetVpnConnectionDeviceTypesCommand.d.ts +1 -1
  45. package/dist-types/ts3.4/commands/GetVpnTunnelReplacementStatusCommand.d.ts +1 -1
  46. package/dist-types/ts3.4/commands/RunInstancesCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  48. package/dist-types/ts3.4/models/models_5.d.ts +32 -45
  49. package/dist-types/ts3.4/models/models_6.d.ts +45 -85
  50. package/dist-types/ts3.4/models/models_7.d.ts +109 -4
  51. package/dist-types/ts3.4/protocols/Aws_ec2.d.ts +36 -0
  52. package/package.json +1 -1
@@ -2724,6 +2724,40 @@ export interface DisableFastSnapshotRestoresResult {
2724
2724
  */
2725
2725
  Unsuccessful?: DisableFastSnapshotRestoreErrorItem[];
2726
2726
  }
2727
+ /**
2728
+ * @public
2729
+ */
2730
+ export interface DisableImageBlockPublicAccessRequest {
2731
+ /**
2732
+ * @public
2733
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
2734
+ * and provides an error response. If you have the required permissions, the error response is
2735
+ * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
2736
+ */
2737
+ DryRun?: boolean;
2738
+ }
2739
+ /**
2740
+ * @public
2741
+ * @enum
2742
+ */
2743
+ export declare const ImageBlockPublicAccessDisabledState: {
2744
+ readonly unblocked: "unblocked";
2745
+ };
2746
+ /**
2747
+ * @public
2748
+ */
2749
+ export type ImageBlockPublicAccessDisabledState = (typeof ImageBlockPublicAccessDisabledState)[keyof typeof ImageBlockPublicAccessDisabledState];
2750
+ /**
2751
+ * @public
2752
+ */
2753
+ export interface DisableImageBlockPublicAccessResult {
2754
+ /**
2755
+ * @public
2756
+ * <p>Returns <code>unblocked</code> if the request succeeds; otherwise, it returns an
2757
+ * error.</p>
2758
+ */
2759
+ ImageBlockPublicAccessState?: ImageBlockPublicAccessDisabledState | string;
2760
+ }
2727
2761
  /**
2728
2762
  * @public
2729
2763
  */
@@ -3790,6 +3824,47 @@ export interface EnableFastSnapshotRestoresResult {
3790
3824
  */
3791
3825
  Unsuccessful?: EnableFastSnapshotRestoreErrorItem[];
3792
3826
  }
3827
+ /**
3828
+ * @public
3829
+ * @enum
3830
+ */
3831
+ export declare const ImageBlockPublicAccessEnabledState: {
3832
+ readonly block_new_sharing: "block-new-sharing";
3833
+ };
3834
+ /**
3835
+ * @public
3836
+ */
3837
+ export type ImageBlockPublicAccessEnabledState = (typeof ImageBlockPublicAccessEnabledState)[keyof typeof ImageBlockPublicAccessEnabledState];
3838
+ /**
3839
+ * @public
3840
+ */
3841
+ export interface EnableImageBlockPublicAccessRequest {
3842
+ /**
3843
+ * @public
3844
+ * <p>Specify <code>block-new-sharing</code> to enable block public access for AMIs at the
3845
+ * account level in the specified Region. This will block any attempt to publicly share your AMIs
3846
+ * in the specified Region.</p>
3847
+ */
3848
+ ImageBlockPublicAccessState: ImageBlockPublicAccessEnabledState | string | undefined;
3849
+ /**
3850
+ * @public
3851
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
3852
+ * and provides an error response. If you have the required permissions, the error response is
3853
+ * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
3854
+ */
3855
+ DryRun?: boolean;
3856
+ }
3857
+ /**
3858
+ * @public
3859
+ */
3860
+ export interface EnableImageBlockPublicAccessResult {
3861
+ /**
3862
+ * @public
3863
+ * <p>Returns <code>block-new-sharing</code> if the request succeeds; otherwise, it returns an
3864
+ * error.</p>
3865
+ */
3866
+ ImageBlockPublicAccessState?: ImageBlockPublicAccessEnabledState | string;
3867
+ }
3793
3868
  /**
3794
3869
  * @public
3795
3870
  */
@@ -5207,6 +5282,42 @@ export interface GetHostReservationPurchasePreviewResult {
5207
5282
  */
5208
5283
  TotalUpfrontPrice?: string;
5209
5284
  }
5285
+ /**
5286
+ * @public
5287
+ */
5288
+ export interface GetImageBlockPublicAccessStateRequest {
5289
+ /**
5290
+ * @public
5291
+ * <p>Checks whether you have the required permissions for the action, without actually making the request,
5292
+ * and provides an error response. If you have the required permissions, the error response is
5293
+ * <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
5294
+ */
5295
+ DryRun?: boolean;
5296
+ }
5297
+ /**
5298
+ * @public
5299
+ */
5300
+ export interface GetImageBlockPublicAccessStateResult {
5301
+ /**
5302
+ * @public
5303
+ * <p>The current state of block public access for AMIs at the account level in the specified
5304
+ * Amazon Web Services Region.</p>
5305
+ * <p>Possible values:</p>
5306
+ * <ul>
5307
+ * <li>
5308
+ * <p>
5309
+ * <code>block-new-sharing</code> - Any attempt to publicly share your AMIs in the
5310
+ * specified Region is blocked.</p>
5311
+ * </li>
5312
+ * <li>
5313
+ * <p>
5314
+ * <code>unblocked</code> - Your AMIs in the specified Region can be publicly
5315
+ * shared.</p>
5316
+ * </li>
5317
+ * </ul>
5318
+ */
5319
+ ImageBlockPublicAccessState?: string;
5320
+ }
5210
5321
  /**
5211
5322
  * @public
5212
5323
  */
@@ -7355,206 +7466,6 @@ export interface GetVerifiedAccessGroupPolicyResult {
7355
7466
  */
7356
7467
  PolicyDocument?: string;
7357
7468
  }
7358
- /**
7359
- * @public
7360
- */
7361
- export interface GetVpnConnectionDeviceSampleConfigurationRequest {
7362
- /**
7363
- * @public
7364
- * <p>The <code>VpnConnectionId</code> specifies the Site-to-Site VPN connection used for the sample
7365
- * configuration.</p>
7366
- */
7367
- VpnConnectionId: string | undefined;
7368
- /**
7369
- * @public
7370
- * <p>Device identifier provided by the <code>GetVpnConnectionDeviceTypes</code> API.</p>
7371
- */
7372
- VpnConnectionDeviceTypeId: string | undefined;
7373
- /**
7374
- * @public
7375
- * <p>The IKE version to be used in the sample configuration file for your customer gateway
7376
- * device. You can specify one of the following versions: <code>ikev1</code> or
7377
- * <code>ikev2</code>.</p>
7378
- */
7379
- InternetKeyExchangeVersion?: string;
7380
- /**
7381
- * @public
7382
- * <p>Checks whether you have the required permissions for the action, without actually
7383
- * making the request, and provides an error response. If you have the required
7384
- * permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
7385
- * <code>UnauthorizedOperation</code>.</p>
7386
- */
7387
- DryRun?: boolean;
7388
- }
7389
- /**
7390
- * @public
7391
- */
7392
- export interface GetVpnConnectionDeviceSampleConfigurationResult {
7393
- /**
7394
- * @public
7395
- * <p>Sample configuration file for the specified customer gateway device.</p>
7396
- */
7397
- VpnConnectionDeviceSampleConfiguration?: string;
7398
- }
7399
- /**
7400
- * @public
7401
- */
7402
- export interface GetVpnConnectionDeviceTypesRequest {
7403
- /**
7404
- * @public
7405
- * <p>The maximum number of results returned by <code>GetVpnConnectionDeviceTypes</code> in
7406
- * paginated output. When this parameter is used, <code>GetVpnConnectionDeviceTypes</code>
7407
- * only returns <code>MaxResults</code> results in a single page along with a
7408
- * <code>NextToken</code> response element. The remaining results of the initial
7409
- * request can be seen by sending another <code>GetVpnConnectionDeviceTypes</code> request
7410
- * with the returned <code>NextToken</code> value. This value can be between 200 and 1000.
7411
- * If this parameter is not used, then <code>GetVpnConnectionDeviceTypes</code> returns all
7412
- * results.</p>
7413
- */
7414
- MaxResults?: number;
7415
- /**
7416
- * @public
7417
- * <p>The <code>NextToken</code> value returned from a previous paginated
7418
- * <code>GetVpnConnectionDeviceTypes</code> request where <code>MaxResults</code> was
7419
- * used and the results exceeded the value of that parameter. Pagination continues from the
7420
- * end of the previous results that returned the <code>NextToken</code> value. This value
7421
- * is null when there are no more results to return. </p>
7422
- */
7423
- NextToken?: string;
7424
- /**
7425
- * @public
7426
- * <p>Checks whether you have the required permissions for the action, without actually
7427
- * making the request, and provides an error response. If you have the required
7428
- * permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is
7429
- * <code>UnauthorizedOperation</code>.</p>
7430
- */
7431
- DryRun?: boolean;
7432
- }
7433
- /**
7434
- * @public
7435
- * <p>List of customer gateway devices that have a sample configuration file available for
7436
- * use. You can also see the list of device types with sample configuration files available
7437
- * under <a href="https://docs.aws.amazon.com/vpn/latest/s2svpn/your-cgw.html">Your customer
7438
- * gateway device</a> in the <i>Amazon Web Services Site-to-Site VPN User Guide</i>.</p>
7439
- */
7440
- export interface VpnConnectionDeviceType {
7441
- /**
7442
- * @public
7443
- * <p>Customer gateway device identifier.</p>
7444
- */
7445
- VpnConnectionDeviceTypeId?: string;
7446
- /**
7447
- * @public
7448
- * <p>Customer gateway device vendor.</p>
7449
- */
7450
- Vendor?: string;
7451
- /**
7452
- * @public
7453
- * <p>Customer gateway device platform.</p>
7454
- */
7455
- Platform?: string;
7456
- /**
7457
- * @public
7458
- * <p>Customer gateway device software version.</p>
7459
- */
7460
- Software?: string;
7461
- }
7462
- /**
7463
- * @public
7464
- */
7465
- export interface GetVpnConnectionDeviceTypesResult {
7466
- /**
7467
- * @public
7468
- * <p>List of customer gateway devices that have a sample configuration file available for
7469
- * use.</p>
7470
- */
7471
- VpnConnectionDeviceTypes?: VpnConnectionDeviceType[];
7472
- /**
7473
- * @public
7474
- * <p>The <code>NextToken</code> value to include in a future
7475
- * <code>GetVpnConnectionDeviceTypes</code> request. When the results of a
7476
- * <code>GetVpnConnectionDeviceTypes</code> request exceed <code>MaxResults</code>,
7477
- * this value can be used to retrieve the next page of results. This value is null when
7478
- * there are no more results to return.</p>
7479
- */
7480
- NextToken?: string;
7481
- }
7482
- /**
7483
- * @public
7484
- */
7485
- export interface GetVpnTunnelReplacementStatusRequest {
7486
- /**
7487
- * @public
7488
- * <p>The ID of the Site-to-Site VPN connection. </p>
7489
- */
7490
- VpnConnectionId: string | undefined;
7491
- /**
7492
- * @public
7493
- * <p>The external IP address of the VPN tunnel.</p>
7494
- */
7495
- VpnTunnelOutsideIpAddress: string | undefined;
7496
- /**
7497
- * @public
7498
- * <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
7499
- */
7500
- DryRun?: boolean;
7501
- }
7502
- /**
7503
- * @public
7504
- * <p>Details for Site-to-Site VPN tunnel endpoint maintenance events.</p>
7505
- */
7506
- export interface MaintenanceDetails {
7507
- /**
7508
- * @public
7509
- * <p>Verify existence of a pending maintenance.</p>
7510
- */
7511
- PendingMaintenance?: string;
7512
- /**
7513
- * @public
7514
- * <p>The timestamp after which Amazon Web Services will automatically apply maintenance.</p>
7515
- */
7516
- MaintenanceAutoAppliedAfter?: Date;
7517
- /**
7518
- * @public
7519
- * <p>Timestamp of last applied maintenance.</p>
7520
- */
7521
- LastMaintenanceApplied?: Date;
7522
- }
7523
- /**
7524
- * @public
7525
- */
7526
- export interface GetVpnTunnelReplacementStatusResult {
7527
- /**
7528
- * @public
7529
- * <p>The ID of the Site-to-Site VPN connection. </p>
7530
- */
7531
- VpnConnectionId?: string;
7532
- /**
7533
- * @public
7534
- * <p>The ID of the transit gateway associated with the VPN connection.</p>
7535
- */
7536
- TransitGatewayId?: string;
7537
- /**
7538
- * @public
7539
- * <p>The ID of the customer gateway.</p>
7540
- */
7541
- CustomerGatewayId?: string;
7542
- /**
7543
- * @public
7544
- * <p>The ID of the virtual private gateway.</p>
7545
- */
7546
- VpnGatewayId?: string;
7547
- /**
7548
- * @public
7549
- * <p>The external IP address of the VPN tunnel.</p>
7550
- */
7551
- VpnTunnelOutsideIpAddress?: string;
7552
- /**
7553
- * @public
7554
- * <p>Get details of pending tunnel endpoint maintenance.</p>
7555
- */
7556
- MaintenanceDetails?: MaintenanceDetails;
7557
- }
7558
7469
  /**
7559
7470
  * @internal
7560
7471
  */
@@ -7575,7 +7486,3 @@ export declare const GetLaunchTemplateDataResultFilterSensitiveLog: (obj: GetLau
7575
7486
  * @internal
7576
7487
  */
7577
7488
  export declare const GetPasswordDataResultFilterSensitiveLog: (obj: GetPasswordDataResult) => any;
7578
- /**
7579
- * @internal
7580
- */
7581
- export declare const GetVpnConnectionDeviceSampleConfigurationResultFilterSensitiveLog: (obj: GetVpnConnectionDeviceSampleConfigurationResult) => any;