public static final class CfnFunctionProps.Builder
extends java.lang.Object
CfnFunctionProps
Constructor and Description |
---|
Builder() |
public CfnFunctionProps.Builder functionCode(java.lang.String functionCode)
CfnFunctionProps.getFunctionCode()
functionCode
- The function code. This parameter is required.
For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .this
public CfnFunctionProps.Builder functionConfig(IResolvable functionConfig)
CfnFunctionProps.getFunctionConfig()
functionConfig
- Contains configuration information about a CloudFront function. This parameter is required.this
public CfnFunctionProps.Builder functionConfig(CfnFunction.FunctionConfigProperty functionConfig)
CfnFunctionProps.getFunctionConfig()
functionConfig
- Contains configuration information about a CloudFront function. This parameter is required.this
public CfnFunctionProps.Builder name(java.lang.String name)
CfnFunctionProps.getName()
name
- A name to identify the function. This parameter is required.this
public CfnFunctionProps.Builder autoPublish(java.lang.Boolean autoPublish)
CfnFunctionProps.getAutoPublish()
autoPublish
- A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created.
To automatically publish to the LIVE
stage, set this property to true
.this
public CfnFunctionProps.Builder autoPublish(IResolvable autoPublish)
CfnFunctionProps.getAutoPublish()
autoPublish
- A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created.
To automatically publish to the LIVE
stage, set this property to true
.this
public CfnFunctionProps.Builder functionMetadata(IResolvable functionMetadata)
CfnFunctionProps.getFunctionMetadata()
functionMetadata
- Contains metadata about a CloudFront function.this
public CfnFunctionProps.Builder functionMetadata(CfnFunction.FunctionMetadataProperty functionMetadata)
CfnFunctionProps.getFunctionMetadata()
functionMetadata
- Contains metadata about a CloudFront function.this
public CfnFunctionProps build()
CfnFunctionProps
java.lang.NullPointerException
- if any required attribute was not provided