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

export interface RegionSettingsArgs extends core.ResourceArgs {
  resourceTypeManagementPreference?:
    | core.Map<string, boolean>
    | core.MapOut<core.BooleanOut>;

  resourceTypeOptInPreference:
    | core.Map<string, boolean>
    | core.MapOut<core.BooleanOut>;
}

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

  @core.attr(Boolean, { computed: true, kind: "map" })
  public resourceTypeManagementPreference?:
    | core.Map<string, boolean>
    | core.MapOut<core.BooleanOut>;

  @core.attr(Boolean, { kind: "map" })
  public resourceTypeOptInPreference!:
    | core.Map<string, boolean>
    | core.MapOut<core.BooleanOut>;

  constructor(name: string, args?: RegionSettingsArgs) {
    super(name, "aws_backup_region_settings", args);
  }

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