CfnKeyGroupProps Struct
Properties for defining a CfnKeyGroup.
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 cfnKeyGroupProps: cloudfront.CfnKeyGroupProps = {
keyGroupConfig: {
items: ['items'],
name: 'name',
// the properties below are optional
comment: 'comment',
},
};
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
cfn_key_group_props = cloudfront.CfnKeyGroupProps(
key_group_config=cloudfront.CfnKeyGroup.KeyGroupConfigProperty(
items=["items"],
name="name",
# the properties below are optional
comment="comment"
)
)
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.*;
CfnKeyGroupProps cfnKeyGroupProps = CfnKeyGroupProps.builder()
.keyGroupConfig(KeyGroupConfigProperty.builder()
.items(List.of("items"))
.name("name")
// the properties below are optional
.comment("comment")
.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 cfnKeyGroupProps = new CfnKeyGroupProps {
KeyGroupConfig = new KeyGroupConfigProperty {
Items = new [] { "items" },
Name = "name",
// the properties below are optional
Comment = "comment"
}
};
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"
cfnKeyGroupProps := &CfnKeyGroupProps{
KeyGroupConfig: &KeyGroupConfigProperty{
Items: []*string{
jsii.String("items"),
},
Name: jsii.String("name"),
// the properties below are optional
Comment: jsii.String("comment"),
},
}
Properties
keyGroupConfigIResolvable | CfnKeyGroup.KeyGroupConfigPropertykey_group_configtyping.Union[IResolvable, KeyGroupConfigProperty]keyGroupConfigIResolvableKeyGroupConfigIResolvableKeyGroupConfiginterface{}required#The key group configuration.