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

export interface UsageLimitArgs extends core.ResourceArgs {
  amount: number | core.NumberOut;

  breachAction?: string | core.StringOut;

  clusterIdentifier: string | core.StringOut;

  featureType: string | core.StringOut;

  limitType: string | core.StringOut;

  period?: string | core.StringOut;

  tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;
}

export class UsageLimit extends core.Resource<UsageLimitArgs> {
  @core.attr(Number)
  public amount!: number | core.NumberOut;

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

  @core.attr(String)
  public breachAction?: string | core.StringOut;

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

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

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

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

  @core.attr(String)
  public period?: string | core.StringOut;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

  @core.attr(String, { computed: true, kind: "map" })
  public tagsAll?: core.Map<string, string> | core.MapOut<core.StringOut>;

  constructor(name: string, args?: UsageLimitArgs) {
    super(name, "aws_redshift_usage_limit", args);
  }

  public override getNamespace(): string {
    return "aws_redshift";
  }
}
