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

export interface MainArgs extends core.ResourceArgs {
  assignGeneratedIpv6CidrBlock?: boolean | core.BooleanOut;

  cidrBlock?: string | core.StringOut;

  enableClassiclink?: boolean | core.BooleanOut;

  enableClassiclinkDnsSupport?: boolean | core.BooleanOut;

  enableDnsHostnames?: boolean | core.BooleanOut;

  enableDnsSupport?: boolean | core.BooleanOut;

  instanceTenancy?: string | core.StringOut;

  ipv4IpamPoolId?: string | core.StringOut;

  ipv4NetmaskLength?: number | core.NumberOut;

  ipv6CidrBlock?: string | core.StringOut;

  ipv6CidrBlockNetworkBorderGroup?: string | core.StringOut;

  ipv6IpamPoolId?: string | core.StringOut;

  ipv6NetmaskLength?: number | core.NumberOut;

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

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

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

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

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

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

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

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

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

  @core.attr(Boolean, { computed: true })
  public enableClassiclink?: boolean | core.BooleanOut;

  @core.attr(Boolean, { computed: true })
  public enableClassiclinkDnsSupport?: boolean | core.BooleanOut;

  @core.attr(Boolean, { computed: true })
  public enableDnsHostnames?: boolean | core.BooleanOut;

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: MainArgs) {
    super(name, "aws_vpc", args);
  }

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