@aws-sdk/client-redshift 3.301.0 → 3.306.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,10 +1,9 @@
1
1
  import { SENSITIVE_STRING } from "@aws-sdk/smithy-client";
2
2
  import { RedshiftServiceException as __BaseException } from "./RedshiftServiceException";
3
- export var ReservedNodeOfferingType;
4
- (function (ReservedNodeOfferingType) {
5
- ReservedNodeOfferingType["Regular"] = "Regular";
6
- ReservedNodeOfferingType["Upgradable"] = "Upgradable";
7
- })(ReservedNodeOfferingType || (ReservedNodeOfferingType = {}));
3
+ export const ReservedNodeOfferingType = {
4
+ Regular: "Regular",
5
+ Upgradable: "Upgradable",
6
+ };
8
7
  export class DependentServiceUnavailableFault extends __BaseException {
9
8
  constructor(opts) {
10
9
  super({
@@ -113,12 +112,11 @@ export class AccessToSnapshotDeniedFault extends __BaseException {
113
112
  Object.setPrototypeOf(this, AccessToSnapshotDeniedFault.prototype);
114
113
  }
115
114
  }
116
- export var ActionType;
117
- (function (ActionType) {
118
- ActionType["RECOMMEND_NODE_CONFIG"] = "recommend-node-config";
119
- ActionType["RESIZE_CLUSTER"] = "resize-cluster";
120
- ActionType["RESTORE_CLUSTER"] = "restore-cluster";
121
- })(ActionType || (ActionType = {}));
115
+ export const ActionType = {
116
+ RECOMMEND_NODE_CONFIG: "recommend-node-config",
117
+ RESIZE_CLUSTER: "resize-cluster",
118
+ RESTORE_CLUSTER: "restore-cluster",
119
+ };
122
120
  export class ClusterNotFoundFault extends __BaseException {
123
121
  constructor(opts) {
124
122
  super({
@@ -155,27 +153,24 @@ export class UnauthorizedPartnerIntegrationFault extends __BaseException {
155
153
  Object.setPrototypeOf(this, UnauthorizedPartnerIntegrationFault.prototype);
156
154
  }
157
155
  }
158
- export var AquaConfigurationStatus;
159
- (function (AquaConfigurationStatus) {
160
- AquaConfigurationStatus["AUTO"] = "auto";
161
- AquaConfigurationStatus["DISABLED"] = "disabled";
162
- AquaConfigurationStatus["ENABLED"] = "enabled";
163
- })(AquaConfigurationStatus || (AquaConfigurationStatus = {}));
164
- export var AquaStatus;
165
- (function (AquaStatus) {
166
- AquaStatus["APPLYING"] = "applying";
167
- AquaStatus["DISABLED"] = "disabled";
168
- AquaStatus["ENABLED"] = "enabled";
169
- })(AquaStatus || (AquaStatus = {}));
170
- export var DataShareStatus;
171
- (function (DataShareStatus) {
172
- DataShareStatus["ACTIVE"] = "ACTIVE";
173
- DataShareStatus["AUTHORIZED"] = "AUTHORIZED";
174
- DataShareStatus["AVAILABLE"] = "AVAILABLE";
175
- DataShareStatus["DEAUTHORIZED"] = "DEAUTHORIZED";
176
- DataShareStatus["PENDING_AUTHORIZATION"] = "PENDING_AUTHORIZATION";
177
- DataShareStatus["REJECTED"] = "REJECTED";
178
- })(DataShareStatus || (DataShareStatus = {}));
156
+ export const AquaConfigurationStatus = {
157
+ AUTO: "auto",
158
+ DISABLED: "disabled",
159
+ ENABLED: "enabled",
160
+ };
161
+ export const AquaStatus = {
162
+ APPLYING: "applying",
163
+ DISABLED: "disabled",
164
+ ENABLED: "enabled",
165
+ };
166
+ export const DataShareStatus = {
167
+ ACTIVE: "ACTIVE",
168
+ AUTHORIZED: "AUTHORIZED",
169
+ AVAILABLE: "AVAILABLE",
170
+ DEAUTHORIZED: "DEAUTHORIZED",
171
+ PENDING_AUTHORIZATION: "PENDING_AUTHORIZATION",
172
+ REJECTED: "REJECTED",
173
+ };
179
174
  export class InvalidDataShareFault extends __BaseException {
180
175
  constructor(opts) {
181
176
  super({
@@ -200,12 +195,11 @@ export class InvalidNamespaceFault extends __BaseException {
200
195
  Object.setPrototypeOf(this, InvalidNamespaceFault.prototype);
201
196
  }
202
197
  }
203
- export var ScheduleState;
204
- (function (ScheduleState) {
205
- ScheduleState["ACTIVE"] = "ACTIVE";
206
- ScheduleState["FAILED"] = "FAILED";
207
- ScheduleState["MODIFYING"] = "MODIFYING";
208
- })(ScheduleState || (ScheduleState = {}));
198
+ export const ScheduleState = {
199
+ ACTIVE: "ACTIVE",
200
+ FAILED: "FAILED",
201
+ MODIFYING: "MODIFYING",
202
+ };
209
203
  export class AuthenticationProfileAlreadyExistsFault extends __BaseException {
210
204
  constructor(opts) {
211
205
  super({
@@ -278,11 +272,10 @@ export class AuthorizationQuotaExceededFault extends __BaseException {
278
272
  Object.setPrototypeOf(this, AuthorizationQuotaExceededFault.prototype);
279
273
  }
280
274
  }
281
- export var AuthorizationStatus;
282
- (function (AuthorizationStatus) {
283
- AuthorizationStatus["AUTHORIZED"] = "Authorized";
284
- AuthorizationStatus["REVOKING"] = "Revoking";
285
- })(AuthorizationStatus || (AuthorizationStatus = {}));
275
+ export const AuthorizationStatus = {
276
+ AUTHORIZED: "Authorized",
277
+ REVOKING: "Revoking",
278
+ };
286
279
  export class ClusterSecurityGroupNotFoundFault extends __BaseException {
287
280
  constructor(opts) {
288
281
  super({
@@ -463,15 +456,14 @@ export class ResizeNotFoundFault extends __BaseException {
463
456
  Object.setPrototypeOf(this, ResizeNotFoundFault.prototype);
464
457
  }
465
458
  }
466
- export var ReservedNodeExchangeStatusType;
467
- (function (ReservedNodeExchangeStatusType) {
468
- ReservedNodeExchangeStatusType["FAILED"] = "FAILED";
469
- ReservedNodeExchangeStatusType["IN_PROGRESS"] = "IN_PROGRESS";
470
- ReservedNodeExchangeStatusType["PENDING"] = "PENDING";
471
- ReservedNodeExchangeStatusType["REQUESTED"] = "REQUESTED";
472
- ReservedNodeExchangeStatusType["RETRYING"] = "RETRYING";
473
- ReservedNodeExchangeStatusType["SUCCEEDED"] = "SUCCEEDED";
474
- })(ReservedNodeExchangeStatusType || (ReservedNodeExchangeStatusType = {}));
459
+ export const ReservedNodeExchangeStatusType = {
460
+ FAILED: "FAILED",
461
+ IN_PROGRESS: "IN_PROGRESS",
462
+ PENDING: "PENDING",
463
+ REQUESTED: "REQUESTED",
464
+ RETRYING: "RETRYING",
465
+ SUCCEEDED: "SUCCEEDED",
466
+ };
475
467
  export class ClusterAlreadyExistsFault extends __BaseException {
476
468
  constructor(opts) {
477
469
  super({
@@ -508,11 +500,10 @@ export class ClusterParameterGroupAlreadyExistsFault extends __BaseException {
508
500
  Object.setPrototypeOf(this, ClusterParameterGroupAlreadyExistsFault.prototype);
509
501
  }
510
502
  }
511
- export var ParameterApplyType;
512
- (function (ParameterApplyType) {
513
- ParameterApplyType["dynamic"] = "dynamic";
514
- ParameterApplyType["static"] = "static";
515
- })(ParameterApplyType || (ParameterApplyType = {}));
503
+ export const ParameterApplyType = {
504
+ dynamic: "dynamic",
505
+ static: "static",
506
+ };
516
507
  export class ClusterParameterGroupNotFoundFault extends __BaseException {
517
508
  constructor(opts) {
518
509
  super({
@@ -1053,11 +1044,10 @@ export class InvalidScheduleFault extends __BaseException {
1053
1044
  Object.setPrototypeOf(this, InvalidScheduleFault.prototype);
1054
1045
  }
1055
1046
  }
1056
- export var ScheduledActionState;
1057
- (function (ScheduledActionState) {
1058
- ScheduledActionState["ACTIVE"] = "ACTIVE";
1059
- ScheduledActionState["DISABLED"] = "DISABLED";
1060
- })(ScheduledActionState || (ScheduledActionState = {}));
1047
+ export const ScheduledActionState = {
1048
+ ACTIVE: "ACTIVE",
1049
+ DISABLED: "DISABLED",
1050
+ };
1061
1051
  export class ScheduledActionAlreadyExistsFault extends __BaseException {
1062
1052
  constructor(opts) {
1063
1053
  super({
@@ -1166,29 +1156,25 @@ export class ResourceNotFoundFault extends __BaseException {
1166
1156
  Object.setPrototypeOf(this, ResourceNotFoundFault.prototype);
1167
1157
  }
1168
1158
  }
1169
- export var UsageLimitBreachAction;
1170
- (function (UsageLimitBreachAction) {
1171
- UsageLimitBreachAction["DISABLE"] = "disable";
1172
- UsageLimitBreachAction["EMIT_METRIC"] = "emit-metric";
1173
- UsageLimitBreachAction["LOG"] = "log";
1174
- })(UsageLimitBreachAction || (UsageLimitBreachAction = {}));
1175
- export var UsageLimitFeatureType;
1176
- (function (UsageLimitFeatureType) {
1177
- UsageLimitFeatureType["CONCURRENCY_SCALING"] = "concurrency-scaling";
1178
- UsageLimitFeatureType["CROSS_REGION_DATASHARING"] = "cross-region-datasharing";
1179
- UsageLimitFeatureType["SPECTRUM"] = "spectrum";
1180
- })(UsageLimitFeatureType || (UsageLimitFeatureType = {}));
1181
- export var UsageLimitLimitType;
1182
- (function (UsageLimitLimitType) {
1183
- UsageLimitLimitType["DATA_SCANNED"] = "data-scanned";
1184
- UsageLimitLimitType["TIME"] = "time";
1185
- })(UsageLimitLimitType || (UsageLimitLimitType = {}));
1186
- export var UsageLimitPeriod;
1187
- (function (UsageLimitPeriod) {
1188
- UsageLimitPeriod["DAILY"] = "daily";
1189
- UsageLimitPeriod["MONTHLY"] = "monthly";
1190
- UsageLimitPeriod["WEEKLY"] = "weekly";
1191
- })(UsageLimitPeriod || (UsageLimitPeriod = {}));
1159
+ export const UsageLimitBreachAction = {
1160
+ DISABLE: "disable",
1161
+ EMIT_METRIC: "emit-metric",
1162
+ LOG: "log",
1163
+ };
1164
+ export const UsageLimitFeatureType = {
1165
+ CONCURRENCY_SCALING: "concurrency-scaling",
1166
+ CROSS_REGION_DATASHARING: "cross-region-datasharing",
1167
+ SPECTRUM: "spectrum",
1168
+ };
1169
+ export const UsageLimitLimitType = {
1170
+ DATA_SCANNED: "data-scanned",
1171
+ TIME: "time",
1172
+ };
1173
+ export const UsageLimitPeriod = {
1174
+ DAILY: "daily",
1175
+ MONTHLY: "monthly",
1176
+ WEEKLY: "weekly",
1177
+ };
1192
1178
  export class InvalidUsageLimitFault extends __BaseException {
1193
1179
  constructor(opts) {
1194
1180
  super({
@@ -1213,19 +1199,17 @@ export class UsageLimitAlreadyExistsFault extends __BaseException {
1213
1199
  Object.setPrototypeOf(this, UsageLimitAlreadyExistsFault.prototype);
1214
1200
  }
1215
1201
  }
1216
- export var DataShareStatusForConsumer;
1217
- (function (DataShareStatusForConsumer) {
1218
- DataShareStatusForConsumer["ACTIVE"] = "ACTIVE";
1219
- DataShareStatusForConsumer["AVAILABLE"] = "AVAILABLE";
1220
- })(DataShareStatusForConsumer || (DataShareStatusForConsumer = {}));
1221
- export var DataShareStatusForProducer;
1222
- (function (DataShareStatusForProducer) {
1223
- DataShareStatusForProducer["ACTIVE"] = "ACTIVE";
1224
- DataShareStatusForProducer["AUTHORIZED"] = "AUTHORIZED";
1225
- DataShareStatusForProducer["DEAUTHORIZED"] = "DEAUTHORIZED";
1226
- DataShareStatusForProducer["PENDING_AUTHORIZATION"] = "PENDING_AUTHORIZATION";
1227
- DataShareStatusForProducer["REJECTED"] = "REJECTED";
1228
- })(DataShareStatusForProducer || (DataShareStatusForProducer = {}));
1202
+ export const DataShareStatusForConsumer = {
1203
+ ACTIVE: "ACTIVE",
1204
+ AVAILABLE: "AVAILABLE",
1205
+ };
1206
+ export const DataShareStatusForProducer = {
1207
+ ACTIVE: "ACTIVE",
1208
+ AUTHORIZED: "AUTHORIZED",
1209
+ DEAUTHORIZED: "DEAUTHORIZED",
1210
+ PENDING_AUTHORIZATION: "PENDING_AUTHORIZATION",
1211
+ REJECTED: "REJECTED",
1212
+ };
1229
1213
  export class InvalidClusterParameterGroupStateFault extends __BaseException {
1230
1214
  constructor(opts) {
1231
1215
  super({
@@ -1382,25 +1366,22 @@ export class UsageLimitNotFoundFault extends __BaseException {
1382
1366
  Object.setPrototypeOf(this, UsageLimitNotFoundFault.prototype);
1383
1367
  }
1384
1368
  }
1385
- export var SnapshotAttributeToSortBy;
1386
- (function (SnapshotAttributeToSortBy) {
1387
- SnapshotAttributeToSortBy["CREATE_TIME"] = "CREATE_TIME";
1388
- SnapshotAttributeToSortBy["SOURCE_TYPE"] = "SOURCE_TYPE";
1389
- SnapshotAttributeToSortBy["TOTAL_SIZE"] = "TOTAL_SIZE";
1390
- })(SnapshotAttributeToSortBy || (SnapshotAttributeToSortBy = {}));
1391
- export var SortByOrder;
1392
- (function (SortByOrder) {
1393
- SortByOrder["ASCENDING"] = "ASC";
1394
- SortByOrder["DESCENDING"] = "DESC";
1395
- })(SortByOrder || (SortByOrder = {}));
1396
- export var SourceType;
1397
- (function (SourceType) {
1398
- SourceType["cluster"] = "cluster";
1399
- SourceType["cluster_parameter_group"] = "cluster-parameter-group";
1400
- SourceType["cluster_security_group"] = "cluster-security-group";
1401
- SourceType["cluster_snapshot"] = "cluster-snapshot";
1402
- SourceType["scheduled_action"] = "scheduled-action";
1403
- })(SourceType || (SourceType = {}));
1369
+ export const SnapshotAttributeToSortBy = {
1370
+ CREATE_TIME: "CREATE_TIME",
1371
+ SOURCE_TYPE: "SOURCE_TYPE",
1372
+ TOTAL_SIZE: "TOTAL_SIZE",
1373
+ };
1374
+ export const SortByOrder = {
1375
+ ASCENDING: "ASC",
1376
+ DESCENDING: "DESC",
1377
+ };
1378
+ export const SourceType = {
1379
+ cluster: "cluster",
1380
+ cluster_parameter_group: "cluster-parameter-group",
1381
+ cluster_security_group: "cluster-security-group",
1382
+ cluster_snapshot: "cluster-snapshot",
1383
+ scheduled_action: "scheduled-action",
1384
+ };
1404
1385
  export const ClusterCredentialsFilterSensitiveLog = (obj) => ({
1405
1386
  ...obj,
1406
1387
  ...(obj.DbPassword && { DbPassword: SENSITIVE_STRING }),
@@ -1,38 +1,33 @@
1
1
  import { RedshiftServiceException as __BaseException } from "./RedshiftServiceException";
2
- export var LogDestinationType;
3
- (function (LogDestinationType) {
4
- LogDestinationType["CLOUDWATCH"] = "cloudwatch";
5
- LogDestinationType["S3"] = "s3";
6
- })(LogDestinationType || (LogDestinationType = {}));
7
- export var NodeConfigurationOptionsFilterName;
8
- (function (NodeConfigurationOptionsFilterName) {
9
- NodeConfigurationOptionsFilterName["ESTIMATED_DISK_UTILIZATION_PERCENT"] = "EstimatedDiskUtilizationPercent";
10
- NodeConfigurationOptionsFilterName["MODE"] = "Mode";
11
- NodeConfigurationOptionsFilterName["NODE_TYPE"] = "NodeType";
12
- NodeConfigurationOptionsFilterName["NUM_NODES"] = "NumberOfNodes";
13
- })(NodeConfigurationOptionsFilterName || (NodeConfigurationOptionsFilterName = {}));
14
- export var OperatorType;
15
- (function (OperatorType) {
16
- OperatorType["BETWEEN"] = "between";
17
- OperatorType["EQ"] = "eq";
18
- OperatorType["GE"] = "ge";
19
- OperatorType["GT"] = "gt";
20
- OperatorType["IN"] = "in";
21
- OperatorType["LE"] = "le";
22
- OperatorType["LT"] = "lt";
23
- })(OperatorType || (OperatorType = {}));
24
- export var Mode;
25
- (function (Mode) {
26
- Mode["HIGH_PERFORMANCE"] = "high-performance";
27
- Mode["STANDARD"] = "standard";
28
- })(Mode || (Mode = {}));
29
- export var PartnerIntegrationStatus;
30
- (function (PartnerIntegrationStatus) {
31
- PartnerIntegrationStatus["Active"] = "Active";
32
- PartnerIntegrationStatus["ConnectionFailure"] = "ConnectionFailure";
33
- PartnerIntegrationStatus["Inactive"] = "Inactive";
34
- PartnerIntegrationStatus["RuntimeFailure"] = "RuntimeFailure";
35
- })(PartnerIntegrationStatus || (PartnerIntegrationStatus = {}));
2
+ export const LogDestinationType = {
3
+ CLOUDWATCH: "cloudwatch",
4
+ S3: "s3",
5
+ };
6
+ export const NodeConfigurationOptionsFilterName = {
7
+ ESTIMATED_DISK_UTILIZATION_PERCENT: "EstimatedDiskUtilizationPercent",
8
+ MODE: "Mode",
9
+ NODE_TYPE: "NodeType",
10
+ NUM_NODES: "NumberOfNodes",
11
+ };
12
+ export const OperatorType = {
13
+ BETWEEN: "between",
14
+ EQ: "eq",
15
+ GE: "ge",
16
+ GT: "gt",
17
+ IN: "in",
18
+ LE: "le",
19
+ LT: "lt",
20
+ };
21
+ export const Mode = {
22
+ HIGH_PERFORMANCE: "high-performance",
23
+ STANDARD: "standard",
24
+ };
25
+ export const PartnerIntegrationStatus = {
26
+ Active: "Active",
27
+ ConnectionFailure: "ConnectionFailure",
28
+ Inactive: "Inactive",
29
+ RuntimeFailure: "RuntimeFailure",
30
+ };
36
31
  export class ReservedNodeExchangeNotFoundFault extends __BaseException {
37
32
  constructor(opts) {
38
33
  super({
@@ -45,17 +40,15 @@ export class ReservedNodeExchangeNotFoundFault extends __BaseException {
45
40
  Object.setPrototypeOf(this, ReservedNodeExchangeNotFoundFault.prototype);
46
41
  }
47
42
  }
48
- export var ScheduledActionFilterName;
49
- (function (ScheduledActionFilterName) {
50
- ScheduledActionFilterName["CLUSTER_IDENTIFIER"] = "cluster-identifier";
51
- ScheduledActionFilterName["IAM_ROLE"] = "iam-role";
52
- })(ScheduledActionFilterName || (ScheduledActionFilterName = {}));
53
- export var ScheduledActionTypeValues;
54
- (function (ScheduledActionTypeValues) {
55
- ScheduledActionTypeValues["PAUSE_CLUSTER"] = "PauseCluster";
56
- ScheduledActionTypeValues["RESIZE_CLUSTER"] = "ResizeCluster";
57
- ScheduledActionTypeValues["RESUME_CLUSTER"] = "ResumeCluster";
58
- })(ScheduledActionTypeValues || (ScheduledActionTypeValues = {}));
43
+ export const ScheduledActionFilterName = {
44
+ CLUSTER_IDENTIFIER: "cluster-identifier",
45
+ IAM_ROLE: "iam-role",
46
+ };
47
+ export const ScheduledActionTypeValues = {
48
+ PAUSE_CLUSTER: "PauseCluster",
49
+ RESIZE_CLUSTER: "ResizeCluster",
50
+ RESUME_CLUSTER: "ResumeCluster",
51
+ };
59
52
  export class TableRestoreNotFoundFault extends __BaseException {
60
53
  constructor(opts) {
61
54
  super({
@@ -68,14 +61,13 @@ export class TableRestoreNotFoundFault extends __BaseException {
68
61
  Object.setPrototypeOf(this, TableRestoreNotFoundFault.prototype);
69
62
  }
70
63
  }
71
- export var TableRestoreStatusType;
72
- (function (TableRestoreStatusType) {
73
- TableRestoreStatusType["CANCELED"] = "CANCELED";
74
- TableRestoreStatusType["FAILED"] = "FAILED";
75
- TableRestoreStatusType["IN_PROGRESS"] = "IN_PROGRESS";
76
- TableRestoreStatusType["PENDING"] = "PENDING";
77
- TableRestoreStatusType["SUCCEEDED"] = "SUCCEEDED";
78
- })(TableRestoreStatusType || (TableRestoreStatusType = {}));
64
+ export const TableRestoreStatusType = {
65
+ CANCELED: "CANCELED",
66
+ FAILED: "FAILED",
67
+ IN_PROGRESS: "IN_PROGRESS",
68
+ PENDING: "PENDING",
69
+ SUCCEEDED: "SUCCEEDED",
70
+ };
79
71
  export class SnapshotCopyAlreadyDisabledFault extends __BaseException {
80
72
  constructor(opts) {
81
73
  super({
@@ -172,11 +164,10 @@ export class EndpointAuthorizationNotFoundFault extends __BaseException {
172
164
  Object.setPrototypeOf(this, EndpointAuthorizationNotFoundFault.prototype);
173
165
  }
174
166
  }
175
- export var ReservedNodeExchangeActionType;
176
- (function (ReservedNodeExchangeActionType) {
177
- ReservedNodeExchangeActionType["RESIZE_CLUSTER"] = "resize-cluster";
178
- ReservedNodeExchangeActionType["RESTORE_CLUSTER"] = "restore-cluster";
179
- })(ReservedNodeExchangeActionType || (ReservedNodeExchangeActionType = {}));
167
+ export const ReservedNodeExchangeActionType = {
168
+ RESIZE_CLUSTER: "resize-cluster",
169
+ RESTORE_CLUSTER: "restore-cluster",
170
+ };
180
171
  export class InProgressTableRestoreQuotaExceededFault extends __BaseException {
181
172
  constructor(opts) {
182
173
  super({