@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-11T17:58:48.725Z") @Stability(value=Stable) public interface CfnFunctionProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.cloudfront.*;
CfnFunctionProps cfnFunctionProps = CfnFunctionProps.builder()
.name("name")
// the properties below are optional
.autoPublish(false)
.functionCode("functionCode")
.functionConfig(FunctionConfigProperty.builder()
.comment("comment")
.runtime("runtime")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnFunctionProps.Builder
A builder for
CfnFunctionProps |
static class |
CfnFunctionProps.Jsii$Proxy
An implementation for
CfnFunctionProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnFunctionProps.Builder |
builder() |
default Object |
getAutoPublish()
A flag that determines whether to automatically publish the function to the `LIVE` stage when it’s created.
|
default String |
getFunctionCode()
The function code.
|
default Object |
getFunctionConfig()
Contains configuration information about a CloudFront function.
|
String |
getName()
A name to identify the function.
|
@Stability(value=Stable) @NotNull String getName()
@Stability(value=Stable) @Nullable default Object getAutoPublish()
To automatically publish to the LIVE stage, set this property to true .
@Stability(value=Stable) @Nullable default String getFunctionCode()
For more information about writing a CloudFront function, see Writing function code for CloudFront Functions in the Amazon CloudFront Developer Guide .
@Stability(value=Stable) @Nullable default Object getFunctionConfig()
@Stability(value=Stable) static CfnFunctionProps.Builder builder()
CfnFunctionProps.Builder of CfnFunctionPropsCopyright © 2022. All rights reserved.