@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.134Z") @Stability(value=Stable) public interface FunctionAssociation extends software.amazon.jsii.JsiiSerializable
The type of the {@link AddBehaviorOptions.functionAssociations} property.
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.*;
Function function_;
FunctionAssociation functionAssociation = FunctionAssociation.builder()
.eventType(FunctionEventType.VIEWER_REQUEST)
.function(function_)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
FunctionAssociation.Builder
A builder for
FunctionAssociation |
static class |
FunctionAssociation.Jsii$Proxy
An implementation for
FunctionAssociation |
| Modifier and Type | Method and Description |
|---|---|
static FunctionAssociation.Builder |
builder() |
FunctionEventType |
getEventType()
The type of event which should invoke the function.
|
IFunction |
getFunction()
The CloudFront function that will be invoked.
|
@Stability(value=Stable) @NotNull FunctionEventType getEventType()
@Stability(value=Stable) @NotNull IFunction getFunction()
@Stability(value=Stable) static FunctionAssociation.Builder builder()
FunctionAssociation.Builder of FunctionAssociationCopyright © 2022. All rights reserved.