// generated from terraform resource schema import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; /** * AWS VPC */ export interface DefaultVpcDhcpOptionsConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/default_vpc_dhcp_options.html#netbios_name_servers DefaultVpcDhcpOptions#netbios_name_servers} */ readonly netbiosNameServers?: string[]; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/default_vpc_dhcp_options.html#netbios_node_type DefaultVpcDhcpOptions#netbios_node_type} */ readonly netbiosNodeType?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/default_vpc_dhcp_options.html#owner_id DefaultVpcDhcpOptions#owner_id} */ readonly ownerId?: string; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/default_vpc_dhcp_options.html#tags DefaultVpcDhcpOptions#tags} */ readonly tags?: { [key: string]: string } | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://www.terraform.io/docs/providers/aws/r/default_vpc_dhcp_options.html#tags_all DefaultVpcDhcpOptions#tags_all} */ readonly tagsAll?: { [key: string]: string } | cdktf.IResolvable; } /** * Represents a {@link https://www.terraform.io/docs/providers/aws/r/default_vpc_dhcp_options.html aws_default_vpc_dhcp_options} */ export class DefaultVpcDhcpOptions extends cdktf.TerraformResource { // ================= // STATIC PROPERTIES // ================= public static readonly tfResourceType: string = "aws_default_vpc_dhcp_options"; // =========== // INITIALIZER // =========== /** * Create a new {@link https://www.terraform.io/docs/providers/aws/r/default_vpc_dhcp_options.html aws_default_vpc_dhcp_options} 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 DefaultVpcDhcpOptionsConfig = {} */ public constructor(scope: Construct, id: string, config: DefaultVpcDhcpOptionsConfig = {}) { super(scope, id, { terraformResourceType: 'aws_default_vpc_dhcp_options', terraformGeneratorMetadata: { providerName: 'aws' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle }); this._netbiosNameServers = config.netbiosNameServers; this._netbiosNodeType = config.netbiosNodeType; this._ownerId = config.ownerId; this._tags = config.tags; this._tagsAll = config.tagsAll; } // ========== // ATTRIBUTES // ========== // arn - computed: true, optional: false, required: false public get arn() { return this.getStringAttribute('arn'); } // domain_name - computed: true, optional: false, required: false public get domainName() { return this.getStringAttribute('domain_name'); } // domain_name_servers - computed: true, optional: false, required: false public get domainNameServers() { return this.getStringAttribute('domain_name_servers'); } // id - computed: true, optional: true, required: false public get id() { return this.getStringAttribute('id'); } // netbios_name_servers - computed: false, optional: true, required: false private _netbiosNameServers?: string[]; public get netbiosNameServers() { return this.getListAttribute('netbios_name_servers'); } public set netbiosNameServers(value: string[]) { this._netbiosNameServers = value; } public resetNetbiosNameServers() { this._netbiosNameServers = undefined; } // Temporarily expose input value. Use with caution. public get netbiosNameServersInput() { return this._netbiosNameServers; } // netbios_node_type - computed: false, optional: true, required: false private _netbiosNodeType?: string; public get netbiosNodeType() { return this.getStringAttribute('netbios_node_type'); } public set netbiosNodeType(value: string) { this._netbiosNodeType = value; } public resetNetbiosNodeType() { this._netbiosNodeType = undefined; } // Temporarily expose input value. Use with caution. public get netbiosNodeTypeInput() { return this._netbiosNodeType; } // ntp_servers - computed: true, optional: false, required: false public get ntpServers() { return this.getStringAttribute('ntp_servers'); } // owner_id - computed: true, optional: true, required: false private _ownerId?: string; public get ownerId() { return this.getStringAttribute('owner_id'); } public set ownerId(value: string) { this._ownerId = value; } public resetOwnerId() { this._ownerId = undefined; } // Temporarily expose input value. Use with caution. public get ownerIdInput() { return this._ownerId; } // 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; } // ========= // SYNTHESIS // ========= protected synthesizeAttributes(): { [name: string]: any } { return { netbios_name_servers: cdktf.listMapper(cdktf.stringToTerraform)(this._netbiosNameServers), netbios_node_type: cdktf.stringToTerraform(this._netbiosNodeType), owner_id: cdktf.stringToTerraform(this._ownerId), tags: cdktf.hashMapper(cdktf.anyToTerraform)(this._tags), tags_all: cdktf.hashMapper(cdktf.anyToTerraform)(this._tagsAll), }; } }