Skip to content
v2.277.0

KeyGroupReference Struct ​

A reference to a KeyGroup resource.

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 interfaces_cloudfront } from 'aws-cdk-lib/interfaces';
const keyGroupReference: interfaces_cloudfront.KeyGroupReference = {
  keyGroupId: 'keyGroupId',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk.interfaces import aws_cloudfront as interfaces_cloudfront

key_group_reference = interfaces_cloudfront.KeyGroupReference(
    key_group_id="keyGroupId"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.interfaces.cloudfront.*;

KeyGroupReference keyGroupReference = KeyGroupReference.builder()
        .keyGroupId("keyGroupId")
        .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.Interfaces.CloudFront;

var keyGroupReference = new KeyGroupReference {
    KeyGroupId = "keyGroupId"
};
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"

keyGroupReference := &KeyGroupReference{
	KeyGroupId: jsii.String("keyGroupId"),
}

Properties ​

keyGroupIdstringkey_group_idstrkeyGroupIdStringKeyGroupIdstringKeyGroupId*stringrequired#
The Id of the KeyGroup resource.