import * as core from "@terrascript/core"; export interface UsagePlanKeyArgs extends core.ResourceArgs { /** * (Required) The identifier of the API key resource. */ keyId: string | core.StringOut; /** * (Required) The type of the API key resource. Currently, the valid key type is API_KEY. */ keyType: string | core.StringOut; /** * (Required) The Id of the usage plan resource representing to associate the key to. */ usagePlanId: string | core.StringOut; } export class UsagePlanKey extends core.Resource { /** * The Id of a usage plan key. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The identifier of the API key resource. */ @core.attr(String) public keyId!: string | core.StringOut; /** * (Required) The type of the API key resource. Currently, the valid key type is API_KEY. */ @core.attr(String) public keyType!: string | core.StringOut; /** * The name of a usage plan key. */ @core.attr(String, { computed: true }) public name!: string | core.StringOut; /** * (Required) The Id of the usage plan resource representing to associate the key to. */ @core.attr(String) public usagePlanId!: string | core.StringOut; /** * The value of a usage plan key. */ @core.attr(String, { computed: true }) public value!: string | core.StringOut; constructor(name: string, args?: UsagePlanKeyArgs) { super(name, "aws_api_gateway_usage_plan_key", args); } public override getNamespace(): string { return "aws_api_gateway"; } }