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

export interface Ec2SubnetCidrReservationArgs extends core.ResourceArgs {
  cidrBlock: string | core.StringOut;

  description?: string | core.StringOut;

  reservationType: string | core.StringOut;

  subnetId: string | core.StringOut;
}

export class Ec2SubnetCidrReservation extends core.Resource<Ec2SubnetCidrReservationArgs> {
  @core.attr(String)
  public cidrBlock!: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: Ec2SubnetCidrReservationArgs) {
    super(name, "aws_ec2_subnet_cidr_reservation", args);
  }

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