import * as core from "@terrascript/core"; export interface TrafficPolicyInstanceArgs extends core.ResourceArgs { /** * (Required) ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by * using the configuration in a traffic policy. */ hostedZoneId: string | core.StringOut; /** * (Required) Domain name for which Amazon Route 53 responds to DNS queries by using the resource recor * d sets that Route 53 creates for this traffic policy instance. */ name: string | core.StringOut; /** * (Required) ID of the traffic policy that you want to use to create resource record sets in the speci * fied hosted zone. */ trafficPolicyId: string | core.StringOut; /** * (Required) Version of the traffic policy */ trafficPolicyVersion: number | core.NumberOut; /** * (Required) TTL that you want Amazon Route 53 to assign to all the resource record sets that it creat * es in the specified hosted zone. */ ttl: number | core.NumberOut; } export class TrafficPolicyInstance extends core.Resource { /** * (Required) ID of the hosted zone that you want Amazon Route 53 to create resource record sets in by * using the configuration in a traffic policy. */ @core.attr(String) public hostedZoneId!: string | core.StringOut; /** * ID of traffic policy instance. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Domain name for which Amazon Route 53 responds to DNS queries by using the resource recor * d sets that Route 53 creates for this traffic policy instance. */ @core.attr(String) public name!: string | core.StringOut; /** * (Required) ID of the traffic policy that you want to use to create resource record sets in the speci * fied hosted zone. */ @core.attr(String) public trafficPolicyId!: string | core.StringOut; /** * (Required) Version of the traffic policy */ @core.attr(Number) public trafficPolicyVersion!: number | core.NumberOut; /** * (Required) TTL that you want Amazon Route 53 to assign to all the resource record sets that it creat * es in the specified hosted zone. */ @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"; } }