import * as core from "@terrascript/core"; export interface DsRuleArgs { /** * (Optional) The domain name the desired resolver rule forwards DNS queries for. Conflicts with `resol * ver_rule_id`. */ domainName?: string | core.StringOut; /** * (Optional) The friendly name of the desired resolver rule. Conflicts with `resolver_rule_id`. */ name?: string | core.StringOut; resolverEndpointId?: string | core.StringOut; resolverRuleId?: string | core.StringOut; /** * (Optional) The rule type of the desired resolver rule. Valid values are `FORWARD`, `SYSTEM` and `REC * URSIVE`. Conflicts with `resolver_rule_id`. */ ruleType?: string | core.StringOut; /** * A map of tags assigned to the resolver rule. */ tags?: core.Map | core.MapOut; } export class DsRule extends core.Data { /** * The ARN (Amazon Resource Name) for the resolver rule. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The domain name the desired resolver rule forwards DNS queries for. Conflicts with `resol * ver_rule_id`. */ @core.attr(String, { computed: true }) public domainName?: string | core.StringOut; /** * The ID of the resolver rule. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) The friendly name of the desired resolver rule. Conflicts with `resolver_rule_id`. */ @core.attr(String, { computed: true }) 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, { computed: true }) public resolverEndpointId?: string | core.StringOut; @core.attr(String, { computed: true }) public resolverRuleId?: string | core.StringOut; /** * (Optional) The rule type of the desired resolver rule. Valid values are `FORWARD`, `SYSTEM` and `REC * URSIVE`. Conflicts with `resolver_rule_id`. */ @core.attr(String, { computed: true }) 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; /** * A map of tags assigned to the resolver rule. */ @core.attr(String, { computed: true, kind: "map" }) public tags?: core.Map | core.MapOut; constructor(name: string, args?: DsRuleArgs) { super(name, "aws_route53_resolver_rule", args); } public override getNamespace(): string { return "aws_route53_resolver"; } }