import * as core from "@terrascript/core"; export interface TraceConfigurationArgs extends core.SchemaArgs { vendor?: string | core.StringOut; } export class TraceConfiguration extends core.Schema { @core.attr(String) public vendor?: string | core.StringOut; } export interface ObservabilityConfigurationArgs extends core.ResourceArgs { /** * (Required, Forces new resource) Name of the observability configuration. */ observabilityConfigurationName: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; /** * (Optional) The configuration of the tracing feature within this observability configuration. If you * don't specify it, App Runner doesn't enable tracing. See [Trace Configuration](#trace-configuration) * below for more details. */ traceConfiguration?: TraceConfiguration; } export class ObservabilityConfiguration extends core.Resource { /** * ARN of this observability configuration. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * Whether the observability configuration has the highest `observability_configuration_revision` among * all configurations that share the same `observability_configuration_name`. */ @core.attr(Boolean, { computed: true }) public latest!: boolean | core.BooleanOut; /** * (Required, Forces new resource) Name of the observability configuration. */ @core.attr(String) public observabilityConfigurationName!: string | core.StringOut; /** * The revision of this observability configuration. */ @core.attr(Number, { computed: true }) public observabilityConfigurationRevision!: number | core.NumberOut; /** * The current state of the observability configuration. An INACTIVE configuration revision has been de * leted and can't be used. It is permanently removed some time after deletion. */ @core.attr(String, { computed: true }) public status!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-block) present, tags with matching keys will overwrite those defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; /** * (Optional) The configuration of the tracing feature within this observability configuration. If you * don't specify it, App Runner doesn't enable tracing. See [Trace Configuration](#trace-configuration) * below for more details. */ @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"; } }