import * as core from "@terrascript/core";

export interface UsagePlanKeyArgs extends core.ResourceArgs {
  keyId: string | core.StringOut;

  keyType: string | core.StringOut;

  usagePlanId: string | core.StringOut;
}

export class UsagePlanKey extends core.Resource<UsagePlanKeyArgs> {
  @core.attr(String, { computed: true })
  public id!: string | core.StringOut;

  @core.attr(String)
  public keyId!: string | core.StringOut;

  @core.attr(String)
  public keyType!: string | core.StringOut;

  @core.attr(String, { computed: true })
  public name!: string | core.StringOut;

  @core.attr(String)
  public usagePlanId!: string | core.StringOut;

  @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";
  }
}
