create_endpoint_access
¶
create_endpoint_access(
*,
config_overrides: Optional[RedshiftClientConfig] = 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/redshift.py
1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 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 | |