# FunctionConfigProperty

Contains configuration information about a CloudFront function.

- Source: Generated at build time
- Type last changed: v2.119.0 · 11 Jan 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
    } }
};
```

Golang:

```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

- `comment`: string (required) — A comment to describe the function.

- `keyValueStoreAssociations`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFunction.KeyValueStoreAssociationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_cloudfront.CfnFunction.KeyValueStoreAssociationProperty.html)[] — The configuration for the key value store associations.

- `runtime`: string (required) — The function's runtime environment version.
