# KeyGroupConfigProperty

A key group configuration.

A key group contains a list of public keys that you can use with [CloudFront signed URLs and signed cookies](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/PrivateContent.html) .

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## 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 keyGroupConfigProperty: cloudfront.CfnKeyGroup.KeyGroupConfigProperty = {
  items: ['items'],
  name: 'name',

  // the properties below are optional
  comment: 'comment',
};
```

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

key_group_config_property = cloudfront.CfnKeyGroup.KeyGroupConfigProperty(
    items=["items"],
    name="name",

    # the properties below are optional
    comment="comment"
)
```

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.*;

KeyGroupConfigProperty keyGroupConfigProperty = KeyGroupConfigProperty.builder()
        .items(List.of("items"))
        .name("name")

        // the properties below are optional
        .comment("comment")
        .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 keyGroupConfigProperty = new KeyGroupConfigProperty {
    Items = new [] { "items" },
    Name = "name",

    // the properties below are optional
    Comment = "comment"
};
```

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"

keyGroupConfigProperty := &KeyGroupConfigProperty{
	Items: []*string{
		jsii.String("items"),
	},
	Name: jsii.String("name"),

	// the properties below are optional
	Comment: jsii.String("comment"),
}
```

## Properties

- `comment`: string — A comment to describe the key group.

  The comment cannot be longer than 128 characters.

- `items`: string[] (required) — A list of the identifiers of the public keys in the key group.

- `name`: string (required) — A name to identify the key group.
