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

export interface OptionsArgs extends core.SchemaArgs {
  ipv6Support: boolean | core.BooleanOut;
}

export class Options extends core.Schema<OptionsArgs> {
  @core.attr(Boolean)
  public ipv6Support!: boolean | core.BooleanOut;
}

export interface VpcAttachmentArgs extends core.ResourceArgs {
  coreNetworkId: string | core.StringOut;

  options?: Options;

  subnetArns: core.Array<string> | core.ArrayOut<core.StringOut>;

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

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

  vpcArn: string | core.StringOut;
}

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

  @core.attr(Number, { computed: true })
  public attachmentPolicyRuleNumber!: number | core.NumberOut;

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

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

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

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

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

  @core.attr(Options)
  public options?: Options;

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

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

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

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

  @core.attr(String, { kind: "array" })
  public subnetArns!: core.Array<string> | core.ArrayOut<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 vpcArn!: string | core.StringOut;

  constructor(name: string, args?: VpcAttachmentArgs) {
    super(name, "aws_networkmanager_vpc_attachment", args);
  }

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