Skip to content
v2.278.0

KeyContextResponse Struct ​

Properties of a discovered key.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { cx_api } from 'aws-cdk-lib';
const keyContextResponse: cx_api.KeyContextResponse = {
  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 import cx_api

key_context_response = cx_api.KeyContextResponse(
    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.cxapi.*;

KeyContextResponse keyContextResponse = KeyContextResponse.builder()
        .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.CXAPI;

var keyContextResponse = new KeyContextResponse {
    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"

keyContextResponse := &KeyContextResponse{
	KeyId: jsii.String("keyId"),
}

Properties ​

keyIdstringkey_idstrkeyIdStringKeyIdstringKeyId*string required #
Id of the key.