Skip to content

Create Usage Plan Key

apigateway_create_usage_plan_key R Documentation

Creates a usage plan key for adding an existing API key to a usage plan

Description

Creates a usage plan key for adding an existing API key to a usage plan.

Usage

apigateway_create_usage_plan_key(usagePlanId, keyId, keyType)

Arguments

usagePlanId

[required] The Id of the UsagePlan resource representing the usage plan containing the to-be-created UsagePlanKey resource representing a plan customer.

keyId

[required] The identifier of a UsagePlanKey resource for a plan customer.

keyType

[required] The type of a UsagePlanKey resource for a plan customer.

Value

A list with the following syntax:

list(
  id = "string",
  type = "string",
  value = "string",
  name = "string"
)

Request syntax

svc$create_usage_plan_key(
  usagePlanId = "string",
  keyId = "string",
  keyType = "string"
)