@aws-sdk/client-dsql 3.813.0 → 3.816.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,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.ConflictException = exports.ClusterStatus = exports.AccessDeniedException = void 0;
3
+ exports.ResourceNotFoundException = exports.ValidationException = exports.ValidationExceptionReason = exports.ThrottlingException = exports.ServiceQuotaExceededException = exports.InternalServerException = exports.EncryptionType = exports.EncryptionStatus = exports.ConflictException = exports.ClusterStatus = exports.AccessDeniedException = void 0;
4
4
  const DSQLServiceException_1 = require("./DSQLServiceException");
5
5
  class AccessDeniedException extends DSQLServiceException_1.DSQLServiceException {
6
6
  name = "AccessDeniedException";
@@ -44,6 +44,16 @@ class ConflictException extends DSQLServiceException_1.DSQLServiceException {
44
44
  }
45
45
  }
46
46
  exports.ConflictException = ConflictException;
47
+ exports.EncryptionStatus = {
48
+ ENABLED: "ENABLED",
49
+ ENABLING: "ENABLING",
50
+ KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE",
51
+ UPDATING: "UPDATING",
52
+ };
53
+ exports.EncryptionType = {
54
+ AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY",
55
+ CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY",
56
+ };
47
57
  class InternalServerException extends DSQLServiceException_1.DSQLServiceException {
48
58
  name = "InternalServerException";
49
59
  $fault = "server";
@@ -17,6 +17,7 @@ const se_CreateClusterCommand = async (input, context) => {
17
17
  body = JSON.stringify((0, smithy_client_1.take)(input, {
18
18
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
19
19
  deletionProtectionEnabled: [],
20
+ kmsEncryptionKey: [],
20
21
  multiRegionProperties: (_) => (0, smithy_client_1._json)(_),
21
22
  tags: (_) => (0, smithy_client_1._json)(_),
22
23
  }));
@@ -119,6 +120,7 @@ const se_UpdateClusterCommand = async (input, context) => {
119
120
  body = JSON.stringify((0, smithy_client_1.take)(input, {
120
121
  clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
121
122
  deletionProtectionEnabled: [],
123
+ kmsEncryptionKey: [],
122
124
  multiRegionProperties: (_) => (0, smithy_client_1._json)(_),
123
125
  }));
124
126
  b.m("POST").h(headers).b(body);
@@ -137,6 +139,7 @@ const de_CreateClusterCommand = async (output, context) => {
137
139
  arn: smithy_client_1.expectString,
138
140
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
139
141
  deletionProtectionEnabled: smithy_client_1.expectBoolean,
142
+ encryptionDetails: smithy_client_1._json,
140
143
  identifier: smithy_client_1.expectString,
141
144
  multiRegionProperties: smithy_client_1._json,
142
145
  status: smithy_client_1.expectString,
@@ -175,6 +178,7 @@ const de_GetClusterCommand = async (output, context) => {
175
178
  arn: smithy_client_1.expectString,
176
179
  creationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
177
180
  deletionProtectionEnabled: smithy_client_1.expectBoolean,
181
+ encryptionDetails: smithy_client_1._json,
178
182
  identifier: smithy_client_1.expectString,
179
183
  multiRegionProperties: smithy_client_1._json,
180
184
  status: smithy_client_1.expectString,
@@ -39,6 +39,16 @@ export class ConflictException extends __BaseException {
39
39
  this.resourceType = opts.resourceType;
40
40
  }
41
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
+ };
42
52
  export class InternalServerException extends __BaseException {
43
53
  name = "InternalServerException";
44
54
  $fault = "server";
@@ -14,6 +14,7 @@ export const se_CreateClusterCommand = async (input, context) => {
14
14
  body = JSON.stringify(take(input, {
15
15
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
16
16
  deletionProtectionEnabled: [],
17
+ kmsEncryptionKey: [],
17
18
  multiRegionProperties: (_) => _json(_),
18
19
  tags: (_) => _json(_),
19
20
  }));
@@ -108,6 +109,7 @@ export const se_UpdateClusterCommand = async (input, context) => {
108
109
  body = JSON.stringify(take(input, {
109
110
  clientToken: [true, (_) => _ ?? generateIdempotencyToken()],
110
111
  deletionProtectionEnabled: [],
112
+ kmsEncryptionKey: [],
111
113
  multiRegionProperties: (_) => _json(_),
112
114
  }));
113
115
  b.m("POST").h(headers).b(body);
@@ -125,6 +127,7 @@ export const de_CreateClusterCommand = async (output, context) => {
125
127
  arn: __expectString,
126
128
  creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
127
129
  deletionProtectionEnabled: __expectBoolean,
130
+ encryptionDetails: _json,
128
131
  identifier: __expectString,
129
132
  multiRegionProperties: _json,
130
133
  status: __expectString,
@@ -161,6 +164,7 @@ export const de_GetClusterCommand = async (output, context) => {
161
164
  arn: __expectString,
162
165
  creationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
163
166
  deletionProtectionEnabled: __expectBoolean,
167
+ encryptionDetails: _json,
164
168
  identifier: __expectString,
165
169
  multiRegionProperties: _json,
166
170
  status: __expectString,
@@ -100,6 +100,7 @@ declare const CreateClusterCommand_base: {
100
100
  * const client = new DSQLClient(config);
101
101
  * const input = { // CreateClusterInput
102
102
  * deletionProtectionEnabled: true || false,
103
+ * kmsEncryptionKey: "STRING_VALUE",
103
104
  * tags: { // TagMap
104
105
  * "<keys>": "STRING_VALUE",
105
106
  * },
@@ -124,6 +125,11 @@ declare const CreateClusterCommand_base: {
124
125
  * // "STRING_VALUE",
125
126
  * // ],
126
127
  * // },
128
+ * // encryptionDetails: { // EncryptionDetails
129
+ * // encryptionType: "AWS_OWNED_KMS_KEY" || "CUSTOMER_MANAGED_KMS_KEY", // required
130
+ * // kmsKeyArn: "STRING_VALUE",
131
+ * // encryptionStatus: "ENABLED" || "UPDATING" || "KMS_KEY_INACCESSIBLE" || "ENABLING", // required
132
+ * // },
127
133
  * // deletionProtectionEnabled: true || false, // required
128
134
  * // };
129
135
  *
@@ -54,6 +54,11 @@ declare const GetClusterCommand_base: {
54
54
  * // tags: { // TagMap
55
55
  * // "<keys>": "STRING_VALUE",
56
56
  * // },
57
+ * // encryptionDetails: { // EncryptionDetails
58
+ * // encryptionType: "AWS_OWNED_KMS_KEY" || "CUSTOMER_MANAGED_KMS_KEY", // required
59
+ * // kmsKeyArn: "STRING_VALUE",
60
+ * // encryptionStatus: "ENABLED" || "UPDATING" || "KMS_KEY_INACCESSIBLE" || "ENABLING", // required
61
+ * // },
57
62
  * // };
58
63
  *
59
64
  * ```
@@ -123,6 +123,7 @@ declare const UpdateClusterCommand_base: {
123
123
  * const input = { // UpdateClusterInput
124
124
  * identifier: "STRING_VALUE", // required
125
125
  * deletionProtectionEnabled: true || false,
126
+ * kmsEncryptionKey: "STRING_VALUE",
126
127
  * clientToken: "STRING_VALUE",
127
128
  * multiRegionProperties: { // MultiRegionProperties
128
129
  * witnessRegion: "STRING_VALUE",
@@ -80,6 +80,11 @@ export interface CreateClusterInput {
80
80
  * @public
81
81
  */
82
82
  deletionProtectionEnabled?: boolean | undefined;
83
+ /**
84
+ * <p>The KMS key that encrypts and protects the data on your cluster. You can specify the ARN, ID, or alias of an existing key or have Amazon Web Services create a default key for you.</p>
85
+ * @public
86
+ */
87
+ kmsEncryptionKey?: string | undefined;
83
88
  /**
84
89
  * <p>A map of key and value pairs to use to tag your cluster.</p>
85
90
  * @public
@@ -102,6 +107,53 @@ export interface CreateClusterInput {
102
107
  */
103
108
  multiRegionProperties?: MultiRegionProperties | undefined;
104
109
  }
110
+ /**
111
+ * @public
112
+ * @enum
113
+ */
114
+ export declare const EncryptionStatus: {
115
+ readonly ENABLED: "ENABLED";
116
+ readonly ENABLING: "ENABLING";
117
+ readonly KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE";
118
+ readonly UPDATING: "UPDATING";
119
+ };
120
+ /**
121
+ * @public
122
+ */
123
+ export type EncryptionStatus = (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
124
+ /**
125
+ * @public
126
+ * @enum
127
+ */
128
+ export declare const EncryptionType: {
129
+ readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
130
+ readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
131
+ };
132
+ /**
133
+ * @public
134
+ */
135
+ export type EncryptionType = (typeof EncryptionType)[keyof typeof EncryptionType];
136
+ /**
137
+ * <p>Configuration details about encryption for the cluster including the KMS key ARN, encryption type, and encryption status.</p>
138
+ * @public
139
+ */
140
+ export interface EncryptionDetails {
141
+ /**
142
+ * <p>The type of encryption that protects the data on your cluster.</p>
143
+ * @public
144
+ */
145
+ encryptionType: EncryptionType | undefined;
146
+ /**
147
+ * <p>The ARN of the KMS key that encrypts data in the cluster.</p>
148
+ * @public
149
+ */
150
+ kmsKeyArn?: string | undefined;
151
+ /**
152
+ * <p>The status of encryption for the cluster.</p>
153
+ * @public
154
+ */
155
+ encryptionStatus: EncryptionStatus | undefined;
156
+ }
105
157
  /**
106
158
  * <p>The output of a created cluster.</p>
107
159
  * @public
@@ -132,6 +184,11 @@ export interface CreateClusterOutput {
132
184
  * @public
133
185
  */
134
186
  multiRegionProperties?: MultiRegionProperties | undefined;
187
+ /**
188
+ * <p>The encryption configuration for the cluster that was specified during the creation process, including the KMS key identifier and encryption state.</p>
189
+ * @public
190
+ */
191
+ encryptionDetails?: EncryptionDetails | undefined;
135
192
  /**
136
193
  * <p>Whether deletion protection is enabled on this cluster.</p>
137
194
  * @public
@@ -392,6 +449,11 @@ export interface GetClusterOutput {
392
449
  * @public
393
450
  */
394
451
  tags?: Record<string, string> | undefined;
452
+ /**
453
+ * <p>The current encryption configuration details for the cluster.</p>
454
+ * @public
455
+ */
456
+ encryptionDetails?: EncryptionDetails | undefined;
395
457
  }
396
458
  /**
397
459
  * @public
@@ -478,6 +540,11 @@ export interface UpdateClusterInput {
478
540
  * @public
479
541
  */
480
542
  deletionProtectionEnabled?: boolean | undefined;
543
+ /**
544
+ * <p>The KMS key that encrypts and protects the data on your cluster. You can specify the ARN, ID, or alias of an existing key or have Amazon Web Services create a default key for you.</p>
545
+ * @public
546
+ */
547
+ kmsEncryptionKey?: string | undefined;
481
548
  /**
482
549
  * <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the
483
550
  * request. Idempotency ensures that an API request completes only once. With an idempotent
@@ -33,16 +33,37 @@ export interface MultiRegionProperties {
33
33
  }
34
34
  export interface CreateClusterInput {
35
35
  deletionProtectionEnabled?: boolean | undefined;
36
+ kmsEncryptionKey?: string | undefined;
36
37
  tags?: Record<string, string> | undefined;
37
38
  clientToken?: string | undefined;
38
39
  multiRegionProperties?: MultiRegionProperties | undefined;
39
40
  }
41
+ export declare const EncryptionStatus: {
42
+ readonly ENABLED: "ENABLED";
43
+ readonly ENABLING: "ENABLING";
44
+ readonly KMS_KEY_INACCESSIBLE: "KMS_KEY_INACCESSIBLE";
45
+ readonly UPDATING: "UPDATING";
46
+ };
47
+ export type EncryptionStatus =
48
+ (typeof EncryptionStatus)[keyof typeof EncryptionStatus];
49
+ export declare const EncryptionType: {
50
+ readonly AWS_OWNED_KMS_KEY: "AWS_OWNED_KMS_KEY";
51
+ readonly CUSTOMER_MANAGED_KMS_KEY: "CUSTOMER_MANAGED_KMS_KEY";
52
+ };
53
+ export type EncryptionType =
54
+ (typeof EncryptionType)[keyof typeof EncryptionType];
55
+ export interface EncryptionDetails {
56
+ encryptionType: EncryptionType | undefined;
57
+ kmsKeyArn?: string | undefined;
58
+ encryptionStatus: EncryptionStatus | undefined;
59
+ }
40
60
  export interface CreateClusterOutput {
41
61
  identifier: string | undefined;
42
62
  arn: string | undefined;
43
63
  status: ClusterStatus | undefined;
44
64
  creationTime: Date | undefined;
45
65
  multiRegionProperties?: MultiRegionProperties | undefined;
66
+ encryptionDetails?: EncryptionDetails | undefined;
46
67
  deletionProtectionEnabled: boolean | undefined;
47
68
  }
48
69
  export declare class InternalServerException extends __BaseException {
@@ -130,6 +151,7 @@ export interface GetClusterOutput {
130
151
  deletionProtectionEnabled: boolean | undefined;
131
152
  multiRegionProperties?: MultiRegionProperties | undefined;
132
153
  tags?: Record<string, string> | undefined;
154
+ encryptionDetails?: EncryptionDetails | undefined;
133
155
  }
134
156
  export interface GetVpcEndpointServiceNameInput {
135
157
  identifier: string | undefined;
@@ -152,6 +174,7 @@ export interface ListClustersOutput {
152
174
  export interface UpdateClusterInput {
153
175
  identifier: string | undefined;
154
176
  deletionProtectionEnabled?: boolean | undefined;
177
+ kmsEncryptionKey?: string | undefined;
155
178
  clientToken?: string | undefined;
156
179
  multiRegionProperties?: MultiRegionProperties | undefined;
157
180
  }
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.813.0",
4
+ "version": "3.816.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -20,17 +20,17 @@
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.812.0",
24
- "@aws-sdk/credential-provider-node": "3.812.0",
23
+ "@aws-sdk/core": "3.816.0",
24
+ "@aws-sdk/credential-provider-node": "3.816.0",
25
25
  "@aws-sdk/middleware-host-header": "3.804.0",
26
26
  "@aws-sdk/middleware-logger": "3.804.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.804.0",
28
- "@aws-sdk/middleware-user-agent": "3.812.0",
28
+ "@aws-sdk/middleware-user-agent": "3.816.0",
29
29
  "@aws-sdk/region-config-resolver": "3.808.0",
30
30
  "@aws-sdk/types": "3.804.0",
31
31
  "@aws-sdk/util-endpoints": "3.808.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.804.0",
33
- "@aws-sdk/util-user-agent-node": "3.812.0",
33
+ "@aws-sdk/util-user-agent-node": "3.816.0",
34
34
  "@smithy/config-resolver": "^4.1.2",
35
35
  "@smithy/core": "^3.3.3",
36
36
  "@smithy/fetch-http-handler": "^5.0.2",