CfnConnectionFunctionProps
- class aws_cdk.aws_cloudfront.CfnConnectionFunctionProps(*, connection_function_code, connection_function_config, name, auto_publish=None, tags=None)
Bases:
objectProperties for defining a
CfnConnectionFunction.- Parameters:
connection_function_code (
str) – The code for the connection function.connection_function_config (
Union[IResolvable,ConnectionFunctionConfigProperty,Dict[str,Any]]) – Contains configuration information about a CloudFront function.name (
str) – The connection function name.auto_publish (
Union[bool,IResolvable,None]) – A flag that determines whether to automatically publish the function to theLIVEstage when it’s created. To automatically publish to theLIVEstage, set this property totrue. Default: - falsetags (
Optional[Sequence[Union[CfnTag,Dict[str,Any]]]]) – A complex type that contains zero or moreTagelements.
- See:
- ExampleMetadata:
fixture=_generated
Example:
from aws_cdk import CfnTag # The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_cloudfront as cloudfront cfn_connection_function_props = cloudfront.CfnConnectionFunctionProps( connection_function_code="connectionFunctionCode", connection_function_config=cloudfront.CfnConnectionFunction.ConnectionFunctionConfigProperty( comment="comment", runtime="runtime", # the properties below are optional key_value_store_associations=[cloudfront.CfnConnectionFunction.KeyValueStoreAssociationProperty( key_value_store_arn="keyValueStoreArn" )] ), name="name", # the properties below are optional auto_publish=False, tags=[CfnTag( key="key", value="value" )] )
Attributes
- auto_publish
A flag that determines whether to automatically publish the function to the
LIVEstage when it’s created.To automatically publish to the
LIVEstage, set this property totrue.
- connection_function_code
The code for the connection function.
- connection_function_config
Contains configuration information about a CloudFront function.
- name
The connection function name.
- tags
A complex type that contains zero or more
Tagelements.