Skip to content

list_invitations

list_invitations(
    *,
    config_overrides: Optional[ManagedBlockchainClientConfig] = None,
    max_results: Optional[ProposalListMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> ListInvitationsOutput

Returns a list of all invitations for the current Amazon Web Services account.

Applies only to Hyperledger Fabric.

Parameters:

Raises:

  • AccessDeniedException –

    You don't have sufficient access to perform this action.

  • InternalServiceErrorException –

    The request processing has failed because of an unknown error, exception or failure.

  • InvalidRequestException –

    The action or operation requested is invalid. Verify that the action is typed correctly.

  • ResourceLimitExceededException –

    The maximum number of resources of that type already exist. Ensure the resources requested are within the boundaries of the service edition and your account limits.

  • ResourceNotFoundException –

    A requested resource doesn't exist. It may have been deleted or referenced incorrectly.

  • ThrottlingException –

    The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_managedblockchain/_services/managed_blockchain.py
def list_invitations(
    self,
    *,
    config_overrides: Optional[ManagedBlockchainClientConfig] = None,
    max_results: Optional[
        "capo_managedblockchain.types.proposal_list_max_results.ProposalListMaxResults"
    ] = None,
    next_token: Optional[
        "capo_managedblockchain.types.pagination_token.PaginationToken"
    ] = None,
) -> "capo_managedblockchain.types.list_invitations_output.ListInvitationsOutput":
    """<p>Returns a list of all invitations for the current Amazon Web Services account.</p> <p>Applies only to Hyperledger Fabric.</p>

    Args:
        max_results: <p>The maximum number of invitations to return.</p>
        next_token: <p>The pagination token that indicates the next set of results to retrieve.</p>

    Raises:
        capo_managedblockchain.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
        capo_managedblockchain.errors.internal_service_error_exception.InternalServiceErrorException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
        capo_managedblockchain.errors.invalid_request_exception.InvalidRequestException: <p>The action or operation requested is invalid. Verify that the action is typed correctly.</p>
        capo_managedblockchain.errors.resource_limit_exceeded_exception.ResourceLimitExceededException: <p>The maximum number of resources of that type already exist. Ensure the resources requested are within the boundaries of the service edition and your account limits.</p>
        capo_managedblockchain.errors.resource_not_found_exception.ResourceNotFoundException: <p>A requested resource doesn't exist. It may have been deleted or referenced incorrectly.</p>
        capo_managedblockchain.errors.throttling_exception.ThrottlingException: <p>The request or operation couldn't be performed because a service is throttling requests. The most common source of throttling errors is creating resources that exceed your service limit for this resource type. Request a limit increase or delete unused resources if possible.</p>
        capo_managedblockchain.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_managedblockchain.types.list_invitations_input.ListInvitationsInput]",
    ) -> OperationResponse[
        "capo_managedblockchain.types.list_invitations_output.ListInvitationsOutput"
    ]:
        import capo_managedblockchain._operations.taiga_web_service.list_invitations

        output, http_response = (
            capo_managedblockchain._operations.taiga_web_service.list_invitations.list_invitations(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListInvitations")
    )
    input_: capo_managedblockchain.types.list_invitations_input.ListInvitationsInput = {}
    if max_results is not None:
        input_["max_results"] = max_results
    if next_token is not None:
        input_["next_token"] = next_token

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