create_cluster_subnet_group
async
¶
create_cluster_subnet_group(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = None,
cluster_subnet_group_name: Optional[String] = None,
description: Optional[String] = None,
subnet_ids: Optional[SubnetIdentifierList] = None,
tags: Optional[TagList] = None,
) -> CreateClusterSubnetGroupResult
Creates a new Amazon Redshift subnet group. You must provide a list of one or more subnets in your existing Amazon Virtual Private Cloud (Amazon VPC) when creating Amazon Redshift subnet group.
For information about subnet groups, go to Amazon Redshift Cluster Subnet Groups in the Amazon Redshift Cluster Management Guide.
Parameters:
-
cluster_subnet_group_name(Optional[String], default:None) –The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
Constraints:
-
Must contain no more than 255 alphanumeric characters or hyphens.
-
Must not be "Default".
-
Must be unique for all subnet groups that are created by your Amazon Web Services account.
Example:
examplesubnetgroup -
-
description(Optional[String], default:None) –A description for the subnet group.
-
subnet_ids(Optional[SubnetIdentifierList], default:None) –An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
-
tags(Optional[TagList], default:None) –A list of tag instances.
Raises:
-
ClusterSubnetGroupAlreadyExistsFault–A ClusterSubnetGroupName is already used by an existing cluster subnet group.
-
ClusterSubnetGroupQuotaExceededFault–The request would result in user exceeding the allowed number of cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
-
ClusterSubnetQuotaExceededFault–The request would result in user exceeding the allowed number of subnets in a cluster subnet groups. For information about increasing your quota, go to Limits in Amazon Redshift in the Amazon Redshift Cluster Management Guide.
-
DependentServiceRequestThrottlingFault–The request cannot be completed because a dependent service is throttling requests made by Amazon Redshift on your behalf. Wait and retry the request.
-
InvalidSubnet–The requested subnet is not valid, or not all of the subnets are in the same VPC.
-
InvalidTagFault–The tag is invalid.
-
TagLimitExceededFault–You have exceeded the number of tags allowed.
-
UnauthorizedOperation–Your account is not authorized to perform the requested operation.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/async_redshift.py
1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 | |