Skip to content

delete_endpoint_access async

delete_endpoint_access(
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    endpoint_name: Optional[String] = None,
) -> EndpointAccess

Deletes a Redshift-managed VPC endpoint.

Parameters:

  • endpoint_name (Optional[String], default: None ) –

    The Redshift-managed VPC endpoint to delete.

Raises:

Source code in docs_src/capo_redshift/_services/async_redshift.py
async def delete_endpoint_access(
    self,
    *,
    config_overrides: Optional[AsyncRedshiftClientConfig] = None,
    endpoint_name: Optional["capo_redshift.types.string.String"] = None,
) -> "capo_redshift.types.endpoint_access.EndpointAccess":
    """<p>Deletes a Redshift-managed VPC endpoint.</p>

    Args:
        endpoint_name: <p>The Redshift-managed VPC endpoint to delete.</p>

    Raises:
        capo_redshift.errors.cluster_not_found_fault.ClusterNotFoundFault: <p>The <code>ClusterIdentifier</code> parameter does not refer to an existing cluster. </p>
        capo_redshift.errors.endpoint_not_found_fault.EndpointNotFoundFault: <p>The endpoint name doesn't refer to an existing endpoint.</p>
        capo_redshift.errors.invalid_cluster_security_group_state_fault.InvalidClusterSecurityGroupStateFault: <p>The state of the cluster security group is not <code>available</code>. </p>
        capo_redshift.errors.invalid_cluster_state_fault.InvalidClusterStateFault: <p>The specified cluster is not in the <code>available</code> state. </p>
        capo_redshift.errors.invalid_endpoint_state_fault.InvalidEndpointStateFault: <p>The status of the endpoint is not valid.</p>
        capo_redshift.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_redshift.types.delete_endpoint_access_message.DeleteEndpointAccessMessage]",
    ) -> AsyncOperationResponse[
        "capo_redshift.types.endpoint_access.EndpointAccess"
    ]:
        import capo_redshift._operations.redshift_service_version20121201.delete_endpoint_access

        (
            output,
            http_response,
        ) = await capo_redshift._operations.redshift_service_version20121201.delete_endpoint_access.async_delete_endpoint_access(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DeleteEndpointAccess")
    )
    input_: capo_redshift.types.delete_endpoint_access_message.DeleteEndpointAccessMessage = {}
    if endpoint_name is not None:
        input_["endpoint_name"] = endpoint_name

    response = await aexecute_pipeline(
        AsyncOperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    await response.response.aclose()
    return response.output