AWS Lambda

2021/11/19 - AWS Lambda - 5 new api methods

Changes  Add support for Lambda Function URLs. Customers can use Function URLs to create built-in HTTPS endpoints on their functions.

CreateFunctionUrlConfig (new) Link ¶

See also: AWS API Documentation

Request Syntax

client.create_function_url_config(
    FunctionName='string',
    Qualifier='string',
    AuthorizationType='NONE'|'AWS_IAM',
    Cors={
        'AllowCredentials': True|False,
        'AllowHeaders': [
            'string',
        ],
        'AllowMethods': [
            'string',
        ],
        'AllowOrigins': [
            'string',
        ],
        'ExposeHeaders': [
            'string',
        ],
        'MaxAge': 123
    }
)
type FunctionName:

string

param FunctionName:

[REQUIRED]

type Qualifier:

string

param Qualifier:

type AuthorizationType:

string

param AuthorizationType:

[REQUIRED]

type Cors:

dict

param Cors:
  • AllowCredentials (boolean) --

  • AllowHeaders (list) --

    • (string) --

  • AllowMethods (list) --

    • (string) --

  • AllowOrigins (list) --

    • (string) --

  • ExposeHeaders (list) --

    • (string) --

  • MaxAge (integer) --

rtype:

dict

returns:

Response Syntax

{
    'FunctionUrl': 'string',
    'FunctionArn': 'string',
    'AuthorizationType': 'NONE'|'AWS_IAM',
    'Cors': {
        'AllowCredentials': True|False,
        'AllowHeaders': [
            'string',
        ],
        'AllowMethods': [
            'string',
        ],
        'AllowOrigins': [
            'string',
        ],
        'ExposeHeaders': [
            'string',
        ],
        'MaxAge': 123
    },
    'CreationTime': 'string'
}

Response Structure

  • (dict) --

    • FunctionUrl (string) --

    • FunctionArn (string) --

    • AuthorizationType (string) --

    • Cors (dict) --

      • AllowCredentials (boolean) --

      • AllowHeaders (list) --

        • (string) --

      • AllowMethods (list) --

        • (string) --

      • AllowOrigins (list) --

        • (string) --

      • ExposeHeaders (list) --

        • (string) --

      • MaxAge (integer) --

    • CreationTime (string) --

GetFunctionUrlConfig (new) Link ¶

See also: AWS API Documentation

Request Syntax

client.get_function_url_config(
    FunctionName='string',
    Qualifier='string'
)
type FunctionName:

string

param FunctionName:

[REQUIRED]

type Qualifier:

string

param Qualifier:

rtype:

dict

returns:

Response Syntax

{
    'FunctionUrl': 'string',
    'FunctionArn': 'string',
    'AuthorizationType': 'NONE'|'AWS_IAM',
    'Cors': {
        'AllowCredentials': True|False,
        'AllowHeaders': [
            'string',
        ],
        'AllowMethods': [
            'string',
        ],
        'AllowOrigins': [
            'string',
        ],
        'ExposeHeaders': [
            'string',
        ],
        'MaxAge': 123
    },
    'CreationTime': 'string',
    'LastModifiedTime': 'string'
}

Response Structure

  • (dict) --

    • FunctionUrl (string) --

    • FunctionArn (string) --

    • AuthorizationType (string) --

    • Cors (dict) --

      • AllowCredentials (boolean) --

      • AllowHeaders (list) --

        • (string) --

      • AllowMethods (list) --

        • (string) --

      • AllowOrigins (list) --

        • (string) --

      • ExposeHeaders (list) --

        • (string) --

      • MaxAge (integer) --

    • CreationTime (string) --

    • LastModifiedTime (string) --

DeleteFunctionUrlConfig (new) Link ¶

See also: AWS API Documentation

Request Syntax

client.delete_function_url_config(
    FunctionName='string',
    Qualifier='string'
)
type FunctionName:

string

param FunctionName:

[REQUIRED]

type Qualifier:

string

param Qualifier:

returns:

None

ListFunctionUrlConfigs (new) Link ¶

See also: AWS API Documentation

Request Syntax

client.list_function_url_configs(
    FunctionName='string',
    Marker='string',
    MaxItems=123
)
type FunctionName:

string

param FunctionName:

[REQUIRED]

type Marker:

string

param Marker:

type MaxItems:

integer

param MaxItems:

rtype:

dict

returns:

Response Syntax

{
    'FunctionUrlConfigs': [
        {
            'FunctionUrl': 'string',
            'FunctionArn': 'string',
            'CreationTime': 'string',
            'LastModifiedTime': 'string',
            'Cors': {
                'AllowCredentials': True|False,
                'AllowHeaders': [
                    'string',
                ],
                'AllowMethods': [
                    'string',
                ],
                'AllowOrigins': [
                    'string',
                ],
                'ExposeHeaders': [
                    'string',
                ],
                'MaxAge': 123
            },
            'AuthorizationType': 'NONE'|'AWS_IAM'
        },
    ],
    'NextMarker': 'string'
}

Response Structure

  • (dict) --

    • FunctionUrlConfigs (list) --

      • (dict) --

        • FunctionUrl (string) --

        • FunctionArn (string) --

        • CreationTime (string) --

        • LastModifiedTime (string) --

        • Cors (dict) --

          • AllowCredentials (boolean) --

          • AllowHeaders (list) --

            • (string) --

          • AllowMethods (list) --

            • (string) --

          • AllowOrigins (list) --

            • (string) --

          • ExposeHeaders (list) --

            • (string) --

          • MaxAge (integer) --

        • AuthorizationType (string) --

    • NextMarker (string) --

UpdateFunctionUrlConfig (new) Link ¶

See also: AWS API Documentation

Request Syntax

client.update_function_url_config(
    FunctionName='string',
    Qualifier='string',
    AuthorizationType='NONE'|'AWS_IAM',
    Cors={
        'AllowCredentials': True|False,
        'AllowHeaders': [
            'string',
        ],
        'AllowMethods': [
            'string',
        ],
        'AllowOrigins': [
            'string',
        ],
        'ExposeHeaders': [
            'string',
        ],
        'MaxAge': 123
    }
)
type FunctionName:

string

param FunctionName:

[REQUIRED]

type Qualifier:

string

param Qualifier:

type AuthorizationType:

string

param AuthorizationType:

type Cors:

dict

param Cors:
  • AllowCredentials (boolean) --

  • AllowHeaders (list) --

    • (string) --

  • AllowMethods (list) --

    • (string) --

  • AllowOrigins (list) --

    • (string) --

  • ExposeHeaders (list) --

    • (string) --

  • MaxAge (integer) --

rtype:

dict

returns:

Response Syntax

{
    'FunctionUrl': 'string',
    'FunctionArn': 'string',
    'AuthorizationType': 'NONE'|'AWS_IAM',
    'Cors': {
        'AllowCredentials': True|False,
        'AllowHeaders': [
            'string',
        ],
        'AllowMethods': [
            'string',
        ],
        'AllowOrigins': [
            'string',
        ],
        'ExposeHeaders': [
            'string',
        ],
        'MaxAge': 123
    },
    'CreationTime': 'string',
    'LastModifiedTime': 'string'
}

Response Structure

  • (dict) --

    • FunctionUrl (string) --

    • FunctionArn (string) --

    • AuthorizationType (string) --

    • Cors (dict) --

      • AllowCredentials (boolean) --

      • AllowHeaders (list) --

        • (string) --

      • AllowMethods (list) --

        • (string) --

      • AllowOrigins (list) --

        • (string) --

      • ExposeHeaders (list) --

        • (string) --

      • MaxAge (integer) --

    • CreationTime (string) --

    • LastModifiedTime (string) --