Skip to content

Commit

Permalink
feat(client-redshift): Added support for custom domain names for Reds…
Browse files Browse the repository at this point in the history
…hift Provisioned clusters. This feature enables customers to create a custom domain name and use ACM to generate fully secure connections to it.
  • Loading branch information
awstools committed Jun 20, 2023
1 parent d0594b9 commit 10d157f
Show file tree
Hide file tree
Showing 37 changed files with 2,862 additions and 547 deletions.
32 changes: 32 additions & 0 deletions clients/client-redshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,14 @@ CreateClusterSubnetGroup

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/createclustersubnetgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/createclustersubnetgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/createclustersubnetgroupcommandoutput.html)

</details>
<details>
<summary>
CreateCustomDomainAssociation
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/createcustomdomainassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/createcustomdomainassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/createcustomdomainassociationcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -487,6 +495,14 @@ DeleteClusterSubnetGroup

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/deleteclustersubnetgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/deleteclustersubnetgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/deleteclustersubnetgroupcommandoutput.html)

</details>
<details>
<summary>
DeleteCustomDomainAssociation
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/deletecustomdomainassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/deletecustomdomainassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/deletecustomdomainassociationcommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -655,6 +671,14 @@ DescribeClusterVersions

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/describeclusterversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/describeclusterversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/describeclusterversionscommandoutput.html)

</details>
<details>
<summary>
DescribeCustomDomainAssociations
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/describecustomdomainassociationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/describecustomdomainassociationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/describecustomdomainassociationscommandoutput.html)

</details>
<details>
<summary>
Expand Down Expand Up @@ -1015,6 +1039,14 @@ ModifyClusterSubnetGroup

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/modifyclustersubnetgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/modifyclustersubnetgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/modifyclustersubnetgroupcommandoutput.html)

</details>
<details>
<summary>
ModifyCustomDomainAssociation
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/modifycustomdomainassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/modifycustomdomainassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/modifycustomdomainassociationcommandoutput.html)

</details>
<details>
<summary>
Expand Down
92 changes: 92 additions & 0 deletions clients/client-redshift/src/Redshift.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,11 @@ import {
CreateClusterSubnetGroupCommandInput,
CreateClusterSubnetGroupCommandOutput,
} from "./commands/CreateClusterSubnetGroupCommand";
import {
CreateCustomDomainAssociationCommand,
CreateCustomDomainAssociationCommandInput,
CreateCustomDomainAssociationCommandOutput,
} from "./commands/CreateCustomDomainAssociationCommand";
import {
CreateEndpointAccessCommand,
CreateEndpointAccessCommandInput,
Expand Down Expand Up @@ -159,6 +164,11 @@ import {
DeleteClusterSubnetGroupCommandInput,
DeleteClusterSubnetGroupCommandOutput,
} from "./commands/DeleteClusterSubnetGroupCommand";
import {
DeleteCustomDomainAssociationCommand,
DeleteCustomDomainAssociationCommandInput,
DeleteCustomDomainAssociationCommandOutput,
} from "./commands/DeleteCustomDomainAssociationCommand";
import {
DeleteEndpointAccessCommand,
DeleteEndpointAccessCommandInput,
Expand Down Expand Up @@ -260,6 +270,11 @@ import {
DescribeClusterVersionsCommandInput,
DescribeClusterVersionsCommandOutput,
} from "./commands/DescribeClusterVersionsCommand";
import {
DescribeCustomDomainAssociationsCommand,
DescribeCustomDomainAssociationsCommandInput,
DescribeCustomDomainAssociationsCommandOutput,
} from "./commands/DescribeCustomDomainAssociationsCommand";
import {
DescribeDataSharesCommand,
DescribeDataSharesCommandInput,
Expand Down Expand Up @@ -485,6 +500,11 @@ import {
ModifyClusterSubnetGroupCommandInput,
ModifyClusterSubnetGroupCommandOutput,
} from "./commands/ModifyClusterSubnetGroupCommand";
import {
ModifyCustomDomainAssociationCommand,
ModifyCustomDomainAssociationCommandInput,
ModifyCustomDomainAssociationCommandOutput,
} from "./commands/ModifyCustomDomainAssociationCommand";
import {
ModifyEndpointAccessCommand,
ModifyEndpointAccessCommandInput,
Expand Down Expand Up @@ -605,6 +625,7 @@ const commands = {
CreateClusterSecurityGroupCommand,
CreateClusterSnapshotCommand,
CreateClusterSubnetGroupCommand,
CreateCustomDomainAssociationCommand,
CreateEndpointAccessCommand,
CreateEventSubscriptionCommand,
CreateHsmClientCertificateCommand,
Expand All @@ -621,6 +642,7 @@ const commands = {
DeleteClusterSecurityGroupCommand,
DeleteClusterSnapshotCommand,
DeleteClusterSubnetGroupCommand,
DeleteCustomDomainAssociationCommand,
DeleteEndpointAccessCommand,
DeleteEventSubscriptionCommand,
DeleteHsmClientCertificateCommand,
Expand All @@ -642,6 +664,7 @@ const commands = {
DescribeClusterSubnetGroupsCommand,
DescribeClusterTracksCommand,
DescribeClusterVersionsCommand,
DescribeCustomDomainAssociationsCommand,
DescribeDataSharesCommand,
DescribeDataSharesForConsumerCommand,
DescribeDataSharesForProducerCommand,
Expand Down Expand Up @@ -687,6 +710,7 @@ const commands = {
ModifyClusterSnapshotCommand,
ModifyClusterSnapshotScheduleCommand,
ModifyClusterSubnetGroupCommand,
ModifyCustomDomainAssociationCommand,
ModifyEndpointAccessCommand,
ModifyEventSubscriptionCommand,
ModifyScheduledActionCommand,
Expand Down Expand Up @@ -981,6 +1005,23 @@ export interface Redshift {
cb: (err: any, data?: CreateClusterSubnetGroupCommandOutput) => void
): void;

/**
* @see {@link CreateCustomDomainAssociationCommand}
*/
createCustomDomainAssociation(
args: CreateCustomDomainAssociationCommandInput,
options?: __HttpHandlerOptions
): Promise<CreateCustomDomainAssociationCommandOutput>;
createCustomDomainAssociation(
args: CreateCustomDomainAssociationCommandInput,
cb: (err: any, data?: CreateCustomDomainAssociationCommandOutput) => void
): void;
createCustomDomainAssociation(
args: CreateCustomDomainAssociationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: CreateCustomDomainAssociationCommandOutput) => void
): void;

/**
* @see {@link CreateEndpointAccessCommand}
*/
Expand Down Expand Up @@ -1241,6 +1282,23 @@ export interface Redshift {
cb: (err: any, data?: DeleteClusterSubnetGroupCommandOutput) => void
): void;

/**
* @see {@link DeleteCustomDomainAssociationCommand}
*/
deleteCustomDomainAssociation(
args: DeleteCustomDomainAssociationCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteCustomDomainAssociationCommandOutput>;
deleteCustomDomainAssociation(
args: DeleteCustomDomainAssociationCommandInput,
cb: (err: any, data?: DeleteCustomDomainAssociationCommandOutput) => void
): void;
deleteCustomDomainAssociation(
args: DeleteCustomDomainAssociationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteCustomDomainAssociationCommandOutput) => void
): void;

/**
* @see {@link DeleteEndpointAccessCommand}
*/
Expand Down Expand Up @@ -1586,6 +1644,23 @@ export interface Redshift {
cb: (err: any, data?: DescribeClusterVersionsCommandOutput) => void
): void;

/**
* @see {@link DescribeCustomDomainAssociationsCommand}
*/
describeCustomDomainAssociations(
args: DescribeCustomDomainAssociationsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeCustomDomainAssociationsCommandOutput>;
describeCustomDomainAssociations(
args: DescribeCustomDomainAssociationsCommandInput,
cb: (err: any, data?: DescribeCustomDomainAssociationsCommandOutput) => void
): void;
describeCustomDomainAssociations(
args: DescribeCustomDomainAssociationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeCustomDomainAssociationsCommandOutput) => void
): void;

/**
* @see {@link DescribeDataSharesCommand}
*/
Expand Down Expand Up @@ -2321,6 +2396,23 @@ export interface Redshift {
cb: (err: any, data?: ModifyClusterSubnetGroupCommandOutput) => void
): void;

/**
* @see {@link ModifyCustomDomainAssociationCommand}
*/
modifyCustomDomainAssociation(
args: ModifyCustomDomainAssociationCommandInput,
options?: __HttpHandlerOptions
): Promise<ModifyCustomDomainAssociationCommandOutput>;
modifyCustomDomainAssociation(
args: ModifyCustomDomainAssociationCommandInput,
cb: (err: any, data?: ModifyCustomDomainAssociationCommandOutput) => void
): void;
modifyCustomDomainAssociation(
args: ModifyCustomDomainAssociationCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: ModifyCustomDomainAssociationCommandOutput) => void
): void;

/**
* @see {@link ModifyEndpointAccessCommand}
*/
Expand Down
24 changes: 24 additions & 0 deletions clients/client-redshift/src/RedshiftClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ import {
CreateClusterSubnetGroupCommandInput,
CreateClusterSubnetGroupCommandOutput,
} from "./commands/CreateClusterSubnetGroupCommand";
import {
CreateCustomDomainAssociationCommandInput,
CreateCustomDomainAssociationCommandOutput,
} from "./commands/CreateCustomDomainAssociationCommand";
import {
CreateEndpointAccessCommandInput,
CreateEndpointAccessCommandOutput,
Expand Down Expand Up @@ -162,6 +166,10 @@ import {
DeleteClusterSubnetGroupCommandInput,
DeleteClusterSubnetGroupCommandOutput,
} from "./commands/DeleteClusterSubnetGroupCommand";
import {
DeleteCustomDomainAssociationCommandInput,
DeleteCustomDomainAssociationCommandOutput,
} from "./commands/DeleteCustomDomainAssociationCommand";
import {
DeleteEndpointAccessCommandInput,
DeleteEndpointAccessCommandOutput,
Expand Down Expand Up @@ -234,6 +242,10 @@ import {
DescribeClusterVersionsCommandInput,
DescribeClusterVersionsCommandOutput,
} from "./commands/DescribeClusterVersionsCommand";
import {
DescribeCustomDomainAssociationsCommandInput,
DescribeCustomDomainAssociationsCommandOutput,
} from "./commands/DescribeCustomDomainAssociationsCommand";
import { DescribeDataSharesCommandInput, DescribeDataSharesCommandOutput } from "./commands/DescribeDataSharesCommand";
import {
DescribeDataSharesForConsumerCommandInput,
Expand Down Expand Up @@ -384,6 +396,10 @@ import {
ModifyClusterSubnetGroupCommandInput,
ModifyClusterSubnetGroupCommandOutput,
} from "./commands/ModifyClusterSubnetGroupCommand";
import {
ModifyCustomDomainAssociationCommandInput,
ModifyCustomDomainAssociationCommandOutput,
} from "./commands/ModifyCustomDomainAssociationCommand";
import {
ModifyEndpointAccessCommandInput,
ModifyEndpointAccessCommandOutput,
Expand Down Expand Up @@ -477,6 +493,7 @@ export type ServiceInputTypes =
| CreateClusterSecurityGroupCommandInput
| CreateClusterSnapshotCommandInput
| CreateClusterSubnetGroupCommandInput
| CreateCustomDomainAssociationCommandInput
| CreateEndpointAccessCommandInput
| CreateEventSubscriptionCommandInput
| CreateHsmClientCertificateCommandInput
Expand All @@ -493,6 +510,7 @@ export type ServiceInputTypes =
| DeleteClusterSecurityGroupCommandInput
| DeleteClusterSnapshotCommandInput
| DeleteClusterSubnetGroupCommandInput
| DeleteCustomDomainAssociationCommandInput
| DeleteEndpointAccessCommandInput
| DeleteEventSubscriptionCommandInput
| DeleteHsmClientCertificateCommandInput
Expand All @@ -514,6 +532,7 @@ export type ServiceInputTypes =
| DescribeClusterTracksCommandInput
| DescribeClusterVersionsCommandInput
| DescribeClustersCommandInput
| DescribeCustomDomainAssociationsCommandInput
| DescribeDataSharesCommandInput
| DescribeDataSharesForConsumerCommandInput
| DescribeDataSharesForProducerCommandInput
Expand Down Expand Up @@ -559,6 +578,7 @@ export type ServiceInputTypes =
| ModifyClusterSnapshotCommandInput
| ModifyClusterSnapshotScheduleCommandInput
| ModifyClusterSubnetGroupCommandInput
| ModifyCustomDomainAssociationCommandInput
| ModifyEndpointAccessCommandInput
| ModifyEventSubscriptionCommandInput
| ModifyScheduledActionCommandInput
Expand Down Expand Up @@ -601,6 +621,7 @@ export type ServiceOutputTypes =
| CreateClusterSecurityGroupCommandOutput
| CreateClusterSnapshotCommandOutput
| CreateClusterSubnetGroupCommandOutput
| CreateCustomDomainAssociationCommandOutput
| CreateEndpointAccessCommandOutput
| CreateEventSubscriptionCommandOutput
| CreateHsmClientCertificateCommandOutput
Expand All @@ -617,6 +638,7 @@ export type ServiceOutputTypes =
| DeleteClusterSecurityGroupCommandOutput
| DeleteClusterSnapshotCommandOutput
| DeleteClusterSubnetGroupCommandOutput
| DeleteCustomDomainAssociationCommandOutput
| DeleteEndpointAccessCommandOutput
| DeleteEventSubscriptionCommandOutput
| DeleteHsmClientCertificateCommandOutput
Expand All @@ -638,6 +660,7 @@ export type ServiceOutputTypes =
| DescribeClusterTracksCommandOutput
| DescribeClusterVersionsCommandOutput
| DescribeClustersCommandOutput
| DescribeCustomDomainAssociationsCommandOutput
| DescribeDataSharesCommandOutput
| DescribeDataSharesForConsumerCommandOutput
| DescribeDataSharesForProducerCommandOutput
Expand Down Expand Up @@ -683,6 +706,7 @@ export type ServiceOutputTypes =
| ModifyClusterSnapshotCommandOutput
| ModifyClusterSnapshotScheduleCommandOutput
| ModifyClusterSubnetGroupCommandOutput
| ModifyCustomDomainAssociationCommandOutput
| ModifyEndpointAccessCommandOutput
| ModifyEventSubscriptionCommandOutput
| ModifyScheduledActionCommandOutput
Expand Down
3 changes: 3 additions & 0 deletions clients/client-redshift/src/commands/CreateClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,9 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
* // TargetReservedNodeType: "STRING_VALUE",
* // TargetReservedNodeCount: Number("int"),
* // },
* // CustomDomainName: "STRING_VALUE",
* // CustomDomainCertificateArn: "STRING_VALUE",
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // },
* // };
*
Expand Down
Loading

0 comments on commit 10d157f

Please sign in to comment.