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

export interface TapePoolArgs extends core.ResourceArgs {
  poolName: string | core.StringOut;

  retentionLockTimeInDays?: number | core.NumberOut;

  retentionLockType?: string | core.StringOut;

  storageClass: string | core.StringOut;

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

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

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

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

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

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

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

  @core.attr(String)
  public storageClass!: 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>;

  constructor(name: string, args?: TapePoolArgs) {
    super(name, "aws_storagegateway_tape_pool", args);
  }

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