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

export interface TraceConfigurationArgs extends core.SchemaArgs {
  vendor?: string | core.StringOut;
}

export class TraceConfiguration extends core.Schema<TraceConfigurationArgs> {
  @core.attr(String)
  public vendor?: string | core.StringOut;
}

export interface ObservabilityConfigurationArgs extends core.ResourceArgs {
  observabilityConfigurationName: string | core.StringOut;

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

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

  traceConfiguration?: TraceConfiguration;
}

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

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

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

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

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

  @core.attr(String, { computed: true })
  public status!: 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(TraceConfiguration)
  public traceConfiguration?: TraceConfiguration;

  constructor(name: string, args?: ObservabilityConfigurationArgs) {
    super(name, "aws_apprunner_observability_configuration", args);
  }

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