Skip to content

get_vpc_endpoint_service_name async

get_vpc_endpoint_service_name(
    identifier: ClusterId, *, config_overrides: Optional[AsyncDSQLClientConfig] = None
) -> GetVpcEndpointServiceNameOutput

Retrieves the VPC endpoint service name.

Parameters:

  • identifier (ClusterId) –

    The ID of the cluster to retrieve.

Raises:

Examples:

Get VPC Endpoint Service Name

>>> await client.get_vpc_endpoint_service_name(identifier='kiqenqglxyl2snyvkvnj2c3s2e')
Source code in docs_src/capo_dsql/_services/async_dsql.py
async def get_vpc_endpoint_service_name(
    self,
    identifier: "capo_dsql.types.cluster_id.ClusterId",
    *,
    config_overrides: Optional[AsyncDSQLClientConfig] = None,
) -> "capo_dsql.types.get_vpc_endpoint_service_name_output.GetVpcEndpointServiceNameOutput":
    """<p>Retrieves the VPC endpoint service name.</p>

    Args:
        identifier: <p>The ID of the cluster to retrieve.</p>

    Raises:
        capo_dsql.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
        capo_dsql.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_dsql.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
        capo_dsql.errors.validation_exception.ValidationException: <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_dsql.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
        capo_dsql.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Get VPC Endpoint Service Name

        >>> await client.get_vpc_endpoint_service_name(identifier='kiqenqglxyl2snyvkvnj2c3s2e')
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_dsql.types.get_vpc_endpoint_service_name_input.GetVpcEndpointServiceNameInput]",
    ) -> AsyncOperationResponse[
        "capo_dsql.types.get_vpc_endpoint_service_name_output.GetVpcEndpointServiceNameOutput"
    ]:
        import capo_dsql._operations.dsql.get_vpc_endpoint_service_name

        (
            output,
            http_response,
        ) = await capo_dsql._operations.dsql.get_vpc_endpoint_service_name.async_get_vpc_endpoint_service_name(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("GetVpcEndpointServiceName")
    )
    input_: capo_dsql.types.get_vpc_endpoint_service_name_input.GetVpcEndpointServiceNameInput = {
        "identifier": identifier
    }

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