Skip to content

delete_direct_connect_gateway_association_proposal async

delete_direct_connect_gateway_association_proposal(
    proposal_id: DirectConnectGatewayAssociationProposalId,
    *,
    config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
) -> DeleteDirectConnectGatewayAssociationProposalResult

Deletes the association proposal request between the specified Direct Connect gateway and virtual private gateway or transit gateway.

Parameters:

Raises:

Source code in docs_src/capo_direct_connect/_services/async_direct_connect.py
async def delete_direct_connect_gateway_association_proposal(
    self,
    proposal_id: "capo_direct_connect.types.direct_connect_gateway_association_proposal_id.DirectConnectGatewayAssociationProposalId",
    *,
    config_overrides: Optional[AsyncDirectConnectClientConfig] = None,
) -> "capo_direct_connect.types.delete_direct_connect_gateway_association_proposal_result.DeleteDirectConnectGatewayAssociationProposalResult":
    """<p>Deletes the association proposal request between the specified Direct Connect gateway and virtual private gateway or transit gateway.</p>

    Args:
        proposal_id: <p>The ID of the proposal.</p>

    Raises:
        capo_direct_connect.errors.direct_connect_client_exception.DirectConnectClientException: <p>One or more parameters are not valid.</p>
        capo_direct_connect.errors.direct_connect_server_exception.DirectConnectServerException: <p>A server-side error occurred.</p>
        capo_direct_connect.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_direct_connect.types.delete_direct_connect_gateway_association_proposal_request.DeleteDirectConnectGatewayAssociationProposalRequest]",
    ) -> AsyncOperationResponse[
        "capo_direct_connect.types.delete_direct_connect_gateway_association_proposal_result.DeleteDirectConnectGatewayAssociationProposalResult"
    ]:
        import capo_direct_connect._operations.overture_service.delete_direct_connect_gateway_association_proposal

        (
            output,
            http_response,
        ) = await capo_direct_connect._operations.overture_service.delete_direct_connect_gateway_association_proposal.async_delete_direct_connect_gateway_association_proposal(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides,
        OperationLogging("DeleteDirectConnectGatewayAssociationProposal"),
    )
    input_: capo_direct_connect.types.delete_direct_connect_gateway_association_proposal_request.DeleteDirectConnectGatewayAssociationProposalRequest = {
        "proposal_id": proposal_id
    }

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