@Stability(value=Stable) public static final class CfnFunction.Builder extends Object implements software.amazon.jsii.Builder<CfnFunction>
CfnFunction.| Modifier and Type | Method and Description |
|---|---|
CfnFunction.Builder |
autoPublish(Boolean autoPublish)
A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created.
|
CfnFunction.Builder |
autoPublish(IResolvable autoPublish)
A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created.
|
CfnFunction |
build() |
static CfnFunction.Builder |
create(software.constructs.Construct scope,
String id) |
CfnFunction.Builder |
functionCode(String functionCode)
The function code.
|
CfnFunction.Builder |
functionConfig(CfnFunction.FunctionConfigProperty functionConfig)
Contains configuration information about a CloudFront function.
|
CfnFunction.Builder |
functionConfig(IResolvable functionConfig)
Contains configuration information about a CloudFront function.
|
CfnFunction.Builder |
name(String name)
A name to identify the function.
|
@Stability(value=Stable) public static CfnFunction.Builder create(software.constructs.Construct scope, String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.CfnFunction.FunctionConfigProperty.Builder.@Stability(value=Stable) public CfnFunction.Builder name(String name)
name - A name to identify the function. This parameter is required.this@Stability(value=Stable) public CfnFunction.Builder autoPublish(Boolean autoPublish)
To automatically publish to the LIVE stage, set this property to true .
autoPublish - A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created. This parameter is required.this@Stability(value=Stable) public CfnFunction.Builder autoPublish(IResolvable autoPublish)
To automatically publish to the LIVE stage, set this property to true .
autoPublish - A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created. This parameter is required.this@Stability(value=Stable) public CfnFunction.Builder functionCode(String functionCode)
For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .
functionCode - The function code. This parameter is required.this@Stability(value=Stable) public CfnFunction.Builder functionConfig(CfnFunction.FunctionConfigProperty functionConfig)
functionConfig - Contains configuration information about a CloudFront function. This parameter is required.this@Stability(value=Stable) public CfnFunction.Builder functionConfig(IResolvable functionConfig)
functionConfig - Contains configuration information about a CloudFront function. This parameter is required.this@Stability(value=Stable) public CfnFunction build()
build in interface software.amazon.jsii.Builder<CfnFunction>Copyright © 2022. All rights reserved.