CfnConnectionFunctionPropsMixin
- class aws_cdk.mixins_preview.aws_cloudfront.mixins.CfnConnectionFunctionPropsMixin(props, *, strategy=None)
Bases:
MixinA connection function.
- See:
- CloudformationResource:
AWS::CloudFront::ConnectionFunction
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import mixins from aws_cdk.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins cfn_connection_function_props_mixin = cloudfront_mixins.CfnConnectionFunctionPropsMixin(cloudfront_mixins.CfnConnectionFunctionMixinProps( auto_publish=False, connection_function_code="connectionFunctionCode", connection_function_config=cloudfront_mixins.CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty( comment="comment", key_value_store_associations=[cloudfront_mixins.CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty( key_value_store_arn="keyValueStoreArn" )], runtime="runtime" ), name="name", tags=[CfnTag( key="key", value="value" )] ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::CloudFront::ConnectionFunction.- Parameters:
props (
Union[CfnConnectionFunctionMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['autoPublish', 'connectionFunctionCode', 'connectionFunctionConfig', 'name', 'tags']
Static Methods
- classmethod is_mixin(x)
(experimental) Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.- Stability:
experimental
ConnectionFunctionConfigProperty
- class CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty(*, comment=None, key_value_store_associations=None, runtime=None)
Bases:
objectContains configuration information about a CloudFront function.
- Parameters:
comment (
Optional[str]) – A comment to describe the function.key_value_store_associations (
Union[IResolvable,Sequence[Union[IResolvable,KeyValueStoreAssociationProperty,Dict[str,Any]]],None]) – The configuration for the key value store associations.runtime (
Optional[str]) – The function’s runtime environment version.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins connection_function_config_property = cloudfront_mixins.CfnConnectionFunctionPropsMixin.ConnectionFunctionConfigProperty( comment="comment", key_value_store_associations=[cloudfront_mixins.CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty( key_value_store_arn="keyValueStoreArn" )], runtime="runtime" )
Attributes
- comment
A comment to describe the function.
- key_value_store_associations
The configuration for the key value store associations.
- runtime
The function’s runtime environment version.
KeyValueStoreAssociationProperty
- class CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty(*, key_value_store_arn=None)
Bases:
objectThe key value store association.
- Parameters:
key_value_store_arn (
Optional[str]) – The Amazon Resource Name (ARN) of the key value store association.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview.aws_cloudfront import mixins as cloudfront_mixins key_value_store_association_property = cloudfront_mixins.CfnConnectionFunctionPropsMixin.KeyValueStoreAssociationProperty( key_value_store_arn="keyValueStoreArn" )
Attributes
- key_value_store_arn
The Amazon Resource Name (ARN) of the key value store association.