# CfnUsagePlanKeyProps

Properties for defining a `CfnUsagePlanKey`.

Used as props by: [CfnUsagePlanKey](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_apigateway.CfnUsagePlanKey.html)

- Source: Generated at build time
- Type last changed: v2.227.0 · 21 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apigateway as apigateway } from 'aws-cdk-lib';
const cfnUsagePlanKeyProps: apigateway.CfnUsagePlanKeyProps = {
  keyId: 'keyId',
  keyType: 'keyType',
  usagePlanId: 'usagePlanId',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apigateway as apigateway

cfn_usage_plan_key_props = apigateway.CfnUsagePlanKeyProps(
    key_id="keyId",
    key_type="keyType",
    usage_plan_id="usagePlanId"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apigateway.*;

CfnUsagePlanKeyProps cfnUsagePlanKeyProps = CfnUsagePlanKeyProps.builder()
        .keyId("keyId")
        .keyType("keyType")
        .usagePlanId("usagePlanId")
        .build();
```

C# / .NET:

```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.AWS.APIGateway;

var cfnUsagePlanKeyProps = new CfnUsagePlanKeyProps {
    KeyId = "keyId",
    KeyType = "keyType",
    UsagePlanId = "usagePlanId"
};
```

Golang:

```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"

cfnUsagePlanKeyProps := &CfnUsagePlanKeyProps{
	KeyId: jsii.String("keyId"),
	KeyType: jsii.String("keyType"),
	UsagePlanId: jsii.String("usagePlanId"),
}
```

## Properties

- `keyId`: string | [IApiKeyRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_apigateway.IApiKeyRef.html) (required) — The Id of the UsagePlanKey resource.

- `keyType`: string (required) — The type of a UsagePlanKey resource for a plan customer.

- `usagePlanId`: string | [IUsagePlanRef](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_apigateway.IUsagePlanRef.html) (required) — The Id of the UsagePlan resource representing the usage plan containing the UsagePlanKey resource representing a plan customer.
