Skip to content

describe_delivery_channels async

describe_delivery_channels(
    *,
    config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
    delivery_channel_names: Optional[DeliveryChannelNameList] = None,
) -> DescribeDeliveryChannelsResponse

Returns details about the specified delivery channel. If a delivery channel is not specified, this operation returns the details of all delivery channels associated with the account.

Currently, you can specify only one delivery channel per region in your account.

Parameters:

Raises:

Source code in docs_src/capo_config_service/_services/async_config_service.py
async def describe_delivery_channels(
    self,
    *,
    config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
    delivery_channel_names: Optional[
        "capo_config_service.types.delivery_channel_name_list.DeliveryChannelNameList"
    ] = None,
) -> "capo_config_service.types.describe_delivery_channels_response.DescribeDeliveryChannelsResponse":
    """<p>Returns details about the specified delivery channel. If a delivery channel is not specified, this operation returns the details of all delivery channels associated with the account.</p> <note> <p>Currently, you can specify only one delivery channel per region in your account.</p> </note>

    Args:
        delivery_channel_names: <p>A list of delivery channel names.</p>

    Raises:
        capo_config_service.errors.no_such_delivery_channel_exception.NoSuchDeliveryChannelException: <p>You have specified a delivery channel that does not exist.</p>
        capo_config_service.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_config_service.types.describe_delivery_channels_request.DescribeDeliveryChannelsRequest]",
    ) -> AsyncOperationResponse[
        "capo_config_service.types.describe_delivery_channels_response.DescribeDeliveryChannelsResponse"
    ]:
        import capo_config_service._operations.starling_dove_service.describe_delivery_channels

        (
            output,
            http_response,
        ) = await capo_config_service._operations.starling_dove_service.describe_delivery_channels.async_describe_delivery_channels(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("DescribeDeliveryChannels")
    )
    input_: capo_config_service.types.describe_delivery_channels_request.DescribeDeliveryChannelsRequest = {}
    if delivery_channel_names is not None:
        input_["delivery_channel_names"] = delivery_channel_names

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