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

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

  availabilityZone: string | core.StringOut;

  customerOwnedIpv4Pool?: string | core.StringOut;

  enableDns64?: boolean | core.BooleanOut;

  enableResourceNameDnsARecordOnLaunch?: boolean | core.BooleanOut;

  enableResourceNameDnsAaaaRecordOnLaunch?: boolean | core.BooleanOut;

  forceDestroy?: boolean | core.BooleanOut;

  ipv6CidrBlock?: string | core.StringOut;

  ipv6Native?: boolean | core.BooleanOut;

  mapCustomerOwnedIpOnLaunch?: boolean | core.BooleanOut;

  mapPublicIpOnLaunch?: boolean | core.BooleanOut;

  privateDnsHostnameTypeOnLaunch?: string | core.StringOut;

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: DefaultSubnetArgs) {
    super(name, "aws_default_subnet", args);
  }

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