Skip to content

Commit

Permalink
feat(client-redshift): added support to create a dual stack cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Oct 27, 2023
1 parent ce8979f commit 45b42fc
Show file tree
Hide file tree
Showing 28 changed files with 269 additions and 17 deletions.
7 changes: 7 additions & 0 deletions clients/client-redshift/src/commands/CreateClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
* LoadSampleData: "STRING_VALUE",
* ManageMasterPassword: true || false,
* MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* IpAddressType: "STRING_VALUE",
* };
* const command = new CreateClusterCommand(input);
* const response = await client.send(command);
Expand All @@ -128,6 +129,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -282,6 +284,7 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down Expand Up @@ -352,6 +355,10 @@ export interface CreateClusterCommandOutput extends CreateClusterResult, __Metad
* @throws {@link InvalidVPCNetworkStateFault} (client fault)
* <p>The cluster subnet group does not cover all Availability Zones.</p>
*
* @throws {@link Ipv6CidrBlockNotFoundFault} (client fault)
* <p>There are no subnets in your VPC with associated IPv6 CIDR blocks. To use dual-stack mode,
* associate an IPv6 CIDR block with each subnet in your VPC.</p>
*
* @throws {@link LimitExceededFault} (client fault)
* <p>The encryption key has exceeded its grant limit in Amazon Web Services KMS.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ export interface CreateClusterSubnetGroupCommandOutput extends CreateClusterSubn
* // Value: "STRING_VALUE",
* // },
* // ],
* // SupportedClusterIpAddressTypes: [ // ValueStringList
* // "STRING_VALUE",
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export interface CreateEndpointAccessCommandOutput extends EndpointAccess, __Met
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
2 changes: 2 additions & 0 deletions clients/client-redshift/src/commands/DeleteClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResult, __Metad
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -243,6 +244,7 @@ export interface DeleteClusterCommandOutput extends DeleteClusterResult, __Metad
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export interface DeleteEndpointAccessCommandOutput extends EndpointAccess, __Met
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ export interface DescribeClusterSubnetGroupsCommandOutput extends ClusterSubnetG
* // Value: "STRING_VALUE",
* // },
* // ],
* // SupportedClusterIpAddressTypes: [ // ValueStringList
* // "STRING_VALUE",
* // ],
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ export interface DescribeClustersCommandOutput extends ClustersMessage, __Metada
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -247,6 +248,7 @@ export interface DescribeClustersCommandOutput extends ClustersMessage, __Metada
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // ],
* // };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export interface DescribeEndpointAccessCommandOutput extends EndpointAccessList,
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ import {
SMITHY_CONTEXT_KEY,
} from "@smithy/types";

import { DescribeEventCategoriesMessage } from "../models/models_0";
import { EventCategoriesMessage } from "../models/models_1";
import { DescribeEventCategoriesMessage, EventCategoriesMessage } from "../models/models_1";
import { de_DescribeEventCategoriesCommand, se_DescribeEventCategoriesCommand } from "../protocols/Aws_query";
import { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ export interface DisableSnapshotCopyCommandOutput extends DisableSnapshotCopyRes
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -233,6 +234,7 @@ export interface DisableSnapshotCopyCommandOutput extends DisableSnapshotCopyRes
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export interface EnableSnapshotCopyCommandOutput extends EnableSnapshotCopyResul
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -234,6 +235,7 @@ export interface EnableSnapshotCopyCommandOutput extends EnableSnapshotCopyResul
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
7 changes: 7 additions & 0 deletions clients/client-redshift/src/commands/ModifyClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export interface ModifyClusterCommandOutput extends ModifyClusterResult, __Metad
* Port: Number("int"),
* ManageMasterPassword: true || false,
* MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* IpAddressType: "STRING_VALUE",
* };
* const command = new ModifyClusterCommand(input);
* const response = await client.send(command);
Expand All @@ -114,6 +115,7 @@ export interface ModifyClusterCommandOutput extends ModifyClusterResult, __Metad
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -268,6 +270,7 @@ export interface ModifyClusterCommandOutput extends ModifyClusterResult, __Metad
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down Expand Up @@ -327,6 +330,10 @@ export interface ModifyClusterCommandOutput extends ModifyClusterResult, __Metad
* <p>The retention period specified is either in the past or is not a valid value.</p>
* <p>The value must be either -1 or an integer between 1 and 3,653.</p>
*
* @throws {@link Ipv6CidrBlockNotFoundFault} (client fault)
* <p>There are no subnets in your VPC with associated IPv6 CIDR blocks. To use dual-stack mode,
* associate an IPv6 CIDR block with each subnet in your VPC.</p>
*
* @throws {@link LimitExceededFault} (client fault)
* <p>The encryption key has exceeded its grant limit in Amazon Web Services KMS.</p>
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface ModifyClusterDbRevisionCommandOutput extends ModifyClusterDbRev
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -231,6 +232,7 @@ export interface ModifyClusterDbRevisionCommandOutput extends ModifyClusterDbRev
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export interface ModifyClusterIamRolesCommandOutput extends ModifyClusterIamRole
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -240,6 +241,7 @@ export interface ModifyClusterIamRolesCommandOutput extends ModifyClusterIamRole
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ export interface ModifyClusterMaintenanceCommandOutput extends ModifyClusterMain
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -234,6 +235,7 @@ export interface ModifyClusterMaintenanceCommandOutput extends ModifyClusterMain
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export interface ModifyClusterSubnetGroupCommandOutput extends ModifyClusterSubn
* // Value: "STRING_VALUE",
* // },
* // ],
* // SupportedClusterIpAddressTypes: [ // ValueStringList
* // "STRING_VALUE",
* // ],
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export interface ModifyEndpointAccessCommandOutput extends EndpointAccess, __Met
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ export interface ModifySnapshotCopyRetentionPeriodCommandOutput
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -242,6 +243,7 @@ export interface ModifySnapshotCopyRetentionPeriodCommandOutput
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-redshift/src/commands/PauseClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface PauseClusterCommandOutput extends PauseClusterResult, __Metadat
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -226,6 +227,7 @@ export interface PauseClusterCommandOutput extends PauseClusterResult, __Metadat
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-redshift/src/commands/RebootClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export interface RebootClusterCommandOutput extends RebootClusterResult, __Metad
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -232,6 +233,7 @@ export interface RebootClusterCommandOutput extends RebootClusterResult, __Metad
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-redshift/src/commands/ResizeClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ export interface ResizeClusterCommandOutput extends ResizeClusterResult, __Metad
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -274,6 +275,7 @@ export interface ResizeClusterCommandOutput extends ResizeClusterResult, __Metad
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ export interface RestoreFromClusterSnapshotCommandOutput extends RestoreFromClus
* Encrypted: true || false,
* ManageMasterPassword: true || false,
* MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* IpAddressType: "STRING_VALUE",
* };
* const command = new RestoreFromClusterSnapshotCommand(input);
* const response = await client.send(command);
Expand All @@ -126,6 +127,7 @@ export interface RestoreFromClusterSnapshotCommandOutput extends RestoreFromClus
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -280,6 +282,7 @@ export interface RestoreFromClusterSnapshotCommandOutput extends RestoreFromClus
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down Expand Up @@ -367,6 +370,10 @@ export interface RestoreFromClusterSnapshotCommandOutput extends RestoreFromClus
* @throws {@link InvalidVPCNetworkStateFault} (client fault)
* <p>The cluster subnet group does not cover all Availability Zones.</p>
*
* @throws {@link Ipv6CidrBlockNotFoundFault} (client fault)
* <p>There are no subnets in your VPC with associated IPv6 CIDR blocks. To use dual-stack mode,
* associate an IPv6 CIDR block with each subnet in your VPC.</p>
*
* @throws {@link LimitExceededFault} (client fault)
* <p>The encryption key has exceeded its grant limit in Amazon Web Services KMS.</p>
*
Expand Down
2 changes: 2 additions & 0 deletions clients/client-redshift/src/commands/ResumeClusterCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export interface ResumeClusterCommandOutput extends ResumeClusterResult, __Metad
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -226,6 +227,7 @@ export interface ResumeClusterCommandOutput extends ResumeClusterResult, __Metad
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ export interface RotateEncryptionKeyCommandOutput extends RotateEncryptionKeyRes
* // SubnetId: "STRING_VALUE",
* // PrivateIpAddress: "STRING_VALUE",
* // AvailabilityZone: "STRING_VALUE",
* // Ipv6Address: "STRING_VALUE",
* // },
* // ],
* // },
Expand Down Expand Up @@ -229,6 +230,7 @@ export interface RotateEncryptionKeyCommandOutput extends RotateEncryptionKeyRes
* // CustomDomainCertificateExpiryDate: new Date("TIMESTAMP"),
* // MasterPasswordSecretArn: "STRING_VALUE",
* // MasterPasswordSecretKmsKeyId: "STRING_VALUE",
* // IpAddressType: "STRING_VALUE",
* // },
* // };
*
Expand Down
Loading

0 comments on commit 45b42fc

Please sign in to comment.