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

export interface SubnetArgs extends core.ResourceArgs {
  assignIpv6AddressOnCreation?: boolean | core.BooleanOut;

  availabilityZone?: string | core.StringOut;

  availabilityZoneId?: string | core.StringOut;

  cidrBlock?: string | core.StringOut;

  customerOwnedIpv4Pool?: string | core.StringOut;

  enableDns64?: boolean | core.BooleanOut;

  enableResourceNameDnsARecordOnLaunch?: boolean | core.BooleanOut;

  enableResourceNameDnsAaaaRecordOnLaunch?: boolean | core.BooleanOut;

  ipv6CidrBlock?: string | core.StringOut;

  ipv6Native?: boolean | core.BooleanOut;

  mapCustomerOwnedIpOnLaunch?: boolean | core.BooleanOut;

  mapPublicIpOnLaunch?: boolean | core.BooleanOut;

  outpostArn?: string | core.StringOut;

  privateDnsHostnameTypeOnLaunch?: string | core.StringOut;

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

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

  vpcId: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: SubnetArgs) {
    super(name, "aws_subnet", args);
  }

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