@Stability(value=Stable) public static final class CfnFunctionProps.Builder extends Object implements software.amazon.jsii.Builder<CfnFunctionProps>
CfnFunctionProps| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnFunctionProps.Builder |
autoPublish(Boolean autoPublish)
Sets the value of
CfnFunctionProps.getAutoPublish() |
CfnFunctionProps.Builder |
autoPublish(IResolvable autoPublish)
Sets the value of
CfnFunctionProps.getAutoPublish() |
CfnFunctionProps |
build()
Builds the configured instance.
|
CfnFunctionProps.Builder |
functionCode(String functionCode)
Sets the value of
CfnFunctionProps.getFunctionCode() |
CfnFunctionProps.Builder |
functionConfig(CfnFunction.FunctionConfigProperty functionConfig)
Sets the value of
CfnFunctionProps.getFunctionConfig() |
CfnFunctionProps.Builder |
functionConfig(IResolvable functionConfig)
Sets the value of
CfnFunctionProps.getFunctionConfig() |
CfnFunctionProps.Builder |
name(String name)
Sets the value of
CfnFunctionProps.getName() |
@Stability(value=Stable) public CfnFunctionProps.Builder name(String name)
CfnFunctionProps.getName()name - A name to identify the function. This parameter is required.this@Stability(value=Stable) public CfnFunctionProps.Builder autoPublish(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@Stability(value=Stable) 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@Stability(value=Stable) public CfnFunctionProps.Builder functionCode(String functionCode)
CfnFunctionProps.getFunctionCode()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 .this@Stability(value=Stable) public CfnFunctionProps.Builder functionConfig(IResolvable functionConfig)
CfnFunctionProps.getFunctionConfig()functionConfig - Contains configuration information about a CloudFront function.this@Stability(value=Stable) public CfnFunctionProps.Builder functionConfig(CfnFunction.FunctionConfigProperty functionConfig)
CfnFunctionProps.getFunctionConfig()functionConfig - Contains configuration information about a CloudFront function.this@Stability(value=Stable) public CfnFunctionProps build()
build in interface software.amazon.jsii.Builder<CfnFunctionProps>CfnFunctionPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.