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

export interface AttachmentArgs extends core.SchemaArgs {
  endpointId: string | core.StringOut;

  status: string | core.StringOut;

  subnetId: string | core.StringOut;
}

export class Attachment extends core.Schema<AttachmentArgs> {
  @core.attr(String, { computed: true })
  public endpointId!: string | core.StringOut;

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

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

export interface SyncStatesArgs extends core.SchemaArgs {
  attachment: core.Array<Attachment> | core.ArrayOut<Attachment>;

  availabilityZone: string | core.StringOut;
}

export class SyncStates extends core.Schema<SyncStatesArgs> {
  @core.attr(Attachment, { computed: true, kind: "array" })
  public attachment!: core.Array<Attachment> | core.ArrayOut<Attachment>;

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

export interface IpSetReferencesArgs extends core.SchemaArgs {
  resolvedCidrCount: number | core.NumberOut;
}

export class IpSetReferences extends core.Schema<IpSetReferencesArgs> {
  @core.attr(Number, { computed: true })
  public resolvedCidrCount!: number | core.NumberOut;
}

export interface CidrsArgs extends core.SchemaArgs {
  availableCidrCount: number | core.NumberOut;

  ipSetReferences: core.Array<IpSetReferences> | core.ArrayOut<IpSetReferences>;

  utilizedCidrCount: number | core.NumberOut;
}

export class Cidrs extends core.Schema<CidrsArgs> {
  @core.attr(Number, { computed: true })
  public availableCidrCount!: number | core.NumberOut;

  @core.attr(IpSetReferences, { computed: true, kind: "array" })
  public ipSetReferences!:
    | core.Array<IpSetReferences>
    | core.ArrayOut<IpSetReferences>;

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

export interface CapacityUsageSummaryArgs extends core.SchemaArgs {
  cidrs: core.Array<Cidrs> | core.ArrayOut<Cidrs>;
}

export class CapacityUsageSummary extends core.Schema<CapacityUsageSummaryArgs> {
  @core.attr(Cidrs, { computed: true, kind: "array" })
  public cidrs!: core.Array<Cidrs> | core.ArrayOut<Cidrs>;
}

export interface FirewallStatusArgs extends core.SchemaArgs {
  capacityUsageSummary:
    | core.Array<CapacityUsageSummary>
    | core.ArrayOut<CapacityUsageSummary>;

  configurationSyncStateSummary: string | core.StringOut;

  status: string | core.StringOut;

  syncStates: core.Array<SyncStates> | core.ArrayOut<SyncStates>;
}

export class FirewallStatus extends core.Schema<FirewallStatusArgs> {
  @core.attr(CapacityUsageSummary, { computed: true, kind: "array" })
  public capacityUsageSummary!:
    | core.Array<CapacityUsageSummary>
    | core.ArrayOut<CapacityUsageSummary>;

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

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

  @core.attr(SyncStates, { computed: true, kind: "array" })
  public syncStates!: core.Array<SyncStates> | core.ArrayOut<SyncStates>;
}

export interface SubnetMappingArgs extends core.SchemaArgs {
  subnetId: string | core.StringOut;
}

export class SubnetMapping extends core.Schema<SubnetMappingArgs> {
  @core.attr(String)
  public subnetId!: string | core.StringOut;
}

export interface EncryptionConfigurationArgs extends core.SchemaArgs {
  keyId: string | core.StringOut;

  type: string | core.StringOut;
}

export class EncryptionConfiguration extends core.Schema<EncryptionConfigurationArgs> {
  @core.attr(String, { computed: true })
  public keyId!: string | core.StringOut;

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

export interface DsFirewallArgs {
  arn?: string | core.StringOut;

  name?: string | core.StringOut;

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

export class DsFirewall extends core.Data<DsFirewallArgs> {
  @core.attr(String, { computed: true })
  public arn?: string | core.StringOut;

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

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

  @core.attr(EncryptionConfiguration, { computed: true, kind: "array" })
  public encryptionConfiguration!:
    | core.Array<EncryptionConfiguration>
    | core.ArrayOut<EncryptionConfiguration>;

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

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

  @core.attr(FirewallStatus, { computed: true, kind: "array" })
  public firewallStatus!:
    | core.Array<FirewallStatus>
    | core.ArrayOut<FirewallStatus>;

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

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

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

  @core.attr(SubnetMapping, { computed: true, kind: "array" })
  public subnetMapping!:
    | core.Array<SubnetMapping>
    | core.ArrayOut<SubnetMapping>;

  @core.attr(String, { kind: "map" })
  public tags?: core.Map<string, string> | core.MapOut<core.StringOut>;

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

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

  constructor(name: string, args?: DsFirewallArgs) {
    super(name, "aws_networkfirewall_firewall", args);
  }

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