KeyReference Struct
A reference to a Key resource.
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kms as interfaces_kms } from 'aws-cdk-lib/interfaces';
const keyReference: interfaces_kms.KeyReference = {
keyArn: 'keyArn',
keyId: 'keyId',
};
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_kms as interfaces_kms
key_reference = interfaces_kms.KeyReference(
key_arn="keyArn",
key_id="keyId"
)
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.kms.*;
KeyReference keyReference = KeyReference.builder()
.keyArn("keyArn")
.keyId("keyId")
.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.KMS;
var keyReference = new KeyReference {
KeyArn = "keyArn",
KeyId = "keyId"
};
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"
keyReference := &KeyReference{
KeyArn: jsii.String("keyArn"),
KeyId: jsii.String("keyId"),
}