UNPKG

rhizo-co-terraform-provider-oci

Version:

Prebuilt oci Provider for Terraform CDK (cdktf)

1,105 lines 185 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t; Object.defineProperty(exports, "__esModule", { value: true }); exports.DnsZone = exports.DnsZoneTimeoutsOutputReference = exports.dnsZoneTimeoutsToHclTerraform = exports.dnsZoneTimeoutsToTerraform = exports.DnsZoneExternalMastersList = exports.DnsZoneExternalMastersOutputReference = exports.dnsZoneExternalMastersToHclTerraform = exports.dnsZoneExternalMastersToTerraform = exports.DnsZoneExternalDownstreamsList = exports.DnsZoneExternalDownstreamsOutputReference = exports.dnsZoneExternalDownstreamsToHclTerraform = exports.dnsZoneExternalDownstreamsToTerraform = exports.DnsZoneZoneTransferServersList = exports.DnsZoneZoneTransferServersOutputReference = exports.dnsZoneZoneTransferServersToHclTerraform = exports.dnsZoneZoneTransferServersToTerraform = exports.DnsZoneNameserversList = exports.DnsZoneNameserversOutputReference = exports.dnsZoneNameserversToHclTerraform = exports.dnsZoneNameserversToTerraform = exports.DnsZoneDnssecConfigList = exports.DnsZoneDnssecConfigOutputReference = exports.dnsZoneDnssecConfigToHclTerraform = exports.dnsZoneDnssecConfigToTerraform = exports.DnsZoneDnssecConfigZskDnssecKeyVersionsList = exports.DnsZoneDnssecConfigZskDnssecKeyVersionsOutputReference = exports.dnsZoneDnssecConfigZskDnssecKeyVersionsToHclTerraform = exports.dnsZoneDnssecConfigZskDnssecKeyVersionsToTerraform = exports.DnsZoneDnssecConfigKskDnssecKeyVersionsList = exports.DnsZoneDnssecConfigKskDnssecKeyVersionsOutputReference = exports.dnsZoneDnssecConfigKskDnssecKeyVersionsToHclTerraform = exports.dnsZoneDnssecConfigKskDnssecKeyVersionsToTerraform = exports.DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataList = exports.DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataOutputReference = exports.dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToHclTerraform = exports.dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } exports.dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToTerraform = dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToTerraform; function dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } exports.dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToHclTerraform = dnsZoneDnssecConfigKskDnssecKeyVersionsDsDataToHclTerraform; class DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // digest_type - computed: true, optional: false, required: false get digestType() { return this.getStringAttribute('digest_type'); } // rdata - computed: true, optional: false, required: false get rdata() { return this.getStringAttribute('rdata'); } } exports.DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataOutputReference = DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataOutputReference; _a = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataOutputReference[_a] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataOutputReference", version: "1.0.0" }; class DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataList = DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataList; _b = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataList[_b] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataList", version: "1.0.0" }; function dnsZoneDnssecConfigKskDnssecKeyVersionsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } exports.dnsZoneDnssecConfigKskDnssecKeyVersionsToTerraform = dnsZoneDnssecConfigKskDnssecKeyVersionsToTerraform; function dnsZoneDnssecConfigKskDnssecKeyVersionsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } exports.dnsZoneDnssecConfigKskDnssecKeyVersionsToHclTerraform = dnsZoneDnssecConfigKskDnssecKeyVersionsToHclTerraform; class DnsZoneDnssecConfigKskDnssecKeyVersionsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // ds_data - computed: true, optional: false, required: false this._dsData = new DnsZoneDnssecConfigKskDnssecKeyVersionsDsDataList(this, "ds_data", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // algorithm - computed: true, optional: false, required: false get algorithm() { return this.getStringAttribute('algorithm'); } get dsData() { return this._dsData; } // key_tag - computed: true, optional: false, required: false get keyTag() { return this.getNumberAttribute('key_tag'); } // length_in_bytes - computed: true, optional: false, required: false get lengthInBytes() { return this.getNumberAttribute('length_in_bytes'); } // predecessor_dnssec_key_version_uuid - computed: true, optional: false, required: false get predecessorDnssecKeyVersionUuid() { return this.getStringAttribute('predecessor_dnssec_key_version_uuid'); } // successor_dnssec_key_version_uuid - computed: true, optional: false, required: false get successorDnssecKeyVersionUuid() { return this.getStringAttribute('successor_dnssec_key_version_uuid'); } // time_activated - computed: true, optional: false, required: false get timeActivated() { return this.getStringAttribute('time_activated'); } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_expired - computed: true, optional: false, required: false get timeExpired() { return this.getStringAttribute('time_expired'); } // time_inactivated - computed: true, optional: false, required: false get timeInactivated() { return this.getStringAttribute('time_inactivated'); } // time_promoted - computed: true, optional: false, required: false get timePromoted() { return this.getStringAttribute('time_promoted'); } // time_published - computed: true, optional: false, required: false get timePublished() { return this.getStringAttribute('time_published'); } // time_unpublished - computed: true, optional: false, required: false get timeUnpublished() { return this.getStringAttribute('time_unpublished'); } // uuid - computed: true, optional: false, required: false get uuid() { return this.getStringAttribute('uuid'); } } exports.DnsZoneDnssecConfigKskDnssecKeyVersionsOutputReference = DnsZoneDnssecConfigKskDnssecKeyVersionsOutputReference; _c = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigKskDnssecKeyVersionsOutputReference[_c] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigKskDnssecKeyVersionsOutputReference", version: "1.0.0" }; class DnsZoneDnssecConfigKskDnssecKeyVersionsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneDnssecConfigKskDnssecKeyVersionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneDnssecConfigKskDnssecKeyVersionsList = DnsZoneDnssecConfigKskDnssecKeyVersionsList; _d = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigKskDnssecKeyVersionsList[_d] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigKskDnssecKeyVersionsList", version: "1.0.0" }; function dnsZoneDnssecConfigZskDnssecKeyVersionsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } exports.dnsZoneDnssecConfigZskDnssecKeyVersionsToTerraform = dnsZoneDnssecConfigZskDnssecKeyVersionsToTerraform; function dnsZoneDnssecConfigZskDnssecKeyVersionsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } exports.dnsZoneDnssecConfigZskDnssecKeyVersionsToHclTerraform = dnsZoneDnssecConfigZskDnssecKeyVersionsToHclTerraform; class DnsZoneDnssecConfigZskDnssecKeyVersionsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // algorithm - computed: true, optional: false, required: false get algorithm() { return this.getStringAttribute('algorithm'); } // key_tag - computed: true, optional: false, required: false get keyTag() { return this.getNumberAttribute('key_tag'); } // length_in_bytes - computed: true, optional: false, required: false get lengthInBytes() { return this.getNumberAttribute('length_in_bytes'); } // predecessor_dnssec_key_version_uuid - computed: true, optional: false, required: false get predecessorDnssecKeyVersionUuid() { return this.getStringAttribute('predecessor_dnssec_key_version_uuid'); } // successor_dnssec_key_version_uuid - computed: true, optional: false, required: false get successorDnssecKeyVersionUuid() { return this.getStringAttribute('successor_dnssec_key_version_uuid'); } // time_activated - computed: true, optional: false, required: false get timeActivated() { return this.getStringAttribute('time_activated'); } // time_created - computed: true, optional: false, required: false get timeCreated() { return this.getStringAttribute('time_created'); } // time_expired - computed: true, optional: false, required: false get timeExpired() { return this.getStringAttribute('time_expired'); } // time_inactivated - computed: true, optional: false, required: false get timeInactivated() { return this.getStringAttribute('time_inactivated'); } // time_promoted - computed: true, optional: false, required: false get timePromoted() { return this.getStringAttribute('time_promoted'); } // time_published - computed: true, optional: false, required: false get timePublished() { return this.getStringAttribute('time_published'); } // time_unpublished - computed: true, optional: false, required: false get timeUnpublished() { return this.getStringAttribute('time_unpublished'); } // uuid - computed: true, optional: false, required: false get uuid() { return this.getStringAttribute('uuid'); } } exports.DnsZoneDnssecConfigZskDnssecKeyVersionsOutputReference = DnsZoneDnssecConfigZskDnssecKeyVersionsOutputReference; _e = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigZskDnssecKeyVersionsOutputReference[_e] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigZskDnssecKeyVersionsOutputReference", version: "1.0.0" }; class DnsZoneDnssecConfigZskDnssecKeyVersionsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneDnssecConfigZskDnssecKeyVersionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneDnssecConfigZskDnssecKeyVersionsList = DnsZoneDnssecConfigZskDnssecKeyVersionsList; _f = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigZskDnssecKeyVersionsList[_f] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigZskDnssecKeyVersionsList", version: "1.0.0" }; function dnsZoneDnssecConfigToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } exports.dnsZoneDnssecConfigToTerraform = dnsZoneDnssecConfigToTerraform; function dnsZoneDnssecConfigToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } exports.dnsZoneDnssecConfigToHclTerraform = dnsZoneDnssecConfigToHclTerraform; class DnsZoneDnssecConfigOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; // ksk_dnssec_key_versions - computed: true, optional: false, required: false this._kskDnssecKeyVersions = new DnsZoneDnssecConfigKskDnssecKeyVersionsList(this, "ksk_dnssec_key_versions", false); // zsk_dnssec_key_versions - computed: true, optional: false, required: false this._zskDnssecKeyVersions = new DnsZoneDnssecConfigZskDnssecKeyVersionsList(this, "zsk_dnssec_key_versions", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } get kskDnssecKeyVersions() { return this._kskDnssecKeyVersions; } get zskDnssecKeyVersions() { return this._zskDnssecKeyVersions; } } exports.DnsZoneDnssecConfigOutputReference = DnsZoneDnssecConfigOutputReference; _g = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigOutputReference[_g] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigOutputReference", version: "1.0.0" }; class DnsZoneDnssecConfigList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneDnssecConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneDnssecConfigList = DnsZoneDnssecConfigList; _h = JSII_RTTI_SYMBOL_1; DnsZoneDnssecConfigList[_h] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneDnssecConfigList", version: "1.0.0" }; function dnsZoneNameserversToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } exports.dnsZoneNameserversToTerraform = dnsZoneNameserversToTerraform; function dnsZoneNameserversToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } exports.dnsZoneNameserversToHclTerraform = dnsZoneNameserversToHclTerraform; class DnsZoneNameserversOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // hostname - computed: true, optional: false, required: false get hostname() { return this.getStringAttribute('hostname'); } } exports.DnsZoneNameserversOutputReference = DnsZoneNameserversOutputReference; _j = JSII_RTTI_SYMBOL_1; DnsZoneNameserversOutputReference[_j] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneNameserversOutputReference", version: "1.0.0" }; class DnsZoneNameserversList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneNameserversOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneNameserversList = DnsZoneNameserversList; _k = JSII_RTTI_SYMBOL_1; DnsZoneNameserversList[_k] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneNameserversList", version: "1.0.0" }; function dnsZoneZoneTransferServersToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 {}; } exports.dnsZoneZoneTransferServersToTerraform = dnsZoneZoneTransferServersToTerraform; function dnsZoneZoneTransferServersToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = {}; return attrs; } exports.dnsZoneZoneTransferServersToHclTerraform = dnsZoneZoneTransferServersToHclTerraform; class DnsZoneZoneTransferServersOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; } else { this.isEmptyObject = Object.keys(value).length === 0; } } // address - computed: true, optional: false, required: false get address() { return this.getStringAttribute('address'); } // is_transfer_destination - computed: true, optional: false, required: false get isTransferDestination() { return this.getBooleanAttribute('is_transfer_destination'); } // is_transfer_source - computed: true, optional: false, required: false get isTransferSource() { return this.getBooleanAttribute('is_transfer_source'); } // port - computed: true, optional: false, required: false get port() { return this.getNumberAttribute('port'); } } exports.DnsZoneZoneTransferServersOutputReference = DnsZoneZoneTransferServersOutputReference; _l = JSII_RTTI_SYMBOL_1; DnsZoneZoneTransferServersOutputReference[_l] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneZoneTransferServersOutputReference", version: "1.0.0" }; class DnsZoneZoneTransferServersList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneZoneTransferServersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneZoneTransferServersList = DnsZoneZoneTransferServersList; _m = JSII_RTTI_SYMBOL_1; DnsZoneZoneTransferServersList[_m] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneZoneTransferServersList", version: "1.0.0" }; function dnsZoneExternalDownstreamsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { address: cdktf.stringToTerraform(struct.address), port: cdktf.numberToTerraform(struct.port), tsig_key_id: cdktf.stringToTerraform(struct.tsigKeyId), }; } exports.dnsZoneExternalDownstreamsToTerraform = dnsZoneExternalDownstreamsToTerraform; function dnsZoneExternalDownstreamsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { address: { value: cdktf.stringToHclTerraform(struct.address), isBlock: false, type: "simple", storageClassType: "string", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, tsig_key_id: { value: cdktf.stringToHclTerraform(struct.tsigKeyId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dnsZoneExternalDownstreamsToHclTerraform = dnsZoneExternalDownstreamsToHclTerraform; class DnsZoneExternalDownstreamsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._address !== undefined) { hasAnyValues = true; internalValueResult.address = this._address; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._tsigKeyId !== undefined) { hasAnyValues = true; internalValueResult.tsigKeyId = this._tsigKeyId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._address = undefined; this._port = undefined; this._tsigKeyId = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._address = value.address; this._port = value.port; this._tsigKeyId = value.tsigKeyId; } } get address() { return this.getStringAttribute('address'); } set address(value) { this._address = value; } // Temporarily expose input value. Use with caution. get addressInput() { return this._address; } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } get tsigKeyId() { return this.getStringAttribute('tsig_key_id'); } set tsigKeyId(value) { this._tsigKeyId = value; } resetTsigKeyId() { this._tsigKeyId = undefined; } // Temporarily expose input value. Use with caution. get tsigKeyIdInput() { return this._tsigKeyId; } } exports.DnsZoneExternalDownstreamsOutputReference = DnsZoneExternalDownstreamsOutputReference; _o = JSII_RTTI_SYMBOL_1; DnsZoneExternalDownstreamsOutputReference[_o] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneExternalDownstreamsOutputReference", version: "1.0.0" }; class DnsZoneExternalDownstreamsList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneExternalDownstreamsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneExternalDownstreamsList = DnsZoneExternalDownstreamsList; _p = JSII_RTTI_SYMBOL_1; DnsZoneExternalDownstreamsList[_p] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneExternalDownstreamsList", version: "1.0.0" }; function dnsZoneExternalMastersToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { address: cdktf.stringToTerraform(struct.address), port: cdktf.numberToTerraform(struct.port), tsig_key_id: cdktf.stringToTerraform(struct.tsigKeyId), }; } exports.dnsZoneExternalMastersToTerraform = dnsZoneExternalMastersToTerraform; function dnsZoneExternalMastersToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { address: { value: cdktf.stringToHclTerraform(struct.address), isBlock: false, type: "simple", storageClassType: "string", }, port: { value: cdktf.numberToHclTerraform(struct.port), isBlock: false, type: "simple", storageClassType: "number", }, tsig_key_id: { value: cdktf.stringToHclTerraform(struct.tsigKeyId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dnsZoneExternalMastersToHclTerraform = dnsZoneExternalMastersToHclTerraform; class DnsZoneExternalMastersOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, complexObjectIndex, complexObjectIsFromSet) { super(terraformResource, terraformAttribute, complexObjectIsFromSet, complexObjectIndex); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._address !== undefined) { hasAnyValues = true; internalValueResult.address = this._address; } if (this._port !== undefined) { hasAnyValues = true; internalValueResult.port = this._port; } if (this._tsigKeyId !== undefined) { hasAnyValues = true; internalValueResult.tsigKeyId = this._tsigKeyId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._address = undefined; this._port = undefined; this._tsigKeyId = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._address = value.address; this._port = value.port; this._tsigKeyId = value.tsigKeyId; } } get address() { return this.getStringAttribute('address'); } set address(value) { this._address = value; } // Temporarily expose input value. Use with caution. get addressInput() { return this._address; } get port() { return this.getNumberAttribute('port'); } set port(value) { this._port = value; } resetPort() { this._port = undefined; } // Temporarily expose input value. Use with caution. get portInput() { return this._port; } get tsigKeyId() { return this.getStringAttribute('tsig_key_id'); } set tsigKeyId(value) { this._tsigKeyId = value; } resetTsigKeyId() { this._tsigKeyId = undefined; } // Temporarily expose input value. Use with caution. get tsigKeyIdInput() { return this._tsigKeyId; } } exports.DnsZoneExternalMastersOutputReference = DnsZoneExternalMastersOutputReference; _q = JSII_RTTI_SYMBOL_1; DnsZoneExternalMastersOutputReference[_q] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneExternalMastersOutputReference", version: "1.0.0" }; class DnsZoneExternalMastersList extends cdktf.ComplexList { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource, terraformAttribute, wrapsSet) { super(terraformResource, terraformAttribute, wrapsSet); this.terraformResource = terraformResource; this.terraformAttribute = terraformAttribute; this.wrapsSet = wrapsSet; } /** * @param index the index of the item to return */ get(index) { return new DnsZoneExternalMastersOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.DnsZoneExternalMastersList = DnsZoneExternalMastersList; _r = JSII_RTTI_SYMBOL_1; DnsZoneExternalMastersList[_r] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneExternalMastersList", version: "1.0.0" }; function dnsZoneTimeoutsToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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 { create: cdktf.stringToTerraform(struct.create), delete: cdktf.stringToTerraform(struct.delete), update: cdktf.stringToTerraform(struct.update), }; } exports.dnsZoneTimeoutsToTerraform = dnsZoneTimeoutsToTerraform; function dnsZoneTimeoutsToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(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"); } const attrs = { create: { value: cdktf.stringToHclTerraform(struct.create), isBlock: false, type: "simple", storageClassType: "string", }, delete: { value: cdktf.stringToHclTerraform(struct.delete), isBlock: false, type: "simple", storageClassType: "string", }, update: { value: cdktf.stringToHclTerraform(struct.update), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.dnsZoneTimeoutsToHclTerraform = dnsZoneTimeoutsToHclTerraform; class DnsZoneTimeoutsOutputReference extends cdktf.ComplexObject { /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing */ constructor(terraformResource, terraformAttribute) { super(terraformResource, terraformAttribute, false); this.isEmptyObject = false; } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._create !== undefined) { hasAnyValues = true; internalValueResult.create = this._create; } if (this._delete !== undefined) { hasAnyValues = true; internalValueResult.delete = this._delete; } if (this._update !== undefined) { hasAnyValues = true; internalValueResult.update = this._update; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._create = undefined; this._delete = undefined; this._update = undefined; } else if (cdktf.Tokenization.isResolvable(value)) { this.isEmptyObject = false; this.resolvableValue = value; } else { this.isEmptyObject = Object.keys(value).length === 0; this.resolvableValue = undefined; this._create = value.create; this._delete = value.delete; this._update = value.update; } } get create() { return this.getStringAttribute('create'); } set create(value) { this._create = value; } resetCreate() { this._create = undefined; } // Temporarily expose input value. Use with caution. get createInput() { return this._create; } get delete() { return this.getStringAttribute('delete'); } set delete(value) { this._delete = value; } resetDelete() { this._delete = undefined; } // Temporarily expose input value. Use with caution. get deleteInput() { return this._delete; } get update() { return this.getStringAttribute('update'); } set update(value) { this._update = value; } resetUpdate() { this._update = undefined; } // Temporarily expose input value. Use with caution. get updateInput() { return this._update; } } exports.DnsZoneTimeoutsOutputReference = DnsZoneTimeoutsOutputReference; _s = JSII_RTTI_SYMBOL_1; DnsZoneTimeoutsOutputReference[_s] = { fqn: "rhizo-co-terraform-provider-oci.dnsZone.DnsZoneTimeoutsOutputReference", version: "1.0.0" }; /** * Represents a {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/dns_zone oci_dns_zone} */ class DnsZone extends cdktf.TerraformResource { // ============== // STATIC Methods // ============== /** * Generates CDKTF code for importing a DnsZone resource upon running "cdktf plan <stack-name>" * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the DnsZone to import * @param importFromId The id of the existing DnsZone that should be imported. Refer to the {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/dns_zone#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the DnsZone to import is found */ static generateConfigForImport(scope, importToId, importFromId, provider) { return new cdktf.ImportableResource(scope, importToId, { terraformResourceType: "oci_dns_zone", importId: importFromId, provider }); } // =========== // INITIALIZER // =========== /** * Create a new {@link https://registry.terraform.io/providers/oracle/oci/6.18.0/docs/resources/dns_zone oci_dns_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 DnsZoneConfig */ constructor(scope, id, config) { super(scope, id, { terraformResourceType: 'oci_dns_zone', terraformGeneratorMetadata: { providerName: 'oci', providerVersion: '6.18.0', providerVersionConstraint: '~> 6.18.0' }, provider: config.provider, dependsOn: config.dependsOn, count: config.count, lifecycle: config.lifecycle, provisioners: config.provisioners, connection: config.connection, forEach: config.forEach }); // dnssec_config - computed: true, optional: false, required: false this._dnssecConfig = new DnsZoneDnssecConfigList(this, "dnssec_config", false); // nameservers - computed: true, optional: false, required: false this._nameservers = new DnsZoneNameserversList(this, "nameservers", false); // zone_transfer_servers - computed: true, optional: false, required: false this._zoneTransferServers = new DnsZoneZoneTransferServersList(this, "zone_transfer_servers", false); // external_downstreams - computed: false, optional: true, required: false this._externalDownstreams = new DnsZoneExternalDownstreamsList(this, "external_downstreams", false); // external_masters - computed: false, optional: true, required: false this._externalMasters = new DnsZoneExternalMastersList(this, "external_masters", false); // timeouts - computed: false, optional: true, required: false this._timeouts = new DnsZoneTimeoutsOutputReference(this, "timeouts"); this._compartmentId = config.compartmentId; this._definedTags = config.definedTags; this._dnssecState = config.dnssecState; this._freeformTags = config.freeformTags; this._id = config.id; this._name = config.name; this._scope = config.scope; this._viewId = config.viewId; this._zoneType = config.zoneType; this._externalDownstreams.internalValue = config.externalDownstreams; this._externalMasters.internalValue = config.externalMasters; this._timeouts.internalValue = config.timeouts; } get compartmentId() { return this.getStringAttribute('compartment_id'); } set compartmentId(value) { this._compartmentId = va