Skip to content

Commit f0791f1

Browse files
author
awstools
committed
feat(client-redshift): Add Redshift APIs GetResourcePolicy, DeleteResourcePolicy, 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.
1 parent 10014a8 commit f0791f1

File tree

14 files changed

+2181
-53
lines changed

14 files changed

+2181
-53
lines changed

clients/client-redshift/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,14 @@ DeletePartner
543543

544544
[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)
545545

546+
</details>
547+
<details>
548+
<summary>
549+
DeleteResourcePolicy
550+
</summary>
551+
552+
[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)
553+
546554
</details>
547555
<details>
548556
<summary>
@@ -767,6 +775,14 @@ DescribeHsmConfigurations
767775

768776
[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)
769777

778+
</details>
779+
<details>
780+
<summary>
781+
DescribeInboundIntegrations
782+
</summary>
783+
784+
[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)
785+
770786
</details>
771787
<details>
772788
<summary>
@@ -959,6 +975,14 @@ GetReservedNodeExchangeOfferings
959975

960976
[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)
961977

978+
</details>
979+
<details>
980+
<summary>
981+
GetResourcePolicy
982+
</summary>
983+
984+
[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)
985+
962986
</details>
963987
<details>
964988
<summary>
@@ -1111,6 +1135,14 @@ PurchaseReservedNodeOffering
11111135

11121136
[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)
11131137

1138+
</details>
1139+
<details>
1140+
<summary>
1141+
PutResourcePolicy
1142+
</summary>
1143+
1144+
[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)
1145+
11141146
</details>
11151147
<details>
11161148
<summary>

clients/client-redshift/src/Redshift.ts

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,11 @@ import {
194194
DeletePartnerCommandInput,
195195
DeletePartnerCommandOutput,
196196
} from "./commands/DeletePartnerCommand";
197+
import {
198+
DeleteResourcePolicyCommand,
199+
DeleteResourcePolicyCommandInput,
200+
DeleteResourcePolicyCommandOutput,
201+
} from "./commands/DeleteResourcePolicyCommand";
197202
import {
198203
DeleteScheduledActionCommand,
199204
DeleteScheduledActionCommandInput,
@@ -330,6 +335,11 @@ import {
330335
DescribeHsmConfigurationsCommandInput,
331336
DescribeHsmConfigurationsCommandOutput,
332337
} from "./commands/DescribeHsmConfigurationsCommand";
338+
import {
339+
DescribeInboundIntegrationsCommand,
340+
DescribeInboundIntegrationsCommandInput,
341+
DescribeInboundIntegrationsCommandOutput,
342+
} from "./commands/DescribeInboundIntegrationsCommand";
333343
import {
334344
DescribeLoggingStatusCommand,
335345
DescribeLoggingStatusCommandInput,
@@ -450,6 +460,11 @@ import {
450460
GetReservedNodeExchangeOfferingsCommandInput,
451461
GetReservedNodeExchangeOfferingsCommandOutput,
452462
} from "./commands/GetReservedNodeExchangeOfferingsCommand";
463+
import {
464+
GetResourcePolicyCommand,
465+
GetResourcePolicyCommandInput,
466+
GetResourcePolicyCommandOutput,
467+
} from "./commands/GetResourcePolicyCommand";
453468
import {
454469
ModifyAquaConfigurationCommand,
455470
ModifyAquaConfigurationCommandInput,
@@ -545,6 +560,11 @@ import {
545560
PurchaseReservedNodeOfferingCommandInput,
546561
PurchaseReservedNodeOfferingCommandOutput,
547562
} from "./commands/PurchaseReservedNodeOfferingCommand";
563+
import {
564+
PutResourcePolicyCommand,
565+
PutResourcePolicyCommandInput,
566+
PutResourcePolicyCommandOutput,
567+
} from "./commands/PutResourcePolicyCommand";
548568
import {
549569
RebootClusterCommand,
550570
RebootClusterCommandInput,
@@ -648,6 +668,7 @@ const commands = {
648668
DeleteHsmClientCertificateCommand,
649669
DeleteHsmConfigurationCommand,
650670
DeletePartnerCommand,
671+
DeleteResourcePolicyCommand,
651672
DeleteScheduledActionCommand,
652673
DeleteSnapshotCopyGrantCommand,
653674
DeleteSnapshotScheduleCommand,
@@ -676,6 +697,7 @@ const commands = {
676697
DescribeEventSubscriptionsCommand,
677698
DescribeHsmClientCertificatesCommand,
678699
DescribeHsmConfigurationsCommand,
700+
DescribeInboundIntegrationsCommand,
679701
DescribeLoggingStatusCommand,
680702
DescribeNodeConfigurationOptionsCommand,
681703
DescribeOrderableClusterOptionsCommand,
@@ -700,6 +722,7 @@ const commands = {
700722
GetClusterCredentialsWithIAMCommand,
701723
GetReservedNodeExchangeConfigurationOptionsCommand,
702724
GetReservedNodeExchangeOfferingsCommand,
725+
GetResourcePolicyCommand,
703726
ModifyAquaConfigurationCommand,
704727
ModifyAuthenticationProfileCommand,
705728
ModifyClusterCommand,
@@ -719,6 +742,7 @@ const commands = {
719742
ModifyUsageLimitCommand,
720743
PauseClusterCommand,
721744
PurchaseReservedNodeOfferingCommand,
745+
PutResourcePolicyCommand,
722746
RebootClusterCommand,
723747
RejectDataShareCommand,
724748
ResetClusterParameterGroupCommand,
@@ -1378,6 +1402,23 @@ export interface Redshift {
13781402
cb: (err: any, data?: DeletePartnerCommandOutput) => void
13791403
): void;
13801404

1405+
/**
1406+
* @see {@link DeleteResourcePolicyCommand}
1407+
*/
1408+
deleteResourcePolicy(
1409+
args: DeleteResourcePolicyCommandInput,
1410+
options?: __HttpHandlerOptions
1411+
): Promise<DeleteResourcePolicyCommandOutput>;
1412+
deleteResourcePolicy(
1413+
args: DeleteResourcePolicyCommandInput,
1414+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
1415+
): void;
1416+
deleteResourcePolicy(
1417+
args: DeleteResourcePolicyCommandInput,
1418+
options: __HttpHandlerOptions,
1419+
cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void
1420+
): void;
1421+
13811422
/**
13821423
* @see {@link DeleteScheduledActionCommand}
13831424
*/
@@ -1845,6 +1886,23 @@ export interface Redshift {
18451886
cb: (err: any, data?: DescribeHsmConfigurationsCommandOutput) => void
18461887
): void;
18471888

1889+
/**
1890+
* @see {@link DescribeInboundIntegrationsCommand}
1891+
*/
1892+
describeInboundIntegrations(
1893+
args: DescribeInboundIntegrationsCommandInput,
1894+
options?: __HttpHandlerOptions
1895+
): Promise<DescribeInboundIntegrationsCommandOutput>;
1896+
describeInboundIntegrations(
1897+
args: DescribeInboundIntegrationsCommandInput,
1898+
cb: (err: any, data?: DescribeInboundIntegrationsCommandOutput) => void
1899+
): void;
1900+
describeInboundIntegrations(
1901+
args: DescribeInboundIntegrationsCommandInput,
1902+
options: __HttpHandlerOptions,
1903+
cb: (err: any, data?: DescribeInboundIntegrationsCommandOutput) => void
1904+
): void;
1905+
18481906
/**
18491907
* @see {@link DescribeLoggingStatusCommand}
18501908
*/
@@ -2232,6 +2290,23 @@ export interface Redshift {
22322290
cb: (err: any, data?: GetReservedNodeExchangeOfferingsCommandOutput) => void
22332291
): void;
22342292

2293+
/**
2294+
* @see {@link GetResourcePolicyCommand}
2295+
*/
2296+
getResourcePolicy(
2297+
args: GetResourcePolicyCommandInput,
2298+
options?: __HttpHandlerOptions
2299+
): Promise<GetResourcePolicyCommandOutput>;
2300+
getResourcePolicy(
2301+
args: GetResourcePolicyCommandInput,
2302+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
2303+
): void;
2304+
getResourcePolicy(
2305+
args: GetResourcePolicyCommandInput,
2306+
options: __HttpHandlerOptions,
2307+
cb: (err: any, data?: GetResourcePolicyCommandOutput) => void
2308+
): void;
2309+
22352310
/**
22362311
* @see {@link ModifyAquaConfigurationCommand}
22372312
*/
@@ -2543,6 +2618,23 @@ export interface Redshift {
25432618
cb: (err: any, data?: PurchaseReservedNodeOfferingCommandOutput) => void
25442619
): void;
25452620

2621+
/**
2622+
* @see {@link PutResourcePolicyCommand}
2623+
*/
2624+
putResourcePolicy(
2625+
args: PutResourcePolicyCommandInput,
2626+
options?: __HttpHandlerOptions
2627+
): Promise<PutResourcePolicyCommandOutput>;
2628+
putResourcePolicy(
2629+
args: PutResourcePolicyCommandInput,
2630+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
2631+
): void;
2632+
putResourcePolicy(
2633+
args: PutResourcePolicyCommandInput,
2634+
options: __HttpHandlerOptions,
2635+
cb: (err: any, data?: PutResourcePolicyCommandOutput) => void
2636+
): void;
2637+
25462638
/**
25472639
* @see {@link RebootClusterCommand}
25482640
*/

clients/client-redshift/src/RedshiftClient.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,10 @@ import {
186186
DeleteHsmConfigurationCommandOutput,
187187
} from "./commands/DeleteHsmConfigurationCommand";
188188
import { DeletePartnerCommandInput, DeletePartnerCommandOutput } from "./commands/DeletePartnerCommand";
189+
import {
190+
DeleteResourcePolicyCommandInput,
191+
DeleteResourcePolicyCommandOutput,
192+
} from "./commands/DeleteResourcePolicyCommand";
189193
import {
190194
DeleteScheduledActionCommandInput,
191195
DeleteScheduledActionCommandOutput,
@@ -283,6 +287,10 @@ import {
283287
DescribeHsmConfigurationsCommandInput,
284288
DescribeHsmConfigurationsCommandOutput,
285289
} from "./commands/DescribeHsmConfigurationsCommand";
290+
import {
291+
DescribeInboundIntegrationsCommandInput,
292+
DescribeInboundIntegrationsCommandOutput,
293+
} from "./commands/DescribeInboundIntegrationsCommand";
286294
import {
287295
DescribeLoggingStatusCommandInput,
288296
DescribeLoggingStatusCommandOutput,
@@ -358,6 +366,7 @@ import {
358366
GetReservedNodeExchangeOfferingsCommandInput,
359367
GetReservedNodeExchangeOfferingsCommandOutput,
360368
} from "./commands/GetReservedNodeExchangeOfferingsCommand";
369+
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
361370
import {
362371
ModifyAquaConfigurationCommandInput,
363372
ModifyAquaConfigurationCommandOutput,
@@ -425,6 +434,7 @@ import {
425434
PurchaseReservedNodeOfferingCommandInput,
426435
PurchaseReservedNodeOfferingCommandOutput,
427436
} from "./commands/PurchaseReservedNodeOfferingCommand";
437+
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
428438
import { RebootClusterCommandInput, RebootClusterCommandOutput } from "./commands/RebootClusterCommand";
429439
import { RejectDataShareCommandInput, RejectDataShareCommandOutput } from "./commands/RejectDataShareCommand";
430440
import {
@@ -516,6 +526,7 @@ export type ServiceInputTypes =
516526
| DeleteHsmClientCertificateCommandInput
517527
| DeleteHsmConfigurationCommandInput
518528
| DeletePartnerCommandInput
529+
| DeleteResourcePolicyCommandInput
519530
| DeleteScheduledActionCommandInput
520531
| DeleteSnapshotCopyGrantCommandInput
521532
| DeleteSnapshotScheduleCommandInput
@@ -544,6 +555,7 @@ export type ServiceInputTypes =
544555
| DescribeEventsCommandInput
545556
| DescribeHsmClientCertificatesCommandInput
546557
| DescribeHsmConfigurationsCommandInput
558+
| DescribeInboundIntegrationsCommandInput
547559
| DescribeLoggingStatusCommandInput
548560
| DescribeNodeConfigurationOptionsCommandInput
549561
| DescribeOrderableClusterOptionsCommandInput
@@ -568,6 +580,7 @@ export type ServiceInputTypes =
568580
| GetClusterCredentialsWithIAMCommandInput
569581
| GetReservedNodeExchangeConfigurationOptionsCommandInput
570582
| GetReservedNodeExchangeOfferingsCommandInput
583+
| GetResourcePolicyCommandInput
571584
| ModifyAquaConfigurationCommandInput
572585
| ModifyAuthenticationProfileCommandInput
573586
| ModifyClusterCommandInput
@@ -587,6 +600,7 @@ export type ServiceInputTypes =
587600
| ModifyUsageLimitCommandInput
588601
| PauseClusterCommandInput
589602
| PurchaseReservedNodeOfferingCommandInput
603+
| PutResourcePolicyCommandInput
590604
| RebootClusterCommandInput
591605
| RejectDataShareCommandInput
592606
| ResetClusterParameterGroupCommandInput
@@ -644,6 +658,7 @@ export type ServiceOutputTypes =
644658
| DeleteHsmClientCertificateCommandOutput
645659
| DeleteHsmConfigurationCommandOutput
646660
| DeletePartnerCommandOutput
661+
| DeleteResourcePolicyCommandOutput
647662
| DeleteScheduledActionCommandOutput
648663
| DeleteSnapshotCopyGrantCommandOutput
649664
| DeleteSnapshotScheduleCommandOutput
@@ -672,6 +687,7 @@ export type ServiceOutputTypes =
672687
| DescribeEventsCommandOutput
673688
| DescribeHsmClientCertificatesCommandOutput
674689
| DescribeHsmConfigurationsCommandOutput
690+
| DescribeInboundIntegrationsCommandOutput
675691
| DescribeLoggingStatusCommandOutput
676692
| DescribeNodeConfigurationOptionsCommandOutput
677693
| DescribeOrderableClusterOptionsCommandOutput
@@ -696,6 +712,7 @@ export type ServiceOutputTypes =
696712
| GetClusterCredentialsWithIAMCommandOutput
697713
| GetReservedNodeExchangeConfigurationOptionsCommandOutput
698714
| GetReservedNodeExchangeOfferingsCommandOutput
715+
| GetResourcePolicyCommandOutput
699716
| ModifyAquaConfigurationCommandOutput
700717
| ModifyAuthenticationProfileCommandOutput
701718
| ModifyClusterCommandOutput
@@ -715,6 +732,7 @@ export type ServiceOutputTypes =
715732
| ModifyUsageLimitCommandOutput
716733
| PauseClusterCommandOutput
717734
| PurchaseReservedNodeOfferingCommandOutput
735+
| PutResourcePolicyCommandOutput
718736
| RebootClusterCommandOutput
719737
| RejectDataShareCommandOutput
720738
| ResetClusterParameterGroupCommandOutput

0 commit comments

Comments
 (0)