Skip to content

CreateFunctionRequest

Source code in docs_src/capo_cloudfront/types/create_function_request.py
class CreateFunctionRequest(TypedDict, closed=True):
    name: "capo_cloudfront.types.function_name.FunctionName"
    """<p>A name to identify the function.</p>"""
    function_config: "capo_cloudfront.types.function_config.FunctionConfig"
    """<p>Configuration information about the function, including an optional comment and the function's runtime.</p>"""
    function_code: "capo_cloudfront.types.function_blob.FunctionBlob"
    """<p>The function code. For more information about writing a CloudFront function, see <a href="https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/writing-function-code.html">Writing function code for CloudFront Functions</a> in the <i>Amazon CloudFront Developer Guide</i>.</p>"""
    tags: NotRequired["capo_cloudfront.types.tags.Tags"]

function_code instance-attribute

function_code: FunctionBlob

The function code. For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide.

function_config instance-attribute

function_config: FunctionConfig

Configuration information about the function, including an optional comment and the function's runtime.

name instance-attribute

A name to identify the function.

tags instance-attribute

tags: NotRequired[Tags]