// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Route 53 */ export interface DataAwsRoute53ResolverRuleConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html#domain_name DataAwsRoute53ResolverRule#domain_name} */ readonly domainName?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html#name DataAwsRoute53ResolverRule#name} */ readonly name?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html#resolver_endpoint_id DataAwsRoute53ResolverRule#resolver_endpoint_id} */ readonly resolverEndpointId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html#resolver_rule_id DataAwsRoute53ResolverRule#resolver_rule_id} */ readonly resolverRuleId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html#rule_type DataAwsRoute53ResolverRule#rule_type} */ readonly ruleType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html#tags DataAwsRoute53ResolverRule#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html aws_route53_resolver_rule} */ export class DataAwsRoute53ResolverRule extends cdktf.TerraformDataSource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_route53_resolver_rule"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/d/route53_resolver_rule.html aws_route53_resolver_rule} Data Source * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options DataAwsRoute53ResolverRuleConfig = {} */ public constructor(scope: Construct, id: string, config: DataAwsRoute53ResolverRuleConfig = {}) { super(scope, id, { terraformResourceType: 'aws_route53_resolver_rule', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._domainName = config.domainName; this._name = config.name; this._resolverEndpointId = config.resolverEndpointId; this._resolverRuleId = config.resolverRuleId; this._ruleType = config.ruleType; this._tags = config.tags; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // domain_name - computed: true, optional: true, required: false private _domainName?: string; public get domainName() { return this.getStringAttribute('domain_name'); } public set domainName(value: string) { this._domainName = value; } public resetDomainName() { this._domainName = undefined; } // Temporarily expose input value. Use with caution. public get domainNameInput() { return this._domainName; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: true, optional: true, required: false private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } public resetName() { this._name = undefined; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // owner_id - computed: true, optional: false, required: false public get ownerId() { return this.getStringAttribute('owner_id'); } // resolver_endpoint_id - computed: true, optional: true, required: false private _resolverEndpointId?: string; public get resolverEndpointId() { return this.getStringAttribute('resolver_endpoint_id'); } public set resolverEndpointId(value: string) { this._resolverEndpointId = value; } public resetResolverEndpointId() { this._resolverEndpointId = undefined; } // Temporarily expose input value. Use with caution. public get resolverEndpointIdInput() { return this._resolverEndpointId; } // resolver_rule_id - computed: true, optional: true, required: false private _resolverRuleId?: string; public get resolverRuleId() { return this.getStringAttribute('resolver_rule_id'); } public set resolverRuleId(value: string) { this._resolverRuleId = value; } public resetResolverRuleId() { this._resolverRuleId = undefined; } // Temporarily expose input value. Use with caution. public get resolverRuleIdInput() { return this._resolverRuleId; } // rule_type - computed: true, optional: true, required: false private _ruleType?: string; public get ruleType() { return this.getStringAttribute('rule_type'); } public set ruleType(value: string) { this._ruleType = value; } public resetRuleType() { this._ruleType = undefined; } // Temporarily expose input value. Use with caution. public get ruleTypeInput() { return this._ruleType; } // share_status - computed: true, optional: false, required: false public get shareStatus() { return this.getStringAttribute('share_status'); } // tags - computed: true, optional: true, required: false private _tags?: { [key: string]: string } | cdktf.IResolvable; public get tags() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags') as any; } public set tags(value: { [key: string]: string } | cdktf.IResolvable) { this._tags = value; } public resetTags() { this._tags = undefined; } // Temporarily expose input value. Use with caution. public get tagsInput() { return this._tags; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { domain_name: cdktf.stringToTerraform(this._domainName), name: cdktf.stringToTerraform(this._name), resolver_endpoint_id: cdktf.stringToTerraform(this._resolverEndpointId), resolver_rule_id: cdktf.stringToTerraform(this._resolverRuleId), rule_type: cdktf.stringToTerraform(this._ruleType), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), }; } }