CloudFront / Client / get_connection_function

get_connection_function

CloudFront.Client.get_connection_function(**kwargs)

Gets a connection function.

See also: AWS API Documentation

Request Syntax

response = client.get_connection_function(
    Identifier='string',
    Stage='DEVELOPMENT'|'LIVE'
)
Parameters:
  • Identifier (string) –

    [REQUIRED]

    The connection function’s identifier.

  • Stage (string) – The connection function’s stage.

Return type:

dict

Returns:

Response Syntax

{
    'ConnectionFunctionCode': StreamingBody(),
    'ETag': 'string',
    'ContentType': 'string'
}

Response Structure

  • (dict) –

    • ConnectionFunctionCode (StreamingBody) –

      The connection function’s code.

    • ETag (string) –

      The version identifier for the current version of the connection function.

    • ContentType (string) –

      The connection function’s content type.

Exceptions

  • CloudFront.Client.exceptions.AccessDenied

  • CloudFront.Client.exceptions.EntityNotFound

  • CloudFront.Client.exceptions.UnsupportedOperation