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

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

  ipv4IpamPoolId?: string | core.StringOut;

  ipv4NetmaskLength?: number | core.NumberOut;

  vpcId: string | core.StringOut;
}

export class Ipv4CidrBlockAssociation extends core.Resource<Ipv4CidrBlockAssociationArgs> {
  @core.attr(String, { computed: true })
  public cidrBlock?: string | core.StringOut;

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

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

  @core.attr(Number)
  public ipv4NetmaskLength?: number | core.NumberOut;

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

  constructor(name: string, args?: Ipv4CidrBlockAssociationArgs) {
    super(name, "aws_vpc_ipv4_cidr_block_association", args);
  }

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