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_apigateway as interfaces_apigateway } from 'aws-cdk-lib/interfaces';
const apiKeyReference: interfaces_apigateway.ApiKeyReference = {
  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_apigateway as interfaces_apigateway

api_key_reference = interfaces_apigateway.ApiKeyReference(
    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.apigateway.*;

ApiKeyReference apiKeyReference = ApiKeyReference.builder()
        .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.APIGateway;

var apiKeyReference = new ApiKeyReference {
    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{
	ApiKeyId: jsii.String("apiKeyId"),
}

Properties ​

apiKeyIdstringapi_key_idstrapiKeyIdStringApiKeyIdstringApiKeyId*string required #
The APIKeyId of the ApiKey resource.