CloudFront / Client / create_connection_function
create_connection_functionΒΆ
- CloudFront.Client.create_connection_function(**kwargs)ΒΆ
Creates a connection function.
See also: AWS API Documentation
Request Syntax
response = client.create_connection_function( Name='string', ConnectionFunctionConfig={ 'Comment': 'string', 'Runtime': 'cloudfront-js-1.0'|'cloudfront-js-2.0', 'KeyValueStoreAssociations': { 'Quantity': 123, 'Items': [ { 'KeyValueStoreARN': 'string' }, ] } }, ConnectionFunctionCode=b'bytes', Tags={ 'Items': [ { 'Key': 'string', 'Value': 'string' }, ] } )
- Parameters:
Name (string) β
[REQUIRED]
A name for the connection function.
ConnectionFunctionConfig (dict) β
[REQUIRED]
Contains configuration information about a CloudFront function.
Comment (string) β [REQUIRED]
A comment to describe the function.
Runtime (string) β [REQUIRED]
The functionβs runtime environment version.
KeyValueStoreAssociations (dict) β
The configuration for the key value store associations.
Quantity (integer) β [REQUIRED]
The quantity of key value store associations.
Items (list) β
The items of the key value store association.
(dict) β
The key value store association.
KeyValueStoreARN (string) β [REQUIRED]
The Amazon Resource Name (ARN) of the key value store association.
ConnectionFunctionCode (bytes) β
[REQUIRED]
The code for the connection function.
Tags (dict) β
A complex type that contains zero or more
Tagelements.Items (list) β
A complex type that contains
Tagelements.(dict) β
A complex type that contains
Tagkey andTagvalue.Key (string) β [REQUIRED]
A string that contains
Tagkey.The string length should be between 1 and 128 characters. Valid characters include
a-z,A-Z,0-9, space, and the special characters_ - . : / = + @.Value (string) β
A string that contains an optional
Tagvalue.The string length should be between 0 and 256 characters. Valid characters include
a-z,A-Z,0-9, space, and the special characters_ - . : / = + @.
- Return type:
dict
- Returns:
Response Syntax
{ 'ConnectionFunctionSummary': { 'Name': 'string', 'Id': 'string', 'ConnectionFunctionConfig': { 'Comment': 'string', 'Runtime': 'cloudfront-js-1.0'|'cloudfront-js-2.0', 'KeyValueStoreAssociations': { 'Quantity': 123, 'Items': [ { 'KeyValueStoreARN': 'string' }, ] } }, 'ConnectionFunctionArn': 'string', 'Status': 'string', 'Stage': 'DEVELOPMENT'|'LIVE', 'CreatedTime': datetime(2015, 1, 1), 'LastModifiedTime': datetime(2015, 1, 1) }, 'Location': 'string', 'ETag': 'string' }
Response Structure
(dict) β
ConnectionFunctionSummary (dict) β
The summary for the connection function.
Name (string) β
The connection function name.
Id (string) β
The connection function ID.
ConnectionFunctionConfig (dict) β
Contains configuration information about a CloudFront function.
Comment (string) β
A comment to describe the function.
Runtime (string) β
The functionβs runtime environment version.
KeyValueStoreAssociations (dict) β
The configuration for the key value store associations.
Quantity (integer) β
The quantity of key value store associations.
Items (list) β
The items of the key value store association.
(dict) β
The key value store association.
KeyValueStoreARN (string) β
The Amazon Resource Name (ARN) of the key value store association.
ConnectionFunctionArn (string) β
The connection function Amazon Resource Name (ARN).
Status (string) β
The connection function status.
Stage (string) β
The connection function stage.
CreatedTime (datetime) β
The connection function created time.
LastModifiedTime (datetime) β
The connection function last modified time.
Location (string) β
The location of the connection function.
ETag (string) β
The version identifier for the current version of the connection function.
Exceptions
CloudFront.Client.exceptions.AccessDeniedCloudFront.Client.exceptions.UnsupportedOperationCloudFront.Client.exceptions.EntityAlreadyExistsCloudFront.Client.exceptions.InvalidTaggingCloudFront.Client.exceptions.EntityLimitExceededCloudFront.Client.exceptions.InvalidArgumentCloudFront.Client.exceptions.EntitySizeLimitExceeded