@aws-sdk/client-redshift 3.507.0 → 3.511.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 +15 -7
- package/dist-cjs/commands/ListRecommendationsCommand.js +1 -0
- package/dist-cjs/index.js +194 -0
- package/dist-cjs/pagination/ListRecommendationsPaginator.js +1 -0
- package/dist-es/Redshift.js +2 -0
- package/dist-es/commands/ListRecommendationsCommand.js +24 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_1.js +9 -0
- package/dist-es/pagination/ListRecommendationsPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_query.js +164 -0
- package/dist-types/Redshift.d.ts +7 -0
- package/dist-types/RedshiftClient.d.ts +3 -2
- package/dist-types/commands/ListRecommendationsCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_1.d.ts +187 -0
- package/dist-types/pagination/ListRecommendationsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_query.d.ts +9 -0
- package/dist-types/ts3.4/Redshift.d.ts +17 -0
- package/dist-types/ts3.4/RedshiftClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/ListRecommendationsCommand.d.ts +30 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_1.d.ts +47 -0
- package/dist-types/ts3.4/pagination/ListRecommendationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
- package/package.json +14 -14
package/README.md
CHANGED
|
@@ -44,16 +44,16 @@ using your favorite package manager:
|
|
|
44
44
|
|
|
45
45
|
The AWS SDK is modulized by clients and commands.
|
|
46
46
|
To send a request, you only need to import the `RedshiftClient` and
|
|
47
|
-
the commands you need, for example `
|
|
47
|
+
the commands you need, for example `ListRecommendationsCommand`:
|
|
48
48
|
|
|
49
49
|
```js
|
|
50
50
|
// ES5 example
|
|
51
|
-
const { RedshiftClient,
|
|
51
|
+
const { RedshiftClient, ListRecommendationsCommand } = require("@aws-sdk/client-redshift");
|
|
52
52
|
```
|
|
53
53
|
|
|
54
54
|
```ts
|
|
55
55
|
// ES6+ example
|
|
56
|
-
import { RedshiftClient,
|
|
56
|
+
import { RedshiftClient, ListRecommendationsCommand } from "@aws-sdk/client-redshift";
|
|
57
57
|
```
|
|
58
58
|
|
|
59
59
|
### Usage
|
|
@@ -72,7 +72,7 @@ const client = new RedshiftClient({ region: "REGION" });
|
|
|
72
72
|
const params = {
|
|
73
73
|
/** input parameters */
|
|
74
74
|
};
|
|
75
|
-
const command = new
|
|
75
|
+
const command = new ListRecommendationsCommand(params);
|
|
76
76
|
```
|
|
77
77
|
|
|
78
78
|
#### Async/await
|
|
@@ -151,7 +151,7 @@ const client = new AWS.Redshift({ region: "REGION" });
|
|
|
151
151
|
|
|
152
152
|
// async/await.
|
|
153
153
|
try {
|
|
154
|
-
const data = await client.
|
|
154
|
+
const data = await client.listRecommendations(params);
|
|
155
155
|
// process data.
|
|
156
156
|
} catch (error) {
|
|
157
157
|
// error handling.
|
|
@@ -159,7 +159,7 @@ try {
|
|
|
159
159
|
|
|
160
160
|
// Promises.
|
|
161
161
|
client
|
|
162
|
-
.
|
|
162
|
+
.listRecommendations(params)
|
|
163
163
|
.then((data) => {
|
|
164
164
|
// process data.
|
|
165
165
|
})
|
|
@@ -168,7 +168,7 @@ client
|
|
|
168
168
|
});
|
|
169
169
|
|
|
170
170
|
// callbacks.
|
|
171
|
-
client.
|
|
171
|
+
client.listRecommendations(params, (err, data) => {
|
|
172
172
|
// process err and data.
|
|
173
173
|
});
|
|
174
174
|
```
|
|
@@ -1015,6 +1015,14 @@ GetResourcePolicy
|
|
|
1015
1015
|
|
|
1016
1016
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift/command/GetResourcePolicyCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift/Interface/GetResourcePolicyCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift/Interface/GetResourcePolicyCommandOutput/)
|
|
1017
1017
|
|
|
1018
|
+
</details>
|
|
1019
|
+
<details>
|
|
1020
|
+
<summary>
|
|
1021
|
+
ListRecommendations
|
|
1022
|
+
</summary>
|
|
1023
|
+
|
|
1024
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/redshift/command/ListRecommendationsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift/Interface/ListRecommendationsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-redshift/Interface/ListRecommendationsCommandOutput/)
|
|
1025
|
+
|
|
1018
1026
|
</details>
|
|
1019
1027
|
<details>
|
|
1020
1028
|
<summary>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-cjs/index.js
CHANGED
|
@@ -186,6 +186,7 @@ __export(src_exports, {
|
|
|
186
186
|
HsmConfigurationAlreadyExistsFault: () => HsmConfigurationAlreadyExistsFault,
|
|
187
187
|
HsmConfigurationNotFoundFault: () => HsmConfigurationNotFoundFault,
|
|
188
188
|
HsmConfigurationQuotaExceededFault: () => HsmConfigurationQuotaExceededFault,
|
|
189
|
+
ImpactRankingType: () => ImpactRankingType,
|
|
189
190
|
InProgressTableRestoreQuotaExceededFault: () => InProgressTableRestoreQuotaExceededFault,
|
|
190
191
|
IncompatibleOrderableOptions: () => IncompatibleOrderableOptions,
|
|
191
192
|
InsufficientClusterCapacityFault: () => InsufficientClusterCapacityFault,
|
|
@@ -225,6 +226,7 @@ __export(src_exports, {
|
|
|
225
226
|
Ipv6CidrBlockNotFoundFault: () => Ipv6CidrBlockNotFoundFault,
|
|
226
227
|
LakeFormationScopeUnion: () => LakeFormationScopeUnion,
|
|
227
228
|
LimitExceededFault: () => LimitExceededFault,
|
|
229
|
+
ListRecommendationsCommand: () => ListRecommendationsCommand,
|
|
228
230
|
LogDestinationType: () => LogDestinationType,
|
|
229
231
|
Mode: () => Mode,
|
|
230
232
|
ModifyAquaConfigurationCommand: () => ModifyAquaConfigurationCommand,
|
|
@@ -265,6 +267,7 @@ __export(src_exports, {
|
|
|
265
267
|
PutResourcePolicyCommand: () => PutResourcePolicyCommand,
|
|
266
268
|
RebootClusterCommand: () => RebootClusterCommand,
|
|
267
269
|
RebootClusterResultFilterSensitiveLog: () => RebootClusterResultFilterSensitiveLog,
|
|
270
|
+
RecommendedActionType: () => RecommendedActionType,
|
|
268
271
|
Redshift: () => Redshift,
|
|
269
272
|
RedshiftClient: () => RedshiftClient,
|
|
270
273
|
RedshiftIdcApplicationAlreadyExistsFault: () => RedshiftIdcApplicationAlreadyExistsFault,
|
|
@@ -383,6 +386,7 @@ __export(src_exports, {
|
|
|
383
386
|
paginateDescribeUsageLimits: () => paginateDescribeUsageLimits,
|
|
384
387
|
paginateGetReservedNodeExchangeConfigurationOptions: () => paginateGetReservedNodeExchangeConfigurationOptions,
|
|
385
388
|
paginateGetReservedNodeExchangeOfferings: () => paginateGetReservedNodeExchangeOfferings,
|
|
389
|
+
paginateListRecommendations: () => paginateListRecommendations,
|
|
386
390
|
waitForClusterAvailable: () => waitForClusterAvailable,
|
|
387
391
|
waitForClusterDeleted: () => waitForClusterDeleted,
|
|
388
392
|
waitForClusterRestored: () => waitForClusterRestored,
|
|
@@ -2883,6 +2887,11 @@ var _InvalidPolicyFault = class _InvalidPolicyFault extends RedshiftServiceExcep
|
|
|
2883
2887
|
};
|
|
2884
2888
|
__name(_InvalidPolicyFault, "InvalidPolicyFault");
|
|
2885
2889
|
var InvalidPolicyFault = _InvalidPolicyFault;
|
|
2890
|
+
var ImpactRankingType = {
|
|
2891
|
+
HIGH: "HIGH",
|
|
2892
|
+
LOW: "LOW",
|
|
2893
|
+
MEDIUM: "MEDIUM"
|
|
2894
|
+
};
|
|
2886
2895
|
var _InProgressTableRestoreQuotaExceededFault = class _InProgressTableRestoreQuotaExceededFault extends RedshiftServiceException {
|
|
2887
2896
|
/**
|
|
2888
2897
|
* @internal
|
|
@@ -2934,6 +2943,10 @@ var _InvalidTableRestoreArgumentFault = class _InvalidTableRestoreArgumentFault
|
|
|
2934
2943
|
};
|
|
2935
2944
|
__name(_InvalidTableRestoreArgumentFault, "InvalidTableRestoreArgumentFault");
|
|
2936
2945
|
var InvalidTableRestoreArgumentFault = _InvalidTableRestoreArgumentFault;
|
|
2946
|
+
var RecommendedActionType = {
|
|
2947
|
+
CLI: "CLI",
|
|
2948
|
+
SQL: "SQL"
|
|
2949
|
+
};
|
|
2937
2950
|
var _TableLimitExceededFault = class _TableLimitExceededFault extends RedshiftServiceException {
|
|
2938
2951
|
/**
|
|
2939
2952
|
* @internal
|
|
@@ -4086,6 +4099,16 @@ var se_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
4086
4099
|
});
|
|
4087
4100
|
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
4088
4101
|
}, "se_GetResourcePolicyCommand");
|
|
4102
|
+
var se_ListRecommendationsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4103
|
+
const headers = SHARED_HEADERS;
|
|
4104
|
+
let body;
|
|
4105
|
+
body = buildFormUrlencodedString({
|
|
4106
|
+
...se_ListRecommendationsMessage(input, context),
|
|
4107
|
+
[_A]: _LR,
|
|
4108
|
+
[_V]: _
|
|
4109
|
+
});
|
|
4110
|
+
return buildHttpRpcRequest(context, headers, "/", void 0, body);
|
|
4111
|
+
}, "se_ListRecommendationsCommand");
|
|
4089
4112
|
var se_ModifyAquaConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
4090
4113
|
const headers = SHARED_HEADERS;
|
|
4091
4114
|
let body;
|
|
@@ -5661,6 +5684,19 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
5661
5684
|
};
|
|
5662
5685
|
return response;
|
|
5663
5686
|
}, "de_GetResourcePolicyCommand");
|
|
5687
|
+
var de_ListRecommendationsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5688
|
+
if (output.statusCode >= 300) {
|
|
5689
|
+
return de_CommandError(output, context);
|
|
5690
|
+
}
|
|
5691
|
+
const data = await parseBody(output.body, context);
|
|
5692
|
+
let contents = {};
|
|
5693
|
+
contents = de_ListRecommendationsResult(data.ListRecommendationsResult, context);
|
|
5694
|
+
const response = {
|
|
5695
|
+
$metadata: deserializeMetadata(output),
|
|
5696
|
+
...contents
|
|
5697
|
+
};
|
|
5698
|
+
return response;
|
|
5699
|
+
}, "de_ListRecommendationsCommand");
|
|
5664
5700
|
var de_ModifyAquaConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
5665
5701
|
if (output.statusCode >= 300) {
|
|
5666
5702
|
return de_CommandError(output, context);
|
|
@@ -9845,6 +9881,22 @@ var se_LakeFormationServiceIntegrations = /* @__PURE__ */ __name((input, context
|
|
|
9845
9881
|
}
|
|
9846
9882
|
return entries;
|
|
9847
9883
|
}, "se_LakeFormationServiceIntegrations");
|
|
9884
|
+
var se_ListRecommendationsMessage = /* @__PURE__ */ __name((input, context) => {
|
|
9885
|
+
const entries = {};
|
|
9886
|
+
if (input[_CIl] != null) {
|
|
9887
|
+
entries[_CIl] = input[_CIl];
|
|
9888
|
+
}
|
|
9889
|
+
if (input[_NA] != null) {
|
|
9890
|
+
entries[_NA] = input[_NA];
|
|
9891
|
+
}
|
|
9892
|
+
if (input[_MR] != null) {
|
|
9893
|
+
entries[_MR] = input[_MR];
|
|
9894
|
+
}
|
|
9895
|
+
if (input[_M] != null) {
|
|
9896
|
+
entries[_M] = input[_M];
|
|
9897
|
+
}
|
|
9898
|
+
return entries;
|
|
9899
|
+
}, "se_ListRecommendationsMessage");
|
|
9848
9900
|
var se_LogTypeList = /* @__PURE__ */ __name((input, context) => {
|
|
9849
9901
|
const entries = {};
|
|
9850
9902
|
let counter = 1;
|
|
@@ -13294,6 +13346,18 @@ var de_LimitExceededFault = /* @__PURE__ */ __name((output, context) => {
|
|
|
13294
13346
|
}
|
|
13295
13347
|
return contents;
|
|
13296
13348
|
}, "de_LimitExceededFault");
|
|
13349
|
+
var de_ListRecommendationsResult = /* @__PURE__ */ __name((output, context) => {
|
|
13350
|
+
const contents = {};
|
|
13351
|
+
if (output.Recommendations === "") {
|
|
13352
|
+
contents[_Re] = [];
|
|
13353
|
+
} else if (output[_Re] != null && output[_Re][_Rec] != null) {
|
|
13354
|
+
contents[_Re] = de_RecommendationList((0, import_smithy_client.getArrayIfSingleItem)(output[_Re][_Rec]), context);
|
|
13355
|
+
}
|
|
13356
|
+
if (output[_M] != null) {
|
|
13357
|
+
contents[_M] = (0, import_smithy_client.expectString)(output[_M]);
|
|
13358
|
+
}
|
|
13359
|
+
return contents;
|
|
13360
|
+
}, "de_ListRecommendationsResult");
|
|
13297
13361
|
var de_LoggingStatus = /* @__PURE__ */ __name((output, context) => {
|
|
13298
13362
|
const contents = {};
|
|
13299
13363
|
if (output[_LEo] != null) {
|
|
@@ -13708,6 +13772,76 @@ var de_RebootClusterResult = /* @__PURE__ */ __name((output, context) => {
|
|
|
13708
13772
|
}
|
|
13709
13773
|
return contents;
|
|
13710
13774
|
}, "de_RebootClusterResult");
|
|
13775
|
+
var de_Recommendation = /* @__PURE__ */ __name((output, context) => {
|
|
13776
|
+
const contents = {};
|
|
13777
|
+
if (output[_Id] != null) {
|
|
13778
|
+
contents[_Id] = (0, import_smithy_client.expectString)(output[_Id]);
|
|
13779
|
+
}
|
|
13780
|
+
if (output[_CIl] != null) {
|
|
13781
|
+
contents[_CIl] = (0, import_smithy_client.expectString)(output[_CIl]);
|
|
13782
|
+
}
|
|
13783
|
+
if (output[_NA] != null) {
|
|
13784
|
+
contents[_NA] = (0, import_smithy_client.expectString)(output[_NA]);
|
|
13785
|
+
}
|
|
13786
|
+
if (output[_CAr] != null) {
|
|
13787
|
+
contents[_CAr] = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(output[_CAr]));
|
|
13788
|
+
}
|
|
13789
|
+
if (output[_RTec] != null) {
|
|
13790
|
+
contents[_RTec] = (0, import_smithy_client.expectString)(output[_RTec]);
|
|
13791
|
+
}
|
|
13792
|
+
if (output[_Ti] != null) {
|
|
13793
|
+
contents[_Ti] = (0, import_smithy_client.expectString)(output[_Ti]);
|
|
13794
|
+
}
|
|
13795
|
+
if (output[_D] != null) {
|
|
13796
|
+
contents[_D] = (0, import_smithy_client.expectString)(output[_D]);
|
|
13797
|
+
}
|
|
13798
|
+
if (output[_Ob] != null) {
|
|
13799
|
+
contents[_Ob] = (0, import_smithy_client.expectString)(output[_Ob]);
|
|
13800
|
+
}
|
|
13801
|
+
if (output[_IRm] != null) {
|
|
13802
|
+
contents[_IRm] = (0, import_smithy_client.expectString)(output[_IRm]);
|
|
13803
|
+
}
|
|
13804
|
+
if (output[_RTeco] != null) {
|
|
13805
|
+
contents[_RTeco] = (0, import_smithy_client.expectString)(output[_RTeco]);
|
|
13806
|
+
}
|
|
13807
|
+
if (output.RecommendedActions === "") {
|
|
13808
|
+
contents[_RAe] = [];
|
|
13809
|
+
} else if (output[_RAe] != null && output[_RAe][_RAec] != null) {
|
|
13810
|
+
contents[_RAe] = de_RecommendedActionList((0, import_smithy_client.getArrayIfSingleItem)(output[_RAe][_RAec]), context);
|
|
13811
|
+
}
|
|
13812
|
+
if (output.ReferenceLinks === "") {
|
|
13813
|
+
contents[_RL] = [];
|
|
13814
|
+
} else if (output[_RL] != null && output[_RL][_RLe] != null) {
|
|
13815
|
+
contents[_RL] = de_ReferenceLinkList((0, import_smithy_client.getArrayIfSingleItem)(output[_RL][_RLe]), context);
|
|
13816
|
+
}
|
|
13817
|
+
return contents;
|
|
13818
|
+
}, "de_Recommendation");
|
|
13819
|
+
var de_RecommendationList = /* @__PURE__ */ __name((output, context) => {
|
|
13820
|
+
return (output || []).filter((e) => e != null).map((entry) => {
|
|
13821
|
+
return de_Recommendation(entry, context);
|
|
13822
|
+
});
|
|
13823
|
+
}, "de_RecommendationList");
|
|
13824
|
+
var de_RecommendedAction = /* @__PURE__ */ __name((output, context) => {
|
|
13825
|
+
const contents = {};
|
|
13826
|
+
if (output[_Te] != null) {
|
|
13827
|
+
contents[_Te] = (0, import_smithy_client.expectString)(output[_Te]);
|
|
13828
|
+
}
|
|
13829
|
+
if (output[_Dat] != null) {
|
|
13830
|
+
contents[_Dat] = (0, import_smithy_client.expectString)(output[_Dat]);
|
|
13831
|
+
}
|
|
13832
|
+
if (output[_Co] != null) {
|
|
13833
|
+
contents[_Co] = (0, import_smithy_client.expectString)(output[_Co]);
|
|
13834
|
+
}
|
|
13835
|
+
if (output[_Ty] != null) {
|
|
13836
|
+
contents[_Ty] = (0, import_smithy_client.expectString)(output[_Ty]);
|
|
13837
|
+
}
|
|
13838
|
+
return contents;
|
|
13839
|
+
}, "de_RecommendedAction");
|
|
13840
|
+
var de_RecommendedActionList = /* @__PURE__ */ __name((output, context) => {
|
|
13841
|
+
return (output || []).filter((e) => e != null).map((entry) => {
|
|
13842
|
+
return de_RecommendedAction(entry, context);
|
|
13843
|
+
});
|
|
13844
|
+
}, "de_RecommendedActionList");
|
|
13711
13845
|
var de_RecurringCharge = /* @__PURE__ */ __name((output, context) => {
|
|
13712
13846
|
const contents = {};
|
|
13713
13847
|
if (output[_RCA] != null) {
|
|
@@ -13787,6 +13921,21 @@ var de_RedshiftIdcApplicationQuotaExceededFault = /* @__PURE__ */ __name((output
|
|
|
13787
13921
|
}
|
|
13788
13922
|
return contents;
|
|
13789
13923
|
}, "de_RedshiftIdcApplicationQuotaExceededFault");
|
|
13924
|
+
var de_ReferenceLink = /* @__PURE__ */ __name((output, context) => {
|
|
13925
|
+
const contents = {};
|
|
13926
|
+
if (output[_Te] != null) {
|
|
13927
|
+
contents[_Te] = (0, import_smithy_client.expectString)(output[_Te]);
|
|
13928
|
+
}
|
|
13929
|
+
if (output[_L] != null) {
|
|
13930
|
+
contents[_L] = (0, import_smithy_client.expectString)(output[_L]);
|
|
13931
|
+
}
|
|
13932
|
+
return contents;
|
|
13933
|
+
}, "de_ReferenceLink");
|
|
13934
|
+
var de_ReferenceLinkList = /* @__PURE__ */ __name((output, context) => {
|
|
13935
|
+
return (output || []).filter((e) => e != null).map((entry) => {
|
|
13936
|
+
return de_ReferenceLink(entry, context);
|
|
13937
|
+
});
|
|
13938
|
+
}, "de_ReferenceLinkList");
|
|
13790
13939
|
var de_ReservedNode = /* @__PURE__ */ __name((output, context) => {
|
|
13791
13940
|
const contents = {};
|
|
13792
13941
|
if (output[_RNI] != null) {
|
|
@@ -15235,6 +15384,7 @@ var _CV = "ClusterVersion";
|
|
|
15235
15384
|
var _CVl = "ClusterVersions";
|
|
15236
15385
|
var _Cl = "Clusters";
|
|
15237
15386
|
var _Clu = "Cluster";
|
|
15387
|
+
var _Co = "Command";
|
|
15238
15388
|
var _D = "Description";
|
|
15239
15389
|
var _DAA = "DescribeAccountAttributes";
|
|
15240
15390
|
var _DAP = "DeleteAuthenticationProfile";
|
|
@@ -15330,6 +15480,7 @@ var _DUL = "DeleteUsageLimit";
|
|
|
15330
15480
|
var _DULe = "DescribeUsageLimits";
|
|
15331
15481
|
var _DV = "DatabaseVersion";
|
|
15332
15482
|
var _Da = "Date";
|
|
15483
|
+
var _Dat = "Database";
|
|
15333
15484
|
var _Du = "Duration";
|
|
15334
15485
|
var _E = "Encrypted";
|
|
15335
15486
|
var _EAL = "EndpointAccessList";
|
|
@@ -15425,11 +15576,14 @@ var _IPRa = "IPRange";
|
|
|
15425
15576
|
var _IR = "IamRoles";
|
|
15426
15577
|
var _IRA = "IamRoleArn";
|
|
15427
15578
|
var _IRa = "IamRole";
|
|
15579
|
+
var _IRm = "ImpactRanking";
|
|
15428
15580
|
var _ITC = "ImportTablesCompleted";
|
|
15429
15581
|
var _ITIP = "ImportTablesInProgress";
|
|
15430
15582
|
var _ITNS = "ImportTablesNotStarted";
|
|
15583
|
+
var _Id = "Id";
|
|
15431
15584
|
var _K = "Key";
|
|
15432
15585
|
var _KKI = "KmsKeyId";
|
|
15586
|
+
var _L = "Link";
|
|
15433
15587
|
var _LDT = "LogDestinationType";
|
|
15434
15588
|
var _LE = "LogExports";
|
|
15435
15589
|
var _LEo = "LoggingEnabled";
|
|
@@ -15437,6 +15591,7 @@ var _LF = "LakeFormation";
|
|
|
15437
15591
|
var _LFM = "LastFailureMessage";
|
|
15438
15592
|
var _LFQ = "LakeFormationQuery";
|
|
15439
15593
|
var _LFT = "LastFailureTime";
|
|
15594
|
+
var _LR = "ListRecommendations";
|
|
15440
15595
|
var _LSD = "LoadSampleData";
|
|
15441
15596
|
var _LSDT = "LastSuccessfulDeliveryTime";
|
|
15442
15597
|
var _LT = "LimitType";
|
|
@@ -15479,6 +15634,7 @@ var _Ma = "Manual";
|
|
|
15479
15634
|
var _Me = "Message";
|
|
15480
15635
|
var _Mo = "Mode";
|
|
15481
15636
|
var _N = "Name";
|
|
15637
|
+
var _NA = "NamespaceArn";
|
|
15482
15638
|
var _NC = "NodeCount";
|
|
15483
15639
|
var _NCI = "NewClusterIdentifier";
|
|
15484
15640
|
var _NCO = "NodeConfigurationOption";
|
|
@@ -15499,6 +15655,7 @@ var _OCO = "OrderableClusterOptions";
|
|
|
15499
15655
|
var _OCOr = "OrderableClusterOption";
|
|
15500
15656
|
var _ON = "OperationName";
|
|
15501
15657
|
var _OT = "OfferingType";
|
|
15658
|
+
var _Ob = "Observation";
|
|
15502
15659
|
var _P = "Port";
|
|
15503
15660
|
var _PA = "PubliclyAccessible";
|
|
15504
15661
|
var _PAED = "ParameterApplyErrorDescription";
|
|
@@ -15531,6 +15688,8 @@ var _Po = "Policy";
|
|
|
15531
15688
|
var _R = "Resources";
|
|
15532
15689
|
var _RA = "ResourceArn";
|
|
15533
15690
|
var _RAP = "ResetAllParameters";
|
|
15691
|
+
var _RAe = "RecommendedActions";
|
|
15692
|
+
var _RAec = "RecommendedAction";
|
|
15534
15693
|
var _RC = "RebootCluster";
|
|
15535
15694
|
var _RCA = "RecurringChargeAmount";
|
|
15536
15695
|
var _RCF = "RecurringChargeFrequency";
|
|
@@ -15550,6 +15709,8 @@ var _RIAA = "RedshiftIdcApplicationArn";
|
|
|
15550
15709
|
var _RIAN = "RedshiftIdcApplicationName";
|
|
15551
15710
|
var _RIAe = "RedshiftIdcApplications";
|
|
15552
15711
|
var _RIR = "RemoveIamRoles";
|
|
15712
|
+
var _RL = "ReferenceLinks";
|
|
15713
|
+
var _RLe = "ReferenceLink";
|
|
15553
15714
|
var _RN = "ResourceName";
|
|
15554
15715
|
var _RNCO = "ReservedNodeConfigurationOption";
|
|
15555
15716
|
var _RNCOL = "ReservedNodeConfigurationOptionList";
|
|
@@ -15572,9 +15733,13 @@ var _RSA = "RevokeSnapshotAccess";
|
|
|
15572
15733
|
var _RT = "ResourceType";
|
|
15573
15734
|
var _RTFCS = "RestoreTableFromClusterSnapshot";
|
|
15574
15735
|
var _RTe = "RevisionTarget";
|
|
15736
|
+
var _RTec = "RecommendationType";
|
|
15737
|
+
var _RTeco = "RecommendationText";
|
|
15575
15738
|
var _RTeq = "RequestTime";
|
|
15576
15739
|
var _RTes = "ResizeType";
|
|
15577
15740
|
var _RTev = "RevisionTargets";
|
|
15741
|
+
var _Re = "Recommendations";
|
|
15742
|
+
var _Rec = "Recommendation";
|
|
15578
15743
|
var _S = "Severity";
|
|
15579
15744
|
var _SA = "SnapshotArn";
|
|
15580
15745
|
var _SAD = "ScheduledActionDescription";
|
|
@@ -15680,6 +15845,9 @@ var _TSN = "TargetSchemaName";
|
|
|
15680
15845
|
var _TTIA = "TrustedTokenIssuerArn";
|
|
15681
15846
|
var _TV = "TagValues";
|
|
15682
15847
|
var _Ta = "Tag";
|
|
15848
|
+
var _Te = "Text";
|
|
15849
|
+
var _Ti = "Title";
|
|
15850
|
+
var _Ty = "Type";
|
|
15683
15851
|
var _UA = "UpdatedAt";
|
|
15684
15852
|
var _UL = "UsageLimits";
|
|
15685
15853
|
var _ULI = "UsageLimitId";
|
|
@@ -17425,6 +17593,23 @@ var _GetResourcePolicyCommand = class _GetResourcePolicyCommand extends import_s
|
|
|
17425
17593
|
__name(_GetResourcePolicyCommand, "GetResourcePolicyCommand");
|
|
17426
17594
|
var GetResourcePolicyCommand = _GetResourcePolicyCommand;
|
|
17427
17595
|
|
|
17596
|
+
// src/commands/ListRecommendationsCommand.ts
|
|
17597
|
+
|
|
17598
|
+
|
|
17599
|
+
|
|
17600
|
+
|
|
17601
|
+
var _ListRecommendationsCommand = class _ListRecommendationsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
17602
|
+
...commonParams
|
|
17603
|
+
}).m(function(Command, cs, config, o) {
|
|
17604
|
+
return [
|
|
17605
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
17606
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
17607
|
+
];
|
|
17608
|
+
}).s("RedshiftServiceVersion20121201", "ListRecommendations", {}).n("RedshiftClient", "ListRecommendationsCommand").f(void 0, void 0).ser(se_ListRecommendationsCommand).de(de_ListRecommendationsCommand).build() {
|
|
17609
|
+
};
|
|
17610
|
+
__name(_ListRecommendationsCommand, "ListRecommendationsCommand");
|
|
17611
|
+
var ListRecommendationsCommand = _ListRecommendationsCommand;
|
|
17612
|
+
|
|
17428
17613
|
// src/commands/ModifyAquaConfigurationCommand.ts
|
|
17429
17614
|
|
|
17430
17615
|
|
|
@@ -18087,6 +18272,7 @@ var commands = {
|
|
|
18087
18272
|
GetReservedNodeExchangeConfigurationOptionsCommand,
|
|
18088
18273
|
GetReservedNodeExchangeOfferingsCommand,
|
|
18089
18274
|
GetResourcePolicyCommand,
|
|
18275
|
+
ListRecommendationsCommand,
|
|
18090
18276
|
ModifyAquaConfigurationCommand,
|
|
18091
18277
|
ModifyAuthenticationProfileCommand,
|
|
18092
18278
|
ModifyClusterCommand,
|
|
@@ -18267,6 +18453,10 @@ var paginateGetReservedNodeExchangeConfigurationOptions = (0, import_core.create
|
|
|
18267
18453
|
|
|
18268
18454
|
var paginateGetReservedNodeExchangeOfferings = (0, import_core.createPaginator)(RedshiftClient, GetReservedNodeExchangeOfferingsCommand, "Marker", "Marker", "MaxRecords");
|
|
18269
18455
|
|
|
18456
|
+
// src/pagination/ListRecommendationsPaginator.ts
|
|
18457
|
+
|
|
18458
|
+
var paginateListRecommendations = (0, import_core.createPaginator)(RedshiftClient, ListRecommendationsCommand, "Marker", "Marker", "MaxRecords");
|
|
18459
|
+
|
|
18270
18460
|
// src/waiters/waitForClusterAvailable.ts
|
|
18271
18461
|
var import_util_waiter = require("@smithy/util-waiter");
|
|
18272
18462
|
var checkState = /* @__PURE__ */ __name(async (client, input) => {
|
|
@@ -18611,6 +18801,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
18611
18801
|
GetReservedNodeExchangeConfigurationOptionsCommand,
|
|
18612
18802
|
GetReservedNodeExchangeOfferingsCommand,
|
|
18613
18803
|
GetResourcePolicyCommand,
|
|
18804
|
+
ListRecommendationsCommand,
|
|
18614
18805
|
ModifyAquaConfigurationCommand,
|
|
18615
18806
|
ModifyAuthenticationProfileCommand,
|
|
18616
18807
|
ModifyClusterCommand,
|
|
@@ -18679,6 +18870,7 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
18679
18870
|
paginateDescribeUsageLimits,
|
|
18680
18871
|
paginateGetReservedNodeExchangeConfigurationOptions,
|
|
18681
18872
|
paginateGetReservedNodeExchangeOfferings,
|
|
18873
|
+
paginateListRecommendations,
|
|
18682
18874
|
waitForClusterAvailable,
|
|
18683
18875
|
waitUntilClusterAvailable,
|
|
18684
18876
|
waitForClusterDeleted,
|
|
@@ -18854,9 +19046,11 @@ var import_util_endpoints = require("@aws-sdk/util-endpoints");
|
|
|
18854
19046
|
EndpointAuthorizationNotFoundFault,
|
|
18855
19047
|
ReservedNodeExchangeActionType,
|
|
18856
19048
|
InvalidPolicyFault,
|
|
19049
|
+
ImpactRankingType,
|
|
18857
19050
|
InProgressTableRestoreQuotaExceededFault,
|
|
18858
19051
|
InvalidRestoreFault,
|
|
18859
19052
|
InvalidTableRestoreArgumentFault,
|
|
19053
|
+
RecommendedActionType,
|
|
18860
19054
|
TableLimitExceededFault,
|
|
18861
19055
|
UnsupportedOptionFault,
|
|
18862
19056
|
SubnetAlreadyInUse,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("../index.js");
|
package/dist-es/Redshift.js
CHANGED
|
@@ -98,6 +98,7 @@ import { GetClusterCredentialsWithIAMCommand, } from "./commands/GetClusterCrede
|
|
|
98
98
|
import { GetReservedNodeExchangeConfigurationOptionsCommand, } from "./commands/GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
99
99
|
import { GetReservedNodeExchangeOfferingsCommand, } from "./commands/GetReservedNodeExchangeOfferingsCommand";
|
|
100
100
|
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
101
|
+
import { ListRecommendationsCommand, } from "./commands/ListRecommendationsCommand";
|
|
101
102
|
import { ModifyAquaConfigurationCommand, } from "./commands/ModifyAquaConfigurationCommand";
|
|
102
103
|
import { ModifyAuthenticationProfileCommand, } from "./commands/ModifyAuthenticationProfileCommand";
|
|
103
104
|
import { ModifyClusterCommand, } from "./commands/ModifyClusterCommand";
|
|
@@ -232,6 +233,7 @@ const commands = {
|
|
|
232
233
|
GetReservedNodeExchangeConfigurationOptionsCommand,
|
|
233
234
|
GetReservedNodeExchangeOfferingsCommand,
|
|
234
235
|
GetResourcePolicyCommand,
|
|
236
|
+
ListRecommendationsCommand,
|
|
235
237
|
ModifyAquaConfigurationCommand,
|
|
236
238
|
ModifyAuthenticationProfileCommand,
|
|
237
239
|
ModifyClusterCommand,
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { de_ListRecommendationsCommand, se_ListRecommendationsCommand } from "../protocols/Aws_query";
|
|
6
|
+
export { $Command };
|
|
7
|
+
export class ListRecommendationsCommand extends $Command
|
|
8
|
+
.classBuilder()
|
|
9
|
+
.ep({
|
|
10
|
+
...commonParams,
|
|
11
|
+
})
|
|
12
|
+
.m(function (Command, cs, config, o) {
|
|
13
|
+
return [
|
|
14
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
15
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
16
|
+
];
|
|
17
|
+
})
|
|
18
|
+
.s("RedshiftServiceVersion20121201", "ListRecommendations", {})
|
|
19
|
+
.n("RedshiftClient", "ListRecommendationsCommand")
|
|
20
|
+
.f(void 0, void 0)
|
|
21
|
+
.ser(se_ListRecommendationsCommand)
|
|
22
|
+
.de(de_ListRecommendationsCommand)
|
|
23
|
+
.build() {
|
|
24
|
+
}
|
|
@@ -97,6 +97,7 @@ export * from "./GetClusterCredentialsWithIAMCommand";
|
|
|
97
97
|
export * from "./GetReservedNodeExchangeConfigurationOptionsCommand";
|
|
98
98
|
export * from "./GetReservedNodeExchangeOfferingsCommand";
|
|
99
99
|
export * from "./GetResourcePolicyCommand";
|
|
100
|
+
export * from "./ListRecommendationsCommand";
|
|
100
101
|
export * from "./ModifyAquaConfigurationCommand";
|
|
101
102
|
export * from "./ModifyAuthenticationProfileCommand";
|
|
102
103
|
export * from "./ModifyClusterCommand";
|
|
@@ -210,6 +210,11 @@ export class InvalidPolicyFault extends __BaseException {
|
|
|
210
210
|
Object.setPrototypeOf(this, InvalidPolicyFault.prototype);
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
|
+
export const ImpactRankingType = {
|
|
214
|
+
HIGH: "HIGH",
|
|
215
|
+
LOW: "LOW",
|
|
216
|
+
MEDIUM: "MEDIUM",
|
|
217
|
+
};
|
|
213
218
|
export class InProgressTableRestoreQuotaExceededFault extends __BaseException {
|
|
214
219
|
constructor(opts) {
|
|
215
220
|
super({
|
|
@@ -246,6 +251,10 @@ export class InvalidTableRestoreArgumentFault extends __BaseException {
|
|
|
246
251
|
Object.setPrototypeOf(this, InvalidTableRestoreArgumentFault.prototype);
|
|
247
252
|
}
|
|
248
253
|
}
|
|
254
|
+
export const RecommendedActionType = {
|
|
255
|
+
CLI: "CLI",
|
|
256
|
+
SQL: "SQL",
|
|
257
|
+
};
|
|
249
258
|
export class TableLimitExceededFault extends __BaseException {
|
|
250
259
|
constructor(opts) {
|
|
251
260
|
super({
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { ListRecommendationsCommand, } from "../commands/ListRecommendationsCommand";
|
|
3
|
+
import { RedshiftClient } from "../RedshiftClient";
|
|
4
|
+
export const paginateListRecommendations = createPaginator(RedshiftClient, ListRecommendationsCommand, "Marker", "Marker", "MaxRecords");
|
|
@@ -34,3 +34,4 @@ export * from "./DescribeTagsPaginator";
|
|
|
34
34
|
export * from "./DescribeUsageLimitsPaginator";
|
|
35
35
|
export * from "./GetReservedNodeExchangeConfigurationOptionsPaginator";
|
|
36
36
|
export * from "./GetReservedNodeExchangeOfferingsPaginator";
|
|
37
|
+
export * from "./ListRecommendationsPaginator";
|