public static final class CfnFunction.Builder
extends java.lang.Object
CfnFunction
.Modifier and Type | Method and Description |
---|---|
CfnFunction.Builder |
autoPublish(java.lang.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(Construct scope,
java.lang.String id) |
CfnFunction.Builder |
functionCode(java.lang.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 |
functionMetadata(CfnFunction.FunctionMetadataProperty functionMetadata)
Contains metadata about a CloudFront function.
|
CfnFunction.Builder |
functionMetadata(IResolvable functionMetadata)
Contains metadata about a CloudFront function.
|
CfnFunction.Builder |
name(java.lang.String name)
A name to identify the function.
|
public static CfnFunction.Builder create(Construct scope, java.lang.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
.public CfnFunction.Builder functionCode(java.lang.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
public CfnFunction.Builder functionConfig(IResolvable functionConfig)
functionConfig
- Contains configuration information about a CloudFront function. This parameter is required.this
public CfnFunction.Builder functionConfig(CfnFunction.FunctionConfigProperty functionConfig)
functionConfig
- Contains configuration information about a CloudFront function. This parameter is required.this
public CfnFunction.Builder name(java.lang.String name)
name
- A name to identify the function. This parameter is required.this
public CfnFunction.Builder autoPublish(java.lang.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
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
public CfnFunction.Builder functionMetadata(IResolvable functionMetadata)
functionMetadata
- Contains metadata about a CloudFront function. This parameter is required.this
public CfnFunction.Builder functionMetadata(CfnFunction.FunctionMetadataProperty functionMetadata)
functionMetadata
- Contains metadata about a CloudFront function. This parameter is required.this
public CfnFunction build()