Skip to content
v2.278.0

ApiKeyReference Struct ​

A reference to a ApiKey resource.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appsync as interfaces_appsync } from 'aws-cdk-lib/interfaces';
const apiKeyReference: interfaces_appsync.ApiKeyReference = {
  apiId: 'apiId',
  apiKeyArn: 'apiKeyArn',
  apiKeyId: 'apiKeyId',
};
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_appsync as interfaces_appsync

api_key_reference = interfaces_appsync.ApiKeyReference(
    api_id="apiId",
    api_key_arn="apiKeyArn",
    api_key_id="apiKeyId"
)
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.appsync.*;

ApiKeyReference apiKeyReference = ApiKeyReference.builder()
        .apiId("apiId")
        .apiKeyArn("apiKeyArn")
        .apiKeyId("apiKeyId")
        .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.AppSync;

var apiKeyReference = new ApiKeyReference {
    ApiId = "apiId",
    ApiKeyArn = "apiKeyArn",
    ApiKeyId = "apiKeyId"
};
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"

apiKeyReference := &ApiKeyReference{
	ApiId: jsii.String("apiId"),
	ApiKeyArn: jsii.String("apiKeyArn"),
	ApiKeyId: jsii.String("apiKeyId"),
}

Properties ​

apiIdstringapi_idstrapiIdStringApiIdstringApiId*string required #
The ApiId of the ApiKey resource.
apiKeyArnstringapi_key_arnstrapiKeyArnStringApiKeyArnstringApiKeyArn*string required #
The ARN of the ApiKey resource.
apiKeyIdstringapi_key_idstrapiKeyIdStringApiKeyIdstringApiKeyId*string required #
The ApiKeyId of the ApiKey resource.