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

export interface InsightsConfigurationArgs extends core.SchemaArgs {
  insightsEnabled: boolean | core.BooleanOut;

  notificationsEnabled?: boolean | core.BooleanOut;
}

export class InsightsConfiguration extends core.Schema<InsightsConfigurationArgs> {
  @core.attr(Boolean)
  public insightsEnabled!: boolean | core.BooleanOut;

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

export interface XrayGroupArgs extends core.ResourceArgs {
  filterExpression: string | core.StringOut;

  groupName: string | core.StringOut;

  insightsConfiguration?: InsightsConfiguration;

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

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

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

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

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

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

  @core.attr(InsightsConfiguration, { computed: true })
  public insightsConfiguration?: InsightsConfiguration;

  @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?: XrayGroupArgs) {
    super(name, "aws_xray_group", args);
  }

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