Skip to content

Commit 2c0ec7d

Browse files
author
awstools
committed
feat(client-redshift-serverless): Adds and updates API members for the Redshift Serverless AI-driven scaling and optimization feature using the price-performance target setting.
1 parent f2d0604 commit 2c0ec7d

File tree

9 files changed

+143
-1
lines changed

9 files changed

+143
-1
lines changed

clients/client-redshift-serverless/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.
2121

2222
## Installing
2323

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
2525
using your favorite package manager:
2626

2727
- `npm install @aws-sdk/client-redshift-serverless`

clients/client-redshift-serverless/src/commands/CreateWorkgroupCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ export interface CreateWorkgroupCommandOutput extends CreateWorkgroupResponse, _
6565
* ],
6666
* port: Number("int"),
6767
* maxCapacity: Number("int"),
68+
* pricePerformanceTarget: { // PerformanceTarget
69+
* status: "STRING_VALUE",
70+
* level: Number("int"),
71+
* },
6872
* ipAddressType: "STRING_VALUE",
6973
* };
7074
* const command = new CreateWorkgroupCommand(input);
@@ -122,6 +126,10 @@ export interface CreateWorkgroupCommandOutput extends CreateWorkgroupResponse, _
122126
* // "STRING_VALUE",
123127
* // ],
124128
* // ipAddressType: "STRING_VALUE",
129+
* // pricePerformanceTarget: { // PerformanceTarget
130+
* // status: "STRING_VALUE",
131+
* // level: Number("int"),
132+
* // },
125133
* // },
126134
* // };
127135
*

clients/client-redshift-serverless/src/commands/DeleteWorkgroupCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export interface DeleteWorkgroupCommandOutput extends DeleteWorkgroupResponse, _
9797
* // "STRING_VALUE",
9898
* // ],
9999
* // ipAddressType: "STRING_VALUE",
100+
* // pricePerformanceTarget: { // PerformanceTarget
101+
* // status: "STRING_VALUE",
102+
* // level: Number("int"),
103+
* // },
100104
* // },
101105
* // };
102106
*

clients/client-redshift-serverless/src/commands/GetWorkgroupCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,10 @@ export interface GetWorkgroupCommandOutput extends GetWorkgroupResponse, __Metad
9797
* // "STRING_VALUE",
9898
* // ],
9999
* // ipAddressType: "STRING_VALUE",
100+
* // pricePerformanceTarget: { // PerformanceTarget
101+
* // status: "STRING_VALUE",
102+
* // level: Number("int"),
103+
* // },
100104
* // },
101105
* // };
102106
*

clients/client-redshift-serverless/src/commands/ListWorkgroupsCommand.ts

+4
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,10 @@ export interface ListWorkgroupsCommandOutput extends ListWorkgroupsResponse, __M
101101
* // "STRING_VALUE",
102102
* // ],
103103
* // ipAddressType: "STRING_VALUE",
104+
* // pricePerformanceTarget: { // PerformanceTarget
105+
* // status: "STRING_VALUE",
106+
* // level: Number("int"),
107+
* // },
104108
* // },
105109
* // ],
106110
* // };

clients/client-redshift-serverless/src/commands/UpdateWorkgroupCommand.ts

+8
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ export interface UpdateWorkgroupCommandOutput extends UpdateWorkgroupResponse, _
6060
* port: Number("int"),
6161
* maxCapacity: Number("int"),
6262
* ipAddressType: "STRING_VALUE",
63+
* pricePerformanceTarget: { // PerformanceTarget
64+
* status: "STRING_VALUE",
65+
* level: Number("int"),
66+
* },
6367
* };
6468
* const command = new UpdateWorkgroupCommand(input);
6569
* const response = await client.send(command);
@@ -116,6 +120,10 @@ export interface UpdateWorkgroupCommandOutput extends UpdateWorkgroupResponse, _
116120
* // "STRING_VALUE",
117121
* // ],
118122
* // ipAddressType: "STRING_VALUE",
123+
* // pricePerformanceTarget: { // PerformanceTarget
124+
* // status: "STRING_VALUE",
125+
* // level: Number("int"),
126+
* // },
119127
* // },
120128
* // };
121129
*

clients/client-redshift-serverless/src/models/models_0.ts

+51
Original file line numberDiff line numberDiff line change
@@ -1488,6 +1488,39 @@ export interface CreateUsageLimitResponse {
14881488
usageLimit?: UsageLimit;
14891489
}
14901490

1491+
/**
1492+
* @public
1493+
* @enum
1494+
*/
1495+
export const PerformanceTargetStatus = {
1496+
DISABLED: "DISABLED",
1497+
ENABLED: "ENABLED",
1498+
} as const;
1499+
1500+
/**
1501+
* @public
1502+
*/
1503+
export type PerformanceTargetStatus = (typeof PerformanceTargetStatus)[keyof typeof PerformanceTargetStatus];
1504+
1505+
/**
1506+
* <p>An object that represents the price performance target settings for the workgroup.</p>
1507+
* @public
1508+
*/
1509+
export interface PerformanceTarget {
1510+
/**
1511+
* <p>Whether the price performance target is enabled for the workgroup.</p>
1512+
* @public
1513+
*/
1514+
status?: PerformanceTargetStatus;
1515+
1516+
/**
1517+
* <p>The target price performance level for the workgroup. Valid values include 1, 25, 50, 75, and 100. These
1518+
* correspond to the price performance levels LOW_COST, ECONOMICAL, BALANCED, RESOURCEFUL, and HIGH_PERFORMANCE.</p>
1519+
* @public
1520+
*/
1521+
level?: number;
1522+
}
1523+
14911524
/**
14921525
* @public
14931526
*/
@@ -1563,6 +1596,12 @@ export interface CreateWorkgroupRequest {
15631596
*/
15641597
maxCapacity?: number;
15651598

1599+
/**
1600+
* <p>An object that represents the price performance target settings for the workgroup.</p>
1601+
* @public
1602+
*/
1603+
pricePerformanceTarget?: PerformanceTarget;
1604+
15661605
/**
15671606
* <p>The IP address type that the workgroup supports. Possible values are <code>ipv4</code> and <code>dualstack</code>.</p>
15681607
* @public
@@ -1751,6 +1790,12 @@ export interface Workgroup {
17511790
* @public
17521791
*/
17531792
ipAddressType?: string;
1793+
1794+
/**
1795+
* <p>An object that represents the price performance target settings for the workgroup.</p>
1796+
* @public
1797+
*/
1798+
pricePerformanceTarget?: PerformanceTarget;
17541799
}
17551800

17561801
/**
@@ -3832,6 +3877,12 @@ export interface UpdateWorkgroupRequest {
38323877
* @public
38333878
*/
38343879
ipAddressType?: string;
3880+
3881+
/**
3882+
* <p>An object that represents the price performance target settings for the workgroup.</p>
3883+
* @public
3884+
*/
3885+
pricePerformanceTarget?: PerformanceTarget;
38353886
}
38363887

38373888
/**

clients/client-redshift-serverless/src/protocols/Aws_json1_1.ts

+6
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,7 @@ import {
240240
ListWorkgroupsResponse,
241241
LogExport,
242242
Namespace,
243+
PerformanceTarget,
243244
PutResourcePolicyRequest,
244245
RecoveryPoint,
245246
ResourceNotFoundException,
@@ -2446,6 +2447,8 @@ const se_ListSnapshotsRequest = (input: ListSnapshotsRequest, context: __SerdeCo
24462447

24472448
// se_LogExportList omitted.
24482449

2450+
// se_PerformanceTarget omitted.
2451+
24492452
// se_PutResourcePolicyRequest omitted.
24502453

24512454
// se_RestoreFromRecoveryPointRequest omitted.
@@ -2948,6 +2951,8 @@ const de_NextInvocationsList = (output: any, context: __SerdeContext): Date[] =>
29482951
return retVal;
29492952
};
29502953

2954+
// de_PerformanceTarget omitted.
2955+
29512956
// de_PutResourcePolicyResponse omitted.
29522957

29532958
/**
@@ -3267,6 +3272,7 @@ const de_Workgroup = (output: any, context: __SerdeContext): Workgroup => {
32673272
namespaceName: __expectString,
32683273
patchVersion: __expectString,
32693274
port: __expectInt32,
3275+
pricePerformanceTarget: _json,
32703276
publiclyAccessible: __expectBoolean,
32713277
securityGroupIds: _json,
32723278
status: __expectString,

codegen/sdk-codegen/aws-models/redshift-serverless.json

+57
Original file line numberDiff line numberDiff line change
@@ -993,6 +993,12 @@
993993
"smithy.api#documentation": "<p>The maximum data-warehouse capacity Amazon Redshift Serverless uses to serve queries. The max capacity is specified in RPUs.</p>"
994994
}
995995
},
996+
"pricePerformanceTarget": {
997+
"target": "com.amazonaws.redshiftserverless#PerformanceTarget",
998+
"traits": {
999+
"smithy.api#documentation": "<p>An object that represents the price performance target settings for the workgroup.</p>"
1000+
}
1001+
},
9961002
"ipAddressType": {
9971003
"target": "com.amazonaws.redshiftserverless#IpAddressType",
9981004
"traits": {
@@ -3669,6 +3675,45 @@
36693675
"com.amazonaws.redshiftserverless#ParameterValue": {
36703676
"type": "string"
36713677
},
3678+
"com.amazonaws.redshiftserverless#PerformanceTarget": {
3679+
"type": "structure",
3680+
"members": {
3681+
"status": {
3682+
"target": "com.amazonaws.redshiftserverless#PerformanceTargetStatus",
3683+
"traits": {
3684+
"smithy.api#documentation": "<p>Whether the price performance target is enabled for the workgroup.</p>"
3685+
}
3686+
},
3687+
"level": {
3688+
"target": "smithy.api#Integer",
3689+
"traits": {
3690+
"smithy.api#documentation": "<p>The target price performance level for the workgroup. Valid values include 1, 25, 50, 75, and 100. These\n correspond to the price performance levels LOW_COST, ECONOMICAL, BALANCED, RESOURCEFUL, and HIGH_PERFORMANCE.</p>",
3691+
"smithy.api#range": {
3692+
"min": 1,
3693+
"max": 100
3694+
}
3695+
}
3696+
}
3697+
},
3698+
"traits": {
3699+
"smithy.api#documentation": "<p>An object that represents the price performance target settings for the workgroup.</p>"
3700+
}
3701+
},
3702+
"com.amazonaws.redshiftserverless#PerformanceTargetStatus": {
3703+
"type": "string",
3704+
"traits": {
3705+
"smithy.api#enum": [
3706+
{
3707+
"name": "ENABLED",
3708+
"value": "ENABLED"
3709+
},
3710+
{
3711+
"name": "DISABLED",
3712+
"value": "DISABLED"
3713+
}
3714+
]
3715+
}
3716+
},
36723717
"com.amazonaws.redshiftserverless#PutResourcePolicy": {
36733718
"type": "operation",
36743719
"input": {
@@ -6561,6 +6606,12 @@
65616606
"traits": {
65626607
"smithy.api#documentation": "<p>The IP address type that the workgroup supports. Possible values are <code>ipv4</code> and <code>dualstack</code>.</p>"
65636608
}
6609+
},
6610+
"pricePerformanceTarget": {
6611+
"target": "com.amazonaws.redshiftserverless#PerformanceTarget",
6612+
"traits": {
6613+
"smithy.api#documentation": "<p>An object that represents the price performance target settings for the workgroup.</p>"
6614+
}
65646615
}
65656616
},
65666617
"traits": {
@@ -6942,6 +6993,12 @@
69426993
"traits": {
69436994
"smithy.api#documentation": "<p>The IP address type that the workgroup supports. Possible values are <code>ipv4</code> and <code>dualstack</code>.</p>"
69446995
}
6996+
},
6997+
"pricePerformanceTarget": {
6998+
"target": "com.amazonaws.redshiftserverless#PerformanceTarget",
6999+
"traits": {
7000+
"smithy.api#documentation": "<p>An object that represents the price performance target settings for the workgroup.</p>"
7001+
}
69457002
}
69467003
},
69477004
"traits": {

0 commit comments

Comments
 (0)