@aws-sdk/client-redshift 3.437.0 → 3.441.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 (72) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/Redshift.js +2 -0
  3. package/dist-cjs/commands/FailoverPrimaryComputeCommand.js +52 -0
  4. package/dist-cjs/commands/index.js +1 -0
  5. package/dist-cjs/endpoint/endpointResolver.js +1 -1
  6. package/dist-cjs/index.js +1 -0
  7. package/dist-cjs/models/models_0.js +15 -2
  8. package/dist-cjs/models/models_1.js +6 -1
  9. package/dist-cjs/protocols/Aws_query.js +211 -5
  10. package/dist-es/Redshift.js +2 -0
  11. package/dist-es/commands/FailoverPrimaryComputeCommand.js +48 -0
  12. package/dist-es/commands/index.js +1 -0
  13. package/dist-es/endpoint/endpointResolver.js +1 -1
  14. package/dist-es/index.js +1 -0
  15. package/dist-es/models/models_0.js +12 -0
  16. package/dist-es/models/models_1.js +4 -0
  17. package/dist-es/protocols/Aws_query.js +205 -1
  18. package/dist-types/Redshift.d.ts +7 -0
  19. package/dist-types/RedshiftClient.d.ts +3 -2
  20. package/dist-types/commands/AddPartnerCommand.d.ts +3 -0
  21. package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +4 -0
  22. package/dist-types/commands/CreateClusterCommand.d.ts +22 -0
  23. package/dist-types/commands/CreateClusterSubnetGroupCommand.d.ts +3 -0
  24. package/dist-types/commands/CreateEndpointAccessCommand.d.ts +1 -0
  25. package/dist-types/commands/CreateScheduledActionCommand.d.ts +7 -0
  26. package/dist-types/commands/DeleteClusterCommand.d.ts +13 -0
  27. package/dist-types/commands/DeleteEndpointAccessCommand.d.ts +1 -0
  28. package/dist-types/commands/DeletePartnerCommand.d.ts +3 -0
  29. package/dist-types/commands/DescribeClusterSubnetGroupsCommand.d.ts +3 -0
  30. package/dist-types/commands/DescribeClustersCommand.d.ts +13 -0
  31. package/dist-types/commands/DescribeEndpointAccessCommand.d.ts +1 -0
  32. package/dist-types/commands/DescribeEndpointAuthorizationCommand.d.ts +2 -1
  33. package/dist-types/commands/DescribeEventCategoriesCommand.d.ts +1 -2
  34. package/dist-types/commands/DescribeLoggingStatusCommand.d.ts +3 -0
  35. package/dist-types/commands/DescribePartnersCommand.d.ts +3 -0
  36. package/dist-types/commands/DescribeResizeCommand.d.ts +3 -0
  37. package/dist-types/commands/DisableLoggingCommand.d.ts +3 -0
  38. package/dist-types/commands/DisableSnapshotCopyCommand.d.ts +16 -0
  39. package/dist-types/commands/EnableLoggingCommand.d.ts +3 -0
  40. package/dist-types/commands/EnableSnapshotCopyCommand.d.ts +13 -0
  41. package/dist-types/commands/FailoverPrimaryComputeCommand.d.ts +274 -0
  42. package/dist-types/commands/ModifyClusterCommand.d.ts +19 -0
  43. package/dist-types/commands/ModifyClusterDbRevisionCommand.d.ts +16 -0
  44. package/dist-types/commands/ModifyClusterIamRolesCommand.d.ts +13 -0
  45. package/dist-types/commands/ModifyClusterMaintenanceCommand.d.ts +13 -0
  46. package/dist-types/commands/ModifyClusterSubnetGroupCommand.d.ts +3 -0
  47. package/dist-types/commands/ModifyEndpointAccessCommand.d.ts +1 -0
  48. package/dist-types/commands/ModifyScheduledActionCommand.d.ts +7 -0
  49. package/dist-types/commands/ModifySnapshotCopyRetentionPeriodCommand.d.ts +13 -0
  50. package/dist-types/commands/PauseClusterCommand.d.ts +16 -0
  51. package/dist-types/commands/RebootClusterCommand.d.ts +13 -0
  52. package/dist-types/commands/ResizeClusterCommand.d.ts +13 -0
  53. package/dist-types/commands/RestoreFromClusterSnapshotCommand.d.ts +19 -0
  54. package/dist-types/commands/ResumeClusterCommand.d.ts +16 -0
  55. package/dist-types/commands/RotateEncryptionKeyCommand.d.ts +16 -0
  56. package/dist-types/commands/UpdatePartnerStatusCommand.d.ts +3 -0
  57. package/dist-types/commands/index.d.ts +1 -0
  58. package/dist-types/index.d.ts +1 -0
  59. package/dist-types/models/models_0.d.ts +64 -31
  60. package/dist-types/models/models_1.d.ts +76 -1
  61. package/dist-types/protocols/Aws_query.d.ts +9 -0
  62. package/dist-types/ts3.4/Redshift.d.ts +17 -0
  63. package/dist-types/ts3.4/RedshiftClient.d.ts +6 -0
  64. package/dist-types/ts3.4/commands/DescribeEndpointAuthorizationCommand.d.ts +2 -4
  65. package/dist-types/ts3.4/commands/DescribeEventCategoriesCommand.d.ts +4 -2
  66. package/dist-types/ts3.4/commands/FailoverPrimaryComputeCommand.d.ts +42 -0
  67. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  68. package/dist-types/ts3.4/index.d.ts +1 -0
  69. package/dist-types/ts3.4/models/models_0.d.ts +18 -7
  70. package/dist-types/ts3.4/models/models_1.d.ts +21 -0
  71. package/dist-types/ts3.4/protocols/Aws_query.d.ts +12 -0
  72. package/package.json +7 -6
@@ -405,6 +405,10 @@ import {
405
405
  EnableSnapshotCopyCommandInput,
406
406
  EnableSnapshotCopyCommandOutput,
407
407
  } from "./commands/EnableSnapshotCopyCommand";
408
+ import {
409
+ FailoverPrimaryComputeCommandInput,
410
+ FailoverPrimaryComputeCommandOutput,
411
+ } from "./commands/FailoverPrimaryComputeCommand";
408
412
  import {
409
413
  GetClusterCredentialsCommandInput,
410
414
  GetClusterCredentialsCommandOutput,
@@ -651,6 +655,7 @@ export type ServiceInputTypes =
651
655
  | DisassociateDataShareConsumerCommandInput
652
656
  | EnableLoggingCommandInput
653
657
  | EnableSnapshotCopyCommandInput
658
+ | FailoverPrimaryComputeCommandInput
654
659
  | GetClusterCredentialsCommandInput
655
660
  | GetClusterCredentialsWithIAMCommandInput
656
661
  | GetReservedNodeExchangeConfigurationOptionsCommandInput
@@ -779,6 +784,7 @@ export type ServiceOutputTypes =
779
784
  | DisassociateDataShareConsumerCommandOutput
780
785
  | EnableLoggingCommandOutput
781
786
  | EnableSnapshotCopyCommandOutput
787
+ | FailoverPrimaryComputeCommandOutput
782
788
  | GetClusterCredentialsCommandOutput
783
789
  | GetClusterCredentialsWithIAMCommandOutput
784
790
  | GetReservedNodeExchangeConfigurationOptionsCommandOutput
@@ -6,10 +6,8 @@ import {
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
8
  } from "@smithy/types";
9
- import {
10
- DescribeEndpointAuthorizationMessage,
11
- EndpointAuthorizationList,
12
- } from "../models/models_0";
9
+ import { DescribeEndpointAuthorizationMessage } from "../models/models_0";
10
+ import { EndpointAuthorizationList } from "../models/models_1";
13
11
  import {
14
12
  RedshiftClientResolvedConfig,
15
13
  ServiceInputTypes,
@@ -6,8 +6,10 @@ import {
6
6
  MetadataBearer as __MetadataBearer,
7
7
  MiddlewareStack,
8
8
  } from "@smithy/types";
9
- import { DescribeEventCategoriesMessage } from "../models/models_0";
10
- import { EventCategoriesMessage } from "../models/models_1";
9
+ import {
10
+ DescribeEventCategoriesMessage,
11
+ EventCategoriesMessage,
12
+ } from "../models/models_1";
11
13
  import {
12
14
  RedshiftClientResolvedConfig,
13
15
  ServiceInputTypes,
@@ -0,0 +1,42 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import {
4
+ Handler,
5
+ HttpHandlerOptions as __HttpHandlerOptions,
6
+ MetadataBearer as __MetadataBearer,
7
+ MiddlewareStack,
8
+ } from "@smithy/types";
9
+ import {
10
+ FailoverPrimaryComputeInputMessage,
11
+ FailoverPrimaryComputeResult,
12
+ } from "../models/models_1";
13
+ import {
14
+ RedshiftClientResolvedConfig,
15
+ ServiceInputTypes,
16
+ ServiceOutputTypes,
17
+ } from "../RedshiftClient";
18
+ export { __MetadataBearer, $Command };
19
+ export interface FailoverPrimaryComputeCommandInput
20
+ extends FailoverPrimaryComputeInputMessage {}
21
+ export interface FailoverPrimaryComputeCommandOutput
22
+ extends FailoverPrimaryComputeResult,
23
+ __MetadataBearer {}
24
+ export declare class FailoverPrimaryComputeCommand extends $Command<
25
+ FailoverPrimaryComputeCommandInput,
26
+ FailoverPrimaryComputeCommandOutput,
27
+ RedshiftClientResolvedConfig
28
+ > {
29
+ readonly input: FailoverPrimaryComputeCommandInput;
30
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
31
+ constructor(input: FailoverPrimaryComputeCommandInput);
32
+ resolveMiddleware(
33
+ clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
34
+ configuration: RedshiftClientResolvedConfig,
35
+ options?: __HttpHandlerOptions
36
+ ): Handler<
37
+ FailoverPrimaryComputeCommandInput,
38
+ FailoverPrimaryComputeCommandOutput
39
+ >;
40
+ private serialize;
41
+ private deserialize;
42
+ }
@@ -88,6 +88,7 @@ export * from "./DisableSnapshotCopyCommand";
88
88
  export * from "./DisassociateDataShareConsumerCommand";
89
89
  export * from "./EnableLoggingCommand";
90
90
  export * from "./EnableSnapshotCopyCommand";
91
+ export * from "./FailoverPrimaryComputeCommand";
91
92
  export * from "./GetClusterCredentialsCommand";
92
93
  export * from "./GetClusterCredentialsWithIAMCommand";
93
94
  export * from "./GetReservedNodeExchangeConfigurationOptionsCommand";
@@ -5,4 +5,5 @@ export * from "./commands";
5
5
  export * from "./pagination";
6
6
  export * from "./waiters";
7
7
  export * from "./models";
8
+ import "@aws-sdk/util-endpoints";
8
9
  export { RedshiftServiceException } from "./models/RedshiftServiceException";
@@ -631,6 +631,7 @@ export interface NetworkInterface {
631
631
  SubnetId?: string;
632
632
  PrivateIpAddress?: string;
633
633
  AvailabilityZone?: string;
634
+ Ipv6Address?: string;
634
635
  }
635
636
  export interface VpcEndpoint {
636
637
  VpcEndpointId?: string;
@@ -651,6 +652,10 @@ export interface ClusterIamRole {
651
652
  IamRoleArn?: string;
652
653
  ApplyStatus?: string;
653
654
  }
655
+ export interface SecondaryClusterInfo {
656
+ AvailabilityZone?: string;
657
+ ClusterNodes?: ClusterNode[];
658
+ }
654
659
  export interface PendingModifiedValues {
655
660
  MasterUserPassword?: string;
656
661
  NodeType?: string;
@@ -759,6 +764,9 @@ export interface Cluster {
759
764
  CustomDomainCertificateExpiryDate?: Date;
760
765
  MasterPasswordSecretArn?: string;
761
766
  MasterPasswordSecretKmsKeyId?: string;
767
+ IpAddressType?: string;
768
+ MultiAZ?: string;
769
+ MultiAZSecondary?: SecondaryClusterInfo;
762
770
  }
763
771
  export declare class ClusterAlreadyExistsFault extends __BaseException {
764
772
  readonly name: "ClusterAlreadyExistsFault";
@@ -932,6 +940,7 @@ export interface ClusterSubnetGroup {
932
940
  SubnetGroupStatus?: string;
933
941
  Subnets?: Subnet[];
934
942
  Tags?: Tag[];
943
+ SupportedClusterIpAddressTypes?: string[];
935
944
  }
936
945
  export declare class ClusterSubnetGroupAlreadyExistsFault extends __BaseException {
937
946
  readonly name: "ClusterSubnetGroupAlreadyExistsFault";
@@ -1064,6 +1073,8 @@ export interface CreateClusterMessage {
1064
1073
  LoadSampleData?: string;
1065
1074
  ManageMasterPassword?: boolean;
1066
1075
  MasterPasswordSecretKmsKeyId?: string;
1076
+ IpAddressType?: string;
1077
+ MultiAZ?: boolean;
1067
1078
  }
1068
1079
  export interface CreateClusterResult {
1069
1080
  Cluster?: Cluster;
@@ -1136,6 +1147,13 @@ export declare class InvalidVPCNetworkStateFault extends __BaseException {
1136
1147
  opts: __ExceptionOptionType<InvalidVPCNetworkStateFault, __BaseException>
1137
1148
  );
1138
1149
  }
1150
+ export declare class Ipv6CidrBlockNotFoundFault extends __BaseException {
1151
+ readonly name: "Ipv6CidrBlockNotFoundFault";
1152
+ readonly $fault: "client";
1153
+ constructor(
1154
+ opts: __ExceptionOptionType<Ipv6CidrBlockNotFoundFault, __BaseException>
1155
+ );
1156
+ }
1139
1157
  export declare class NumberOfNodesPerClusterLimitExceededFault extends __BaseException {
1140
1158
  readonly name: "NumberOfNodesPerClusterLimitExceededFault";
1141
1159
  readonly $fault: "client";
@@ -2072,13 +2090,6 @@ export interface DescribeEndpointAuthorizationMessage {
2072
2090
  MaxRecords?: number;
2073
2091
  Marker?: string;
2074
2092
  }
2075
- export interface EndpointAuthorizationList {
2076
- EndpointAuthorizationList?: EndpointAuthorization[];
2077
- Marker?: string;
2078
- }
2079
- export interface DescribeEventCategoriesMessage {
2080
- SourceType?: string;
2081
- }
2082
2093
  export declare const PendingModifiedValuesFilterSensitiveLog: (
2083
2094
  obj: PendingModifiedValues
2084
2095
  ) => any;
@@ -7,6 +7,7 @@ import {
7
7
  Cluster,
8
8
  ClusterSecurityGroup,
9
9
  ClusterSubnetGroup,
10
+ EndpointAuthorization,
10
11
  EventSubscription,
11
12
  HsmClientCertificate,
12
13
  HsmConfiguration,
@@ -26,6 +27,13 @@ import {
26
27
  UsageLimitFeatureType,
27
28
  } from "./models_0";
28
29
  import { RedshiftServiceException as __BaseException } from "./RedshiftServiceException";
30
+ export interface EndpointAuthorizationList {
31
+ EndpointAuthorizationList?: EndpointAuthorization[];
32
+ Marker?: string;
33
+ }
34
+ export interface DescribeEventCategoriesMessage {
35
+ SourceType?: string;
36
+ }
29
37
  export interface EventInfoMap {
30
38
  EventId?: string;
31
39
  EventCategories?: string[];
@@ -528,6 +536,12 @@ export declare class EndpointAuthorizationNotFoundFault extends __BaseException
528
536
  >
529
537
  );
530
538
  }
539
+ export interface FailoverPrimaryComputeInputMessage {
540
+ ClusterIdentifier: string | undefined;
541
+ }
542
+ export interface FailoverPrimaryComputeResult {
543
+ Cluster?: Cluster;
544
+ }
531
545
  export interface GetClusterCredentialsMessage {
532
546
  DbUser: string | undefined;
533
547
  DbName?: string;
@@ -659,6 +673,8 @@ export interface ModifyClusterMessage {
659
673
  Port?: number;
660
674
  ManageMasterPassword?: boolean;
661
675
  MasterPasswordSecretKmsKeyId?: string;
676
+ IpAddressType?: string;
677
+ MultiAZ?: boolean;
662
678
  }
663
679
  export interface ModifyClusterResult {
664
680
  Cluster?: Cluster;
@@ -882,6 +898,8 @@ export interface RestoreFromClusterSnapshotMessage {
882
898
  Encrypted?: boolean;
883
899
  ManageMasterPassword?: boolean;
884
900
  MasterPasswordSecretKmsKeyId?: string;
901
+ IpAddressType?: string;
902
+ MultiAZ?: boolean;
885
903
  }
886
904
  export interface RestoreFromClusterSnapshotResult {
887
905
  Cluster?: Cluster;
@@ -947,6 +965,9 @@ export declare const DisableSnapshotCopyResultFilterSensitiveLog: (
947
965
  export declare const EnableSnapshotCopyResultFilterSensitiveLog: (
948
966
  obj: EnableSnapshotCopyResult
949
967
  ) => any;
968
+ export declare const FailoverPrimaryComputeResultFilterSensitiveLog: (
969
+ obj: FailoverPrimaryComputeResult
970
+ ) => any;
950
971
  export declare const ModifyClusterMessageFilterSensitiveLog: (
951
972
  obj: ModifyClusterMessage
952
973
  ) => any;
@@ -363,6 +363,10 @@ import {
363
363
  EnableSnapshotCopyCommandInput,
364
364
  EnableSnapshotCopyCommandOutput,
365
365
  } from "../commands/EnableSnapshotCopyCommand";
366
+ import {
367
+ FailoverPrimaryComputeCommandInput,
368
+ FailoverPrimaryComputeCommandOutput,
369
+ } from "../commands/FailoverPrimaryComputeCommand";
366
370
  import {
367
371
  GetClusterCredentialsCommandInput,
368
372
  GetClusterCredentialsCommandOutput,
@@ -871,6 +875,10 @@ export declare const se_EnableSnapshotCopyCommand: (
871
875
  input: EnableSnapshotCopyCommandInput,
872
876
  context: __SerdeContext
873
877
  ) => Promise<__HttpRequest>;
878
+ export declare const se_FailoverPrimaryComputeCommand: (
879
+ input: FailoverPrimaryComputeCommandInput,
880
+ context: __SerdeContext
881
+ ) => Promise<__HttpRequest>;
874
882
  export declare const se_GetClusterCredentialsCommand: (
875
883
  input: GetClusterCredentialsCommandInput,
876
884
  context: __SerdeContext
@@ -1379,6 +1387,10 @@ export declare const de_EnableSnapshotCopyCommand: (
1379
1387
  output: __HttpResponse,
1380
1388
  context: __SerdeContext
1381
1389
  ) => Promise<EnableSnapshotCopyCommandOutput>;
1390
+ export declare const de_FailoverPrimaryComputeCommand: (
1391
+ output: __HttpResponse,
1392
+ context: __SerdeContext
1393
+ ) => Promise<FailoverPrimaryComputeCommandOutput>;
1382
1394
  export declare const de_GetClusterCredentialsCommand: (
1383
1395
  output: __HttpResponse,
1384
1396
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-redshift",
3
3
  "description": "AWS SDK for JavaScript Redshift Client for Node.js, Browser and React Native",
4
- "version": "3.437.0",
4
+ "version": "3.441.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,17 +21,17 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.437.0",
25
- "@aws-sdk/core": "3.436.0",
26
- "@aws-sdk/credential-provider-node": "3.437.0",
24
+ "@aws-sdk/client-sts": "3.441.0",
25
+ "@aws-sdk/core": "3.441.0",
26
+ "@aws-sdk/credential-provider-node": "3.441.0",
27
27
  "@aws-sdk/middleware-host-header": "3.433.0",
28
28
  "@aws-sdk/middleware-logger": "3.433.0",
29
29
  "@aws-sdk/middleware-recursion-detection": "3.433.0",
30
30
  "@aws-sdk/middleware-signing": "3.433.0",
31
- "@aws-sdk/middleware-user-agent": "3.433.0",
31
+ "@aws-sdk/middleware-user-agent": "3.438.0",
32
32
  "@aws-sdk/region-config-resolver": "3.433.0",
33
33
  "@aws-sdk/types": "3.433.0",
34
- "@aws-sdk/util-endpoints": "3.433.0",
34
+ "@aws-sdk/util-endpoints": "3.438.0",
35
35
  "@aws-sdk/util-user-agent-browser": "3.433.0",
36
36
  "@aws-sdk/util-user-agent-node": "3.437.0",
37
37
  "@smithy/config-resolver": "^2.0.16",
@@ -54,6 +54,7 @@
54
54
  "@smithy/util-body-length-node": "^2.1.0",
55
55
  "@smithy/util-defaults-mode-browser": "^2.0.16",
56
56
  "@smithy/util-defaults-mode-node": "^2.0.21",
57
+ "@smithy/util-endpoints": "^1.0.2",
57
58
  "@smithy/util-retry": "^2.0.5",
58
59
  "@smithy/util-utf8": "^2.0.0",
59
60
  "@smithy/util-waiter": "^2.0.12",