Skip to content

list_function_url_configs async

list_function_url_configs(
    function_name: FunctionUrlFunctionName,
    *,
    config_overrides: Optional[AsyncLambdaClientConfig] = None,
    marker: Optional[String] = None,
    max_items: Optional[MaxItems] = None,
) -> ListFunctionUrlConfigsResponse

Returns a list of Lambda function URLs for the specified function.

Parameters:

  • function_name (FunctionUrlFunctionName) –

    The name or ARN of the Lambda function.

    Name formats

    • Function name – my-function.

    • Function ARN – arn:aws:lambda:us-west-2:123456789012:function:my-function.

    • Partial ARN – 123456789012:function:my-function.

    The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

  • marker (Optional[String], default: None ) –

    Specify the pagination token that's returned by a previous request to retrieve the next page of results.

  • max_items (Optional[MaxItems], default: None ) –

    The maximum number of function URLs to return in the response. Note that ListFunctionUrlConfigs returns a maximum of 50 items in each response, even if you set the number higher.

Raises:

Source code in docs_src/capo_lambda/_services/async__lambda.py
async def list_function_url_configs(
    self,
    function_name: "capo_lambda.types.function_url_function_name.FunctionUrlFunctionName",
    *,
    config_overrides: Optional[AsyncLambdaClientConfig] = None,
    marker: Optional["capo_lambda.types.string.String"] = None,
    max_items: Optional["capo_lambda.types.max_items.MaxItems"] = None,
) -> "capo_lambda.types.list_function_url_configs_response.ListFunctionUrlConfigsResponse":
    """<p>Returns a list of Lambda function URLs for the specified function.</p>

    Args:
        function_name: <p>The name or ARN of the Lambda function.</p> <p class="title"> <b>Name formats</b> </p> <ul> <li> <p> <b>Function name</b> – <code>my-function</code>.</p> </li> <li> <p> <b>Function ARN</b> – <code>arn:aws:lambda:us-west-2:123456789012:function:my-function</code>.</p> </li> <li> <p> <b>Partial ARN</b> – <code>123456789012:function:my-function</code>.</p> </li> </ul> <p>The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.</p>
        marker: <p>Specify the pagination token that's returned by a previous request to retrieve the next page of results.</p>
        max_items: <p>The maximum number of function URLs to return in the response. Note that <code>ListFunctionUrlConfigs</code> returns a maximum of 50 items in each response, even if you set the number higher.</p>

    Raises:
        capo_lambda.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One of the parameters in the request is not valid.</p>
        capo_lambda.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource specified in the request does not exist.</p>
        capo_lambda.errors.service_exception.ServiceException: <p>The Lambda service encountered an internal error.</p>
        capo_lambda.errors.too_many_requests_exception.TooManyRequestsException: <p>The request throughput limit was exceeded. For more information, see <a href="https://docs.aws.amazon.com/lambda/latest/dg/gettingstarted-limits.html#api-requests">Lambda quotas</a>.</p>
        capo_lambda.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_lambda.types.list_function_url_configs_request.ListFunctionUrlConfigsRequest]",
    ) -> AsyncOperationResponse[
        "capo_lambda.types.list_function_url_configs_response.ListFunctionUrlConfigsResponse"
    ]:
        import capo_lambda._operations.aws_gir_api_service.list_function_url_configs

        (
            output,
            http_response,
        ) = await capo_lambda._operations.aws_gir_api_service.list_function_url_configs.async_list_function_url_configs(
            req.options, req.input
        )
        return AsyncOperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListFunctionUrlConfigs")
    )
    input_: capo_lambda.types.list_function_url_configs_request.ListFunctionUrlConfigsRequest = {
        "function_name": function_name
    }
    if marker is not None:
        input_["marker"] = marker
    if max_items is not None:
        input_["max_items"] = max_items

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