Skip to content

accept_channel_handshake

accept_channel_handshake(
    catalog: Catalog,
    identifier: ChannelHandshakeIdentifier,
    *,
    config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
) -> AcceptChannelHandshakeResponse

Accepts a pending channel handshake request from another AWS account.

Parameters:

  • catalog (Catalog) –

    The catalog identifier for the handshake request.

  • identifier (ChannelHandshakeIdentifier) –

    The unique identifier of the channel handshake to accept.

Raises:

Examples:

Example for AcceptChannelHandshake

>>> client.accept_channel_handshake(catalog='AWS', identifier='ch-4fj3bd2o3vb91')
Source code in docs_src/capo_partnercentral_channel/_services/partner_central_channel.py
def accept_channel_handshake(
    self,
    catalog: "capo_partnercentral_channel.types.catalog.Catalog",
    identifier: "capo_partnercentral_channel.types.channel_handshake_identifier.ChannelHandshakeIdentifier",
    *,
    config_overrides: Optional[PartnerCentralChannelClientConfig] = None,
) -> "capo_partnercentral_channel.types.accept_channel_handshake_response.AcceptChannelHandshakeResponse":
    """<p>Accepts a pending channel handshake request from another AWS account.</p>

    Args:
        catalog: <p>The catalog identifier for the handshake request.</p>
        identifier: <p>The unique identifier of the channel handshake to accept.</p>

    Raises:
        capo_partnercentral_channel.errors.access_denied_exception.AccessDeniedException: <p>The request was denied due to insufficient permissions.</p>
        capo_partnercentral_channel.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred while processing the request.</p>
        capo_partnercentral_channel.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
        capo_partnercentral_channel.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests being sent in a short period.</p>
        capo_partnercentral_channel.errors.validation_exception.ValidationException: <p>The request failed validation due to invalid input parameters.</p>
        capo_partnercentral_channel.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        Example for AcceptChannelHandshake

        >>> client.accept_channel_handshake(catalog='AWS', identifier='ch-4fj3bd2o3vb91')
    """

    def _handler(
        req: "OperationRequest[capo_partnercentral_channel.types.accept_channel_handshake_request.AcceptChannelHandshakeRequest]",
    ) -> OperationResponse[
        "capo_partnercentral_channel.types.accept_channel_handshake_response.AcceptChannelHandshakeResponse"
    ]:
        import capo_partnercentral_channel._operations.partner_central_channel.accept_channel_handshake

        output, http_response = (
            capo_partnercentral_channel._operations.partner_central_channel.accept_channel_handshake.accept_channel_handshake(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("AcceptChannelHandshake")
    )
    input_: capo_partnercentral_channel.types.accept_channel_handshake_request.AcceptChannelHandshakeRequest = {
        "catalog": catalog,
        "identifier": identifier,
    }

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output