@aws-sdk/client-redshift-serverless 3.682.0 → 3.683.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/README.md CHANGED
@@ -21,7 +21,7 @@ see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.
21
21
 
22
22
  ## Installing
23
23
 
24
- To install the this package, simply type add or install @aws-sdk/client-redshift-serverless
24
+ To install this package, simply type add or install @aws-sdk/client-redshift-serverless
25
25
  using your favorite package manager:
26
26
 
27
27
  - `npm install @aws-sdk/client-redshift-serverless`
package/dist-cjs/index.js CHANGED
@@ -76,6 +76,7 @@ __export(src_exports, {
76
76
  LogExport: () => LogExport,
77
77
  NamespaceFilterSensitiveLog: () => NamespaceFilterSensitiveLog,
78
78
  NamespaceStatus: () => NamespaceStatus,
79
+ PerformanceTargetStatus: () => PerformanceTargetStatus,
79
80
  PutResourcePolicyCommand: () => PutResourcePolicyCommand,
80
81
  RedshiftServerless: () => RedshiftServerless,
81
82
  RedshiftServerlessClient: () => RedshiftServerlessClient,
@@ -489,6 +490,10 @@ var UsageLimitUsageType = {
489
490
  CROSS_REGION_DATASHARING: "cross-region-datasharing",
490
491
  SERVERLESS_COMPUTE: "serverless-compute"
491
492
  };
493
+ var PerformanceTargetStatus = {
494
+ DISABLED: "DISABLED",
495
+ ENABLED: "ENABLED"
496
+ };
492
497
  var WorkgroupStatus = {
493
498
  AVAILABLE: "AVAILABLE",
494
499
  CREATING: "CREATING",
@@ -2233,6 +2238,7 @@ var de_Workgroup = /* @__PURE__ */ __name((output, context) => {
2233
2238
  namespaceName: import_smithy_client.expectString,
2234
2239
  patchVersion: import_smithy_client.expectString,
2235
2240
  port: import_smithy_client.expectInt32,
2241
+ pricePerformanceTarget: import_smithy_client._json,
2236
2242
  publiclyAccessible: import_smithy_client.expectBoolean,
2237
2243
  securityGroupIds: import_smithy_client._json,
2238
2244
  status: import_smithy_client.expectString,
@@ -3242,6 +3248,7 @@ var paginateListWorkgroups = (0, import_core.createPaginator)(RedshiftServerless
3242
3248
  UsageLimitBreachAction,
3243
3249
  UsageLimitPeriod,
3244
3250
  UsageLimitUsageType,
3251
+ PerformanceTargetStatus,
3245
3252
  WorkgroupStatus,
3246
3253
  InsufficientCapacityException,
3247
3254
  Ipv6CidrBlockNotFoundException,
@@ -156,6 +156,10 @@ export const UsageLimitUsageType = {
156
156
  CROSS_REGION_DATASHARING: "cross-region-datasharing",
157
157
  SERVERLESS_COMPUTE: "serverless-compute",
158
158
  };
159
+ export const PerformanceTargetStatus = {
160
+ DISABLED: "DISABLED",
161
+ ENABLED: "ENABLED",
162
+ };
159
163
  export const WorkgroupStatus = {
160
164
  AVAILABLE: "AVAILABLE",
161
165
  CREATING: "CREATING",
@@ -1654,6 +1654,7 @@ const de_Workgroup = (output, context) => {
1654
1654
  namespaceName: __expectString,
1655
1655
  patchVersion: __expectString,
1656
1656
  port: __expectInt32,
1657
+ pricePerformanceTarget: _json,
1657
1658
  publiclyAccessible: __expectBoolean,
1658
1659
  securityGroupIds: _json,
1659
1660
  status: __expectString,
@@ -60,6 +60,10 @@ declare const CreateWorkgroupCommand_base: {
60
60
  * ],
61
61
  * port: Number("int"),
62
62
  * maxCapacity: Number("int"),
63
+ * pricePerformanceTarget: { // PerformanceTarget
64
+ * status: "STRING_VALUE",
65
+ * level: Number("int"),
66
+ * },
63
67
  * ipAddressType: "STRING_VALUE",
64
68
  * };
65
69
  * const command = new CreateWorkgroupCommand(input);
@@ -117,6 +121,10 @@ declare const CreateWorkgroupCommand_base: {
117
121
  * // "STRING_VALUE",
118
122
  * // ],
119
123
  * // ipAddressType: "STRING_VALUE",
124
+ * // pricePerformanceTarget: { // PerformanceTarget
125
+ * // status: "STRING_VALUE",
126
+ * // level: Number("int"),
127
+ * // },
120
128
  * // },
121
129
  * // };
122
130
  *
@@ -92,6 +92,10 @@ declare const DeleteWorkgroupCommand_base: {
92
92
  * // "STRING_VALUE",
93
93
  * // ],
94
94
  * // ipAddressType: "STRING_VALUE",
95
+ * // pricePerformanceTarget: { // PerformanceTarget
96
+ * // status: "STRING_VALUE",
97
+ * // level: Number("int"),
98
+ * // },
95
99
  * // },
96
100
  * // };
97
101
  *
@@ -92,6 +92,10 @@ declare const GetWorkgroupCommand_base: {
92
92
  * // "STRING_VALUE",
93
93
  * // ],
94
94
  * // ipAddressType: "STRING_VALUE",
95
+ * // pricePerformanceTarget: { // PerformanceTarget
96
+ * // status: "STRING_VALUE",
97
+ * // level: Number("int"),
98
+ * // },
95
99
  * // },
96
100
  * // };
97
101
  *
@@ -96,6 +96,10 @@ declare const ListWorkgroupsCommand_base: {
96
96
  * // "STRING_VALUE",
97
97
  * // ],
98
98
  * // ipAddressType: "STRING_VALUE",
99
+ * // pricePerformanceTarget: { // PerformanceTarget
100
+ * // status: "STRING_VALUE",
101
+ * // level: Number("int"),
102
+ * // },
99
103
  * // },
100
104
  * // ],
101
105
  * // };
@@ -55,6 +55,10 @@ declare const UpdateWorkgroupCommand_base: {
55
55
  * port: Number("int"),
56
56
  * maxCapacity: Number("int"),
57
57
  * ipAddressType: "STRING_VALUE",
58
+ * pricePerformanceTarget: { // PerformanceTarget
59
+ * status: "STRING_VALUE",
60
+ * level: Number("int"),
61
+ * },
58
62
  * };
59
63
  * const command = new UpdateWorkgroupCommand(input);
60
64
  * const response = await client.send(command);
@@ -111,6 +115,10 @@ declare const UpdateWorkgroupCommand_base: {
111
115
  * // "STRING_VALUE",
112
116
  * // ],
113
117
  * // ipAddressType: "STRING_VALUE",
118
+ * // pricePerformanceTarget: { // PerformanceTarget
119
+ * // status: "STRING_VALUE",
120
+ * // level: Number("int"),
121
+ * // },
114
122
  * // },
115
123
  * // };
116
124
  *
@@ -1235,6 +1235,35 @@ export interface CreateUsageLimitResponse {
1235
1235
  */
1236
1236
  usageLimit?: UsageLimit;
1237
1237
  }
1238
+ /**
1239
+ * @public
1240
+ * @enum
1241
+ */
1242
+ export declare const PerformanceTargetStatus: {
1243
+ readonly DISABLED: "DISABLED";
1244
+ readonly ENABLED: "ENABLED";
1245
+ };
1246
+ /**
1247
+ * @public
1248
+ */
1249
+ export type PerformanceTargetStatus = (typeof PerformanceTargetStatus)[keyof typeof PerformanceTargetStatus];
1250
+ /**
1251
+ * <p>An object that represents the price performance target settings for the workgroup.</p>
1252
+ * @public
1253
+ */
1254
+ export interface PerformanceTarget {
1255
+ /**
1256
+ * <p>Whether the price performance target is enabled for the workgroup.</p>
1257
+ * @public
1258
+ */
1259
+ status?: PerformanceTargetStatus;
1260
+ /**
1261
+ * <p>The target price performance level for the workgroup. Valid values include 1, 25, 50, 75, and 100. These
1262
+ * correspond to the price performance levels LOW_COST, ECONOMICAL, BALANCED, RESOURCEFUL, and HIGH_PERFORMANCE.</p>
1263
+ * @public
1264
+ */
1265
+ level?: number;
1266
+ }
1238
1267
  /**
1239
1268
  * @public
1240
1269
  */
@@ -1299,6 +1328,11 @@ export interface CreateWorkgroupRequest {
1299
1328
  * @public
1300
1329
  */
1301
1330
  maxCapacity?: number;
1331
+ /**
1332
+ * <p>An object that represents the price performance target settings for the workgroup.</p>
1333
+ * @public
1334
+ */
1335
+ pricePerformanceTarget?: PerformanceTarget;
1302
1336
  /**
1303
1337
  * <p>The IP address type that the workgroup supports. Possible values are <code>ipv4</code> and <code>dualstack</code>.</p>
1304
1338
  * @public
@@ -1460,6 +1494,11 @@ export interface Workgroup {
1460
1494
  * @public
1461
1495
  */
1462
1496
  ipAddressType?: string;
1497
+ /**
1498
+ * <p>An object that represents the price performance target settings for the workgroup.</p>
1499
+ * @public
1500
+ */
1501
+ pricePerformanceTarget?: PerformanceTarget;
1463
1502
  }
1464
1503
  /**
1465
1504
  * @public
@@ -3281,6 +3320,11 @@ export interface UpdateWorkgroupRequest {
3281
3320
  * @public
3282
3321
  */
3283
3322
  ipAddressType?: string;
3323
+ /**
3324
+ * <p>An object that represents the price performance target settings for the workgroup.</p>
3325
+ * @public
3326
+ */
3327
+ pricePerformanceTarget?: PerformanceTarget;
3284
3328
  }
3285
3329
  /**
3286
3330
  * @public
@@ -359,6 +359,16 @@ export interface UsageLimit {
359
359
  export interface CreateUsageLimitResponse {
360
360
  usageLimit?: UsageLimit;
361
361
  }
362
+ export declare const PerformanceTargetStatus: {
363
+ readonly DISABLED: "DISABLED";
364
+ readonly ENABLED: "ENABLED";
365
+ };
366
+ export type PerformanceTargetStatus =
367
+ (typeof PerformanceTargetStatus)[keyof typeof PerformanceTargetStatus];
368
+ export interface PerformanceTarget {
369
+ status?: PerformanceTargetStatus;
370
+ level?: number;
371
+ }
362
372
  export interface CreateWorkgroupRequest {
363
373
  workgroupName: string | undefined;
364
374
  namespaceName: string | undefined;
@@ -371,6 +381,7 @@ export interface CreateWorkgroupRequest {
371
381
  tags?: Tag[];
372
382
  port?: number;
373
383
  maxCapacity?: number;
384
+ pricePerformanceTarget?: PerformanceTarget;
374
385
  ipAddressType?: string;
375
386
  }
376
387
  export interface Endpoint {
@@ -409,6 +420,7 @@ export interface Workgroup {
409
420
  maxCapacity?: number;
410
421
  crossAccountVpcs?: string[];
411
422
  ipAddressType?: string;
423
+ pricePerformanceTarget?: PerformanceTarget;
412
424
  }
413
425
  export interface CreateWorkgroupResponse {
414
426
  workgroup?: Workgroup;
@@ -855,6 +867,7 @@ export interface UpdateWorkgroupRequest {
855
867
  port?: number;
856
868
  maxCapacity?: number;
857
869
  ipAddressType?: string;
870
+ pricePerformanceTarget?: PerformanceTarget;
858
871
  }
859
872
  export interface UpdateWorkgroupResponse {
860
873
  workgroup: Workgroup | undefined;
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.682.0",
4
+ "version": "3.683.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-redshift-serverless",