create_endpoint_access
async
¶
create_endpoint_access(
*,
config_overrides: Optional[AsyncRedshiftClientConfig] = None,
cluster_identifier: Optional[String] = None,
resource_owner: Optional[String] = None,
endpoint_name: Optional[String] = None,
subnet_group_name: Optional[String] = None,
vpc_security_group_ids: Optional[VpcSecurityGroupIdList] = None,
) -> EndpointAccess
Creates a Redshift-managed VPC endpoint.
Parameters:
-
cluster_identifier(Optional[String], default:None) –The cluster identifier of the cluster to access.
-
resource_owner(Optional[String], default:None) –The Amazon Web Services account ID of the owner of the cluster. This is only required if the cluster is in another Amazon Web Services account.
-
endpoint_name(Optional[String], default:None) –The Redshift-managed VPC endpoint name.
An endpoint name must contain 1-30 characters. Valid characters are A-Z, a-z, 0-9, and hyphen(-). The first character must be a letter. The name can't contain two consecutive hyphens or end with a hyphen.
-
subnet_group_name(Optional[String], default:None) –The subnet group from which Amazon Redshift chooses the subnet to deploy the endpoint.
-
vpc_security_group_ids(Optional[VpcSecurityGroupIdList], default:None) –The security group that defines the ports, protocols, and sources for inbound traffic that you are authorizing into your endpoint.
Raises:
-
AccessToClusterDeniedFault–You are not authorized to access the cluster.
-
ClusterNotFoundFault–The
ClusterIdentifierparameter does not refer to an existing cluster. -
ClusterSubnetGroupNotFoundFault–The cluster subnet group name does not refer to an existing cluster subnet group.
-
EndpointAlreadyExistsFault–The account already has a Redshift-managed VPC endpoint with the given identifier.
-
EndpointsPerAuthorizationLimitExceededFault–The number of Redshift-managed VPC endpoints per authorization has exceeded its limit.
-
EndpointsPerClusterLimitExceededFault–The number of Redshift-managed VPC endpoints per cluster has exceeded its limit.
-
InvalidClusterSecurityGroupStateFault–The state of the cluster security group is not
available. -
InvalidClusterStateFault–The specified cluster is not in the
availablestate. -
UnauthorizedOperation–Your account is not authorized to perform the requested operation.
-
UnsupportedOperationFault–The requested operation isn't supported.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_redshift/_services/async_redshift.py
1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 | |