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

export interface TrafficPolicyInstanceArgs extends core.ResourceArgs {
  hostedZoneId: string | core.StringOut;

  name: string | core.StringOut;

  trafficPolicyId: string | core.StringOut;

  trafficPolicyVersion: number | core.NumberOut;

  ttl: number | core.NumberOut;
}

export class TrafficPolicyInstance extends core.Resource<TrafficPolicyInstanceArgs> {
  @core.attr(String)
  public hostedZoneId!: string | core.StringOut;

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

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

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

  @core.attr(Number)
  public trafficPolicyVersion!: number | core.NumberOut;

  @core.attr(Number)
  public ttl!: number | core.NumberOut;

  constructor(name: string, args?: TrafficPolicyInstanceArgs) {
    super(name, "aws_route53_traffic_policy_instance", args);
  }

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