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

export interface TrafficPolicyArgs extends core.ResourceArgs {
  comment?: string | core.StringOut;

  document: string | core.StringOut;

  name: string | core.StringOut;
}

export class TrafficPolicy extends core.Resource<TrafficPolicyArgs> {
  @core.attr(String)
  public comment?: string | core.StringOut;

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

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

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

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

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

  constructor(name: string, args?: TrafficPolicyArgs) {
    super(name, "aws_route53_traffic_policy", args);
  }

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