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

export interface ProtectionGroupArgs extends core.ResourceArgs {
  aggregation: string | core.StringOut;

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

  pattern: string | core.StringOut;

  protectionGroupId: string | core.StringOut;

  resourceType?: string | core.StringOut;

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

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

export class ProtectionGroup extends core.Resource<ProtectionGroupArgs> {
  @core.attr(String)
  public aggregation!: string | core.StringOut;

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

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

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

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

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

  @core.attr(String)
  public resourceType?: 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?: ProtectionGroupArgs) {
    super(name, "aws_shield_protection_group", args);
  }

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