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

export interface RoutesArgs extends core.SchemaArgs {
  destinationCidrBlock: string | core.StringOut;

  source: string | core.StringOut;

  state: string | core.StringOut;
}

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

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

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

export interface VgwTelemetryArgs extends core.SchemaArgs {
  acceptedRouteCount: number | core.NumberOut;

  certificateArn: string | core.StringOut;

  lastStatusChange: string | core.StringOut;

  outsideIpAddress: string | core.StringOut;

  status: string | core.StringOut;

  statusMessage: string | core.StringOut;
}

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

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

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

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

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

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

export interface ConnectionArgs extends core.ResourceArgs {
  customerGatewayId: string | core.StringOut;

  enableAcceleration?: boolean | core.BooleanOut;

  localIpv4NetworkCidr?: string | core.StringOut;

  localIpv6NetworkCidr?: string | core.StringOut;

  outsideIpAddressType?: string | core.StringOut;

  remoteIpv4NetworkCidr?: string | core.StringOut;

  remoteIpv6NetworkCidr?: string | core.StringOut;

  staticRoutesOnly?: boolean | core.BooleanOut;

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

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

  transitGatewayId?: string | core.StringOut;

  transportTransitGatewayAttachmentId?: string | core.StringOut;

  tunnel1DpdTimeoutAction?: string | core.StringOut;

  tunnel1DpdTimeoutSeconds?: number | core.NumberOut;

  tunnel1IkeVersions?: core.Array<string> | core.ArrayOut<core.StringOut>;

  tunnel1InsideCidr?: string | core.StringOut;

  tunnel1InsideIpv6Cidr?: string | core.StringOut;

  tunnel1Phase1DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  tunnel1Phase1EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel1Phase1IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel1Phase1LifetimeSeconds?: number | core.NumberOut;

  tunnel1Phase2DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  tunnel1Phase2EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel1Phase2IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel1Phase2LifetimeSeconds?: number | core.NumberOut;

  tunnel1PresharedKey?: string | core.StringOut;

  tunnel1RekeyFuzzPercentage?: number | core.NumberOut;

  tunnel1RekeyMarginTimeSeconds?: number | core.NumberOut;

  tunnel1ReplayWindowSize?: number | core.NumberOut;

  tunnel1StartupAction?: string | core.StringOut;

  tunnel2DpdTimeoutAction?: string | core.StringOut;

  tunnel2DpdTimeoutSeconds?: number | core.NumberOut;

  tunnel2IkeVersions?: core.Array<string> | core.ArrayOut<core.StringOut>;

  tunnel2InsideCidr?: string | core.StringOut;

  tunnel2InsideIpv6Cidr?: string | core.StringOut;

  tunnel2Phase1DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  tunnel2Phase1EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel2Phase1IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel2Phase1LifetimeSeconds?: number | core.NumberOut;

  tunnel2Phase2DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  tunnel2Phase2EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel2Phase2IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  tunnel2Phase2LifetimeSeconds?: number | core.NumberOut;

  tunnel2PresharedKey?: string | core.StringOut;

  tunnel2RekeyFuzzPercentage?: number | core.NumberOut;

  tunnel2RekeyMarginTimeSeconds?: number | core.NumberOut;

  tunnel2ReplayWindowSize?: number | core.NumberOut;

  tunnel2StartupAction?: string | core.StringOut;

  tunnelInsideIpVersion?: string | core.StringOut;

  type: string | core.StringOut;

  vpnGatewayId?: string | core.StringOut;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  @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 transitGatewayAttachmentId!: string | core.StringOut;

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

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

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

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

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

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

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

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

  @core.attr(String, { kind: "array" })
  public tunnel1IkeVersions?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(Number, { kind: "array" })
  public tunnel1Phase1DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  @core.attr(String, { kind: "array" })
  public tunnel1Phase1EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public tunnel1Phase1IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

  @core.attr(Number, { kind: "array" })
  public tunnel1Phase2DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  @core.attr(String, { kind: "array" })
  public tunnel1Phase2EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public tunnel1Phase2IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

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

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

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

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

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

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

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

  @core.attr(String, { kind: "array" })
  public tunnel2IkeVersions?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

  @core.attr(Number, { kind: "array" })
  public tunnel2Phase1DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  @core.attr(String, { kind: "array" })
  public tunnel2Phase1EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public tunnel2Phase1IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

  @core.attr(Number, { kind: "array" })
  public tunnel2Phase2DhGroupNumbers?:
    | core.Array<number>
    | core.ArrayOut<core.NumberOut>;

  @core.attr(String, { kind: "array" })
  public tunnel2Phase2EncryptionAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

  @core.attr(String, { kind: "array" })
  public tunnel2Phase2IntegrityAlgorithms?:
    | core.Array<string>
    | core.ArrayOut<core.StringOut>;

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

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

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

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

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

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

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

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

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

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

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

  constructor(name: string, args?: ConnectionArgs) {
    super(name, "aws_vpn_connection", args);
  }

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