Skip to content

Commit

Permalink
feat(client-redshift): Add Redshift APIs GetResourcePolicy, DeleteRes…
Browse files Browse the repository at this point in the history
…ourcePolicy, PutResourcePolicy and DescribeInboundIntegrations for the new Amazon Redshift Zero-ETL integration feature, which can be used to control data ingress into Redshift namespace, and view inbound integrations.
  • Loading branch information
awstools committed Oct 26, 2023
1 parent 10014a8 commit f0791f1
Show file tree
Hide file tree
Showing 14 changed files with 2,181 additions and 53 deletions.
32 changes: 32 additions & 0 deletions clients/client-redshift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,14 @@ DeletePartner

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

</details>
<details>
<summary>
DeleteResourcePolicy
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -767,6 +775,14 @@ DescribeHsmConfigurations

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

</details>
<details>
<summary>
DescribeInboundIntegrations
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -959,6 +975,14 @@ GetReservedNodeExchangeOfferings

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

</details>
<details>
<summary>
GetResourcePolicy
</summary>

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

</details>
<details>
<summary>
Expand Down Expand Up @@ -1111,6 +1135,14 @@ PurchaseReservedNodeOffering

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

</details>
<details>
<summary>
PutResourcePolicy
</summary>

[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/classes/putresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/putresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-redshift/interfaces/putresourcepolicycommandoutput.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 @@ -194,6 +194,11 @@ import {
DeletePartnerCommandInput,
DeletePartnerCommandOutput,
} from "./commands/DeletePartnerCommand";
import {
DeleteResourcePolicyCommand,
DeleteResourcePolicyCommandInput,
DeleteResourcePolicyCommandOutput,
} from "./commands/DeleteResourcePolicyCommand";
import {
DeleteScheduledActionCommand,
DeleteScheduledActionCommandInput,
Expand Down Expand Up @@ -330,6 +335,11 @@ import {
DescribeHsmConfigurationsCommandInput,
DescribeHsmConfigurationsCommandOutput,
} from "./commands/DescribeHsmConfigurationsCommand";
import {
DescribeInboundIntegrationsCommand,
DescribeInboundIntegrationsCommandInput,
DescribeInboundIntegrationsCommandOutput,
} from "./commands/DescribeInboundIntegrationsCommand";
import {
DescribeLoggingStatusCommand,
DescribeLoggingStatusCommandInput,
Expand Down Expand Up @@ -450,6 +460,11 @@ import {
GetReservedNodeExchangeOfferingsCommandInput,
GetReservedNodeExchangeOfferingsCommandOutput,
} from "./commands/GetReservedNodeExchangeOfferingsCommand";
import {
GetResourcePolicyCommand,
GetResourcePolicyCommandInput,
GetResourcePolicyCommandOutput,
} from "./commands/GetResourcePolicyCommand";
import {
ModifyAquaConfigurationCommand,
ModifyAquaConfigurationCommandInput,
Expand Down Expand Up @@ -545,6 +560,11 @@ import {
PurchaseReservedNodeOfferingCommandInput,
PurchaseReservedNodeOfferingCommandOutput,
} from "./commands/PurchaseReservedNodeOfferingCommand";
import {
PutResourcePolicyCommand,
PutResourcePolicyCommandInput,
PutResourcePolicyCommandOutput,
} from "./commands/PutResourcePolicyCommand";
import {
RebootClusterCommand,
RebootClusterCommandInput,
Expand Down Expand Up @@ -648,6 +668,7 @@ const commands = {
DeleteHsmClientCertificateCommand,
DeleteHsmConfigurationCommand,
DeletePartnerCommand,
DeleteResourcePolicyCommand,
DeleteScheduledActionCommand,
DeleteSnapshotCopyGrantCommand,
DeleteSnapshotScheduleCommand,
Expand Down Expand Up @@ -676,6 +697,7 @@ const commands = {
DescribeEventSubscriptionsCommand,
DescribeHsmClientCertificatesCommand,
DescribeHsmConfigurationsCommand,
DescribeInboundIntegrationsCommand,
DescribeLoggingStatusCommand,
DescribeNodeConfigurationOptionsCommand,
DescribeOrderableClusterOptionsCommand,
Expand All @@ -700,6 +722,7 @@ const commands = {
GetClusterCredentialsWithIAMCommand,
GetReservedNodeExchangeConfigurationOptionsCommand,
GetReservedNodeExchangeOfferingsCommand,
GetResourcePolicyCommand,
ModifyAquaConfigurationCommand,
ModifyAuthenticationProfileCommand,
ModifyClusterCommand,
Expand All @@ -719,6 +742,7 @@ const commands = {
ModifyUsageLimitCommand,
PauseClusterCommand,
PurchaseReservedNodeOfferingCommand,
PutResourcePolicyCommand,
RebootClusterCommand,
RejectDataShareCommand,
ResetClusterParameterGroupCommand,
Expand Down Expand Up @@ -1378,6 +1402,23 @@ export interface Redshift {
cb: (err: any, data?: DeletePartnerCommandOutput) => void
): void;

/**
* @see {@link DeleteResourcePolicyCommand}
*/
deleteResourcePolicy(
args: DeleteResourcePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<DeleteResourcePolicyCommandOutput>;
deleteResourcePolicy(
args: DeleteResourcePolicyCommandInput,
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
): void;
deleteResourcePolicy(
args: DeleteResourcePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
): void;

/**
* @see {@link DeleteScheduledActionCommand}
*/
Expand Down Expand Up @@ -1845,6 +1886,23 @@ export interface Redshift {
cb: (err: any, data?: DescribeHsmConfigurationsCommandOutput) => void
): void;

/**
* @see {@link DescribeInboundIntegrationsCommand}
*/
describeInboundIntegrations(
args: DescribeInboundIntegrationsCommandInput,
options?: __HttpHandlerOptions
): Promise<DescribeInboundIntegrationsCommandOutput>;
describeInboundIntegrations(
args: DescribeInboundIntegrationsCommandInput,
cb: (err: any, data?: DescribeInboundIntegrationsCommandOutput) => void
): void;
describeInboundIntegrations(
args: DescribeInboundIntegrationsCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: DescribeInboundIntegrationsCommandOutput) => void
): void;

/**
* @see {@link DescribeLoggingStatusCommand}
*/
Expand Down Expand Up @@ -2232,6 +2290,23 @@ export interface Redshift {
cb: (err: any, data?: GetReservedNodeExchangeOfferingsCommandOutput) => void
): void;

/**
* @see {@link GetResourcePolicyCommand}
*/
getResourcePolicy(
args: GetResourcePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<GetResourcePolicyCommandOutput>;
getResourcePolicy(
args: GetResourcePolicyCommandInput,
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
): void;
getResourcePolicy(
args: GetResourcePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
): void;

/**
* @see {@link ModifyAquaConfigurationCommand}
*/
Expand Down Expand Up @@ -2543,6 +2618,23 @@ export interface Redshift {
cb: (err: any, data?: PurchaseReservedNodeOfferingCommandOutput) => void
): void;

/**
* @see {@link PutResourcePolicyCommand}
*/
putResourcePolicy(
args: PutResourcePolicyCommandInput,
options?: __HttpHandlerOptions
): Promise<PutResourcePolicyCommandOutput>;
putResourcePolicy(
args: PutResourcePolicyCommandInput,
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
): void;
putResourcePolicy(
args: PutResourcePolicyCommandInput,
options: __HttpHandlerOptions,
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
): void;

/**
* @see {@link RebootClusterCommand}
*/
Expand Down
18 changes: 18 additions & 0 deletions clients/client-redshift/src/RedshiftClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ import {
DeleteHsmConfigurationCommandOutput,
} from "./commands/DeleteHsmConfigurationCommand";
import { DeletePartnerCommandInput, DeletePartnerCommandOutput } from "./commands/DeletePartnerCommand";
import {
DeleteResourcePolicyCommandInput,
DeleteResourcePolicyCommandOutput,
} from "./commands/DeleteResourcePolicyCommand";
import {
DeleteScheduledActionCommandInput,
DeleteScheduledActionCommandOutput,
Expand Down Expand Up @@ -283,6 +287,10 @@ import {
DescribeHsmConfigurationsCommandInput,
DescribeHsmConfigurationsCommandOutput,
} from "./commands/DescribeHsmConfigurationsCommand";
import {
DescribeInboundIntegrationsCommandInput,
DescribeInboundIntegrationsCommandOutput,
} from "./commands/DescribeInboundIntegrationsCommand";
import {
DescribeLoggingStatusCommandInput,
DescribeLoggingStatusCommandOutput,
Expand Down Expand Up @@ -358,6 +366,7 @@ import {
GetReservedNodeExchangeOfferingsCommandInput,
GetReservedNodeExchangeOfferingsCommandOutput,
} from "./commands/GetReservedNodeExchangeOfferingsCommand";
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
import {
ModifyAquaConfigurationCommandInput,
ModifyAquaConfigurationCommandOutput,
Expand Down Expand Up @@ -425,6 +434,7 @@ import {
PurchaseReservedNodeOfferingCommandInput,
PurchaseReservedNodeOfferingCommandOutput,
} from "./commands/PurchaseReservedNodeOfferingCommand";
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
import { RebootClusterCommandInput, RebootClusterCommandOutput } from "./commands/RebootClusterCommand";
import { RejectDataShareCommandInput, RejectDataShareCommandOutput } from "./commands/RejectDataShareCommand";
import {
Expand Down Expand Up @@ -516,6 +526,7 @@ export type ServiceInputTypes =
| DeleteHsmClientCertificateCommandInput
| DeleteHsmConfigurationCommandInput
| DeletePartnerCommandInput
| DeleteResourcePolicyCommandInput
| DeleteScheduledActionCommandInput
| DeleteSnapshotCopyGrantCommandInput
| DeleteSnapshotScheduleCommandInput
Expand Down Expand Up @@ -544,6 +555,7 @@ export type ServiceInputTypes =
| DescribeEventsCommandInput
| DescribeHsmClientCertificatesCommandInput
| DescribeHsmConfigurationsCommandInput
| DescribeInboundIntegrationsCommandInput
| DescribeLoggingStatusCommandInput
| DescribeNodeConfigurationOptionsCommandInput
| DescribeOrderableClusterOptionsCommandInput
Expand All @@ -568,6 +580,7 @@ export type ServiceInputTypes =
| GetClusterCredentialsWithIAMCommandInput
| GetReservedNodeExchangeConfigurationOptionsCommandInput
| GetReservedNodeExchangeOfferingsCommandInput
| GetResourcePolicyCommandInput
| ModifyAquaConfigurationCommandInput
| ModifyAuthenticationProfileCommandInput
| ModifyClusterCommandInput
Expand All @@ -587,6 +600,7 @@ export type ServiceInputTypes =
| ModifyUsageLimitCommandInput
| PauseClusterCommandInput
| PurchaseReservedNodeOfferingCommandInput
| PutResourcePolicyCommandInput
| RebootClusterCommandInput
| RejectDataShareCommandInput
| ResetClusterParameterGroupCommandInput
Expand Down Expand Up @@ -644,6 +658,7 @@ export type ServiceOutputTypes =
| DeleteHsmClientCertificateCommandOutput
| DeleteHsmConfigurationCommandOutput
| DeletePartnerCommandOutput
| DeleteResourcePolicyCommandOutput
| DeleteScheduledActionCommandOutput
| DeleteSnapshotCopyGrantCommandOutput
| DeleteSnapshotScheduleCommandOutput
Expand Down Expand Up @@ -672,6 +687,7 @@ export type ServiceOutputTypes =
| DescribeEventsCommandOutput
| DescribeHsmClientCertificatesCommandOutput
| DescribeHsmConfigurationsCommandOutput
| DescribeInboundIntegrationsCommandOutput
| DescribeLoggingStatusCommandOutput
| DescribeNodeConfigurationOptionsCommandOutput
| DescribeOrderableClusterOptionsCommandOutput
Expand All @@ -696,6 +712,7 @@ export type ServiceOutputTypes =
| GetClusterCredentialsWithIAMCommandOutput
| GetReservedNodeExchangeConfigurationOptionsCommandOutput
| GetReservedNodeExchangeOfferingsCommandOutput
| GetResourcePolicyCommandOutput
| ModifyAquaConfigurationCommandOutput
| ModifyAuthenticationProfileCommandOutput
| ModifyClusterCommandOutput
Expand All @@ -715,6 +732,7 @@ export type ServiceOutputTypes =
| ModifyUsageLimitCommandOutput
| PauseClusterCommandOutput
| PurchaseReservedNodeOfferingCommandOutput
| PutResourcePolicyCommandOutput
| RebootClusterCommandOutput
| RejectDataShareCommandOutput
| ResetClusterParameterGroupCommandOutput
Expand Down
Loading

0 comments on commit f0791f1

Please sign in to comment.