import * as core from "@terrascript/core"; export interface TargetIpArgs extends core.SchemaArgs { ip: string | core.StringOut; port?: number | core.NumberOut; } export class TargetIp extends core.Schema { @core.attr(String) public ip!: string | core.StringOut; @core.attr(Number) public port?: number | core.NumberOut; } export interface RuleArgs extends core.ResourceArgs { /** * (Required) DNS queries for this domain name are forwarded to the IP addresses that are specified usi * ng `target_ip`. */ domainName: string | core.StringOut; /** * (Optional) A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 5 * 3 console. */ name?: string | core.StringOut; resolverEndpointId?: string | core.StringOut; /** * (Required) The rule type. Valid values are `FORWARD`, `SYSTEM` and `RECURSIVE`. */ ruleType: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ 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) Configuration block(s) indicating the IPs that you want Resolver to forward DNS queries t * o (documented below). */ targetIp?: core.Array | core.ArrayOut; } export class Rule extends core.Resource { /** * The ARN (Amazon Resource Name) for the resolver rule. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) DNS queries for this domain name are forwarded to the IP addresses that are specified usi * ng `target_ip`. */ @core.attr(String) public domainName!: string | core.StringOut; /** * The ID of the resolver rule. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) A friendly name that lets you easily find a rule in the Resolver dashboard in the Route 5 * 3 console. */ @core.attr(String) public name?: string | core.StringOut; /** * When a rule is shared with another AWS account, the account ID of the account that the rule is share * d with. */ @core.attr(String, { computed: true }) public ownerId!: string | core.StringOut; @core.attr(String) public resolverEndpointId?: string | core.StringOut; /** * (Required) The rule type. Valid values are `FORWARD`, `SYSTEM` and `RECURSIVE`. */ @core.attr(String) public ruleType!: string | core.StringOut; /** * Whether the rules is shared and, if so, whether the current account is sharing the rule with another * account, or another account is sharing the rule with the current account. */ @core.attr(String, { computed: true }) public shareStatus!: string | core.StringOut; /** * (Optional) A map of tags to assign to the resource. If configured with a provider [`default_tags` co * nfiguration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-co * nfiguration-block) present, tags with matching keys will overwrite those defined at the provider-lev * el. */ @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) Configuration block(s) indicating the IPs that you want Resolver to forward DNS queries t * o (documented below). */ @core.attr(TargetIp, { kind: "array" }) public targetIp?: core.Array | core.ArrayOut; constructor(name: string, args?: RuleArgs) { super(name, "aws_route53_resolver_rule", args); } public override getNamespace(): string { return "aws_route53_resolver"; } }