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

export interface CapacityReservationArgs extends core.ResourceArgs {
  availabilityZone: string | core.StringOut;

  ebsOptimized?: boolean | core.BooleanOut;

  endDate?: string | core.StringOut;

  endDateType?: string | core.StringOut;

  ephemeralStorage?: boolean | core.BooleanOut;

  instanceCount: number | core.NumberOut;

  instanceMatchCriteria?: string | core.StringOut;

  instancePlatform: string | core.StringOut;

  instanceType: string | core.StringOut;

  outpostArn?: string | core.StringOut;

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

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

  tenancy?: string | core.StringOut;
}

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

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

  @core.attr(Boolean)
  public ebsOptimized?: boolean | core.BooleanOut;

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

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

  @core.attr(Boolean)
  public ephemeralStorage?: boolean | core.BooleanOut;

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

  @core.attr(Number)
  public instanceCount!: number | core.NumberOut;

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

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

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

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

  @core.attr(String, { computed: true })
  public ownerId!: 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>;

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

  constructor(name: string, args?: CapacityReservationArgs) {
    super(name, "aws_ec2_capacity_reservation", args);
  }

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