Skip to content

list_functions_by_code_signing_config async

list_functions_by_code_signing_config(
    code_signing_config_arn: CodeSigningConfigArn,
    *,
    config_overrides: Optional[AsyncLambdaClientConfig] = None,
    marker: Optional[String] = None,
    max_items: Optional[MaxListItems] = None,
) -> ListFunctionsByCodeSigningConfigResponse

List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.

Parameters:

  • code_signing_config_arn (CodeSigningConfigArn) –

    The The Amazon Resource Name (ARN) of the code signing configuration.

  • 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[MaxListItems], default: None ) –

    Maximum number of items to return.

Raises:

Source code in docs_src/capo_lambda/_services/async__lambda.py
async def list_functions_by_code_signing_config(
    self,
    code_signing_config_arn: "capo_lambda.types.code_signing_config_arn.CodeSigningConfigArn",
    *,
    config_overrides: Optional[AsyncLambdaClientConfig] = None,
    marker: Optional["capo_lambda.types.string.String"] = None,
    max_items: Optional["capo_lambda.types.max_list_items.MaxListItems"] = None,
) -> "capo_lambda.types.list_functions_by_code_signing_config_response.ListFunctionsByCodeSigningConfigResponse":
    """<p>List the functions that use the specified code signing configuration. You can use this method prior to deleting a code signing configuration, to verify that no functions are using it.</p>

    Args:
        code_signing_config_arn: <p>The The Amazon Resource Name (ARN) of the code signing configuration.</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>Maximum number of items to return.</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.UnknownServiceError: The service returned an error code this client does not model.
    """

    async def _handler(
        req: "AsyncOperationRequest[capo_lambda.types.list_functions_by_code_signing_config_request.ListFunctionsByCodeSigningConfigRequest]",
    ) -> AsyncOperationResponse[
        "capo_lambda.types.list_functions_by_code_signing_config_response.ListFunctionsByCodeSigningConfigResponse"
    ]:
        import capo_lambda._operations.aws_gir_api_service.list_functions_by_code_signing_config

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListFunctionsByCodeSigningConfig")
    )
    input_: capo_lambda.types.list_functions_by_code_signing_config_request.ListFunctionsByCodeSigningConfigRequest = {
        "code_signing_config_arn": code_signing_config_arn
    }
    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