@aws-sdk/client-redshift 3.52.0 → 3.53.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.
@@ -1,5 +1,6 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
2
  import { ActionType, AquaConfiguration, AquaConfigurationStatus, AvailabilityZone, Cluster, ClusterSecurityGroup, ClusterSubnetGroup, EventSubscription, HsmConfiguration, Parameter, RecurringCharge, ReservedNode, ReservedNodeExchangeStatus, ReservedNodeOfferingType, ScheduledAction, ScheduledActionType, Snapshot, SnapshotCopyGrant, SnapshotSchedule, Tag, UsageLimit, UsageLimitBreachAction, UsageLimitFeatureType } from "./models_0";
3
+ import { RedshiftServiceException as __BaseException } from "./RedshiftServiceException";
3
4
  /**
4
5
  * <p></p>
5
6
  */
@@ -447,10 +448,13 @@ export declare namespace DescribeReservedNodeExchangeStatusOutputMessage {
447
448
  /**
448
449
  * <p>The reserved-node exchange status wasn't found.</p>
449
450
  */
450
- export interface ReservedNodeExchangeNotFoundFault extends __SmithyException, $MetadataBearer {
451
- name: "ReservedNodeExchangeNotFoundFault";
452
- $fault: "client";
453
- message?: string;
451
+ export declare class ReservedNodeExchangeNotFoundFault extends __BaseException {
452
+ readonly name: "ReservedNodeExchangeNotFoundFault";
453
+ readonly $fault: "client";
454
+ /**
455
+ * @internal
456
+ */
457
+ constructor(opts: __ExceptionOptionType<ReservedNodeExchangeNotFoundFault, __BaseException>);
454
458
  }
455
459
  /**
456
460
  * <p></p>
@@ -914,10 +918,13 @@ export declare namespace DescribeTableRestoreStatusMessage {
914
918
  /**
915
919
  * <p>The specified <code>TableRestoreRequestId</code> value was not found.</p>
916
920
  */
917
- export interface TableRestoreNotFoundFault extends __SmithyException, $MetadataBearer {
918
- name: "TableRestoreNotFoundFault";
919
- $fault: "client";
920
- message?: string;
921
+ export declare class TableRestoreNotFoundFault extends __BaseException {
922
+ readonly name: "TableRestoreNotFoundFault";
923
+ readonly $fault: "client";
924
+ /**
925
+ * @internal
926
+ */
927
+ constructor(opts: __ExceptionOptionType<TableRestoreNotFoundFault, __BaseException>);
921
928
  }
922
929
  export declare type TableRestoreStatusType = "CANCELED" | "FAILED" | "IN_PROGRESS" | "PENDING" | "SUCCEEDED";
923
930
  /**
@@ -1308,10 +1315,13 @@ export declare namespace DisableSnapshotCopyResult {
1308
1315
  /**
1309
1316
  * <p>The cluster already has cross-region snapshot copy disabled.</p>
1310
1317
  */
1311
- export interface SnapshotCopyAlreadyDisabledFault extends __SmithyException, $MetadataBearer {
1312
- name: "SnapshotCopyAlreadyDisabledFault";
1313
- $fault: "client";
1314
- message?: string;
1318
+ export declare class SnapshotCopyAlreadyDisabledFault extends __BaseException {
1319
+ readonly name: "SnapshotCopyAlreadyDisabledFault";
1320
+ readonly $fault: "client";
1321
+ /**
1322
+ * @internal
1323
+ */
1324
+ constructor(opts: __ExceptionOptionType<SnapshotCopyAlreadyDisabledFault, __BaseException>);
1315
1325
  }
1316
1326
  export interface DisassociateDataShareConsumerMessage {
1317
1327
  /**
@@ -1404,10 +1414,13 @@ export declare namespace EnableLoggingMessage {
1404
1414
  * <p>The cluster does not have read bucket or put object permissions on the S3 bucket
1405
1415
  * specified when enabling logging.</p>
1406
1416
  */
1407
- export interface InsufficientS3BucketPolicyFault extends __SmithyException, $MetadataBearer {
1408
- name: "InsufficientS3BucketPolicyFault";
1409
- $fault: "client";
1410
- message?: string;
1417
+ export declare class InsufficientS3BucketPolicyFault extends __BaseException {
1418
+ readonly name: "InsufficientS3BucketPolicyFault";
1419
+ readonly $fault: "client";
1420
+ /**
1421
+ * @internal
1422
+ */
1423
+ constructor(opts: __ExceptionOptionType<InsufficientS3BucketPolicyFault, __BaseException>);
1411
1424
  }
1412
1425
  /**
1413
1426
  * <p>The S3 bucket name is invalid. For more information about naming rules, go to
@@ -1415,19 +1428,25 @@ export interface InsufficientS3BucketPolicyFault extends __SmithyException, $Met
1415
1428
  * Restrictions and Limitations</a> in the Amazon Simple Storage Service (S3)
1416
1429
  * Developer Guide.</p>
1417
1430
  */
1418
- export interface InvalidS3BucketNameFault extends __SmithyException, $MetadataBearer {
1419
- name: "InvalidS3BucketNameFault";
1420
- $fault: "client";
1421
- message?: string;
1431
+ export declare class InvalidS3BucketNameFault extends __BaseException {
1432
+ readonly name: "InvalidS3BucketNameFault";
1433
+ readonly $fault: "client";
1434
+ /**
1435
+ * @internal
1436
+ */
1437
+ constructor(opts: __ExceptionOptionType<InvalidS3BucketNameFault, __BaseException>);
1422
1438
  }
1423
1439
  /**
1424
1440
  * <p>The string specified for the logging S3 key prefix does not comply with the
1425
1441
  * documented constraints.</p>
1426
1442
  */
1427
- export interface InvalidS3KeyPrefixFault extends __SmithyException, $MetadataBearer {
1428
- name: "InvalidS3KeyPrefixFault";
1429
- $fault: "client";
1430
- message?: string;
1443
+ export declare class InvalidS3KeyPrefixFault extends __BaseException {
1444
+ readonly name: "InvalidS3KeyPrefixFault";
1445
+ readonly $fault: "client";
1446
+ /**
1447
+ * @internal
1448
+ */
1449
+ constructor(opts: __ExceptionOptionType<InvalidS3KeyPrefixFault, __BaseException>);
1431
1450
  }
1432
1451
  /**
1433
1452
  * <p></p>
@@ -1487,34 +1506,46 @@ export declare namespace EnableSnapshotCopyResult {
1487
1506
  /**
1488
1507
  * <p>The specified options are incompatible.</p>
1489
1508
  */
1490
- export interface IncompatibleOrderableOptions extends __SmithyException, $MetadataBearer {
1491
- name: "IncompatibleOrderableOptions";
1492
- $fault: "client";
1493
- message?: string;
1509
+ export declare class IncompatibleOrderableOptions extends __BaseException {
1510
+ readonly name: "IncompatibleOrderableOptions";
1511
+ readonly $fault: "client";
1512
+ /**
1513
+ * @internal
1514
+ */
1515
+ constructor(opts: __ExceptionOptionType<IncompatibleOrderableOptions, __BaseException>);
1494
1516
  }
1495
1517
  /**
1496
1518
  * <p>The cluster already has cross-region snapshot copy enabled.</p>
1497
1519
  */
1498
- export interface SnapshotCopyAlreadyEnabledFault extends __SmithyException, $MetadataBearer {
1499
- name: "SnapshotCopyAlreadyEnabledFault";
1500
- $fault: "client";
1501
- message?: string;
1520
+ export declare class SnapshotCopyAlreadyEnabledFault extends __BaseException {
1521
+ readonly name: "SnapshotCopyAlreadyEnabledFault";
1522
+ readonly $fault: "client";
1523
+ /**
1524
+ * @internal
1525
+ */
1526
+ constructor(opts: __ExceptionOptionType<SnapshotCopyAlreadyEnabledFault, __BaseException>);
1502
1527
  }
1503
1528
  /**
1504
1529
  * <p>The specified region is incorrect or does not exist.</p>
1505
1530
  */
1506
- export interface UnknownSnapshotCopyRegionFault extends __SmithyException, $MetadataBearer {
1507
- name: "UnknownSnapshotCopyRegionFault";
1508
- $fault: "client";
1509
- message?: string;
1531
+ export declare class UnknownSnapshotCopyRegionFault extends __BaseException {
1532
+ readonly name: "UnknownSnapshotCopyRegionFault";
1533
+ readonly $fault: "client";
1534
+ /**
1535
+ * @internal
1536
+ */
1537
+ constructor(opts: __ExceptionOptionType<UnknownSnapshotCopyRegionFault, __BaseException>);
1510
1538
  }
1511
1539
  /**
1512
1540
  * <p>The authorization for this endpoint can't be found.</p>
1513
1541
  */
1514
- export interface EndpointAuthorizationNotFoundFault extends __SmithyException, $MetadataBearer {
1515
- name: "EndpointAuthorizationNotFoundFault";
1516
- $fault: "client";
1517
- message?: string;
1542
+ export declare class EndpointAuthorizationNotFoundFault extends __BaseException {
1543
+ readonly name: "EndpointAuthorizationNotFoundFault";
1544
+ readonly $fault: "client";
1545
+ /**
1546
+ * @internal
1547
+ */
1548
+ constructor(opts: __ExceptionOptionType<EndpointAuthorizationNotFoundFault, __BaseException>);
1518
1549
  }
1519
1550
  /**
1520
1551
  * <p>The request parameters to get cluster credentials.</p>
@@ -1764,28 +1795,37 @@ export declare namespace GetReservedNodeExchangeOfferingsOutputMessage {
1764
1795
  * <p>You have exceeded the allowed number of table restore requests. Wait for your
1765
1796
  * current table restore requests to complete before making a new request.</p>
1766
1797
  */
1767
- export interface InProgressTableRestoreQuotaExceededFault extends __SmithyException, $MetadataBearer {
1768
- name: "InProgressTableRestoreQuotaExceededFault";
1769
- $fault: "client";
1770
- message?: string;
1798
+ export declare class InProgressTableRestoreQuotaExceededFault extends __BaseException {
1799
+ readonly name: "InProgressTableRestoreQuotaExceededFault";
1800
+ readonly $fault: "client";
1801
+ /**
1802
+ * @internal
1803
+ */
1804
+ constructor(opts: __ExceptionOptionType<InProgressTableRestoreQuotaExceededFault, __BaseException>);
1771
1805
  }
1772
1806
  /**
1773
1807
  * <p>The restore is invalid.</p>
1774
1808
  */
1775
- export interface InvalidRestoreFault extends __SmithyException, $MetadataBearer {
1776
- name: "InvalidRestoreFault";
1777
- $fault: "client";
1778
- message?: string;
1809
+ export declare class InvalidRestoreFault extends __BaseException {
1810
+ readonly name: "InvalidRestoreFault";
1811
+ readonly $fault: "client";
1812
+ /**
1813
+ * @internal
1814
+ */
1815
+ constructor(opts: __ExceptionOptionType<InvalidRestoreFault, __BaseException>);
1779
1816
  }
1780
1817
  /**
1781
1818
  * <p>The value specified for the <code>sourceDatabaseName</code>,
1782
1819
  * <code>sourceSchemaName</code>, or <code>sourceTableName</code> parameter, or a
1783
1820
  * combination of these, doesn't exist in the snapshot.</p>
1784
1821
  */
1785
- export interface InvalidTableRestoreArgumentFault extends __SmithyException, $MetadataBearer {
1786
- name: "InvalidTableRestoreArgumentFault";
1787
- $fault: "client";
1788
- message?: string;
1822
+ export declare class InvalidTableRestoreArgumentFault extends __BaseException {
1823
+ readonly name: "InvalidTableRestoreArgumentFault";
1824
+ readonly $fault: "client";
1825
+ /**
1826
+ * @internal
1827
+ */
1828
+ constructor(opts: __ExceptionOptionType<InvalidTableRestoreArgumentFault, __BaseException>);
1789
1829
  }
1790
1830
  export interface ModifyAquaInputMessage {
1791
1831
  /**
@@ -2138,18 +2178,24 @@ export declare namespace ModifyClusterResult {
2138
2178
  * <p>The number of tables in the cluster exceeds the limit for the requested new cluster
2139
2179
  * node type. </p>
2140
2180
  */
2141
- export interface TableLimitExceededFault extends __SmithyException, $MetadataBearer {
2142
- name: "TableLimitExceededFault";
2143
- $fault: "client";
2144
- message?: string;
2181
+ export declare class TableLimitExceededFault extends __BaseException {
2182
+ readonly name: "TableLimitExceededFault";
2183
+ readonly $fault: "client";
2184
+ /**
2185
+ * @internal
2186
+ */
2187
+ constructor(opts: __ExceptionOptionType<TableLimitExceededFault, __BaseException>);
2145
2188
  }
2146
2189
  /**
2147
2190
  * <p>A request option was specified that is not supported.</p>
2148
2191
  */
2149
- export interface UnsupportedOptionFault extends __SmithyException, $MetadataBearer {
2150
- name: "UnsupportedOptionFault";
2151
- $fault: "client";
2152
- message?: string;
2192
+ export declare class UnsupportedOptionFault extends __BaseException {
2193
+ readonly name: "UnsupportedOptionFault";
2194
+ readonly $fault: "client";
2195
+ /**
2196
+ * @internal
2197
+ */
2198
+ constructor(opts: __ExceptionOptionType<UnsupportedOptionFault, __BaseException>);
2153
2199
  }
2154
2200
  export interface ModifyClusterDbRevisionMessage {
2155
2201
  /**
@@ -2392,10 +2438,13 @@ export declare namespace ModifyClusterSubnetGroupResult {
2392
2438
  /**
2393
2439
  * <p>A specified subnet is already in use by another cluster.</p>
2394
2440
  */
2395
- export interface SubnetAlreadyInUse extends __SmithyException, $MetadataBearer {
2396
- name: "SubnetAlreadyInUse";
2397
- $fault: "client";
2398
- message?: string;
2441
+ export declare class SubnetAlreadyInUse extends __BaseException {
2442
+ readonly name: "SubnetAlreadyInUse";
2443
+ readonly $fault: "client";
2444
+ /**
2445
+ * @internal
2446
+ */
2447
+ constructor(opts: __ExceptionOptionType<SubnetAlreadyInUse, __BaseException>);
2399
2448
  }
2400
2449
  export interface ModifyEndpointAccessMessage {
2401
2450
  /**
@@ -2581,10 +2630,13 @@ export declare namespace ModifySnapshotCopyRetentionPeriodResult {
2581
2630
  * <p>Cross-region snapshot copy was temporarily disabled. Try your request
2582
2631
  * again.</p>
2583
2632
  */
2584
- export interface SnapshotCopyDisabledFault extends __SmithyException, $MetadataBearer {
2585
- name: "SnapshotCopyDisabledFault";
2586
- $fault: "client";
2587
- message?: string;
2633
+ export declare class SnapshotCopyDisabledFault extends __BaseException {
2634
+ readonly name: "SnapshotCopyDisabledFault";
2635
+ readonly $fault: "client";
2636
+ /**
2637
+ * @internal
2638
+ */
2639
+ constructor(opts: __ExceptionOptionType<SnapshotCopyDisabledFault, __BaseException>);
2588
2640
  }
2589
2641
  export interface ModifySnapshotScheduleMessage {
2590
2642
  /**
@@ -2606,10 +2658,13 @@ export declare namespace ModifySnapshotScheduleMessage {
2606
2658
  /**
2607
2659
  * <p>The specified snapshot schedule is already being updated.</p>
2608
2660
  */
2609
- export interface SnapshotScheduleUpdateInProgressFault extends __SmithyException, $MetadataBearer {
2610
- name: "SnapshotScheduleUpdateInProgressFault";
2611
- $fault: "client";
2612
- message?: string;
2661
+ export declare class SnapshotScheduleUpdateInProgressFault extends __BaseException {
2662
+ readonly name: "SnapshotScheduleUpdateInProgressFault";
2663
+ readonly $fault: "client";
2664
+ /**
2665
+ * @internal
2666
+ */
2667
+ constructor(opts: __ExceptionOptionType<SnapshotScheduleUpdateInProgressFault, __BaseException>);
2613
2668
  }
2614
2669
  export interface ModifyUsageLimitMessage {
2615
2670
  /**
@@ -2685,10 +2740,13 @@ export declare namespace PurchaseReservedNodeOfferingResult {
2685
2740
  * in the <i>Amazon Redshift Cluster Management Guide</i>.
2686
2741
  * </p>
2687
2742
  */
2688
- export interface ReservedNodeQuotaExceededFault extends __SmithyException, $MetadataBearer {
2689
- name: "ReservedNodeQuotaExceededFault";
2690
- $fault: "client";
2691
- message?: string;
2743
+ export declare class ReservedNodeQuotaExceededFault extends __BaseException {
2744
+ readonly name: "ReservedNodeQuotaExceededFault";
2745
+ readonly $fault: "client";
2746
+ /**
2747
+ * @internal
2748
+ */
2749
+ constructor(opts: __ExceptionOptionType<ReservedNodeQuotaExceededFault, __BaseException>);
2692
2750
  }
2693
2751
  /**
2694
2752
  * <p></p>
@@ -4,3 +4,4 @@ export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
+ export { RedshiftServiceException } from "./models/RedshiftServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class RedshiftServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }