FunctionConfigProperty Struct
Contains configuration information about a CloudFront function.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudfront as cloudfront } from 'aws-cdk-lib';
const functionConfigProperty: cloudfront.CfnFunction.FunctionConfigProperty = {
comment: 'comment',
runtime: 'runtime',
// the properties below are optional
keyValueStoreAssociations: [{
keyValueStoreArn: 'keyValueStoreArn',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_cloudfront as cloudfront
function_config_property = cloudfront.CfnFunction.FunctionConfigProperty(
comment="comment",
runtime="runtime",
# the properties below are optional
key_value_store_associations=[cloudfront.CfnFunction.KeyValueStoreAssociationProperty(
key_value_store_arn="keyValueStoreArn"
)]
)
java
// 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.*;
FunctionConfigProperty functionConfigProperty = FunctionConfigProperty.builder()
.comment("comment")
.runtime("runtime")
// the properties below are optional
.keyValueStoreAssociations(List.of(KeyValueStoreAssociationProperty.builder()
.keyValueStoreArn("keyValueStoreArn")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CloudFront;
var functionConfigProperty = new FunctionConfigProperty {
Comment = "comment",
Runtime = "runtime",
// the properties below are optional
KeyValueStoreAssociations = new [] { new KeyValueStoreAssociationProperty {
KeyValueStoreArn = "keyValueStoreArn"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
functionConfigProperty := &FunctionConfigProperty{
Comment: jsii.String("comment"),
Runtime: jsii.String("runtime"),
// the properties below are optional
KeyValueStoreAssociations: []interface{}{
&KeyValueStoreAssociationProperty{
KeyValueStoreArn: jsii.String("keyValueStoreArn"),
},
},
}
Properties
A comment to describe the function.
keyValueStoreAssociationsoptionalIResolvable | IResolvable | CfnFunction.KeyValueStoreAssociationProperty[]key_value_store_associationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, KeyValueStoreAssociationProperty]]]keyValueStoreAssociationsoptionalIResolvableKeyValueStoreAssociationsoptionalIResolvableKeyValueStoreAssociationsoptionalinterface{}#The configuration for the key value store associations.
The function's runtime environment version.