Skip to content

LambdaClient.create_function_url_config

rboto-lambda==0.4.0 · Service index · Types

Model summary (excerpt): Creates a Lambda function URL with the specified configuration parameters. A function URL is a dedicated HTTP(S) endpoint that you can use to invoke your function.

Install and imports

python -m pip install "rboto[lambda]==0.4.0"
from rboto import LambdaClient
from rboto_lambda.types import (
    Cors,
    CreateFunctionUrlConfigOutput,
    FunctionUrlAuthType,
    InvokeMode,
)

Signature

async def create_function_url_config(
    *,
    function_name: str,
    auth_type: FunctionUrlAuthType,
    qualifier: str | None = None,
    cors: Cors | None = None,
    invoke_mode: InvokeMode | None = None,
) -> CreateFunctionUrlConfigOutput: ...

Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.

Arguments

Argument Required Model notes (excerpt)
function_name Yes 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.
auth_type Yes The type of authentication that your function URL uses. Set to AWS_IAM if you want to restrict access to authenticated users only. Set to NONE if you want to bypass IAM authentication to create a public endpoint. For more information, see Control access to Lambda function URLs .
qualifier No The alias name.
cors No The cross-origin resource sharing (CORS) settings for your function URL.
invoke_mode No Use one of the following options: BUFFERED – This is the default option. Lambda invokes your function using the Invoke API operation. Invocation results are available when the payload is complete. The maximum payload size is 6 MB. RESPONSE_STREAM – Your function streams payload results as they become available. Lambda invokes your function using the InvokeWithResponseStream API operation. The...

Output

CreateFunctionUrlConfigOutput.

Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.

Field Type Presence References
function_url str Always present —
function_arn str Always present —
auth_type FunctionUrlAuthTypeOutput Always present FunctionUrlAuthTypeOutput
cors CorsOutput | None Always present CorsOutput
creation_time str Always present —
invoke_mode InvokeModeOutput | None Always present InvokeModeOutput

| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.

Cors, CreateFunctionUrlConfigOutput, FunctionUrlAuthType, InvokeMode

Follow these links for nested inputs and outputs; recursive types link back to the same type page.

Pagination and streaming

No generated paginator for this operation.

No output stream.

Errors

Import from rboto_lambda.exceptions:

InvalidParameterValueError, ResourceConflictError, ResourceNotFoundError, ServiceError, TooManyRequestsError.

Other service failures use the service base error; credential, transport and timeout failures use shared errors.

Service guide · Pinned model