Get the information about an existing pipe. For more information about pipes, see Amazon EventBridge Pipes in the Amazon EventBridge User Guide.
Parameters:
Raises:
Source code in docs_src/capo_pipes/_services/async_pipes.py
| async def describe_pipe(
self,
name: "capo_pipes.types.pipe_name.PipeName",
*,
config_overrides: Optional[AsyncPipesClientConfig] = None,
) -> "capo_pipes.types.describe_pipe_response.DescribePipeResponse":
"""<p>Get the information about an existing pipe. For more information about pipes, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-pipes.html">Amazon EventBridge Pipes</a> in the Amazon EventBridge User Guide.</p>
Args:
name: <p>The name of the pipe.</p>
Raises:
capo_pipes.errors.internal_exception.InternalException: <p>This exception occurs due to unexpected causes.</p>
capo_pipes.errors.not_found_exception.NotFoundException: <p>An entity that you specified does not exist.</p>
capo_pipes.errors.throttling_exception.ThrottlingException: <p>An action was throttled.</p>
capo_pipes.errors.validation_exception.ValidationException: <p>Indicates that an error has occurred while performing a validate operation.</p>
capo_pipes.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_pipes.types.describe_pipe_request.DescribePipeRequest]",
) -> AsyncOperationResponse[
"capo_pipes.types.describe_pipe_response.DescribePipeResponse"
]:
import capo_pipes._operations.pipes.describe_pipe
(
output,
http_response,
) = await capo_pipes._operations.pipes.describe_pipe.async_describe_pipe(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
def _redact_output(
output: "capo_pipes.types.describe_pipe_response.DescribePipeResponse",
) -> dict[str, Any]:
import capo_pipes.types.describe_pipe_response
return capo_pipes.types.describe_pipe_response.redact_sensitive(output)
interceptors_, options_ = self.operation_options(
config_overrides,
OperationLogging("DescribePipe", redact_output=_redact_output),
)
input_: capo_pipes.types.describe_pipe_request.DescribePipeRequest = {
"name": name
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|