UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,051 lines 514 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0; Object.defineProperty(exports, "__esModule", { value: true }); exports.privatecaCertificateAuthorityConfigAToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigPolicyIdsList = exports.PrivatecaCertificateAuthorityConfigX509ConfigPolicyIdsOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigPolicyIdsToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigPolicyIdsToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigNameConstraintsOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigNameConstraintsToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigNameConstraintsToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigKeyUsageOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigKeyUsageUnknownExtendedKeyUsagesList = exports.PrivatecaCertificateAuthorityConfigX509ConfigKeyUsageUnknownExtendedKeyUsagesOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageUnknownExtendedKeyUsagesToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageUnknownExtendedKeyUsagesToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigKeyUsageExtendedKeyUsageOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageExtendedKeyUsageToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageExtendedKeyUsageToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigKeyUsageBaseKeyUsageOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageBaseKeyUsageToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigKeyUsageBaseKeyUsageToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigCaOptionsOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigCaOptionsToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigCaOptionsToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsList = exports.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToTerraform = exports.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdOutputReference = exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToHclTerraform = exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToTerraform = exports.PrivatecaCertificateAuthorityConfigSubjectKeyIdOutputReference = exports.privatecaCertificateAuthorityConfigSubjectKeyIdToHclTerraform = exports.privatecaCertificateAuthorityConfigSubjectKeyIdToTerraform = exports.PrivatecaCertificateAuthorityConfigSubjectConfigOutputReference = exports.privatecaCertificateAuthorityConfigSubjectConfigToHclTerraform = exports.privatecaCertificateAuthorityConfigSubjectConfigToTerraform = exports.PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameOutputReference = exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToHclTerraform = exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToTerraform = exports.PrivatecaCertificateAuthorityConfigSubjectConfigSubjectOutputReference = exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectToHclTerraform = exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectToTerraform = exports.PrivatecaCertificateAuthorityAccessUrlsList = exports.PrivatecaCertificateAuthorityAccessUrlsOutputReference = exports.privatecaCertificateAuthorityAccessUrlsToHclTerraform = exports.privatecaCertificateAuthorityAccessUrlsToTerraform = void 0; exports.PrivatecaCertificateAuthority = exports.PrivatecaCertificateAuthorityTimeoutsOutputReference = exports.privatecaCertificateAuthorityTimeoutsToHclTerraform = exports.privatecaCertificateAuthorityTimeoutsToTerraform = exports.PrivatecaCertificateAuthoritySubordinateConfigOutputReference = exports.privatecaCertificateAuthoritySubordinateConfigToHclTerraform = exports.privatecaCertificateAuthoritySubordinateConfigToTerraform = exports.PrivatecaCertificateAuthoritySubordinateConfigPemIssuerChainOutputReference = exports.privatecaCertificateAuthoritySubordinateConfigPemIssuerChainToHclTerraform = exports.privatecaCertificateAuthoritySubordinateConfigPemIssuerChainToTerraform = exports.PrivatecaCertificateAuthorityKeySpecOutputReference = exports.privatecaCertificateAuthorityKeySpecToHclTerraform = exports.privatecaCertificateAuthorityKeySpecToTerraform = exports.PrivatecaCertificateAuthorityConfigAOutputReference = exports.privatecaCertificateAuthorityConfigAToHclTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function privatecaCertificateAuthorityAccessUrlsToTerraform(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.privatecaCertificateAuthorityAccessUrlsToTerraform = privatecaCertificateAuthorityAccessUrlsToTerraform; function privatecaCertificateAuthorityAccessUrlsToHclTerraform(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.privatecaCertificateAuthorityAccessUrlsToHclTerraform = privatecaCertificateAuthorityAccessUrlsToHclTerraform; class PrivatecaCertificateAuthorityAccessUrlsOutputReference 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; } } // ca_certificate_access_url - computed: true, optional: false, required: false get caCertificateAccessUrl() { return this.getStringAttribute('ca_certificate_access_url'); } // crl_access_urls - computed: true, optional: false, required: false get crlAccessUrls() { return this.getListAttribute('crl_access_urls'); } } exports.PrivatecaCertificateAuthorityAccessUrlsOutputReference = PrivatecaCertificateAuthorityAccessUrlsOutputReference; _a = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityAccessUrlsOutputReference[_a] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityAccessUrlsOutputReference", version: "14.12.0" }; class PrivatecaCertificateAuthorityAccessUrlsList 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 PrivatecaCertificateAuthorityAccessUrlsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PrivatecaCertificateAuthorityAccessUrlsList = PrivatecaCertificateAuthorityAccessUrlsList; _b = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityAccessUrlsList[_b] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityAccessUrlsList", version: "14.12.0" }; function privatecaCertificateAuthorityConfigSubjectConfigSubjectToTerraform(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 { common_name: cdktf.stringToTerraform(struct.commonName), country_code: cdktf.stringToTerraform(struct.countryCode), locality: cdktf.stringToTerraform(struct.locality), organization: cdktf.stringToTerraform(struct.organization), organizational_unit: cdktf.stringToTerraform(struct.organizationalUnit), postal_code: cdktf.stringToTerraform(struct.postalCode), province: cdktf.stringToTerraform(struct.province), street_address: cdktf.stringToTerraform(struct.streetAddress), }; } exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectToTerraform = privatecaCertificateAuthorityConfigSubjectConfigSubjectToTerraform; function privatecaCertificateAuthorityConfigSubjectConfigSubjectToHclTerraform(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 = { common_name: { value: cdktf.stringToHclTerraform(struct.commonName), isBlock: false, type: "simple", storageClassType: "string", }, country_code: { value: cdktf.stringToHclTerraform(struct.countryCode), isBlock: false, type: "simple", storageClassType: "string", }, locality: { value: cdktf.stringToHclTerraform(struct.locality), isBlock: false, type: "simple", storageClassType: "string", }, organization: { value: cdktf.stringToHclTerraform(struct.organization), isBlock: false, type: "simple", storageClassType: "string", }, organizational_unit: { value: cdktf.stringToHclTerraform(struct.organizationalUnit), isBlock: false, type: "simple", storageClassType: "string", }, postal_code: { value: cdktf.stringToHclTerraform(struct.postalCode), isBlock: false, type: "simple", storageClassType: "string", }, province: { value: cdktf.stringToHclTerraform(struct.province), isBlock: false, type: "simple", storageClassType: "string", }, street_address: { value: cdktf.stringToHclTerraform(struct.streetAddress), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectToHclTerraform = privatecaCertificateAuthorityConfigSubjectConfigSubjectToHclTerraform; class PrivatecaCertificateAuthorityConfigSubjectConfigSubjectOutputReference 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, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._commonName !== undefined) { hasAnyValues = true; internalValueResult.commonName = this._commonName; } if (this._countryCode !== undefined) { hasAnyValues = true; internalValueResult.countryCode = this._countryCode; } if (this._locality !== undefined) { hasAnyValues = true; internalValueResult.locality = this._locality; } if (this._organization !== undefined) { hasAnyValues = true; internalValueResult.organization = this._organization; } if (this._organizationalUnit !== undefined) { hasAnyValues = true; internalValueResult.organizationalUnit = this._organizationalUnit; } if (this._postalCode !== undefined) { hasAnyValues = true; internalValueResult.postalCode = this._postalCode; } if (this._province !== undefined) { hasAnyValues = true; internalValueResult.province = this._province; } if (this._streetAddress !== undefined) { hasAnyValues = true; internalValueResult.streetAddress = this._streetAddress; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._commonName = undefined; this._countryCode = undefined; this._locality = undefined; this._organization = undefined; this._organizationalUnit = undefined; this._postalCode = undefined; this._province = undefined; this._streetAddress = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._commonName = value.commonName; this._countryCode = value.countryCode; this._locality = value.locality; this._organization = value.organization; this._organizationalUnit = value.organizationalUnit; this._postalCode = value.postalCode; this._province = value.province; this._streetAddress = value.streetAddress; } } get commonName() { return this.getStringAttribute('common_name'); } set commonName(value) { this._commonName = value; } // Temporarily expose input value. Use with caution. get commonNameInput() { return this._commonName; } get countryCode() { return this.getStringAttribute('country_code'); } set countryCode(value) { this._countryCode = value; } resetCountryCode() { this._countryCode = undefined; } // Temporarily expose input value. Use with caution. get countryCodeInput() { return this._countryCode; } get locality() { return this.getStringAttribute('locality'); } set locality(value) { this._locality = value; } resetLocality() { this._locality = undefined; } // Temporarily expose input value. Use with caution. get localityInput() { return this._locality; } get organization() { return this.getStringAttribute('organization'); } set organization(value) { this._organization = value; } // Temporarily expose input value. Use with caution. get organizationInput() { return this._organization; } get organizationalUnit() { return this.getStringAttribute('organizational_unit'); } set organizationalUnit(value) { this._organizationalUnit = value; } resetOrganizationalUnit() { this._organizationalUnit = undefined; } // Temporarily expose input value. Use with caution. get organizationalUnitInput() { return this._organizationalUnit; } get postalCode() { return this.getStringAttribute('postal_code'); } set postalCode(value) { this._postalCode = value; } resetPostalCode() { this._postalCode = undefined; } // Temporarily expose input value. Use with caution. get postalCodeInput() { return this._postalCode; } get province() { return this.getStringAttribute('province'); } set province(value) { this._province = value; } resetProvince() { this._province = undefined; } // Temporarily expose input value. Use with caution. get provinceInput() { return this._province; } get streetAddress() { return this.getStringAttribute('street_address'); } set streetAddress(value) { this._streetAddress = value; } resetStreetAddress() { this._streetAddress = undefined; } // Temporarily expose input value. Use with caution. get streetAddressInput() { return this._streetAddress; } } exports.PrivatecaCertificateAuthorityConfigSubjectConfigSubjectOutputReference = PrivatecaCertificateAuthorityConfigSubjectConfigSubjectOutputReference; _c = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigSubjectConfigSubjectOutputReference[_c] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigSubjectConfigSubjectOutputReference", version: "14.12.0" }; function privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToTerraform(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 { dns_names: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.dnsNames), email_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.emailAddresses), ip_addresses: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.ipAddresses), uris: cdktf.listMapper(cdktf.stringToTerraform, false)(struct.uris), }; } exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToTerraform = privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToTerraform; function privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToHclTerraform(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 = { dns_names: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.dnsNames), isBlock: false, type: "list", storageClassType: "stringList", }, email_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.emailAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, ip_addresses: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.ipAddresses), isBlock: false, type: "list", storageClassType: "stringList", }, uris: { value: cdktf.listMapperHcl(cdktf.stringToHclTerraform, false)(struct.uris), isBlock: false, type: "list", storageClassType: "stringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToHclTerraform = privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToHclTerraform; class PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameOutputReference 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, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._dnsNames !== undefined) { hasAnyValues = true; internalValueResult.dnsNames = this._dnsNames; } if (this._emailAddresses !== undefined) { hasAnyValues = true; internalValueResult.emailAddresses = this._emailAddresses; } if (this._ipAddresses !== undefined) { hasAnyValues = true; internalValueResult.ipAddresses = this._ipAddresses; } if (this._uris !== undefined) { hasAnyValues = true; internalValueResult.uris = this._uris; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._dnsNames = undefined; this._emailAddresses = undefined; this._ipAddresses = undefined; this._uris = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._dnsNames = value.dnsNames; this._emailAddresses = value.emailAddresses; this._ipAddresses = value.ipAddresses; this._uris = value.uris; } } get dnsNames() { return this.getListAttribute('dns_names'); } set dnsNames(value) { this._dnsNames = value; } resetDnsNames() { this._dnsNames = undefined; } // Temporarily expose input value. Use with caution. get dnsNamesInput() { return this._dnsNames; } get emailAddresses() { return this.getListAttribute('email_addresses'); } set emailAddresses(value) { this._emailAddresses = value; } resetEmailAddresses() { this._emailAddresses = undefined; } // Temporarily expose input value. Use with caution. get emailAddressesInput() { return this._emailAddresses; } get ipAddresses() { return this.getListAttribute('ip_addresses'); } set ipAddresses(value) { this._ipAddresses = value; } resetIpAddresses() { this._ipAddresses = undefined; } // Temporarily expose input value. Use with caution. get ipAddressesInput() { return this._ipAddresses; } get uris() { return this.getListAttribute('uris'); } set uris(value) { this._uris = value; } resetUris() { this._uris = undefined; } // Temporarily expose input value. Use with caution. get urisInput() { return this._uris; } } exports.PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameOutputReference = PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameOutputReference; _d = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameOutputReference[_d] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameOutputReference", version: "14.12.0" }; function privatecaCertificateAuthorityConfigSubjectConfigToTerraform(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 { subject: privatecaCertificateAuthorityConfigSubjectConfigSubjectToTerraform(struct.subject), subject_alt_name: privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToTerraform(struct.subjectAltName), }; } exports.privatecaCertificateAuthorityConfigSubjectConfigToTerraform = privatecaCertificateAuthorityConfigSubjectConfigToTerraform; function privatecaCertificateAuthorityConfigSubjectConfigToHclTerraform(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 = { subject: { value: privatecaCertificateAuthorityConfigSubjectConfigSubjectToHclTerraform(struct.subject), isBlock: true, type: "list", storageClassType: "PrivatecaCertificateAuthorityConfigSubjectConfigSubjectList", }, subject_alt_name: { value: privatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameToHclTerraform(struct.subjectAltName), isBlock: true, type: "list", storageClassType: "PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCertificateAuthorityConfigSubjectConfigToHclTerraform = privatecaCertificateAuthorityConfigSubjectConfigToHclTerraform; class PrivatecaCertificateAuthorityConfigSubjectConfigOutputReference 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, 0); this.isEmptyObject = false; // subject - computed: false, optional: false, required: true this._subject = new PrivatecaCertificateAuthorityConfigSubjectConfigSubjectOutputReference(this, "subject"); // subject_alt_name - computed: false, optional: true, required: false this._subjectAltName = new PrivatecaCertificateAuthorityConfigSubjectConfigSubjectAltNameOutputReference(this, "subject_alt_name"); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._subject?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.subject = this._subject?.internalValue; } if (this._subjectAltName?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.subjectAltName = this._subjectAltName?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._subject.internalValue = undefined; this._subjectAltName.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._subject.internalValue = value.subject; this._subjectAltName.internalValue = value.subjectAltName; } } get subject() { return this._subject; } putSubject(value) { this._subject.internalValue = value; } // Temporarily expose input value. Use with caution. get subjectInput() { return this._subject.internalValue; } get subjectAltName() { return this._subjectAltName; } putSubjectAltName(value) { this._subjectAltName.internalValue = value; } resetSubjectAltName() { this._subjectAltName.internalValue = undefined; } // Temporarily expose input value. Use with caution. get subjectAltNameInput() { return this._subjectAltName.internalValue; } } exports.PrivatecaCertificateAuthorityConfigSubjectConfigOutputReference = PrivatecaCertificateAuthorityConfigSubjectConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigSubjectConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigSubjectConfigOutputReference", version: "14.12.0" }; function privatecaCertificateAuthorityConfigSubjectKeyIdToTerraform(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 { key_id: cdktf.stringToTerraform(struct.keyId), }; } exports.privatecaCertificateAuthorityConfigSubjectKeyIdToTerraform = privatecaCertificateAuthorityConfigSubjectKeyIdToTerraform; function privatecaCertificateAuthorityConfigSubjectKeyIdToHclTerraform(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 = { key_id: { value: cdktf.stringToHclTerraform(struct.keyId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCertificateAuthorityConfigSubjectKeyIdToHclTerraform = privatecaCertificateAuthorityConfigSubjectKeyIdToHclTerraform; class PrivatecaCertificateAuthorityConfigSubjectKeyIdOutputReference 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, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._keyId !== undefined) { hasAnyValues = true; internalValueResult.keyId = this._keyId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._keyId = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._keyId = value.keyId; } } get keyId() { return this.getStringAttribute('key_id'); } set keyId(value) { this._keyId = value; } resetKeyId() { this._keyId = undefined; } // Temporarily expose input value. Use with caution. get keyIdInput() { return this._keyId; } } exports.PrivatecaCertificateAuthorityConfigSubjectKeyIdOutputReference = PrivatecaCertificateAuthorityConfigSubjectKeyIdOutputReference; _f = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigSubjectKeyIdOutputReference[_f] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigSubjectKeyIdOutputReference", version: "14.12.0" }; function privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToTerraform(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 { object_id_path: cdktf.listMapper(cdktf.numberToTerraform, false)(struct.objectIdPath), }; } exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToTerraform = privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToTerraform; function privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToHclTerraform(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 = { object_id_path: { value: cdktf.listMapperHcl(cdktf.numberToHclTerraform, false)(struct.objectIdPath), isBlock: false, type: "list", storageClassType: "numberList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToHclTerraform = privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToHclTerraform; class PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdOutputReference 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, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._objectIdPath !== undefined) { hasAnyValues = true; internalValueResult.objectIdPath = this._objectIdPath; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._objectIdPath = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._objectIdPath = value.objectIdPath; } } get objectIdPath() { return this.getNumberListAttribute('object_id_path'); } set objectIdPath(value) { this._objectIdPath = value; } // Temporarily expose input value. Use with caution. get objectIdPathInput() { return this._objectIdPath; } } exports.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdOutputReference = PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdOutputReference; _g = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdOutputReference[_g] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdOutputReference", version: "14.12.0" }; function privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToTerraform(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 { critical: cdktf.booleanToTerraform(struct.critical), value: cdktf.stringToTerraform(struct.value), object_id: privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToTerraform(struct.objectId), }; } exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToTerraform = privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToTerraform; function privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToHclTerraform(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 = { critical: { value: cdktf.booleanToHclTerraform(struct.critical), isBlock: false, type: "simple", storageClassType: "boolean", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, object_id: { value: privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdToHclTerraform(struct.objectId), isBlock: true, type: "list", storageClassType: "PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToHclTerraform = privatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsToHclTerraform; class PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsOutputReference 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; // object_id - computed: false, optional: false, required: true this._objectId = new PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsObjectIdOutputReference(this, "object_id"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._critical !== undefined) { hasAnyValues = true; internalValueResult.critical = this._critical; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } if (this._objectId?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.objectId = this._objectId?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._critical = undefined; this._value = undefined; this._objectId.internalValue = 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._critical = value.critical; this._value = value.value; this._objectId.internalValue = value.objectId; } } get critical() { return this.getBooleanAttribute('critical'); } set critical(value) { this._critical = value; } // Temporarily expose input value. Use with caution. get criticalInput() { return this._critical; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } get objectId() { return this._objectId; } putObjectId(value) { this._objectId.internalValue = value; } // Temporarily expose input value. Use with caution. get objectIdInput() { return this._objectId.internalValue; } } exports.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsOutputReference = PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsOutputReference; _h = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsOutputReference[_h] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsOutputReference", version: "14.12.0" }; class PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsList 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 PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsList = PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsList; _j = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsList[_j] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigX509ConfigAdditionalExtensionsList", version: "14.12.0" }; function privatecaCertificateAuthorityConfigX509ConfigCaOptionsToTerraform(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 { is_ca: cdktf.booleanToTerraform(struct.isCa), max_issuer_path_length: cdktf.numberToTerraform(struct.maxIssuerPathLength), non_ca: cdktf.booleanToTerraform(struct.nonCa), zero_max_issuer_path_length: cdktf.booleanToTerraform(struct.zeroMaxIssuerPathLength), }; } exports.privatecaCertificateAuthorityConfigX509ConfigCaOptionsToTerraform = privatecaCertificateAuthorityConfigX509ConfigCaOptionsToTerraform; function privatecaCertificateAuthorityConfigX509ConfigCaOptionsToHclTerraform(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 = { is_ca: { value: cdktf.booleanToHclTerraform(struct.isCa), isBlock: false, type: "simple", storageClassType: "boolean", }, max_issuer_path_length: { value: cdktf.numberToHclTerraform(struct.maxIssuerPathLength), isBlock: false, type: "simple", storageClassType: "number", }, non_ca: { value: cdktf.booleanToHclTerraform(struct.nonCa), isBlock: false, type: "simple", storageClassType: "boolean", }, zero_max_issuer_path_length: { value: cdktf.booleanToHclTerraform(struct.zeroMaxIssuerPathLength), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCertificateAuthorityConfigX509ConfigCaOptionsToHclTerraform = privatecaCertificateAuthorityConfigX509ConfigCaOptionsToHclTerraform; class PrivatecaCertificateAuthorityConfigX509ConfigCaOptionsOutputReference 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, 0); this.isEmptyObject = false; } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isCa !== undefined) { hasAnyValues = true; internalValueResult.isCa = this._isCa; } if (this._maxIssuerPathLength !== undefined) { hasAnyValues = true; internalValueResult.maxIssuerPathLength = this._maxIssuerPathLength; } if (this._nonCa !== undefined) { hasAnyValues = true; internalValueResult.nonCa = this._nonCa; } if (this._zeroMaxIssuerPathLength !== undefined) { hasAnyValues = true; internalValueResult.zeroMaxIssuerPathLength = this._zeroMaxIssuerPathLength; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._isCa = undefined; this._maxIssuerPathLength = undefined; this._nonCa = undefined; this._zeroMaxIssuerPathLength = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._isCa = value.isCa; this._maxIssuerPathLength = value.maxIssuerPathLength; this._nonCa = value.nonCa; this._zeroMaxIssuerPathLength = value.zeroMaxIssuerPathLength; } } get isCa() { return this.getBooleanAttribute('is_ca'); } set isCa(value) { this._isCa = value; } // Temporarily expose input value. Use with caution. get isCaInput() { return this._isCa; } get maxIssuerPathLength() { return this.getNumberAttribute('max_issuer_path_length'); } set maxIssuerPathLength(value) { this._maxIssuerPathLength = value; } resetMaxIssuerPathLength() { this._maxIssuerPathLength = undefined; } // Temporarily expose input value. Use with caution. get maxIssuerPathLengthInput() { return this._maxIssuerPathLength; } get nonCa() { return this.getBooleanAttribute('non_ca'); } set nonCa(value) { this._nonCa = value; } resetNonCa() { this._nonCa = undefined; } // Temporarily expose input value. Use with caution. get nonCaInput() { return this._nonCa; } get zeroMaxIssuerPathLength() { return this.getBooleanAttribute('zero_max_issuer_path_length'); } set zeroMaxIssuerPathLength(value) { this._zeroMaxIssuerPathLength = value; } resetZeroMaxIssuerPathLength() { this._zeroMaxIssuerPathLength = undefined; } // Temporarily expose input value. Use with caution. get zeroMaxIssuerPathLengthInput() { return this._zeroMaxIssuerPathLength; } } exports.PrivatecaCertificateAuthorityConfigX509ConfigCaOptionsOutputReference = PrivatecaCertificateAuthorityConfigX509ConfigCaOptionsOutputReference; _k = JSII_RTTI_SYMBOL_1; PrivatecaCertificateAuthorityConfigX509ConfigCaOptionsOutputReference[_k] = { fqn: "@cdktf/provider-google.privatecaCertificateAuthority.PrivatecaCertificateAuthorityConfigX509ConfigCaOptionsOutputReference", version: "14.12.0" }; function privatecaCertificateAuthorityConfigX509ConfigKeyUsageBaseKeyUsageToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(s