@aws-sdk/client-dsql 3.933.0 → 3.935.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.
package/dist-cjs/index.js CHANGED
@@ -128,18 +128,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends DSQLServiceExc
128
128
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
129
129
  }
130
130
  };
131
- const ClusterStatus = {
132
- ACTIVE: "ACTIVE",
133
- CREATING: "CREATING",
134
- DELETED: "DELETED",
135
- DELETING: "DELETING",
136
- FAILED: "FAILED",
137
- IDLE: "IDLE",
138
- INACTIVE: "INACTIVE",
139
- PENDING_DELETE: "PENDING_DELETE",
140
- PENDING_SETUP: "PENDING_SETUP",
141
- UPDATING: "UPDATING",
142
- };
143
131
  let ConflictException$1 = class ConflictException extends DSQLServiceException$1 {
144
132
  name = "ConflictException";
145
133
  $fault = "client";
@@ -156,16 +144,6 @@ let ConflictException$1 = class ConflictException extends DSQLServiceException$1
156
144
  this.resourceType = opts.resourceType;
157
145
  }
158
146
  };
159
- const EncryptionStatus = {
160
- ENABLED: "ENABLED",
161
- ENABLING: "ENABLING",
162
- KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE",
163
- UPDATING: "UPDATING",
164
- };
165
- const EncryptionType = {
166
- AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
167
- CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
168
- };
169
147
  let InternalServerException$1 = class InternalServerException extends DSQLServiceException$1 {
170
148
  name = "InternalServerException";
171
149
  $fault = "server";
@@ -222,13 +200,6 @@ let ThrottlingException$1 = class ThrottlingException extends DSQLServiceExcepti
222
200
  this.retryAfterSeconds = opts.retryAfterSeconds;
223
201
  }
224
202
  };
225
- const ValidationExceptionReason = {
226
- CANNOT_PARSE: "cannotParse",
227
- DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled",
228
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
229
- OTHER: "other",
230
- UNKNOWN_OPERATION: "unknownOperation",
231
- };
232
203
  let ValidationException$1 = class ValidationException extends DSQLServiceException$1 {
233
204
  name = "ValidationException";
234
205
  $fault = "client";
@@ -938,6 +909,36 @@ const waitUntilClusterNotExists = async (params, input) => {
938
909
  return utilWaiter.checkExceptions(result);
939
910
  };
940
911
 
912
+ const ClusterStatus = {
913
+ ACTIVE: "ACTIVE",
914
+ CREATING: "CREATING",
915
+ DELETED: "DELETED",
916
+ DELETING: "DELETING",
917
+ FAILED: "FAILED",
918
+ IDLE: "IDLE",
919
+ INACTIVE: "INACTIVE",
920
+ PENDING_DELETE: "PENDING_DELETE",
921
+ PENDING_SETUP: "PENDING_SETUP",
922
+ UPDATING: "UPDATING",
923
+ };
924
+ const EncryptionStatus = {
925
+ ENABLED: "ENABLED",
926
+ ENABLING: "ENABLING",
927
+ KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE",
928
+ UPDATING: "UPDATING",
929
+ };
930
+ const EncryptionType = {
931
+ AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
932
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
933
+ };
934
+ const ValidationExceptionReason = {
935
+ CANNOT_PARSE: "cannotParse",
936
+ DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled",
937
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
938
+ OTHER: "other",
939
+ UNKNOWN_OPERATION: "unknownOperation",
940
+ };
941
+
941
942
  Object.defineProperty(exports, "$Command", {
942
943
  enumerable: true,
943
944
  get: function () { return smithyClient.Command; }
package/dist-es/index.js CHANGED
@@ -3,5 +3,6 @@ export * from "./DSQL";
3
3
  export * from "./commands";
4
4
  export * from "./pagination";
5
5
  export * from "./waiters";
6
- export * from "./models";
6
+ export * from "./models/enums";
7
+ export * from "./models/errors";
7
8
  export { DSQLServiceException } from "./models/DSQLServiceException";
@@ -0,0 +1,29 @@
1
+ export const ClusterStatus = {
2
+ ACTIVE: "ACTIVE",
3
+ CREATING: "CREATING",
4
+ DELETED: "DELETED",
5
+ DELETING: "DELETING",
6
+ FAILED: "FAILED",
7
+ IDLE: "IDLE",
8
+ INACTIVE: "INACTIVE",
9
+ PENDING_DELETE: "PENDING_DELETE",
10
+ PENDING_SETUP: "PENDING_SETUP",
11
+ UPDATING: "UPDATING",
12
+ };
13
+ export const EncryptionStatus = {
14
+ ENABLED: "ENABLED",
15
+ ENABLING: "ENABLING",
16
+ KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE",
17
+ UPDATING: "UPDATING",
18
+ };
19
+ export const EncryptionType = {
20
+ AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
21
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
22
+ };
23
+ export const ValidationExceptionReason = {
24
+ CANNOT_PARSE: "cannotParse",
25
+ DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled",
26
+ FIELD_VALIDATION_FAILED: "fieldValidationFailed",
27
+ OTHER: "other",
28
+ UNKNOWN_OPERATION: "unknownOperation",
29
+ };
@@ -0,0 +1,117 @@
1
+ import { DSQLServiceException as __BaseException } from "./DSQLServiceException";
2
+ export class AccessDeniedException extends __BaseException {
3
+ name = "AccessDeniedException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "AccessDeniedException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
+ }
13
+ }
14
+ export class ConflictException extends __BaseException {
15
+ name = "ConflictException";
16
+ $fault = "client";
17
+ resourceId;
18
+ resourceType;
19
+ constructor(opts) {
20
+ super({
21
+ name: "ConflictException",
22
+ $fault: "client",
23
+ ...opts,
24
+ });
25
+ Object.setPrototypeOf(this, ConflictException.prototype);
26
+ this.resourceId = opts.resourceId;
27
+ this.resourceType = opts.resourceType;
28
+ }
29
+ }
30
+ export class InternalServerException extends __BaseException {
31
+ name = "InternalServerException";
32
+ $fault = "server";
33
+ $retryable = {};
34
+ retryAfterSeconds;
35
+ constructor(opts) {
36
+ super({
37
+ name: "InternalServerException",
38
+ $fault: "server",
39
+ ...opts,
40
+ });
41
+ Object.setPrototypeOf(this, InternalServerException.prototype);
42
+ this.retryAfterSeconds = opts.retryAfterSeconds;
43
+ }
44
+ }
45
+ export class ServiceQuotaExceededException extends __BaseException {
46
+ name = "ServiceQuotaExceededException";
47
+ $fault = "client";
48
+ resourceId;
49
+ resourceType;
50
+ serviceCode;
51
+ quotaCode;
52
+ constructor(opts) {
53
+ super({
54
+ name: "ServiceQuotaExceededException",
55
+ $fault: "client",
56
+ ...opts,
57
+ });
58
+ Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
59
+ this.resourceId = opts.resourceId;
60
+ this.resourceType = opts.resourceType;
61
+ this.serviceCode = opts.serviceCode;
62
+ this.quotaCode = opts.quotaCode;
63
+ }
64
+ }
65
+ export class ThrottlingException extends __BaseException {
66
+ name = "ThrottlingException";
67
+ $fault = "client";
68
+ $retryable = {
69
+ throttling: true,
70
+ };
71
+ serviceCode;
72
+ quotaCode;
73
+ retryAfterSeconds;
74
+ constructor(opts) {
75
+ super({
76
+ name: "ThrottlingException",
77
+ $fault: "client",
78
+ ...opts,
79
+ });
80
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
81
+ this.serviceCode = opts.serviceCode;
82
+ this.quotaCode = opts.quotaCode;
83
+ this.retryAfterSeconds = opts.retryAfterSeconds;
84
+ }
85
+ }
86
+ export class ValidationException extends __BaseException {
87
+ name = "ValidationException";
88
+ $fault = "client";
89
+ reason;
90
+ fieldList;
91
+ constructor(opts) {
92
+ super({
93
+ name: "ValidationException",
94
+ $fault: "client",
95
+ ...opts,
96
+ });
97
+ Object.setPrototypeOf(this, ValidationException.prototype);
98
+ this.reason = opts.reason;
99
+ this.fieldList = opts.fieldList;
100
+ }
101
+ }
102
+ export class ResourceNotFoundException extends __BaseException {
103
+ name = "ResourceNotFoundException";
104
+ $fault = "client";
105
+ resourceId;
106
+ resourceType;
107
+ constructor(opts) {
108
+ super({
109
+ name: "ResourceNotFoundException",
110
+ $fault: "client",
111
+ ...opts,
112
+ });
113
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
114
+ this.resourceId = opts.resourceId;
115
+ this.resourceType = opts.resourceType;
116
+ }
117
+ }
@@ -1,146 +1 @@
1
- import { DSQLServiceException as __BaseException } from "./DSQLServiceException";
2
- export class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- }
14
- export const ClusterStatus = {
15
- ACTIVE: "ACTIVE",
16
- CREATING: "CREATING",
17
- DELETED: "DELETED",
18
- DELETING: "DELETING",
19
- FAILED: "FAILED",
20
- IDLE: "IDLE",
21
- INACTIVE: "INACTIVE",
22
- PENDING_DELETE: "PENDING_DELETE",
23
- PENDING_SETUP: "PENDING_SETUP",
24
- UPDATING: "UPDATING",
25
- };
26
- export class ConflictException extends __BaseException {
27
- name = "ConflictException";
28
- $fault = "client";
29
- resourceId;
30
- resourceType;
31
- constructor(opts) {
32
- super({
33
- name: "ConflictException",
34
- $fault: "client",
35
- ...opts,
36
- });
37
- Object.setPrototypeOf(this, ConflictException.prototype);
38
- this.resourceId = opts.resourceId;
39
- this.resourceType = opts.resourceType;
40
- }
41
- }
42
- export const EncryptionStatus = {
43
- ENABLED: "ENABLED",
44
- ENABLING: "ENABLING",
45
- KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE",
46
- UPDATING: "UPDATING",
47
- };
48
- export const EncryptionType = {
49
- AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
50
- CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
51
- };
52
- export class InternalServerException extends __BaseException {
53
- name = "InternalServerException";
54
- $fault = "server";
55
- $retryable = {};
56
- retryAfterSeconds;
57
- constructor(opts) {
58
- super({
59
- name: "InternalServerException",
60
- $fault: "server",
61
- ...opts,
62
- });
63
- Object.setPrototypeOf(this, InternalServerException.prototype);
64
- this.retryAfterSeconds = opts.retryAfterSeconds;
65
- }
66
- }
67
- export class ServiceQuotaExceededException extends __BaseException {
68
- name = "ServiceQuotaExceededException";
69
- $fault = "client";
70
- resourceId;
71
- resourceType;
72
- serviceCode;
73
- quotaCode;
74
- constructor(opts) {
75
- super({
76
- name: "ServiceQuotaExceededException",
77
- $fault: "client",
78
- ...opts,
79
- });
80
- Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
81
- this.resourceId = opts.resourceId;
82
- this.resourceType = opts.resourceType;
83
- this.serviceCode = opts.serviceCode;
84
- this.quotaCode = opts.quotaCode;
85
- }
86
- }
87
- export class ThrottlingException extends __BaseException {
88
- name = "ThrottlingException";
89
- $fault = "client";
90
- $retryable = {
91
- throttling: true,
92
- };
93
- serviceCode;
94
- quotaCode;
95
- retryAfterSeconds;
96
- constructor(opts) {
97
- super({
98
- name: "ThrottlingException",
99
- $fault: "client",
100
- ...opts,
101
- });
102
- Object.setPrototypeOf(this, ThrottlingException.prototype);
103
- this.serviceCode = opts.serviceCode;
104
- this.quotaCode = opts.quotaCode;
105
- this.retryAfterSeconds = opts.retryAfterSeconds;
106
- }
107
- }
108
- export const ValidationExceptionReason = {
109
- CANNOT_PARSE: "cannotParse",
110
- DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled",
111
- FIELD_VALIDATION_FAILED: "fieldValidationFailed",
112
- OTHER: "other",
113
- UNKNOWN_OPERATION: "unknownOperation",
114
- };
115
- export class ValidationException extends __BaseException {
116
- name = "ValidationException";
117
- $fault = "client";
118
- reason;
119
- fieldList;
120
- constructor(opts) {
121
- super({
122
- name: "ValidationException",
123
- $fault: "client",
124
- ...opts,
125
- });
126
- Object.setPrototypeOf(this, ValidationException.prototype);
127
- this.reason = opts.reason;
128
- this.fieldList = opts.fieldList;
129
- }
130
- }
131
- export class ResourceNotFoundException extends __BaseException {
132
- name = "ResourceNotFoundException";
133
- $fault = "client";
134
- resourceId;
135
- resourceType;
136
- constructor(opts) {
137
- super({
138
- name: "ResourceNotFoundException",
139
- $fault: "client",
140
- ...opts,
141
- });
142
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
143
- this.resourceId = opts.resourceId;
144
- this.resourceType = opts.resourceType;
145
- }
146
- }
1
+ export {};
@@ -96,7 +96,7 @@ const _wR = "witnessRegion";
96
96
  const n0 = "com.amazonaws.dsql";
97
97
  import { TypeRegistry } from "@smithy/core/schema";
98
98
  import { DSQLServiceException as __DSQLServiceException } from "../models/DSQLServiceException";
99
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
99
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
100
100
  export var AccessDeniedException = [
101
101
  -3,
102
102
  n0,
@@ -11,5 +11,7 @@ export type { DSQLExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
13
  export * from "./waiters";
14
- export * from "./models";
14
+ export * from "./models/enums";
15
+ export * from "./models/errors";
16
+ export type * from "./models/models_0";
15
17
  export { DSQLServiceException } from "./models/DSQLServiceException";
@@ -0,0 +1,61 @@
1
+ /**
2
+ * @public
3
+ * @enum
4
+ */
5
+ export declare const ClusterStatus: {
6
+ readonly ACTIVE: "ACTIVE";
7
+ readonly CREATING: "CREATING";
8
+ readonly DELETED: "DELETED";
9
+ readonly DELETING: "DELETING";
10
+ readonly FAILED: "FAILED";
11
+ readonly IDLE: "IDLE";
12
+ readonly INACTIVE: "INACTIVE";
13
+ readonly PENDING_DELETE: "PENDING_DELETE";
14
+ readonly PENDING_SETUP: "PENDING_SETUP";
15
+ readonly UPDATING: "UPDATING";
16
+ };
17
+ /**
18
+ * @public
19
+ */
20
+ export type ClusterStatus = (typeof ClusterStatus)[keyof typeof ClusterStatus];
21
+ /**
22
+ * @public
23
+ * @enum
24
+ */
25
+ export declare const EncryptionStatus: {
26
+ readonly ENABLED: "ENABLED";
27
+ readonly ENABLING: "ENABLING";
28
+ readonly KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE";
29
+ readonly UPDATING: "UPDATING";
30
+ };
31
+ /**
32
+ * @public
33
+ */
34
+ export type EncryptionStatus = (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
35
+ /**
36
+ * @public
37
+ * @enum
38
+ */
39
+ export declare const EncryptionType: {
40
+ readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
41
+ readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
42
+ };
43
+ /**
44
+ * @public
45
+ */
46
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
47
+ /**
48
+ * @public
49
+ * @enum
50
+ */
51
+ export declare const ValidationExceptionReason: {
52
+ readonly CANNOT_PARSE: "cannotParse";
53
+ readonly DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled";
54
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
55
+ readonly OTHER: "other";
56
+ readonly UNKNOWN_OPERATION: "unknownOperation";
57
+ };
58
+ /**
59
+ * @public
60
+ */
61
+ export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -0,0 +1,162 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { DSQLServiceException as __BaseException } from "./DSQLServiceException";
3
+ import { ValidationExceptionReason } from "./enums";
4
+ import { ValidationExceptionField } from "./models_0";
5
+ /**
6
+ * <p>You do not have sufficient access to perform this action.</p>
7
+ * @public
8
+ */
9
+ export declare class AccessDeniedException extends __BaseException {
10
+ readonly name: "AccessDeniedException";
11
+ readonly $fault: "client";
12
+ /**
13
+ * @internal
14
+ */
15
+ constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
16
+ }
17
+ /**
18
+ * <p>The submitted action has conflicts.</p>
19
+ * @public
20
+ */
21
+ export declare class ConflictException extends __BaseException {
22
+ readonly name: "ConflictException";
23
+ readonly $fault: "client";
24
+ /**
25
+ * <p>Resource Id</p>
26
+ * @public
27
+ */
28
+ resourceId?: string | undefined;
29
+ /**
30
+ * <p>Resource Type</p>
31
+ * @public
32
+ */
33
+ resourceType?: string | undefined;
34
+ /**
35
+ * @internal
36
+ */
37
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
38
+ }
39
+ /**
40
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
41
+ * @public
42
+ */
43
+ export declare class InternalServerException extends __BaseException {
44
+ readonly name: "InternalServerException";
45
+ readonly $fault: "server";
46
+ $retryable: {};
47
+ /**
48
+ * <p>Retry after seconds.</p>
49
+ * @public
50
+ */
51
+ retryAfterSeconds?: number | undefined;
52
+ /**
53
+ * @internal
54
+ */
55
+ constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
56
+ }
57
+ /**
58
+ * <p>The service limit was exceeded.</p>
59
+ * @public
60
+ */
61
+ export declare class ServiceQuotaExceededException extends __BaseException {
62
+ readonly name: "ServiceQuotaExceededException";
63
+ readonly $fault: "client";
64
+ /**
65
+ * <p>The resource ID exceeds a quota.</p>
66
+ * @public
67
+ */
68
+ resourceId: string | undefined;
69
+ /**
70
+ * <p>The resource type exceeds a quota.</p>
71
+ * @public
72
+ */
73
+ resourceType: string | undefined;
74
+ /**
75
+ * <p>The request exceeds a service quota.</p>
76
+ * @public
77
+ */
78
+ serviceCode: string | undefined;
79
+ /**
80
+ * <p>The service exceeds a quota.</p>
81
+ * @public
82
+ */
83
+ quotaCode: string | undefined;
84
+ /**
85
+ * @internal
86
+ */
87
+ constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
88
+ }
89
+ /**
90
+ * <p>The request was denied due to request throttling.</p>
91
+ * @public
92
+ */
93
+ export declare class ThrottlingException extends __BaseException {
94
+ readonly name: "ThrottlingException";
95
+ readonly $fault: "client";
96
+ $retryable: {
97
+ throttling: boolean;
98
+ };
99
+ /**
100
+ * <p>The request exceeds a service quota.</p>
101
+ * @public
102
+ */
103
+ serviceCode?: string | undefined;
104
+ /**
105
+ * <p>The request exceeds a request rate quota.</p>
106
+ * @public
107
+ */
108
+ quotaCode?: string | undefined;
109
+ /**
110
+ * <p>The request exceeds a request rate quota. Retry after seconds.</p>
111
+ * @public
112
+ */
113
+ retryAfterSeconds?: number | undefined;
114
+ /**
115
+ * @internal
116
+ */
117
+ constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
118
+ }
119
+ /**
120
+ * <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
121
+ * @public
122
+ */
123
+ export declare class ValidationException extends __BaseException {
124
+ readonly name: "ValidationException";
125
+ readonly $fault: "client";
126
+ /**
127
+ * <p>The reason for the validation exception.</p>
128
+ * @public
129
+ */
130
+ reason: ValidationExceptionReason | undefined;
131
+ /**
132
+ * <p>A list of fields that didn't validate.</p>
133
+ * @public
134
+ */
135
+ fieldList?: ValidationExceptionField[] | undefined;
136
+ /**
137
+ * @internal
138
+ */
139
+ constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
140
+ }
141
+ /**
142
+ * <p>The resource could not be found.</p>
143
+ * @public
144
+ */
145
+ export declare class ResourceNotFoundException extends __BaseException {
146
+ readonly name: "ResourceNotFoundException";
147
+ readonly $fault: "client";
148
+ /**
149
+ * <p>The resource ID could not be found.</p>
150
+ * @public
151
+ */
152
+ resourceId: string | undefined;
153
+ /**
154
+ * <p>The resource type could not be found.</p>
155
+ * @public
156
+ */
157
+ resourceType: string | undefined;
158
+ /**
159
+ * @internal
160
+ */
161
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
162
+ }
@@ -1,59 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { DSQLServiceException as __BaseException } from "./DSQLServiceException";
3
- /**
4
- * <p>You do not have sufficient access to perform this action.</p>
5
- * @public
6
- */
7
- export declare class AccessDeniedException extends __BaseException {
8
- readonly name: "AccessDeniedException";
9
- readonly $fault: "client";
10
- /**
11
- * @internal
12
- */
13
- constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
14
- }
15
- /**
16
- * @public
17
- * @enum
18
- */
19
- export declare const ClusterStatus: {
20
- readonly ACTIVE: "ACTIVE";
21
- readonly CREATING: "CREATING";
22
- readonly DELETED: "DELETED";
23
- readonly DELETING: "DELETING";
24
- readonly FAILED: "FAILED";
25
- readonly IDLE: "IDLE";
26
- readonly INACTIVE: "INACTIVE";
27
- readonly PENDING_DELETE: "PENDING_DELETE";
28
- readonly PENDING_SETUP: "PENDING_SETUP";
29
- readonly UPDATING: "UPDATING";
30
- };
31
- /**
32
- * @public
33
- */
34
- export type ClusterStatus = (typeof ClusterStatus)[keyof typeof ClusterStatus];
35
- /**
36
- * <p>The submitted action has conflicts.</p>
37
- * @public
38
- */
39
- export declare class ConflictException extends __BaseException {
40
- readonly name: "ConflictException";
41
- readonly $fault: "client";
42
- /**
43
- * <p>Resource Id</p>
44
- * @public
45
- */
46
- resourceId?: string | undefined;
47
- /**
48
- * <p>Resource Type</p>
49
- * @public
50
- */
51
- resourceType?: string | undefined;
52
- /**
53
- * @internal
54
- */
55
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
56
- }
1
+ import { ClusterStatus, EncryptionStatus, EncryptionType } from "./enums";
57
2
  /**
58
3
  * <p>Defines the structure for multi-Region cluster configurations, containing the witness region and linked cluster settings.</p>
59
4
  * @public
@@ -110,32 +55,6 @@ export interface CreateClusterInput {
110
55
  */
111
56
  bypassPolicyLockoutSafetyCheck?: boolean | undefined;
112
57
  }
113
- /**
114
- * @public
115
- * @enum
116
- */
117
- export declare const EncryptionStatus: {
118
- readonly ENABLED: "ENABLED";
119
- readonly ENABLING: "ENABLING";
120
- readonly KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE";
121
- readonly UPDATING: "UPDATING";
122
- };
123
- /**
124
- * @public
125
- */
126
- export type EncryptionStatus = (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
127
- /**
128
- * @public
129
- * @enum
130
- */
131
- export declare const EncryptionType: {
132
- readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
133
- readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
134
- };
135
- /**
136
- * @public
137
- */
138
- export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
139
58
  /**
140
59
  * <p>Configuration details about encryption for the cluster including the KMS key ARN, encryption type, and encryption status.</p>
141
60
  * @public
@@ -203,86 +122,6 @@ export interface CreateClusterOutput {
203
122
  */
204
123
  endpoint?: string | undefined;
205
124
  }
206
- /**
207
- * <p>The request processing has failed because of an unknown error, exception or failure.</p>
208
- * @public
209
- */
210
- export declare class InternalServerException extends __BaseException {
211
- readonly name: "InternalServerException";
212
- readonly $fault: "server";
213
- $retryable: {};
214
- /**
215
- * <p>Retry after seconds.</p>
216
- * @public
217
- */
218
- retryAfterSeconds?: number | undefined;
219
- /**
220
- * @internal
221
- */
222
- constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
223
- }
224
- /**
225
- * <p>The service limit was exceeded.</p>
226
- * @public
227
- */
228
- export declare class ServiceQuotaExceededException extends __BaseException {
229
- readonly name: "ServiceQuotaExceededException";
230
- readonly $fault: "client";
231
- /**
232
- * <p>The resource ID exceeds a quota.</p>
233
- * @public
234
- */
235
- resourceId: string | undefined;
236
- /**
237
- * <p>The resource type exceeds a quota.</p>
238
- * @public
239
- */
240
- resourceType: string | undefined;
241
- /**
242
- * <p>The request exceeds a service quota.</p>
243
- * @public
244
- */
245
- serviceCode: string | undefined;
246
- /**
247
- * <p>The service exceeds a quota.</p>
248
- * @public
249
- */
250
- quotaCode: string | undefined;
251
- /**
252
- * @internal
253
- */
254
- constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
255
- }
256
- /**
257
- * <p>The request was denied due to request throttling.</p>
258
- * @public
259
- */
260
- export declare class ThrottlingException extends __BaseException {
261
- readonly name: "ThrottlingException";
262
- readonly $fault: "client";
263
- $retryable: {
264
- throttling: boolean;
265
- };
266
- /**
267
- * <p>The request exceeds a service quota.</p>
268
- * @public
269
- */
270
- serviceCode?: string | undefined;
271
- /**
272
- * <p>The request exceeds a request rate quota.</p>
273
- * @public
274
- */
275
- quotaCode?: string | undefined;
276
- /**
277
- * <p>The request exceeds a request rate quota. Retry after seconds.</p>
278
- * @public
279
- */
280
- retryAfterSeconds?: number | undefined;
281
- /**
282
- * @internal
283
- */
284
- constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
285
- }
286
125
  /**
287
126
  * <p>Stores information about a field passed inside a request that resulted in an validation error.</p>
288
127
  * @public
@@ -299,43 +138,6 @@ export interface ValidationExceptionField {
299
138
  */
300
139
  message: string | undefined;
301
140
  }
302
- /**
303
- * @public
304
- * @enum
305
- */
306
- export declare const ValidationExceptionReason: {
307
- readonly CANNOT_PARSE: "cannotParse";
308
- readonly DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled";
309
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
310
- readonly OTHER: "other";
311
- readonly UNKNOWN_OPERATION: "unknownOperation";
312
- };
313
- /**
314
- * @public
315
- */
316
- export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
317
- /**
318
- * <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
319
- * @public
320
- */
321
- export declare class ValidationException extends __BaseException {
322
- readonly name: "ValidationException";
323
- readonly $fault: "client";
324
- /**
325
- * <p>The reason for the validation exception.</p>
326
- * @public
327
- */
328
- reason: ValidationExceptionReason | undefined;
329
- /**
330
- * <p>A list of fields that didn't validate.</p>
331
- * @public
332
- */
333
- fieldList?: ValidationExceptionField[] | undefined;
334
- /**
335
- * @internal
336
- */
337
- constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
338
- }
339
141
  /**
340
142
  * @public
341
143
  */
@@ -377,28 +179,6 @@ export interface DeleteClusterOutput {
377
179
  */
378
180
  creationTime: Date | undefined;
379
181
  }
380
- /**
381
- * <p>The resource could not be found.</p>
382
- * @public
383
- */
384
- export declare class ResourceNotFoundException extends __BaseException {
385
- readonly name: "ResourceNotFoundException";
386
- readonly $fault: "client";
387
- /**
388
- * <p>The resource ID could not be found.</p>
389
- * @public
390
- */
391
- resourceId: string | undefined;
392
- /**
393
- * <p>The resource type could not be found.</p>
394
- * @public
395
- */
396
- resourceType: string | undefined;
397
- /**
398
- * @internal
399
- */
400
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
401
- }
402
182
  /**
403
183
  * @public
404
184
  */
@@ -6,5 +6,7 @@ export { DSQLExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
7
  export * from "./pagination";
8
8
  export * from "./waiters";
9
- export * from "./models";
9
+ export * from "./models/enums";
10
+ export * from "./models/errors";
11
+ export * from "./models/models_0";
10
12
  export { DSQLServiceException } from "./models/DSQLServiceException";
@@ -0,0 +1,36 @@
1
+ export declare const ClusterStatus: {
2
+ readonly ACTIVE: "ACTIVE";
3
+ readonly CREATING: "CREATING";
4
+ readonly DELETED: "DELETED";
5
+ readonly DELETING: "DELETING";
6
+ readonly FAILED: "FAILED";
7
+ readonly IDLE: "IDLE";
8
+ readonly INACTIVE: "INACTIVE";
9
+ readonly PENDING_DELETE: "PENDING_DELETE";
10
+ readonly PENDING_SETUP: "PENDING_SETUP";
11
+ readonly UPDATING: "UPDATING";
12
+ };
13
+ export type ClusterStatus = (typeof ClusterStatus)[keyof typeof ClusterStatus];
14
+ export declare const EncryptionStatus: {
15
+ readonly ENABLED: "ENABLED";
16
+ readonly ENABLING: "ENABLING";
17
+ readonly KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE";
18
+ readonly UPDATING: "UPDATING";
19
+ };
20
+ export type EncryptionStatus =
21
+ (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
22
+ export declare const EncryptionType: {
23
+ readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
24
+ readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
25
+ };
26
+ export type EncryptionType =
27
+ (typeof EncryptionType)[keyof typeof EncryptionType];
28
+ export declare const ValidationExceptionReason: {
29
+ readonly CANNOT_PARSE: "cannotParse";
30
+ readonly DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled";
31
+ readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
32
+ readonly OTHER: "other";
33
+ readonly UNKNOWN_OPERATION: "unknownOperation";
34
+ };
35
+ export type ValidationExceptionReason =
36
+ (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
@@ -0,0 +1,69 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { DSQLServiceException as __BaseException } from "./DSQLServiceException";
3
+ import { ValidationExceptionReason } from "./enums";
4
+ import { ValidationExceptionField } from "./models_0";
5
+ export declare class AccessDeniedException extends __BaseException {
6
+ readonly name: "AccessDeniedException";
7
+ readonly $fault: "client";
8
+ constructor(
9
+ opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
10
+ );
11
+ }
12
+ export declare class ConflictException extends __BaseException {
13
+ readonly name: "ConflictException";
14
+ readonly $fault: "client";
15
+ resourceId?: string | undefined;
16
+ resourceType?: string | undefined;
17
+ constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
18
+ }
19
+ export declare class InternalServerException extends __BaseException {
20
+ readonly name: "InternalServerException";
21
+ readonly $fault: "server";
22
+ $retryable: {};
23
+ retryAfterSeconds?: number | undefined;
24
+ constructor(
25
+ opts: __ExceptionOptionType<InternalServerException, __BaseException>
26
+ );
27
+ }
28
+ export declare class ServiceQuotaExceededException extends __BaseException {
29
+ readonly name: "ServiceQuotaExceededException";
30
+ readonly $fault: "client";
31
+ resourceId: string | undefined;
32
+ resourceType: string | undefined;
33
+ serviceCode: string | undefined;
34
+ quotaCode: string | undefined;
35
+ constructor(
36
+ opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
37
+ );
38
+ }
39
+ export declare class ThrottlingException extends __BaseException {
40
+ readonly name: "ThrottlingException";
41
+ readonly $fault: "client";
42
+ $retryable: {
43
+ throttling: boolean;
44
+ };
45
+ serviceCode?: string | undefined;
46
+ quotaCode?: string | undefined;
47
+ retryAfterSeconds?: number | undefined;
48
+ constructor(
49
+ opts: __ExceptionOptionType<ThrottlingException, __BaseException>
50
+ );
51
+ }
52
+ export declare class ValidationException extends __BaseException {
53
+ readonly name: "ValidationException";
54
+ readonly $fault: "client";
55
+ reason: ValidationExceptionReason | undefined;
56
+ fieldList?: ValidationExceptionField[] | undefined;
57
+ constructor(
58
+ opts: __ExceptionOptionType<ValidationException, __BaseException>
59
+ );
60
+ }
61
+ export declare class ResourceNotFoundException extends __BaseException {
62
+ readonly name: "ResourceNotFoundException";
63
+ readonly $fault: "client";
64
+ resourceId: string | undefined;
65
+ resourceType: string | undefined;
66
+ constructor(
67
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
68
+ );
69
+ }
@@ -1,32 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { DSQLServiceException as __BaseException } from "./DSQLServiceException";
3
- export declare class AccessDeniedException extends __BaseException {
4
- readonly name: "AccessDeniedException";
5
- readonly $fault: "client";
6
- constructor(
7
- opts: __ExceptionOptionType<AccessDeniedException, __BaseException>
8
- );
9
- }
10
- export declare const ClusterStatus: {
11
- readonly ACTIVE: "ACTIVE";
12
- readonly CREATING: "CREATING";
13
- readonly DELETED: "DELETED";
14
- readonly DELETING: "DELETING";
15
- readonly FAILED: "FAILED";
16
- readonly IDLE: "IDLE";
17
- readonly INACTIVE: "INACTIVE";
18
- readonly PENDING_DELETE: "PENDING_DELETE";
19
- readonly PENDING_SETUP: "PENDING_SETUP";
20
- readonly UPDATING: "UPDATING";
21
- };
22
- export type ClusterStatus = (typeof ClusterStatus)[keyof typeof ClusterStatus];
23
- export declare class ConflictException extends __BaseException {
24
- readonly name: "ConflictException";
25
- readonly $fault: "client";
26
- resourceId?: string | undefined;
27
- resourceType?: string | undefined;
28
- constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
29
- }
1
+ import { ClusterStatus, EncryptionStatus, EncryptionType } from "./enums";
30
2
  export interface MultiRegionProperties {
31
3
  witnessRegion?: string | undefined;
32
4
  clusters?: string[] | undefined;
@@ -40,20 +12,6 @@ export interface CreateClusterInput {
40
12
  policy?: string | undefined;
41
13
  bypassPolicyLockoutSafetyCheck?: boolean | undefined;
42
14
  }
43
- export declare const EncryptionStatus: {
44
- readonly ENABLED: "ENABLED";
45
- readonly ENABLING: "ENABLING";
46
- readonly KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE";
47
- readonly UPDATING: "UPDATING";
48
- };
49
- export type EncryptionStatus =
50
- (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
51
- export declare const EncryptionType: {
52
- readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
53
- readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
54
- };
55
- export type EncryptionType =
56
- (typeof EncryptionType)[keyof typeof EncryptionType];
57
15
  export interface EncryptionDetails {
58
16
  encryptionType: EncryptionType | undefined;
59
17
  kmsKeyArn?: string | undefined;
@@ -69,61 +27,10 @@ export interface CreateClusterOutput {
69
27
  deletionProtectionEnabled: boolean | undefined;
70
28
  endpoint?: string | undefined;
71
29
  }
72
- export declare class InternalServerException extends __BaseException {
73
- readonly name: "InternalServerException";
74
- readonly $fault: "server";
75
- $retryable: {};
76
- retryAfterSeconds?: number | undefined;
77
- constructor(
78
- opts: __ExceptionOptionType<InternalServerException, __BaseException>
79
- );
80
- }
81
- export declare class ServiceQuotaExceededException extends __BaseException {
82
- readonly name: "ServiceQuotaExceededException";
83
- readonly $fault: "client";
84
- resourceId: string | undefined;
85
- resourceType: string | undefined;
86
- serviceCode: string | undefined;
87
- quotaCode: string | undefined;
88
- constructor(
89
- opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
90
- );
91
- }
92
- export declare class ThrottlingException extends __BaseException {
93
- readonly name: "ThrottlingException";
94
- readonly $fault: "client";
95
- $retryable: {
96
- throttling: boolean;
97
- };
98
- serviceCode?: string | undefined;
99
- quotaCode?: string | undefined;
100
- retryAfterSeconds?: number | undefined;
101
- constructor(
102
- opts: __ExceptionOptionType<ThrottlingException, __BaseException>
103
- );
104
- }
105
30
  export interface ValidationExceptionField {
106
31
  name: string | undefined;
107
32
  message: string | undefined;
108
33
  }
109
- export declare const ValidationExceptionReason: {
110
- readonly CANNOT_PARSE: "cannotParse";
111
- readonly DELETION_PROTECTION_ENABLED: "deletionProtectionEnabled";
112
- readonly FIELD_VALIDATION_FAILED: "fieldValidationFailed";
113
- readonly OTHER: "other";
114
- readonly UNKNOWN_OPERATION: "unknownOperation";
115
- };
116
- export type ValidationExceptionReason =
117
- (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
118
- export declare class ValidationException extends __BaseException {
119
- readonly name: "ValidationException";
120
- readonly $fault: "client";
121
- reason: ValidationExceptionReason | undefined;
122
- fieldList?: ValidationExceptionField[] | undefined;
123
- constructor(
124
- opts: __ExceptionOptionType<ValidationException, __BaseException>
125
- );
126
- }
127
34
  export interface DeleteClusterInput {
128
35
  identifier: string | undefined;
129
36
  clientToken?: string | undefined;
@@ -134,15 +41,6 @@ export interface DeleteClusterOutput {
134
41
  status: ClusterStatus | undefined;
135
42
  creationTime: Date | undefined;
136
43
  }
137
- export declare class ResourceNotFoundException extends __BaseException {
138
- readonly name: "ResourceNotFoundException";
139
- readonly $fault: "client";
140
- resourceId: string | undefined;
141
- resourceType: string | undefined;
142
- constructor(
143
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
144
- );
145
- }
146
44
  export interface DeleteClusterPolicyInput {
147
45
  identifier: string | undefined;
148
46
  expectedPolicyVersion?: string | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dsql",
3
3
  "description": "AWS SDK for JavaScript Dsql Client for Node.js, Browser and React Native",
4
- "version": "3.933.0",
4
+ "version": "3.935.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dsql",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.932.0",
24
- "@aws-sdk/credential-provider-node": "3.933.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.932.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.932.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";