Class CfnFunctionPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.cloudfront.CfnFunctionPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnFunctionPropsMixin>
- Enclosing class:
CfnFunctionPropsMixin
@Stability(Stable)
public static final class CfnFunctionPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnFunctionPropsMixin>
A fluent builder for
CfnFunctionPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionautoPublish(Boolean autoPublish) A flag that determines whether to automatically publish the function to theLIVEstage when it’s created.autoPublish(IResolvable autoPublish) A flag that determines whether to automatically publish the function to theLIVEstage when it’s created.build()create()create(CfnPropertyMixinOptions options) functionCode(String functionCode) The function code.functionConfig(CfnFunctionPropsMixin.FunctionConfigProperty functionConfig) Contains configuration information about a CloudFront function.functionConfig(IResolvable functionConfig) Contains configuration information about a CloudFront function.functionMetadata(CfnFunctionPropsMixin.FunctionMetadataProperty functionMetadata) Contains metadata about a CloudFront function.functionMetadata(IResolvable functionMetadata) Contains metadata about a CloudFront function.A name to identify the function.
-
Method Details
-
create
@Stability(Stable) public static CfnFunctionPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnFunctionPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnFunctionPropsMixin.Builder.
-
autoPublish
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.- Parameters:
autoPublish- A flag that determines whether to automatically publish the function to theLIVEstage when it’s created. This parameter is required.- Returns:
this- See Also:
-
autoPublish
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.- Parameters:
autoPublish- A flag that determines whether to automatically publish the function to theLIVEstage when it’s created. This parameter is required.- Returns:
this- See Also:
-
functionCode
The function code.For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .
- Parameters:
functionCode- The function code. This parameter is required.- Returns:
this- See Also:
-
functionConfig
Contains configuration information about a CloudFront function.- Parameters:
functionConfig- Contains configuration information about a CloudFront function. This parameter is required.- Returns:
this- See Also:
-
functionConfig
@Stability(Stable) public CfnFunctionPropsMixin.Builder functionConfig(CfnFunctionPropsMixin.FunctionConfigProperty functionConfig) Contains configuration information about a CloudFront function.- Parameters:
functionConfig- Contains configuration information about a CloudFront function. This parameter is required.- Returns:
this- See Also:
-
functionMetadata
@Stability(Stable) public CfnFunctionPropsMixin.Builder functionMetadata(IResolvable functionMetadata) Contains metadata about a CloudFront function.- Parameters:
functionMetadata- Contains metadata about a CloudFront function. This parameter is required.- Returns:
this- See Also:
-
functionMetadata
@Stability(Stable) public CfnFunctionPropsMixin.Builder functionMetadata(CfnFunctionPropsMixin.FunctionMetadataProperty functionMetadata) Contains metadata about a CloudFront function.- Parameters:
functionMetadata- Contains metadata about a CloudFront function. This parameter is required.- Returns:
this- See Also:
-
name
A name to identify the function.- Parameters:
name- A name to identify the function. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnFunctionPropsMixin>- Returns:
- a newly built instance of
CfnFunctionPropsMixin.
-