// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS Route 53 */ export interface Route53ZoneConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#comment Route53Zone#comment} */ readonly comment?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#delegation_set_id Route53Zone#delegation_set_id} */ readonly delegationSetId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#force_destroy Route53Zone#force_destroy} */ readonly forceDestroy?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#name Route53Zone#name} */ readonly name: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#tags Route53Zone#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#tags_all Route53Zone#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; /** * vpc block * * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#vpc Route53Zone#vpc} */ readonly vpc?: Route53ZoneVpc[]; } export interface Route53ZoneVpc { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#vpc_id Route53Zone#vpc_id} */ readonly vpcId: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html#vpc_region Route53Zone#vpc_region} */ readonly vpcRegion?: string; } export function route53ZoneVpcToTerraform(struct?: Route53ZoneVpc): any { if (!cdktf.canInspect(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { vpc_id: cdktf.stringToTerraform(struct!.vpcId), vpc_region: cdktf.stringToTerraform(struct!.vpcRegion), } } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html aws_route53_zone} */ export class Route53Zone extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_route53_zone"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/route53_zone.html aws_route53_zone} Resource * * @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 Route53ZoneConfig */ public constructor(scope: Construct, id: string, config: Route53ZoneConfig) { super(scope, id, { terraformResourceType: 'aws_route53_zone', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._comment = config.comment; this._delegationSetId = config.delegationSetId; this._forceDestroy = config.forceDestroy; this._name = config.name; this._tags = config.tags; this._tagsAll = config.tagsAll; this._vpc = config.vpc; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // comment - computed: false, optional: true, required: false private _comment?: string; public get comment() { return this.getStringAttribute('comment'); } public set comment(value: string) { this._comment = value; } public resetComment() { this._comment = undefined; } // Temporarily expose input value. Use with caution. public get commentInput() { return this._comment; } // delegation_set_id - computed: false, optional: true, required: false private _delegationSetId?: string; public get delegationSetId() { return this.getStringAttribute('delegation_set_id'); } public set delegationSetId(value: string) { this._delegationSetId = value; } public resetDelegationSetId() { this._delegationSetId = undefined; } // Temporarily expose input value. Use with caution. public get delegationSetIdInput() { return this._delegationSetId; } // force_destroy - computed: false, optional: true, required: false private _forceDestroy?: boolean | cdktf.IResolvable; public get forceDestroy() { return this.getBooleanAttribute('force_destroy') as any; } public set forceDestroy(value: boolean | cdktf.IResolvable) { this._forceDestroy = value; } public resetForceDestroy() { this._forceDestroy = undefined; } // Temporarily expose input value. Use with caution. public get forceDestroyInput() { return this._forceDestroy; } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // name - computed: false, optional: false, required: true private _name?: string; public get name() { return this.getStringAttribute('name'); } public set name(value: string) { this._name = value; } // Temporarily expose input value. Use with caution. public get nameInput() { return this._name; } // name_servers - computed: true, optional: false, required: false public get nameServers() { return this.getListAttribute('name_servers'); } // tags - computed: false, 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; } // tags_all - computed: true, optional: true, required: false private _tagsAll?: { [key: string]: string } | cdktf.IResolvable; public get tagsAll() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('tags_all') as any; } public set tagsAll(value: { [key: string]: string } | cdktf.IResolvable) { this._tagsAll = value; } public resetTagsAll() { this._tagsAll = undefined; } // Temporarily expose input value. Use with caution. public get tagsAllInput() { return this._tagsAll; } // zone_id - computed: true, optional: false, required: false public get zoneId() { return this.getStringAttribute('zone_id'); } // vpc - computed: false, optional: true, required: false private _vpc?: Route53ZoneVpc[]; public get vpc() { // Getting the computed value is not yet implemented return this.interpolationForAttribute('vpc') as any; } public set vpc(value: Route53ZoneVpc[]) { this._vpc = value; } public resetVpc() { this._vpc = undefined; } // Temporarily expose input value. Use with caution. public get vpcInput() { return this._vpc; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { comment: cdktf.stringToTerraform(this._comment), delegation_set_id: cdktf.stringToTerraform(this._delegationSetId), force_destroy: cdktf.booleanToTerraform(this._forceDestroy), name: cdktf.stringToTerraform(this._name), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), vpc: cdktf.listMapper(route53ZoneVpcToTerraform)(this._vpc), }; } }