@aws-sdk/client-redshift 3.354.0 → 3.357.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 (76) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/Redshift.js +8 -0
  3. package/dist-cjs/commands/CreateCustomDomainAssociationCommand.js +46 -0
  4. package/dist-cjs/commands/DeleteCustomDomainAssociationCommand.js +46 -0
  5. package/dist-cjs/commands/DescribeCustomDomainAssociationsCommand.js +46 -0
  6. package/dist-cjs/commands/ModifyCustomDomainAssociationCommand.js +46 -0
  7. package/dist-cjs/commands/index.js +4 -0
  8. package/dist-cjs/endpoint/ruleset.js +3 -3
  9. package/dist-cjs/models/models_0.js +28 -9
  10. package/dist-cjs/models/models_1.js +8 -1
  11. package/dist-cjs/pagination/DescribeCustomDomainAssociationsPaginator.js +29 -0
  12. package/dist-cjs/pagination/index.js +2 -1
  13. package/dist-cjs/protocols/Aws_query.js +401 -25
  14. package/dist-es/Redshift.js +8 -0
  15. package/dist-es/commands/CreateCustomDomainAssociationCommand.js +42 -0
  16. package/dist-es/commands/DeleteCustomDomainAssociationCommand.js +42 -0
  17. package/dist-es/commands/DescribeCustomDomainAssociationsCommand.js +42 -0
  18. package/dist-es/commands/ModifyCustomDomainAssociationCommand.js +42 -0
  19. package/dist-es/commands/index.js +4 -0
  20. package/dist-es/endpoint/ruleset.js +3 -3
  21. package/dist-es/models/models_0.js +24 -7
  22. package/dist-es/models/models_1.js +7 -0
  23. package/dist-es/pagination/DescribeCustomDomainAssociationsPaginator.js +25 -0
  24. package/dist-es/pagination/index.js +2 -1
  25. package/dist-es/protocols/Aws_query.js +376 -8
  26. package/dist-types/Redshift.d.ts +28 -0
  27. package/dist-types/RedshiftClient.d.ts +7 -3
  28. package/dist-types/commands/CreateClusterCommand.d.ts +3 -0
  29. package/dist-types/commands/CreateCustomDomainAssociationCommand.d.ts +89 -0
  30. package/dist-types/commands/DeleteClusterCommand.d.ts +3 -0
  31. package/dist-types/commands/DeleteCustomDomainAssociationCommand.d.ts +81 -0
  32. package/dist-types/commands/DescribeClustersCommand.d.ts +3 -0
  33. package/dist-types/commands/DescribeCustomDomainAssociationsCommand.d.ts +94 -0
  34. package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +2 -1
  35. package/dist-types/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
  36. package/dist-types/commands/DescribeEventsCommand.d.ts +1 -1
  37. package/dist-types/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
  38. package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +3 -0
  39. package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +3 -0
  40. package/dist-types/commands/GetClusterCredentialsCommand.d.ts +2 -1
  41. package/dist-types/commands/GetClusterCredentialsWithIAMCommand.d.ts +2 -1
  42. package/dist-types/commands/ModifyClusterCommand.d.ts +9 -0
  43. package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +3 -0
  44. package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +3 -0
  45. package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +3 -0
  46. package/dist-types/commands/ModifyCustomDomainAssociationCommand.d.ts +88 -0
  47. package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +3 -0
  48. package/dist-types/commands/PauseClusterCommand.d.ts +3 -0
  49. package/dist-types/commands/RebootClusterCommand.d.ts +3 -0
  50. package/dist-types/commands/ResizeClusterCommand.d.ts +3 -0
  51. package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +3 -0
  52. package/dist-types/commands/ResumeClusterCommand.d.ts +3 -0
  53. package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +3 -0
  54. package/dist-types/commands/index.d.ts +4 -0
  55. package/dist-types/models/models_0.d.ts +156 -323
  56. package/dist-types/models/models_1.d.ts +369 -6
  57. package/dist-types/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/index.d.ts +2 -1
  59. package/dist-types/protocols/Aws_query.d.ts +36 -0
  60. package/dist-types/ts3.4/Redshift.d.ts +68 -0
  61. package/dist-types/ts3.4/RedshiftClient.d.ts +24 -0
  62. package/dist-types/ts3.4/commands/CreateCustomDomainAssociationCommand.d.ts +42 -0
  63. package/dist-types/ts3.4/commands/DeleteCustomDomainAssociationCommand.d.ts +38 -0
  64. package/dist-types/ts3.4/commands/DescribeCustomDomainAssociationsCommand.d.ts +42 -0
  65. package/dist-types/ts3.4/commands/DescribeEventCategoriesCommand.d.ts +2 -4
  66. package/dist-types/ts3.4/commands/DescribeEventSubscriptionsCommand.d.ts +1 -1
  67. package/dist-types/ts3.4/commands/DescribeEventsCommand.d.ts +1 -1
  68. package/dist-types/ts3.4/commands/DescribeHsmClientCertificatesCommand.d.ts +1 -1
  69. package/dist-types/ts3.4/commands/ModifyCustomDomainAssociationCommand.d.ts +42 -0
  70. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  71. package/dist-types/ts3.4/models/models_0.d.ts +53 -55
  72. package/dist-types/ts3.4/models/models_1.d.ts +72 -2
  73. package/dist-types/ts3.4/pagination/DescribeCustomDomainAssociationsPaginator.d.ts +11 -0
  74. package/dist-types/ts3.4/pagination/index.d.ts +2 -1
  75. package/dist-types/ts3.4/protocols/Aws_query.d.ts +48 -0
  76. package/package.json +29 -29
@@ -16,6 +16,7 @@ import { CreateClusterParameterGroupCommand, } from "./commands/CreateClusterPar
16
16
  import { CreateClusterSecurityGroupCommand, } from "./commands/CreateClusterSecurityGroupCommand";
17
17
  import { CreateClusterSnapshotCommand, } from "./commands/CreateClusterSnapshotCommand";
18
18
  import { CreateClusterSubnetGroupCommand, } from "./commands/CreateClusterSubnetGroupCommand";
19
+ import { CreateCustomDomainAssociationCommand, } from "./commands/CreateCustomDomainAssociationCommand";
19
20
  import { CreateEndpointAccessCommand, } from "./commands/CreateEndpointAccessCommand";
20
21
  import { CreateEventSubscriptionCommand, } from "./commands/CreateEventSubscriptionCommand";
21
22
  import { CreateHsmClientCertificateCommand, } from "./commands/CreateHsmClientCertificateCommand";
@@ -32,6 +33,7 @@ import { DeleteClusterParameterGroupCommand, } from "./commands/DeleteClusterPar
32
33
  import { DeleteClusterSecurityGroupCommand, } from "./commands/DeleteClusterSecurityGroupCommand";
33
34
  import { DeleteClusterSnapshotCommand, } from "./commands/DeleteClusterSnapshotCommand";
34
35
  import { DeleteClusterSubnetGroupCommand, } from "./commands/DeleteClusterSubnetGroupCommand";
36
+ import { DeleteCustomDomainAssociationCommand, } from "./commands/DeleteCustomDomainAssociationCommand";
35
37
  import { DeleteEndpointAccessCommand, } from "./commands/DeleteEndpointAccessCommand";
36
38
  import { DeleteEventSubscriptionCommand, } from "./commands/DeleteEventSubscriptionCommand";
37
39
  import { DeleteHsmClientCertificateCommand, } from "./commands/DeleteHsmClientCertificateCommand";
@@ -53,6 +55,7 @@ import { DescribeClusterSnapshotsCommand, } from "./commands/DescribeClusterSnap
53
55
  import { DescribeClusterSubnetGroupsCommand, } from "./commands/DescribeClusterSubnetGroupsCommand";
54
56
  import { DescribeClusterTracksCommand, } from "./commands/DescribeClusterTracksCommand";
55
57
  import { DescribeClusterVersionsCommand, } from "./commands/DescribeClusterVersionsCommand";
58
+ import { DescribeCustomDomainAssociationsCommand, } from "./commands/DescribeCustomDomainAssociationsCommand";
56
59
  import { DescribeDataSharesCommand, } from "./commands/DescribeDataSharesCommand";
57
60
  import { DescribeDataSharesForConsumerCommand, } from "./commands/DescribeDataSharesForConsumerCommand";
58
61
  import { DescribeDataSharesForProducerCommand, } from "./commands/DescribeDataSharesForProducerCommand";
@@ -98,6 +101,7 @@ import { ModifyClusterParameterGroupCommand, } from "./commands/ModifyClusterPar
98
101
  import { ModifyClusterSnapshotCommand, } from "./commands/ModifyClusterSnapshotCommand";
99
102
  import { ModifyClusterSnapshotScheduleCommand, } from "./commands/ModifyClusterSnapshotScheduleCommand";
100
103
  import { ModifyClusterSubnetGroupCommand, } from "./commands/ModifyClusterSubnetGroupCommand";
104
+ import { ModifyCustomDomainAssociationCommand, } from "./commands/ModifyCustomDomainAssociationCommand";
101
105
  import { ModifyEndpointAccessCommand, } from "./commands/ModifyEndpointAccessCommand";
102
106
  import { ModifyEventSubscriptionCommand, } from "./commands/ModifyEventSubscriptionCommand";
103
107
  import { ModifyScheduledActionCommand, } from "./commands/ModifyScheduledActionCommand";
@@ -137,6 +141,7 @@ const commands = {
137
141
  CreateClusterSecurityGroupCommand,
138
142
  CreateClusterSnapshotCommand,
139
143
  CreateClusterSubnetGroupCommand,
144
+ CreateCustomDomainAssociationCommand,
140
145
  CreateEndpointAccessCommand,
141
146
  CreateEventSubscriptionCommand,
142
147
  CreateHsmClientCertificateCommand,
@@ -153,6 +158,7 @@ const commands = {
153
158
  DeleteClusterSecurityGroupCommand,
154
159
  DeleteClusterSnapshotCommand,
155
160
  DeleteClusterSubnetGroupCommand,
161
+ DeleteCustomDomainAssociationCommand,
156
162
  DeleteEndpointAccessCommand,
157
163
  DeleteEventSubscriptionCommand,
158
164
  DeleteHsmClientCertificateCommand,
@@ -174,6 +180,7 @@ const commands = {
174
180
  DescribeClusterSubnetGroupsCommand,
175
181
  DescribeClusterTracksCommand,
176
182
  DescribeClusterVersionsCommand,
183
+ DescribeCustomDomainAssociationsCommand,
177
184
  DescribeDataSharesCommand,
178
185
  DescribeDataSharesForConsumerCommand,
179
186
  DescribeDataSharesForProducerCommand,
@@ -219,6 +226,7 @@ const commands = {
219
226
  ModifyClusterSnapshotCommand,
220
227
  ModifyClusterSnapshotScheduleCommand,
221
228
  ModifyClusterSubnetGroupCommand,
229
+ ModifyCustomDomainAssociationCommand,
222
230
  ModifyEndpointAccessCommand,
223
231
  ModifyEventSubscriptionCommand,
224
232
  ModifyScheduledActionCommand,
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_CreateCustomDomainAssociationCommand, se_CreateCustomDomainAssociationCommand, } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class CreateCustomDomainAssociationCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, CreateCustomDomainAssociationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RedshiftClient";
25
+ const commandName = "CreateCustomDomainAssociationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_CreateCustomDomainAssociationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_CreateCustomDomainAssociationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DeleteCustomDomainAssociationCommand, se_DeleteCustomDomainAssociationCommand, } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class DeleteCustomDomainAssociationCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DeleteCustomDomainAssociationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RedshiftClient";
25
+ const commandName = "DeleteCustomDomainAssociationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DeleteCustomDomainAssociationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DeleteCustomDomainAssociationCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_DescribeCustomDomainAssociationsCommand, se_DescribeCustomDomainAssociationsCommand, } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class DescribeCustomDomainAssociationsCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, DescribeCustomDomainAssociationsCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RedshiftClient";
25
+ const commandName = "DescribeCustomDomainAssociationsCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_DescribeCustomDomainAssociationsCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_DescribeCustomDomainAssociationsCommand(output, context);
41
+ }
42
+ }
@@ -0,0 +1,42 @@
1
+ import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { de_ModifyCustomDomainAssociationCommand, se_ModifyCustomDomainAssociationCommand, } from "../protocols/Aws_query";
5
+ export { $Command };
6
+ export class ModifyCustomDomainAssociationCommand extends $Command {
7
+ static getEndpointParameterInstructions() {
8
+ return {
9
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
10
+ Endpoint: { type: "builtInParams", name: "endpoint" },
11
+ Region: { type: "builtInParams", name: "region" },
12
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
13
+ };
14
+ }
15
+ constructor(input) {
16
+ super();
17
+ this.input = input;
18
+ }
19
+ resolveMiddleware(clientStack, configuration, options) {
20
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
21
+ this.middlewareStack.use(getEndpointPlugin(configuration, ModifyCustomDomainAssociationCommand.getEndpointParameterInstructions()));
22
+ const stack = clientStack.concat(this.middlewareStack);
23
+ const { logger } = configuration;
24
+ const clientName = "RedshiftClient";
25
+ const commandName = "ModifyCustomDomainAssociationCommand";
26
+ const handlerExecutionContext = {
27
+ logger,
28
+ clientName,
29
+ commandName,
30
+ inputFilterSensitiveLog: (_) => _,
31
+ outputFilterSensitiveLog: (_) => _,
32
+ };
33
+ const { requestHandler } = configuration;
34
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
35
+ }
36
+ serialize(input, context) {
37
+ return se_ModifyCustomDomainAssociationCommand(input, context);
38
+ }
39
+ deserialize(output, context) {
40
+ return de_ModifyCustomDomainAssociationCommand(output, context);
41
+ }
42
+ }
@@ -15,6 +15,7 @@ export * from "./CreateClusterParameterGroupCommand";
15
15
  export * from "./CreateClusterSecurityGroupCommand";
16
16
  export * from "./CreateClusterSnapshotCommand";
17
17
  export * from "./CreateClusterSubnetGroupCommand";
18
+ export * from "./CreateCustomDomainAssociationCommand";
18
19
  export * from "./CreateEndpointAccessCommand";
19
20
  export * from "./CreateEventSubscriptionCommand";
20
21
  export * from "./CreateHsmClientCertificateCommand";
@@ -31,6 +32,7 @@ export * from "./DeleteClusterParameterGroupCommand";
31
32
  export * from "./DeleteClusterSecurityGroupCommand";
32
33
  export * from "./DeleteClusterSnapshotCommand";
33
34
  export * from "./DeleteClusterSubnetGroupCommand";
35
+ export * from "./DeleteCustomDomainAssociationCommand";
34
36
  export * from "./DeleteEndpointAccessCommand";
35
37
  export * from "./DeleteEventSubscriptionCommand";
36
38
  export * from "./DeleteHsmClientCertificateCommand";
@@ -52,6 +54,7 @@ export * from "./DescribeClusterSubnetGroupsCommand";
52
54
  export * from "./DescribeClusterTracksCommand";
53
55
  export * from "./DescribeClusterVersionsCommand";
54
56
  export * from "./DescribeClustersCommand";
57
+ export * from "./DescribeCustomDomainAssociationsCommand";
55
58
  export * from "./DescribeDataSharesCommand";
56
59
  export * from "./DescribeDataSharesForConsumerCommand";
57
60
  export * from "./DescribeDataSharesForProducerCommand";
@@ -97,6 +100,7 @@ export * from "./ModifyClusterParameterGroupCommand";
97
100
  export * from "./ModifyClusterSnapshotCommand";
98
101
  export * from "./ModifyClusterSnapshotScheduleCommand";
99
102
  export * from "./ModifyClusterSubnetGroupCommand";
103
+ export * from "./ModifyCustomDomainAssociationCommand";
100
104
  export * from "./ModifyEndpointAccessCommand";
101
105
  export * from "./ModifyEventSubscriptionCommand";
102
106
  export * from "./ModifyScheduledActionCommand";
@@ -1,4 +1,4 @@
1
- const u = "required", v = "fn", w = "argv", x = "ref";
2
- const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = "stringEquals", h = { [u]: false, "type": "String" }, i = { [u]: true, "default": false, "type": "Boolean" }, j = { [x]: "Endpoint" }, k = { [v]: "booleanEquals", [w]: [{ [x]: "UseFIPS" }, true] }, l = { [v]: "booleanEquals", [w]: [{ [x]: "UseDualStack" }, true] }, m = {}, n = { [x]: "Region" }, o = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [{ [x]: e }, "supportsFIPS"] }] }, p = { [x]: e }, q = { [v]: "booleanEquals", [w]: [true, { [v]: f, [w]: [p, "supportsDualStack"] }] }, r = [k], s = [l], t = [n];
3
- const _data = { version: "1.0", parameters: { Region: h, UseDualStack: i, UseFIPS: i, Endpoint: h }, rules: [{ conditions: [{ [v]: a, [w]: [j] }], type: b, rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: j, properties: m, headers: m }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [v]: a, [w]: t }], type: b, rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: e }], type: b, rules: [{ conditions: [k, l], type: b, rules: [{ conditions: [o, q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: r, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ conditions: [{ [v]: g, [w]: ["aws-us-gov", { [v]: f, [w]: [p, "name"] }] }], endpoint: { url: "https://redshift.{Region}.amazonaws.com", properties: m, headers: m }, type: d }, { endpoint: { url: "https://redshift-fips.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: s, type: b, rules: [{ conditions: [q], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: m, headers: m }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ conditions: [{ [v]: g, [w]: [n, "us-gov-east-1"] }], endpoint: { url: "https://redshift.us-gov-east-1.amazonaws.com", properties: m, headers: m }, type: d }, { conditions: [{ [v]: g, [w]: [n, "us-gov-west-1"] }], endpoint: { url: "https://redshift.us-gov-west-1.amazonaws.com", properties: m, headers: m }, type: d }, { endpoint: { url: "https://redshift.{Region}.{PartitionResult#dnsSuffix}", properties: m, headers: m }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
1
+ const s = "required", t = "fn", u = "argv", v = "ref";
2
+ const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = "getAttr", g = { [s]: false, "type": "String" }, h = { [s]: true, "default": false, "type": "Boolean" }, i = { [v]: "Endpoint" }, j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }, k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }, l = {}, m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }, n = { [v]: e }, o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }, p = [j], q = [k], r = [{ [v]: "Region" }];
3
+ const _data = { version: "1.0", parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, rules: [{ conditions: [{ [t]: a, [u]: [i] }], type: b, rules: [{ conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { type: b, rules: [{ conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: i, properties: l, headers: l }, type: d }] }] }, { type: b, rules: [{ conditions: [{ [t]: a, [u]: r }], type: b, rules: [{ conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], type: b, rules: [{ conditions: [j, k], type: b, rules: [{ conditions: [m, o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [m], type: b, rules: [{ type: b, rules: [{ conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], endpoint: { url: "https://redshift.{Region}.amazonaws.com", properties: l, headers: l }, type: d }, { endpoint: { url: "https://redshift-fips.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: q, type: b, rules: [{ conditions: [o], type: b, rules: [{ type: b, rules: [{ endpoint: { url: "https://redshift.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: l, headers: l }, type: d }] }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { type: b, rules: [{ endpoint: { url: "https://redshift.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, type: d }] }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] }] };
4
4
  export const ruleSet = _data;
@@ -828,6 +828,18 @@ export class UnauthorizedOperation extends __BaseException {
828
828
  Object.setPrototypeOf(this, UnauthorizedOperation.prototype);
829
829
  }
830
830
  }
831
+ export class CustomCnameAssociationFault extends __BaseException {
832
+ constructor(opts) {
833
+ super({
834
+ name: "CustomCnameAssociationFault",
835
+ $fault: "client",
836
+ ...opts,
837
+ });
838
+ this.name = "CustomCnameAssociationFault";
839
+ this.$fault = "client";
840
+ Object.setPrototypeOf(this, CustomCnameAssociationFault.prototype);
841
+ }
842
+ }
831
843
  export class EndpointAlreadyExistsFault extends __BaseException {
832
844
  constructor(opts) {
833
845
  super({
@@ -1199,6 +1211,18 @@ export class UsageLimitAlreadyExistsFault extends __BaseException {
1199
1211
  Object.setPrototypeOf(this, UsageLimitAlreadyExistsFault.prototype);
1200
1212
  }
1201
1213
  }
1214
+ export class CustomDomainAssociationNotFoundFault extends __BaseException {
1215
+ constructor(opts) {
1216
+ super({
1217
+ name: "CustomDomainAssociationNotFoundFault",
1218
+ $fault: "client",
1219
+ ...opts,
1220
+ });
1221
+ this.name = "CustomDomainAssociationNotFoundFault";
1222
+ this.$fault = "client";
1223
+ Object.setPrototypeOf(this, CustomDomainAssociationNotFoundFault.prototype);
1224
+ }
1225
+ }
1202
1226
  export const DataShareStatusForConsumer = {
1203
1227
  ACTIVE: "ACTIVE",
1204
1228
  AVAILABLE: "AVAILABLE",
@@ -1375,13 +1399,6 @@ export const SortByOrder = {
1375
1399
  ASCENDING: "ASC",
1376
1400
  DESCENDING: "DESC",
1377
1401
  };
1378
- export const SourceType = {
1379
- cluster: "cluster",
1380
- cluster_parameter_group: "cluster-parameter-group",
1381
- cluster_security_group: "cluster-security-group",
1382
- cluster_snapshot: "cluster-snapshot",
1383
- scheduled_action: "scheduled-action",
1384
- };
1385
1402
  export const ClusterCredentialsFilterSensitiveLog = (obj) => ({
1386
1403
  ...obj,
1387
1404
  ...(obj.DbPassword && { DbPassword: SENSITIVE_STRING }),
@@ -1,4 +1,11 @@
1
1
  import { RedshiftServiceException as __BaseException } from "./RedshiftServiceException";
2
+ export const SourceType = {
3
+ cluster: "cluster",
4
+ cluster_parameter_group: "cluster-parameter-group",
5
+ cluster_security_group: "cluster-security-group",
6
+ cluster_snapshot: "cluster-snapshot",
7
+ scheduled_action: "scheduled-action",
8
+ };
2
9
  export const LogDestinationType = {
3
10
  CLOUDWATCH: "cloudwatch",
4
11
  S3: "s3",
@@ -0,0 +1,25 @@
1
+ import { DescribeCustomDomainAssociationsCommand, } from "../commands/DescribeCustomDomainAssociationsCommand";
2
+ import { RedshiftClient } from "../RedshiftClient";
3
+ const makePagedClientRequest = async (client, input, ...args) => {
4
+ return await client.send(new DescribeCustomDomainAssociationsCommand(input), ...args);
5
+ };
6
+ export async function* paginateDescribeCustomDomainAssociations(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
+ }
@@ -7,8 +7,9 @@ export * from "./DescribeClusterSubnetGroupsPaginator";
7
7
  export * from "./DescribeClusterTracksPaginator";
8
8
  export * from "./DescribeClusterVersionsPaginator";
9
9
  export * from "./DescribeClustersPaginator";
10
- export * from "./DescribeDataSharesForConsumerPaginator";
10
+ export * from "./DescribeCustomDomainAssociationsPaginator";
11
11
  export * from "./Interfaces";
12
+ export * from "./DescribeDataSharesForConsumerPaginator";
12
13
  export * from "./DescribeDataSharesForProducerPaginator";
13
14
  export * from "./DescribeDataSharesPaginator";
14
15
  export * from "./DescribeDefaultClusterParametersPaginator";