Skip to content

list_sol_network_packages

list_sol_network_packages(
    *,
    config_overrides: Optional[tnbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[PaginationToken] = None,
) -> ListSolNetworkPackagesOutput

Lists network packages.

A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.

Parameters:

  • max_results (Optional[int], default: None ) –

    The maximum number of results to include in the response.

  • next_token (Optional[PaginationToken], default: None ) –

    The token for the next page of results.

Raises:

Examples:

List information about multiple network packages without PaginationToken

>>> client.list_sol_network_packages(max_results=25, next_token='')
List information about multiple network packages with PaginationToken
>>> client.list_sol_network_packages(max_results=25, next_token='ug2E9SheCpyAmeLItmHF95t1rBBsFyzy5hsuauDTqaukll3AGHaTz%2B4utHS3OMuMcyKW6Hmk25aB6wtV%2BFxCx9Adw5fDSq9D8lVa6sr0Sq0BF7Fj0mYegd0a/XiFP4j/58ZIrtRl0M3Z55Z/wTqwIietXJVfFX84ZnIMjiEiFb3KIIdrKS8vSgMZ18t3Gj5p')
No more network packages to return
>>> client.list_sol_network_packages()
Source code in docs_src/capo_tnb/_services/tnb.py
def list_sol_network_packages(
    self,
    *,
    config_overrides: Optional[tnbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional["capo_tnb.types.pagination_token.PaginationToken"] = None,
) -> "capo_tnb.types.list_sol_network_packages_output.ListSolNetworkPackagesOutput":
    """<p>Lists network packages.</p> <p>A network package is a .zip file in CSAR (Cloud Service Archive) format defines the function packages you want to deploy and the Amazon Web Services infrastructure you want to deploy them on.</p>

    Args:
        max_results: <p>The maximum number of results to include in the response.</p>
        next_token: <p>The token for the next page of results.</p>

    Raises:
        capo_tnb.errors.access_denied_exception.AccessDeniedException: <p>Insufficient permissions to make request.</p>
        capo_tnb.errors.internal_server_exception.InternalServerException: <p>Unexpected error occurred. Problem on the server.</p>
        capo_tnb.errors.throttling_exception.ThrottlingException: <p>Exception caused by throttling.</p>
        capo_tnb.errors.validation_exception.ValidationException: <p>Unable to process the request because the client provided input failed to satisfy request constraints.</p>
        capo_tnb.errors.UnknownServiceError: The service returned an error code this client does not model.

    Examples:
        List information about multiple network packages without PaginationToken

        >>> client.list_sol_network_packages(max_results=25, next_token='')
        List information about multiple network packages with PaginationToken

        >>> client.list_sol_network_packages(max_results=25, next_token='ug2E9SheCpyAmeLItmHF95t1rBBsFyzy5hsuauDTqaukll3AGHaTz%2B4utHS3OMuMcyKW6Hmk25aB6wtV%2BFxCx9Adw5fDSq9D8lVa6sr0Sq0BF7Fj0mYegd0a/XiFP4j/58ZIrtRl0M3Z55Z/wTqwIietXJVfFX84ZnIMjiEiFb3KIIdrKS8vSgMZ18t3Gj5p')
        No more network packages to return

        >>> client.list_sol_network_packages()
    """

    def _handler(
        req: "OperationRequest[capo_tnb.types.list_sol_network_packages_input.ListSolNetworkPackagesInput]",
    ) -> OperationResponse[
        "capo_tnb.types.list_sol_network_packages_output.ListSolNetworkPackagesOutput"
    ]:
        import capo_tnb._operations.tnb.list_sol_network_packages

        output, http_response = (
            capo_tnb._operations.tnb.list_sol_network_packages.list_sol_network_packages(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListSolNetworkPackages")
    )
    input_: capo_tnb.types.list_sol_network_packages_input.ListSolNetworkPackagesInput = {}
    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