@aws-sdk/client-redshift 3.100.0 → 3.109.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.
Files changed (34) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist-cjs/Redshift.js +15 -0
  3. package/dist-cjs/RedshiftClient.js +2 -0
  4. package/dist-cjs/commands/DescribeHsmConfigurationsCommand.js +1 -2
  5. package/dist-cjs/commands/GetClusterCredentialsWithIAMCommand.js +37 -0
  6. package/dist-cjs/commands/index.js +1 -0
  7. package/dist-cjs/models/models_0.js +11 -10
  8. package/dist-cjs/models/models_1.js +15 -3
  9. package/dist-cjs/protocols/Aws_query.js +201 -96
  10. package/dist-es/Redshift.js +15 -0
  11. package/dist-es/RedshiftClient.js +2 -0
  12. package/dist-es/commands/DescribeHsmConfigurationsCommand.js +1 -2
  13. package/dist-es/commands/GetClusterCredentialsWithIAMCommand.js +40 -0
  14. package/dist-es/commands/index.js +1 -0
  15. package/dist-es/models/models_0.js +4 -4
  16. package/dist-es/models/models_1.js +8 -0
  17. package/dist-es/protocols/Aws_query.js +209 -92
  18. package/dist-types/Redshift.d.ts +16 -0
  19. package/dist-types/RedshiftClient.d.ts +3 -2
  20. package/dist-types/commands/DescribeHsmConfigurationsCommand.d.ts +1 -2
  21. package/dist-types/commands/GetClusterCredentialsWithIAMCommand.d.ts +45 -0
  22. package/dist-types/commands/index.d.ts +1 -0
  23. package/dist-types/models/models_0.d.ts +26 -56
  24. package/dist-types/models/models_1.d.ts +81 -3
  25. package/dist-types/protocols/Aws_query.d.ts +3 -0
  26. package/dist-types/ts3.4/Redshift.d.ts +5 -0
  27. package/dist-types/ts3.4/RedshiftClient.d.ts +3 -2
  28. package/dist-types/ts3.4/commands/DescribeHsmConfigurationsCommand.d.ts +1 -2
  29. package/dist-types/ts3.4/commands/GetClusterCredentialsWithIAMCommand.d.ts +18 -0
  30. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  31. package/dist-types/ts3.4/models/models_0.d.ts +14 -17
  32. package/dist-types/ts3.4/models/models_1.d.ts +29 -0
  33. package/dist-types/ts3.4/protocols/Aws_query.d.ts +3 -0
  34. package/package.json +30 -29
@@ -85,6 +85,7 @@ import { DisassociateDataShareConsumerCommand, } from "./commands/DisassociateDa
85
85
  import { EnableLoggingCommand, } from "./commands/EnableLoggingCommand";
86
86
  import { EnableSnapshotCopyCommand, } from "./commands/EnableSnapshotCopyCommand";
87
87
  import { GetClusterCredentialsCommand, } from "./commands/GetClusterCredentialsCommand";
88
+ import { GetClusterCredentialsWithIAMCommand, } from "./commands/GetClusterCredentialsWithIAMCommand";
88
89
  import { GetReservedNodeExchangeConfigurationOptionsCommand, } from "./commands/GetReservedNodeExchangeConfigurationOptionsCommand";
89
90
  import { GetReservedNodeExchangeOfferingsCommand, } from "./commands/GetReservedNodeExchangeOfferingsCommand";
90
91
  import { ModifyAquaConfigurationCommand, } from "./commands/ModifyAquaConfigurationCommand";
@@ -1327,6 +1328,20 @@ var Redshift = (function (_super) {
1327
1328
  return this.send(command, optionsOrCb);
1328
1329
  }
1329
1330
  };
1331
+ Redshift.prototype.getClusterCredentialsWithIAM = function (args, optionsOrCb, cb) {
1332
+ var command = new GetClusterCredentialsWithIAMCommand(args);
1333
+ if (typeof optionsOrCb === "function") {
1334
+ this.send(command, optionsOrCb);
1335
+ }
1336
+ else if (typeof cb === "function") {
1337
+ if (typeof optionsOrCb !== "object")
1338
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
1339
+ this.send(command, optionsOrCb || {}, cb);
1340
+ }
1341
+ else {
1342
+ return this.send(command, optionsOrCb);
1343
+ }
1344
+ };
1330
1345
  Redshift.prototype.getReservedNodeExchangeConfigurationOptions = function (args, optionsOrCb, cb) {
1331
1346
  var command = new GetReservedNodeExchangeConfigurationOptionsCommand(args);
1332
1347
  if (typeof optionsOrCb === "function") {
@@ -3,6 +3,7 @@ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-re
3
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
5
  import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
6
7
  import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
7
8
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
@@ -25,6 +26,7 @@ var RedshiftClient = (function (_super) {
25
26
  _this.middlewareStack.use(getContentLengthPlugin(_this.config));
26
27
  _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
27
28
  _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
28
30
  _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
29
31
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
30
32
  return _this;
@@ -1,8 +1,7 @@
1
1
  import { __extends } from "tslib";
2
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
4
- import { DescribeHsmConfigurationsMessage } from "../models/models_0";
5
- import { HsmConfigurationMessage } from "../models/models_1";
4
+ import { DescribeHsmConfigurationsMessage, HsmConfigurationMessage } from "../models/models_1";
6
5
  import { deserializeAws_queryDescribeHsmConfigurationsCommand, serializeAws_queryDescribeHsmConfigurationsCommand, } from "../protocols/Aws_query";
7
6
  var DescribeHsmConfigurationsCommand = (function (_super) {
8
7
  __extends(DescribeHsmConfigurationsCommand, _super);
@@ -0,0 +1,40 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ClusterExtendedCredentials } from "../models/models_0";
5
+ import { GetClusterCredentialsWithIAMMessage } from "../models/models_1";
6
+ import { deserializeAws_queryGetClusterCredentialsWithIAMCommand, serializeAws_queryGetClusterCredentialsWithIAMCommand, } from "../protocols/Aws_query";
7
+ var GetClusterCredentialsWithIAMCommand = (function (_super) {
8
+ __extends(GetClusterCredentialsWithIAMCommand, _super);
9
+ function GetClusterCredentialsWithIAMCommand(input) {
10
+ var _this = _super.call(this) || this;
11
+ _this.input = input;
12
+ return _this;
13
+ }
14
+ GetClusterCredentialsWithIAMCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
15
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
16
+ var stack = clientStack.concat(this.middlewareStack);
17
+ var logger = configuration.logger;
18
+ var clientName = "RedshiftClient";
19
+ var commandName = "GetClusterCredentialsWithIAMCommand";
20
+ var handlerExecutionContext = {
21
+ logger: logger,
22
+ clientName: clientName,
23
+ commandName: commandName,
24
+ inputFilterSensitiveLog: GetClusterCredentialsWithIAMMessage.filterSensitiveLog,
25
+ outputFilterSensitiveLog: ClusterExtendedCredentials.filterSensitiveLog,
26
+ };
27
+ var requestHandler = configuration.requestHandler;
28
+ return stack.resolve(function (request) {
29
+ return requestHandler.handle(request.request, options || {});
30
+ }, handlerExecutionContext);
31
+ };
32
+ GetClusterCredentialsWithIAMCommand.prototype.serialize = function (input, context) {
33
+ return serializeAws_queryGetClusterCredentialsWithIAMCommand(input, context);
34
+ };
35
+ GetClusterCredentialsWithIAMCommand.prototype.deserialize = function (output, context) {
36
+ return deserializeAws_queryGetClusterCredentialsWithIAMCommand(output, context);
37
+ };
38
+ return GetClusterCredentialsWithIAMCommand;
39
+ }($Command));
40
+ export { GetClusterCredentialsWithIAMCommand };
@@ -84,6 +84,7 @@ export * from "./DisassociateDataShareConsumerCommand";
84
84
  export * from "./EnableLoggingCommand";
85
85
  export * from "./EnableSnapshotCopyCommand";
86
86
  export * from "./GetClusterCredentialsCommand";
87
+ export * from "./GetClusterCredentialsWithIAMCommand";
87
88
  export * from "./GetReservedNodeExchangeConfigurationOptionsCommand";
88
89
  export * from "./GetReservedNodeExchangeOfferingsCommand";
89
90
  export * from "./ModifyAquaConfigurationCommand";
@@ -718,6 +718,10 @@ export var ClusterDbRevisionsMessage;
718
718
  (function (ClusterDbRevisionsMessage) {
719
719
  ClusterDbRevisionsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
720
720
  })(ClusterDbRevisionsMessage || (ClusterDbRevisionsMessage = {}));
721
+ export var ClusterExtendedCredentials;
722
+ (function (ClusterExtendedCredentials) {
723
+ ClusterExtendedCredentials.filterSensitiveLog = function (obj) { return (__assign(__assign({}, obj), (obj.DbPassword && { DbPassword: SENSITIVE_STRING }))); };
724
+ })(ClusterExtendedCredentials || (ClusterExtendedCredentials = {}));
721
725
  var ClusterOnLatestRevisionFault = (function (_super) {
722
726
  __extends(ClusterOnLatestRevisionFault, _super);
723
727
  function ClusterOnLatestRevisionFault(opts) {
@@ -2070,7 +2074,3 @@ export var HsmClientCertificateMessage;
2070
2074
  (function (HsmClientCertificateMessage) {
2071
2075
  HsmClientCertificateMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
2072
2076
  })(HsmClientCertificateMessage || (HsmClientCertificateMessage = {}));
2073
- export var DescribeHsmConfigurationsMessage;
2074
- (function (DescribeHsmConfigurationsMessage) {
2075
- DescribeHsmConfigurationsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
2076
- })(DescribeHsmConfigurationsMessage || (DescribeHsmConfigurationsMessage = {}));
@@ -1,5 +1,9 @@
1
1
  import { __assign, __extends } from "tslib";
2
2
  import { RedshiftServiceException as __BaseException } from "./RedshiftServiceException";
3
+ export var DescribeHsmConfigurationsMessage;
4
+ (function (DescribeHsmConfigurationsMessage) {
5
+ DescribeHsmConfigurationsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
6
+ })(DescribeHsmConfigurationsMessage || (DescribeHsmConfigurationsMessage = {}));
3
7
  export var HsmConfigurationMessage;
4
8
  (function (HsmConfigurationMessage) {
5
9
  HsmConfigurationMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
@@ -341,6 +345,10 @@ export var GetClusterCredentialsMessage;
341
345
  (function (GetClusterCredentialsMessage) {
342
346
  GetClusterCredentialsMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
343
347
  })(GetClusterCredentialsMessage || (GetClusterCredentialsMessage = {}));
348
+ export var GetClusterCredentialsWithIAMMessage;
349
+ (function (GetClusterCredentialsWithIAMMessage) {
350
+ GetClusterCredentialsWithIAMMessage.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
351
+ })(GetClusterCredentialsWithIAMMessage || (GetClusterCredentialsWithIAMMessage = {}));
344
352
  export var ReservedNodeExchangeActionType;
345
353
  (function (ReservedNodeExchangeActionType) {
346
354
  ReservedNodeExchangeActionType["RESIZE_CLUSTER"] = "resize-cluster";