@aws-sdk/client-redshift 3.436.0 → 3.437.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 (48) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/Redshift.js +8 -0
  3. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +51 -0
  4. package/dist-cjs/commands/DescribeInboundIntegrationsCommand.js +51 -0
  5. package/dist-cjs/commands/GetResourcePolicyCommand.js +51 -0
  6. package/dist-cjs/commands/PutResourcePolicyCommand.js +51 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/models/models_0.js +15 -2
  9. package/dist-cjs/models/models_1.js +36 -1
  10. package/dist-cjs/pagination/DescribeInboundIntegrationsPaginator.js +29 -0
  11. package/dist-cjs/pagination/index.js +1 -0
  12. package/dist-cjs/protocols/Aws_query.js +378 -5
  13. package/dist-es/Redshift.js +8 -0
  14. package/dist-es/commands/DeleteResourcePolicyCommand.js +47 -0
  15. package/dist-es/commands/DescribeInboundIntegrationsCommand.js +47 -0
  16. package/dist-es/commands/GetResourcePolicyCommand.js +47 -0
  17. package/dist-es/commands/PutResourcePolicyCommand.js +47 -0
  18. package/dist-es/commands/index.js +4 -0
  19. package/dist-es/models/models_0.js +12 -0
  20. package/dist-es/models/models_1.js +33 -0
  21. package/dist-es/pagination/DescribeInboundIntegrationsPaginator.js +25 -0
  22. package/dist-es/pagination/index.js +1 -0
  23. package/dist-es/protocols/Aws_query.js +366 -2
  24. package/dist-types/Redshift.d.ts +28 -0
  25. package/dist-types/RedshiftClient.d.ts +6 -2
  26. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +77 -0
  27. package/dist-types/commands/DescribeInboundIntegrationsCommand.d.ts +100 -0
  28. package/dist-types/commands/GetResourcePolicyCommand.d.ts +85 -0
  29. package/dist-types/commands/PutResourcePolicyCommand.d.ts +89 -0
  30. package/dist-types/commands/index.d.ts +4 -0
  31. package/dist-types/models/models_0.d.ts +22 -44
  32. package/dist-types/models/models_1.d.ts +254 -1
  33. package/dist-types/pagination/DescribeInboundIntegrationsPaginator.d.ts +7 -0
  34. package/dist-types/pagination/index.d.ts +1 -0
  35. package/dist-types/protocols/Aws_query.d.ts +36 -0
  36. package/dist-types/ts3.4/Redshift.d.ts +68 -0
  37. package/dist-types/ts3.4/RedshiftClient.d.ts +24 -0
  38. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +37 -0
  39. package/dist-types/ts3.4/commands/DescribeInboundIntegrationsCommand.d.ts +42 -0
  40. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +39 -0
  41. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +39 -0
  42. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  43. package/dist-types/ts3.4/models/models_0.d.ts +10 -10
  44. package/dist-types/ts3.4/models/models_1.d.ts +72 -1
  45. package/dist-types/ts3.4/pagination/DescribeInboundIntegrationsPaginator.d.ts +11 -0
  46. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  47. package/dist-types/ts3.4/protocols/Aws_query.d.ts +48 -0
  48. package/package.json +4 -4
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DeleteResourcePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RedshiftClient";
26
+ const commandName = "DeleteResourcePolicyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "RedshiftServiceVersion20121201",
35
+ operation: "DeleteResourcePolicy",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DeleteResourcePolicyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DeleteResourcePolicyCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_DescribeInboundIntegrationsCommand, se_DescribeInboundIntegrationsCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class DescribeInboundIntegrationsCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeInboundIntegrationsCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RedshiftClient";
26
+ const commandName = "DescribeInboundIntegrationsCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "RedshiftServiceVersion20121201",
35
+ operation: "DescribeInboundIntegrations",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_DescribeInboundIntegrationsCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_DescribeInboundIntegrationsCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_GetResourcePolicyCommand, se_GetResourcePolicyCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class GetResourcePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, GetResourcePolicyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RedshiftClient";
26
+ const commandName = "GetResourcePolicyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "RedshiftServiceVersion20121201",
35
+ operation: "GetResourcePolicy",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_GetResourcePolicyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_GetResourcePolicyCommand(output, context);
46
+ }
47
+ }
@@ -0,0 +1,47 @@
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 { SMITHY_CONTEXT_KEY, } from "@smithy/types";
5
+ import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_query";
6
+ export { $Command };
7
+ export class PutResourcePolicyCommand extends $Command {
8
+ static getEndpointParameterInstructions() {
9
+ return {
10
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
11
+ Endpoint: { type: "builtInParams", name: "endpoint" },
12
+ Region: { type: "builtInParams", name: "region" },
13
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
14
+ };
15
+ }
16
+ constructor(input) {
17
+ super();
18
+ this.input = input;
19
+ }
20
+ resolveMiddleware(clientStack, configuration, options) {
21
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
22
+ this.middlewareStack.use(getEndpointPlugin(configuration, PutResourcePolicyCommand.getEndpointParameterInstructions()));
23
+ const stack = clientStack.concat(this.middlewareStack);
24
+ const { logger } = configuration;
25
+ const clientName = "RedshiftClient";
26
+ const commandName = "PutResourcePolicyCommand";
27
+ const handlerExecutionContext = {
28
+ logger,
29
+ clientName,
30
+ commandName,
31
+ inputFilterSensitiveLog: (_) => _,
32
+ outputFilterSensitiveLog: (_) => _,
33
+ [SMITHY_CONTEXT_KEY]: {
34
+ service: "RedshiftServiceVersion20121201",
35
+ operation: "PutResourcePolicy",
36
+ },
37
+ };
38
+ const { requestHandler } = configuration;
39
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
40
+ }
41
+ serialize(input, context) {
42
+ return se_PutResourcePolicyCommand(input, context);
43
+ }
44
+ deserialize(output, context) {
45
+ return de_PutResourcePolicyCommand(output, context);
46
+ }
47
+ }
@@ -38,6 +38,7 @@ export * from "./DeleteEventSubscriptionCommand";
38
38
  export * from "./DeleteHsmClientCertificateCommand";
39
39
  export * from "./DeleteHsmConfigurationCommand";
40
40
  export * from "./DeletePartnerCommand";
41
+ export * from "./DeleteResourcePolicyCommand";
41
42
  export * from "./DeleteScheduledActionCommand";
42
43
  export * from "./DeleteSnapshotCopyGrantCommand";
43
44
  export * from "./DeleteSnapshotScheduleCommand";
@@ -66,6 +67,7 @@ export * from "./DescribeEventSubscriptionsCommand";
66
67
  export * from "./DescribeEventsCommand";
67
68
  export * from "./DescribeHsmClientCertificatesCommand";
68
69
  export * from "./DescribeHsmConfigurationsCommand";
70
+ export * from "./DescribeInboundIntegrationsCommand";
69
71
  export * from "./DescribeLoggingStatusCommand";
70
72
  export * from "./DescribeNodeConfigurationOptionsCommand";
71
73
  export * from "./DescribeOrderableClusterOptionsCommand";
@@ -90,6 +92,7 @@ export * from "./GetClusterCredentialsCommand";
90
92
  export * from "./GetClusterCredentialsWithIAMCommand";
91
93
  export * from "./GetReservedNodeExchangeConfigurationOptionsCommand";
92
94
  export * from "./GetReservedNodeExchangeOfferingsCommand";
95
+ export * from "./GetResourcePolicyCommand";
93
96
  export * from "./ModifyAquaConfigurationCommand";
94
97
  export * from "./ModifyAuthenticationProfileCommand";
95
98
  export * from "./ModifyClusterCommand";
@@ -109,6 +112,7 @@ export * from "./ModifySnapshotScheduleCommand";
109
112
  export * from "./ModifyUsageLimitCommand";
110
113
  export * from "./PauseClusterCommand";
111
114
  export * from "./PurchaseReservedNodeOfferingCommand";
115
+ export * from "./PutResourcePolicyCommand";
112
116
  export * from "./RebootClusterCommand";
113
117
  export * from "./RejectDataShareCommand";
114
118
  export * from "./ResetClusterParameterGroupCommand";
@@ -636,6 +636,18 @@ export class ClusterSubnetQuotaExceededFault extends __BaseException {
636
636
  Object.setPrototypeOf(this, ClusterSubnetQuotaExceededFault.prototype);
637
637
  }
638
638
  }
639
+ export class ConflictPolicyUpdateFault extends __BaseException {
640
+ constructor(opts) {
641
+ super({
642
+ name: "ConflictPolicyUpdateFault",
643
+ $fault: "client",
644
+ ...opts,
645
+ });
646
+ this.name = "ConflictPolicyUpdateFault";
647
+ this.$fault = "client";
648
+ Object.setPrototypeOf(this, ConflictPolicyUpdateFault.prototype);
649
+ }
650
+ }
639
651
  export class CopyToRegionDisabledFault extends __BaseException {
640
652
  constructor(opts) {
641
653
  super({
@@ -8,6 +8,27 @@ export const SourceType = {
8
8
  cluster_snapshot: "cluster-snapshot",
9
9
  scheduled_action: "scheduled-action",
10
10
  };
11
+ export const ZeroETLIntegrationStatus = {
12
+ ACTIVE: "active",
13
+ CREATING: "creating",
14
+ DELETING: "deleting",
15
+ FAILED: "failed",
16
+ MODIFYING: "modifying",
17
+ NEEDS_ATTENTION: "needs_attention",
18
+ SYNCING: "syncing",
19
+ };
20
+ export class IntegrationNotFoundFault extends __BaseException {
21
+ constructor(opts) {
22
+ super({
23
+ name: "IntegrationNotFoundFault",
24
+ $fault: "client",
25
+ ...opts,
26
+ });
27
+ this.name = "IntegrationNotFoundFault";
28
+ this.$fault = "client";
29
+ Object.setPrototypeOf(this, IntegrationNotFoundFault.prototype);
30
+ }
31
+ }
11
32
  export const LogDestinationType = {
12
33
  CLOUDWATCH: "cloudwatch",
13
34
  S3: "s3",
@@ -177,6 +198,18 @@ export const ReservedNodeExchangeActionType = {
177
198
  RESIZE_CLUSTER: "resize-cluster",
178
199
  RESTORE_CLUSTER: "restore-cluster",
179
200
  };
201
+ export class InvalidPolicyFault extends __BaseException {
202
+ constructor(opts) {
203
+ super({
204
+ name: "InvalidPolicyFault",
205
+ $fault: "client",
206
+ ...opts,
207
+ });
208
+ this.name = "InvalidPolicyFault";
209
+ this.$fault = "client";
210
+ Object.setPrototypeOf(this, InvalidPolicyFault.prototype);
211
+ }
212
+ }
180
213
  export class InProgressTableRestoreQuotaExceededFault extends __BaseException {
181
214
  constructor(opts) {
182
215
  super({
@@ -0,0 +1,25 @@
1
+ import { DescribeInboundIntegrationsCommand, } from "../commands/DescribeInboundIntegrationsCommand";
2
+ import { RedshiftClient } from "../RedshiftClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeInboundIntegrationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeInboundIntegrations(config, input, ...additionalArguments) {
7
+ let token = config.startingToken || undefined;
8
+ let hasNext = true;
9
+ let page;
10
+ while (hasNext) {
11
+ input.Marker = token;
12
+ input["MaxRecords"] = config.pageSize;
13
+ if (config.client instanceof RedshiftClient) {
14
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
15
+ }
16
+ else {
17
+ throw new Error("Invalid client, expected Redshift | RedshiftClient");
18
+ }
19
+ yield page;
20
+ const prevToken = token;
21
+ token = page.Marker;
22
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
23
+ }
24
+ return undefined;
25
+ }
@@ -19,6 +19,7 @@ export * from "./DescribeEventSubscriptionsPaginator";
19
19
  export * from "./DescribeEventsPaginator";
20
20
  export * from "./DescribeHsmClientCertificatesPaginator";
21
21
  export * from "./DescribeHsmConfigurationsPaginator";
22
+ export * from "./DescribeInboundIntegrationsPaginator";
22
23
  export * from "./DescribeNodeConfigurationOptionsPaginator";
23
24
  export * from "./DescribeOrderableClusterOptionsPaginator";
24
25
  export * from "./DescribeReservedNodeExchangeStatusPaginator";