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

export interface CachedIscsiVolumeArgs extends core.ResourceArgs {
  gatewayArn: string | core.StringOut;

  kmsEncrypted?: boolean | core.BooleanOut;

  kmsKey?: string | core.StringOut;

  networkInterfaceId: string | core.StringOut;

  snapshotId?: string | core.StringOut;

  sourceVolumeArn?: string | core.StringOut;

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

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

  targetName: string | core.StringOut;

  volumeSizeInBytes: number | core.NumberOut;
}

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

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

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

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

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

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

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

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

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

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

  @core.attr(String)
  public sourceVolumeArn?: 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 targetArn!: string | core.StringOut;

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

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

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

  @core.attr(Number)
  public volumeSizeInBytes!: number | core.NumberOut;

  constructor(name: string, args?: CachedIscsiVolumeArgs) {
    super(name, "aws_storagegateway_cached_iscsi_volume", args);
  }

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