Interface CfnFunctionMixinProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunctionMixinProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:23.850Z")
@Stability(Stable)
public interface CfnFunctionMixinProps
extends software.amazon.jsii.JsiiSerializable
Properties for CfnFunctionPropsMixin.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.mixins.preview.services.cloudfront.mixins.*;
CfnFunctionMixinProps cfnFunctionMixinProps = CfnFunctionMixinProps.builder()
.autoPublish(false)
.functionCode("functionCode")
.functionConfig(FunctionConfigProperty.builder()
.comment("comment")
.keyValueStoreAssociations(List.of(KeyValueStoreAssociationProperty.builder()
.keyValueStoreArn("keyValueStoreArn")
.build()))
.runtime("runtime")
.build())
.functionMetadata(FunctionMetadataProperty.builder()
.functionArn("functionArn")
.build())
.name("name")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunctionMixinPropsstatic final classAn implementation forCfnFunctionMixinProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA flag that determines whether to automatically publish the function to theLIVEstage when it’s created.default StringThe function code.default ObjectContains configuration information about a CloudFront function.default ObjectContains metadata about a CloudFront function.default StringgetName()A name to identify the function.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAutoPublish
A flag that determines whether to automatically publish the function to theLIVEstage when it’s created.To automatically publish to the
LIVEstage, set this property totrue.Returns union: either
BooleanorIResolvable- See Also:
-
getFunctionCode
The function code.For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .
- See Also:
-
getFunctionConfig
Contains configuration information about a CloudFront function.Returns union: either
IResolvableorCfnFunctionPropsMixin.FunctionConfigProperty- See Also:
-
getFunctionMetadata
Contains metadata about a CloudFront function.Returns union: either
IResolvableorCfnFunctionPropsMixin.FunctionMetadataProperty- See Also:
-
getName
A name to identify the function.- See Also:
-
builder
- Returns:
- a
CfnFunctionMixinProps.BuilderofCfnFunctionMixinProps
-