@aws-sdk/client-redshift-serverless 3.257.0 → 3.258.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,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ruleSet = void 0;
4
- const p = "required", q = "fn", r = "argv", s = "ref";
5
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
6
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
4
+ const q = "fn", r = "argv", s = "ref";
5
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
6
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
7
7
  exports.ruleSet = _data;
@@ -10,7 +10,6 @@ const invalid_dependency_1 = require("@aws-sdk/invalid-dependency");
10
10
  const util_body_length_browser_1 = require("@aws-sdk/util-body-length-browser");
11
11
  const util_retry_1 = require("@aws-sdk/util-retry");
12
12
  const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
13
- const util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser");
14
13
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
15
14
  const smithy_client_1 = require("@aws-sdk/smithy-client");
16
15
  const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
@@ -35,8 +34,6 @@ const getRuntimeConfig = (config) => {
35
34
  streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector,
36
35
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)),
37
36
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)),
38
- utf8Decoder: config?.utf8Decoder ?? util_utf8_browser_1.fromUtf8,
39
- utf8Encoder: config?.utf8Encoder ?? util_utf8_browser_1.toUtf8,
40
37
  };
41
38
  };
42
39
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -13,7 +13,6 @@ const node_http_handler_1 = require("@aws-sdk/node-http-handler");
13
13
  const util_body_length_node_1 = require("@aws-sdk/util-body-length-node");
14
14
  const util_retry_1 = require("@aws-sdk/util-retry");
15
15
  const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node");
16
- const util_utf8_node_1 = require("@aws-sdk/util-utf8-node");
17
16
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
18
17
  const smithy_client_1 = require("@aws-sdk/smithy-client");
19
18
  const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
@@ -44,8 +43,6 @@ const getRuntimeConfig = (config) => {
44
43
  streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector,
45
44
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
46
45
  useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
47
- utf8Decoder: config?.utf8Decoder ?? util_utf8_node_1.fromUtf8,
48
- utf8Encoder: config?.utf8Encoder ?? util_utf8_node_1.toUtf8,
49
46
  };
50
47
  };
51
48
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -4,6 +4,7 @@ exports.getRuntimeConfig = void 0;
4
4
  const smithy_client_1 = require("@aws-sdk/smithy-client");
5
5
  const url_parser_1 = require("@aws-sdk/url-parser");
6
6
  const util_base64_1 = require("@aws-sdk/util-base64");
7
+ const util_utf8_1 = require("@aws-sdk/util-utf8");
7
8
  const endpointResolver_1 = require("./endpoint/endpointResolver");
8
9
  const getRuntimeConfig = (config) => ({
9
10
  apiVersion: "2021-04-21",
@@ -14,5 +15,7 @@ const getRuntimeConfig = (config) => ({
14
15
  logger: config?.logger ?? new smithy_client_1.NoOpLogger(),
15
16
  serviceId: config?.serviceId ?? "Redshift Serverless",
16
17
  urlParser: config?.urlParser ?? url_parser_1.parseUrl,
18
+ utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8,
19
+ utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8,
17
20
  });
18
21
  exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,4 +1,4 @@
1
- const p = "required", q = "fn", r = "argv", s = "ref";
2
- const a = "PartitionResult", b = "tree", c = "error", d = "endpoint", e = { [p]: false, "type": "String" }, f = { [p]: true, "default": false, "type": "Boolean" }, g = { [s]: "Endpoint" }, h = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, i = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, j = {}, k = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsFIPS"] }] }, l = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: a }, "supportsDualStack"] }] }, m = [g], n = [h], o = [i];
3
- const _data = { version: "1.0", parameters: { Region: e, UseDualStack: f, UseFIPS: f, Endpoint: e }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: a }], type: b, rules: [{ conditions: [{ [q]: "isSet", [r]: m }, { [q]: "parseURL", [r]: m, assign: "url" }], type: b, rules: [{ conditions: n, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: o, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: g, properties: j, headers: j }, type: d }] }] }, { conditions: [h, i], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: n, type: b, rules: [{ conditions: [k], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [l], type: b, rules: [{ endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: j, headers: j }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dnsSuffix}", properties: j, headers: j }, type: d }] }] };
1
+ const q = "fn", r = "argv", s = "ref";
2
+ const a = true, b = false, c = "String", d = "PartitionResult", e = "tree", f = "error", g = "endpoint", h = { "required": true, "default": false, "type": "Boolean" }, i = { [s]: "Endpoint" }, j = { [q]: "booleanEquals", [r]: [{ [s]: "UseFIPS" }, true] }, k = { [q]: "booleanEquals", [r]: [{ [s]: "UseDualStack" }, true] }, l = {}, m = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsFIPS"] }] }, n = { [q]: "booleanEquals", [r]: [true, { [q]: "getAttr", [r]: [{ [s]: d }, "supportsDualStack"] }] }, o = [j], p = [k];
3
+ const _data = { version: "1.0", parameters: { Region: { required: a, type: c }, UseDualStack: h, UseFIPS: h, Endpoint: { required: b, type: c } }, rules: [{ conditions: [{ [q]: "aws.partition", [r]: [{ [s]: "Region" }], assign: d }], type: e, rules: [{ conditions: [{ [q]: "isSet", [r]: [i] }], type: e, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: f }, { type: e, rules: [{ conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: f }, { endpoint: { url: i, properties: l, headers: l }, type: g }] }] }, { conditions: [j, k], type: e, rules: [{ conditions: [m, n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: f }] }, { conditions: o, type: e, rules: [{ conditions: [m], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://redshift-serverless-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: f }] }, { conditions: p, type: e, rules: [{ conditions: [n], type: e, rules: [{ type: e, rules: [{ endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: g }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: f }] }, { type: e, rules: [{ endpoint: { url: "https://redshift-serverless.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: g }] }] }] };
4
4
  export const ruleSet = _data;
@@ -6,7 +6,6 @@ import { invalidProvider } from "@aws-sdk/invalid-dependency";
6
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
7
7
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
8
8
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
- import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
9
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
11
10
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
12
11
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
@@ -31,7 +30,5 @@ export const getRuntimeConfig = (config) => {
31
30
  streamCollector: config?.streamCollector ?? streamCollector,
32
31
  useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
33
32
  useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
34
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
35
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
36
33
  };
37
34
  };
@@ -9,7 +9,6 @@ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/nod
9
9
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
10
10
  import { DEFAULT_RETRY_MODE } from "@aws-sdk/util-retry";
11
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
12
- import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
12
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
14
13
  import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
15
14
  import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
@@ -40,7 +39,5 @@ export const getRuntimeConfig = (config) => {
40
39
  streamCollector: config?.streamCollector ?? streamCollector,
41
40
  useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
42
41
  useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
43
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
44
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
45
42
  };
46
43
  };
@@ -1,6 +1,7 @@
1
1
  import { NoOpLogger } from "@aws-sdk/smithy-client";
2
2
  import { parseUrl } from "@aws-sdk/url-parser";
3
3
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
4
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8";
4
5
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
5
6
  export const getRuntimeConfig = (config) => ({
6
7
  apiVersion: "2021-04-21",
@@ -11,4 +12,6 @@ export const getRuntimeConfig = (config) => ({
11
12
  logger: config?.logger ?? new NoOpLogger(),
12
13
  serviceId: config?.serviceId ?? "Redshift Serverless",
13
14
  urlParser: config?.urlParser ?? parseUrl,
15
+ utf8Decoder: config?.utf8Decoder ?? fromUtf8,
16
+ utf8Encoder: config?.utf8Encoder ?? toUtf8,
14
17
  });
@@ -264,7 +264,8 @@ export declare class RedshiftServerless extends RedshiftServerlessClient {
264
264
  restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void): void;
265
265
  restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void): void;
266
266
  /**
267
- * <p>Restores a table from a snapshot to your Amazon Redshift Serverless instance.</p>
267
+ * <p>Restores a table from a snapshot to your Amazon Redshift Serverless instance. You can't use this operation to
268
+ * restore tables with <a href="https://docs.aws.amazon.com/redshift/latest/dg/t_Sorting_data.html#t_Sorting_data-interleaved">interleaved sort keys</a>.</p>
268
269
  */
269
270
  restoreTableFromSnapshot(args: RestoreTableFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreTableFromSnapshotCommandOutput>;
270
271
  restoreTableFromSnapshot(args: RestoreTableFromSnapshotCommandInput, cb: (err: any, data?: RestoreTableFromSnapshotCommandOutput) => void): void;
@@ -288,7 +289,9 @@ export declare class RedshiftServerless extends RedshiftServerlessClient {
288
289
  updateEndpointAccess(args: UpdateEndpointAccessCommandInput, cb: (err: any, data?: UpdateEndpointAccessCommandOutput) => void): void;
289
290
  updateEndpointAccess(args: UpdateEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEndpointAccessCommandOutput) => void): void;
290
291
  /**
291
- * <p>Updates a namespace with the specified settings.</p>
292
+ * <p>Updates a namespace with the specified settings. Unless required, you can't update multiple parameters in one request. For example,
293
+ * you must specify both <code>adminUsername</code> and <code>adminUserPassword</code> to update either field, but you can't update both <code>kmsKeyId</code>
294
+ * and <code>logExports</code> in a single request.</p>
292
295
  */
293
296
  updateNamespace(args: UpdateNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNamespaceCommandOutput>;
294
297
  updateNamespace(args: UpdateNamespaceCommandInput, cb: (err: any, data?: UpdateNamespaceCommandOutput) => void): void;
@@ -306,7 +309,8 @@ export declare class RedshiftServerless extends RedshiftServerlessClient {
306
309
  updateUsageLimit(args: UpdateUsageLimitCommandInput, cb: (err: any, data?: UpdateUsageLimitCommandOutput) => void): void;
307
310
  updateUsageLimit(args: UpdateUsageLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUsageLimitCommandOutput) => void): void;
308
311
  /**
309
- * <p>Updates a workgroup with the specified configuration settings.</p>
312
+ * <p>Updates a workgroup with the specified configuration settings. You can't update multiple parameters in one request. For example,
313
+ * you can update <code>baseCapacity</code> or <code>port</code> in a single request, but you can't update both in the same request.</p>
310
314
  */
311
315
  updateWorkgroup(args: UpdateWorkgroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkgroupCommandOutput>;
312
316
  updateWorkgroup(args: UpdateWorkgroupCommandInput, cb: (err: any, data?: UpdateWorkgroupCommandOutput) => void): void;
@@ -8,7 +8,8 @@ export interface RestoreTableFromSnapshotCommandInput extends RestoreTableFromSn
8
8
  export interface RestoreTableFromSnapshotCommandOutput extends RestoreTableFromSnapshotResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Restores a table from a snapshot to your Amazon Redshift Serverless instance.</p>
11
+ * <p>Restores a table from a snapshot to your Amazon Redshift Serverless instance. You can't use this operation to
12
+ * restore tables with <a href="https://docs.aws.amazon.com/redshift/latest/dg/t_Sorting_data.html#t_Sorting_data-interleaved">interleaved sort keys</a>.</p>
12
13
  * @example
13
14
  * Use a bare-bones client and the command you need to make an API call.
14
15
  * ```javascript
@@ -8,7 +8,9 @@ export interface UpdateNamespaceCommandInput extends UpdateNamespaceRequest {
8
8
  export interface UpdateNamespaceCommandOutput extends UpdateNamespaceResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Updates a namespace with the specified settings.</p>
11
+ * <p>Updates a namespace with the specified settings. Unless required, you can't update multiple parameters in one request. For example,
12
+ * you must specify both <code>adminUsername</code> and <code>adminUserPassword</code> to update either field, but you can't update both <code>kmsKeyId</code>
13
+ * and <code>logExports</code> in a single request.</p>
12
14
  * @example
13
15
  * Use a bare-bones client and the command you need to make an API call.
14
16
  * ```javascript
@@ -8,7 +8,8 @@ export interface UpdateWorkgroupCommandInput extends UpdateWorkgroupRequest {
8
8
  export interface UpdateWorkgroupCommandOutput extends UpdateWorkgroupResponse, __MetadataBearer {
9
9
  }
10
10
  /**
11
- * <p>Updates a workgroup with the specified configuration settings.</p>
11
+ * <p>Updates a workgroup with the specified configuration settings. You can't update multiple parameters in one request. For example,
12
+ * you can update <code>baseCapacity</code> or <code>port</code> in a single request, but you can't update both in the same request.</p>
12
13
  * @example
13
14
  * Use a bare-bones client and the command you need to make an API call.
14
15
  * ```javascript
@@ -12,7 +12,7 @@ export declare const resolveClientEndpointParameters: <T>(options: T & ClientInp
12
12
  defaultSigningName: string;
13
13
  };
14
14
  export interface EndpointParameters extends __EndpointParameters {
15
- Region?: string;
15
+ Region: string;
16
16
  UseDualStack?: boolean;
17
17
  UseFIPS?: boolean;
18
18
  Endpoint?: string;
@@ -18,8 +18,10 @@ export declare class AccessDeniedException extends __BaseException {
18
18
  export interface ConfigParameter {
19
19
  /**
20
20
  * <p>The key of the parameter. The
21
- * options are <code>datestyle</code>, <code>enable_user_activity_logging</code>,
22
- * <code>query_group</code>, <code>search_path</code>, and <code>max_query_execution_time</code>.</p>
21
+ * options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitivity_identifier</code>, <code>enable_user_activity_logging</code>,
22
+ * <code>query_group</code>, <code>search_path</code>, and query monitoring metrics that let
23
+ * you define performance boundaries. For more information about query monitoring rules and available metrics, see
24
+ * <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless">Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
23
25
  */
24
26
  parameterKey?: string;
25
27
  /**
@@ -587,9 +589,11 @@ export interface CreateWorkgroupRequest {
587
589
  */
588
590
  enhancedVpcRouting?: boolean;
589
591
  /**
590
- * <p>An array of parameters to set for more control over a serverless database. The
591
- * options are <code>datestyle</code>, <code>enable_user_activity_logging</code>,
592
- * <code>query_group</code>, <code>search_path</code>, and <code>max_query_execution_time</code>.</p>
592
+ * <p>An array of parameters to set for advanced control over a database. The
593
+ * options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitivity_identifier</code>, <code>enable_user_activity_logging</code>,
594
+ * <code>query_group</code>, <code>search_path</code>, and query monitoring metrics that let you define performance boundaries. For more information about query monitoring rules and available metrics, see
595
+ * <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless">
596
+ * Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
593
597
  */
594
598
  configParameters?: ConfigParameter[];
595
599
  /**
@@ -666,9 +670,10 @@ export interface Workgroup {
666
670
  */
667
671
  enhancedVpcRouting?: boolean;
668
672
  /**
669
- * <p>An array of parameters to set for finer control over a database. The
670
- * options are <code>datestyle</code>, <code>enable_user_activity_logging</code>,
671
- * <code>query_group</code>, <code>search_path</code>, and <code>max_query_execution_time</code>.</p>
673
+ * <p>An array of parameters to set for advanced control over a database. The
674
+ * options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitivity_identifier</code>, <code>enable_user_activity_logging</code>,
675
+ * <code>query_group</code>, , <code>search_path</code>, and query monitoring metrics that let you define performance boundaries.
676
+ * For more information about query monitoring rules and available metrics, see <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless"> Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
672
677
  */
673
678
  configParameters?: ConfigParameter[];
674
679
  /**
@@ -1360,15 +1365,17 @@ export interface ListWorkgroupsResponse {
1360
1365
  }
1361
1366
  export interface UpdateNamespaceRequest {
1362
1367
  /**
1363
- * <p>The name of the namespace.</p>
1368
+ * <p>The name of the namespace to update. You can't update the name of a namespace once it is created.</p>
1364
1369
  */
1365
1370
  namespaceName: string | undefined;
1366
1371
  /**
1367
- * <p>The password of the administrator for the first database created in the namespace.</p>
1372
+ * <p>The password of the administrator for the first database created in the namespace. This parameter must be updated together
1373
+ * with <code>adminUsername</code>.</p>
1368
1374
  */
1369
1375
  adminUserPassword?: string;
1370
1376
  /**
1371
- * <p>The username of the administrator for the first database created in the namespace.</p>
1377
+ * <p>The username of the administrator for the first database created in the namespace. This parameter must be updated
1378
+ * together with <code>adminUserPassword</code>.</p>
1372
1379
  */
1373
1380
  adminUsername?: string;
1374
1381
  /**
@@ -1376,11 +1383,12 @@ export interface UpdateNamespaceRequest {
1376
1383
  */
1377
1384
  kmsKeyId?: string;
1378
1385
  /**
1379
- * <p>The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace.</p>
1386
+ * <p>The Amazon Resource Name (ARN) of the IAM role to set as a default in the namespace. This parameter must be updated together
1387
+ * with <code>iamRoles</code>.</p>
1380
1388
  */
1381
1389
  defaultIamRoleArn?: string;
1382
1390
  /**
1383
- * <p>A list of IAM roles to associate with the namespace.</p>
1391
+ * <p>A list of IAM roles to associate with the namespace. This parameter must be updated together with <code>defaultIamRoleArn</code>.</p>
1384
1392
  */
1385
1393
  iamRoles?: string[];
1386
1394
  /**
@@ -1592,7 +1600,7 @@ export interface UpdateUsageLimitResponse {
1592
1600
  }
1593
1601
  export interface UpdateWorkgroupRequest {
1594
1602
  /**
1595
- * <p>The name of the workgroup to update.</p>
1603
+ * <p>The name of the workgroup to update. You can't update the name of a workgroup once it is created.</p>
1596
1604
  */
1597
1605
  workgroupName: string | undefined;
1598
1606
  /**
@@ -1606,8 +1614,11 @@ export interface UpdateWorkgroupRequest {
1606
1614
  enhancedVpcRouting?: boolean;
1607
1615
  /**
1608
1616
  * <p>An array of parameters to set for advanced control over a database. The
1609
- * options are <code>datestyle</code>, <code>enable_user_activity_logging</code>,
1610
- * <code>query_group</code>, <code>search_path</code>, and <code>max_query_execution_time</code>.</p>
1617
+ * options are <code>auto_mv</code>, <code>datestyle</code>, <code>enable_case_sensitivity_identifier</code>, <code>enable_user_activity_logging</code>,
1618
+ * <code>query_group</code>, <code>search_path</code>, and query monitoring metrics that let you
1619
+ * define performance boundaries. For more information about query monitoring rules and available metrics, see
1620
+ * <a href="https://docs.aws.amazon.com/redshift/latest/dg/cm-c-wlm-query-monitoring-rules.html#cm-c-wlm-query-monitoring-metrics-serverless">
1621
+ * Query monitoring metrics for Amazon Redshift Serverless</a>.</p>
1611
1622
  */
1612
1623
  configParameters?: ConfigParameter[];
1613
1624
  /**
@@ -17,12 +17,12 @@ export declare const getRuntimeConfig: (config: RedshiftServerlessClientConfig)
17
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
18
18
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
- utf8Decoder: import("@aws-sdk/types").Decoder;
21
- utf8Encoder: import("@aws-sdk/types").Encoder;
22
20
  apiVersion: string;
23
21
  urlParser: import("@aws-sdk/types").UrlParser;
24
22
  base64Decoder: import("@aws-sdk/types").Decoder;
25
23
  base64Encoder: import("@aws-sdk/types").Encoder;
24
+ utf8Decoder: import("@aws-sdk/types").Decoder;
25
+ utf8Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -17,12 +17,12 @@ export declare const getRuntimeConfig: (config: RedshiftServerlessClientConfig)
17
17
  streamCollector: import("@aws-sdk/types").StreamCollector;
18
18
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
19
19
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
20
- utf8Decoder: import("@aws-sdk/types").Decoder;
21
- utf8Encoder: import("@aws-sdk/types").Encoder;
22
20
  apiVersion: string;
23
21
  urlParser: import("@aws-sdk/types").UrlParser;
24
22
  base64Decoder: import("@aws-sdk/types").Decoder;
25
23
  base64Encoder: import("@aws-sdk/types").Encoder;
24
+ utf8Decoder: import("@aws-sdk/types").Decoder;
25
+ utf8Encoder: import("@aws-sdk/types").Encoder;
26
26
  disableHostPrefix: boolean;
27
27
  logger: import("@aws-sdk/types").Logger;
28
28
  serviceId: string;
@@ -13,4 +13,6 @@ export declare const getRuntimeConfig: (config: RedshiftServerlessClientConfig)
13
13
  logger: import("@aws-sdk/types").Logger;
14
14
  serviceId: string;
15
15
  urlParser: import("@aws-sdk/types").UrlParser;
16
+ utf8Decoder: import("@aws-sdk/types").Decoder;
17
+ utf8Encoder: import("@aws-sdk/types").Encoder;
16
18
  };
@@ -27,7 +27,7 @@ export declare const resolveClientEndpointParameters: <T>(
27
27
  defaultSigningName: string;
28
28
  };
29
29
  export interface EndpointParameters extends __EndpointParameters {
30
- Region?: string;
30
+ Region: string;
31
31
  UseDualStack?: boolean;
32
32
  UseFIPS?: boolean;
33
33
  Endpoint?: string;
@@ -29,12 +29,12 @@ export declare const getRuntimeConfig: (
29
29
  streamCollector: import("@aws-sdk/types").StreamCollector;
30
30
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
31
31
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
32
- utf8Decoder: import("@aws-sdk/types").Decoder;
33
- utf8Encoder: import("@aws-sdk/types").Encoder;
34
32
  apiVersion: string;
35
33
  urlParser: import("@aws-sdk/types").UrlParser;
36
34
  base64Decoder: import("@aws-sdk/types").Decoder;
37
35
  base64Encoder: import("@aws-sdk/types").Encoder;
36
+ utf8Decoder: import("@aws-sdk/types").Decoder;
37
+ utf8Encoder: import("@aws-sdk/types").Encoder;
38
38
  disableHostPrefix: boolean;
39
39
  logger: import("@aws-sdk/types").Logger;
40
40
  serviceId: string;
@@ -29,12 +29,12 @@ export declare const getRuntimeConfig: (
29
29
  streamCollector: import("@aws-sdk/types").StreamCollector;
30
30
  useDualstackEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
31
31
  useFipsEndpoint: boolean | import("@aws-sdk/types").Provider<boolean>;
32
- utf8Decoder: import("@aws-sdk/types").Decoder;
33
- utf8Encoder: import("@aws-sdk/types").Encoder;
34
32
  apiVersion: string;
35
33
  urlParser: import("@aws-sdk/types").UrlParser;
36
34
  base64Decoder: import("@aws-sdk/types").Decoder;
37
35
  base64Encoder: import("@aws-sdk/types").Encoder;
36
+ utf8Decoder: import("@aws-sdk/types").Decoder;
37
+ utf8Encoder: import("@aws-sdk/types").Encoder;
38
38
  disableHostPrefix: boolean;
39
39
  logger: import("@aws-sdk/types").Logger;
40
40
  serviceId: string;
@@ -15,4 +15,6 @@ export declare const getRuntimeConfig: (
15
15
  logger: import("@aws-sdk/types").Logger;
16
16
  serviceId: string;
17
17
  urlParser: import("@aws-sdk/types").UrlParser;
18
+ utf8Decoder: import("@aws-sdk/types").Decoder;
19
+ utf8Encoder: import("@aws-sdk/types").Encoder;
18
20
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift-serverless",
3
3
  "description": "AWS SDK for JavaScript Redshift Serverless Client for Node.js, Browser and React Native",
4
- "version": "3.257.0",
4
+ "version": "3.258.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,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.257.0",
23
+ "@aws-sdk/client-sts": "3.258.0",
24
24
  "@aws-sdk/config-resolver": "3.257.0",
25
- "@aws-sdk/credential-provider-node": "3.257.0",
25
+ "@aws-sdk/credential-provider-node": "3.258.0",
26
26
  "@aws-sdk/fetch-http-handler": "3.257.0",
27
27
  "@aws-sdk/hash-node": "3.257.0",
28
28
  "@aws-sdk/invalid-dependency": "3.257.0",
@@ -51,8 +51,7 @@
51
51
  "@aws-sdk/util-retry": "3.257.0",
52
52
  "@aws-sdk/util-user-agent-browser": "3.257.0",
53
53
  "@aws-sdk/util-user-agent-node": "3.257.0",
54
- "@aws-sdk/util-utf8-browser": "3.188.0",
55
- "@aws-sdk/util-utf8-node": "3.208.0",
54
+ "@aws-sdk/util-utf8": "3.254.0",
56
55
  "tslib": "^2.3.1"
57
56
  },
58
57
  "devDependencies": {