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

export interface UserBucketArgs extends core.SchemaArgs {
  s3Bucket: string | core.StringOut;

  s3Key: string | core.StringOut;
}

export class UserBucket extends core.Schema<UserBucketArgs> {
  @core.attr(String)
  public s3Bucket!: string | core.StringOut;

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

export interface DiskContainerArgs extends core.SchemaArgs {
  description?: string | core.StringOut;

  format: string | core.StringOut;

  url?: string | core.StringOut;

  userBucket?: UserBucket;
}

export class DiskContainer extends core.Schema<DiskContainerArgs> {
  @core.attr(String)
  public description?: string | core.StringOut;

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

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

  @core.attr(UserBucket)
  public userBucket?: UserBucket;
}

export interface ClientDataArgs extends core.SchemaArgs {
  comment?: string | core.StringOut;

  uploadEnd?: string | core.StringOut;

  uploadSize?: number | core.NumberOut;

  uploadStart?: string | core.StringOut;
}

export class ClientData extends core.Schema<ClientDataArgs> {
  @core.attr(String)
  public comment?: string | core.StringOut;

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

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

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

export interface SnapshotImportArgs extends core.ResourceArgs {
  clientData?: ClientData;

  description?: string | core.StringOut;

  diskContainer: DiskContainer;

  encrypted?: boolean | core.BooleanOut;

  kmsKeyId?: string | core.StringOut;

  permanentRestore?: boolean | core.BooleanOut;

  roleName?: string | core.StringOut;

  storageTier?: string | core.StringOut;

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

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

  temporaryRestoreDays?: number | core.NumberOut;
}

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

  @core.attr(ClientData)
  public clientData?: ClientData;

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

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

  @core.attr(DiskContainer)
  public diskContainer!: DiskContainer;

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

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

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

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

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

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

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

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

  @core.attr(String, { computed: true })
  public storageTier?: 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(Number)
  public temporaryRestoreDays?: number | core.NumberOut;

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

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

  constructor(name: string, args?: SnapshotImportArgs) {
    super(name, "aws_ebs_snapshot_import", args);
  }

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