UNPKG

@cdktf/provider-google

Version:

Prebuilt google Provider for Terraform CDK (cdktf)

1,051 lines 470 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; Object.defineProperty(exports, "__esModule", { value: true }); exports.privatecaCaPoolIssuancePolicyIdentityConstraintsToTerraform = exports.PrivatecaCaPoolIssuancePolicyIdentityConstraintsCelExpressionOutputReference = exports.privatecaCaPoolIssuancePolicyIdentityConstraintsCelExpressionToHclTerraform = exports.privatecaCaPoolIssuancePolicyIdentityConstraintsCelExpressionToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesPolicyIdsList = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesPolicyIdsOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesPolicyIdsToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesPolicyIdsToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesNameConstraintsOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesNameConstraintsToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesNameConstraintsToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesKeyUsageOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsagesList = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsagesOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsagesToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageUnknownExtendedKeyUsagesToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageExtendedKeyUsageToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesCaOptionsOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsList = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToTerraform = exports.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdOutputReference = exports.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToHclTerraform = exports.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToTerraform = exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesList = exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesOutputReference = exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesToHclTerraform = exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesToTerraform = exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaOutputReference = exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToHclTerraform = exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToTerraform = exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveOutputReference = exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToHclTerraform = exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToTerraform = exports.PrivatecaCaPoolIssuancePolicyAllowedIssuanceModesOutputReference = exports.privatecaCaPoolIssuancePolicyAllowedIssuanceModesToHclTerraform = exports.privatecaCaPoolIssuancePolicyAllowedIssuanceModesToTerraform = void 0; exports.PrivatecaCaPool = exports.PrivatecaCaPoolTimeoutsOutputReference = exports.privatecaCaPoolTimeoutsToHclTerraform = exports.privatecaCaPoolTimeoutsToTerraform = exports.PrivatecaCaPoolPublishingOptionsOutputReference = exports.privatecaCaPoolPublishingOptionsToHclTerraform = exports.privatecaCaPoolPublishingOptionsToTerraform = exports.PrivatecaCaPoolIssuancePolicyOutputReference = exports.privatecaCaPoolIssuancePolicyToHclTerraform = exports.privatecaCaPoolIssuancePolicyToTerraform = exports.PrivatecaCaPoolIssuancePolicyIdentityConstraintsOutputReference = exports.privatecaCaPoolIssuancePolicyIdentityConstraintsToHclTerraform = void 0; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function privatecaCaPoolIssuancePolicyAllowedIssuanceModesToTerraform(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 { allow_config_based_issuance: cdktf.booleanToTerraform(struct.allowConfigBasedIssuance), allow_csr_based_issuance: cdktf.booleanToTerraform(struct.allowCsrBasedIssuance), }; } exports.privatecaCaPoolIssuancePolicyAllowedIssuanceModesToTerraform = privatecaCaPoolIssuancePolicyAllowedIssuanceModesToTerraform; function privatecaCaPoolIssuancePolicyAllowedIssuanceModesToHclTerraform(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 = { allow_config_based_issuance: { value: cdktf.booleanToHclTerraform(struct.allowConfigBasedIssuance), isBlock: false, type: "simple", storageClassType: "boolean", }, allow_csr_based_issuance: { value: cdktf.booleanToHclTerraform(struct.allowCsrBasedIssuance), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCaPoolIssuancePolicyAllowedIssuanceModesToHclTerraform = privatecaCaPoolIssuancePolicyAllowedIssuanceModesToHclTerraform; class PrivatecaCaPoolIssuancePolicyAllowedIssuanceModesOutputReference 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._allowConfigBasedIssuance !== undefined) { hasAnyValues = true; internalValueResult.allowConfigBasedIssuance = this._allowConfigBasedIssuance; } if (this._allowCsrBasedIssuance !== undefined) { hasAnyValues = true; internalValueResult.allowCsrBasedIssuance = this._allowCsrBasedIssuance; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._allowConfigBasedIssuance = undefined; this._allowCsrBasedIssuance = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._allowConfigBasedIssuance = value.allowConfigBasedIssuance; this._allowCsrBasedIssuance = value.allowCsrBasedIssuance; } } get allowConfigBasedIssuance() { return this.getBooleanAttribute('allow_config_based_issuance'); } set allowConfigBasedIssuance(value) { this._allowConfigBasedIssuance = value; } // Temporarily expose input value. Use with caution. get allowConfigBasedIssuanceInput() { return this._allowConfigBasedIssuance; } get allowCsrBasedIssuance() { return this.getBooleanAttribute('allow_csr_based_issuance'); } set allowCsrBasedIssuance(value) { this._allowCsrBasedIssuance = value; } // Temporarily expose input value. Use with caution. get allowCsrBasedIssuanceInput() { return this._allowCsrBasedIssuance; } } exports.PrivatecaCaPoolIssuancePolicyAllowedIssuanceModesOutputReference = PrivatecaCaPoolIssuancePolicyAllowedIssuanceModesOutputReference; _a = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyAllowedIssuanceModesOutputReference[_a] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyAllowedIssuanceModesOutputReference", version: "14.12.0" }; function privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToTerraform(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 { signature_algorithm: cdktf.stringToTerraform(struct.signatureAlgorithm), }; } exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToTerraform = privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToTerraform; function privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToHclTerraform(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 = { signature_algorithm: { value: cdktf.stringToHclTerraform(struct.signatureAlgorithm), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToHclTerraform = privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToHclTerraform; class PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveOutputReference 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._signatureAlgorithm !== undefined) { hasAnyValues = true; internalValueResult.signatureAlgorithm = this._signatureAlgorithm; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._signatureAlgorithm = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._signatureAlgorithm = value.signatureAlgorithm; } } get signatureAlgorithm() { return this.getStringAttribute('signature_algorithm'); } set signatureAlgorithm(value) { this._signatureAlgorithm = value; } // Temporarily expose input value. Use with caution. get signatureAlgorithmInput() { return this._signatureAlgorithm; } } exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveOutputReference = PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveOutputReference; _b = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveOutputReference[_b] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveOutputReference", version: "14.12.0" }; function privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToTerraform(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 { max_modulus_size: cdktf.stringToTerraform(struct.maxModulusSize), min_modulus_size: cdktf.stringToTerraform(struct.minModulusSize), }; } exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToTerraform = privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToTerraform; function privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToHclTerraform(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 = { max_modulus_size: { value: cdktf.stringToHclTerraform(struct.maxModulusSize), isBlock: false, type: "simple", storageClassType: "string", }, min_modulus_size: { value: cdktf.stringToHclTerraform(struct.minModulusSize), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToHclTerraform = privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToHclTerraform; class PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaOutputReference 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._maxModulusSize !== undefined) { hasAnyValues = true; internalValueResult.maxModulusSize = this._maxModulusSize; } if (this._minModulusSize !== undefined) { hasAnyValues = true; internalValueResult.minModulusSize = this._minModulusSize; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._maxModulusSize = undefined; this._minModulusSize = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._maxModulusSize = value.maxModulusSize; this._minModulusSize = value.minModulusSize; } } get maxModulusSize() { return this.getStringAttribute('max_modulus_size'); } set maxModulusSize(value) { this._maxModulusSize = value; } resetMaxModulusSize() { this._maxModulusSize = undefined; } // Temporarily expose input value. Use with caution. get maxModulusSizeInput() { return this._maxModulusSize; } get minModulusSize() { return this.getStringAttribute('min_modulus_size'); } set minModulusSize(value) { this._minModulusSize = value; } resetMinModulusSize() { this._minModulusSize = undefined; } // Temporarily expose input value. Use with caution. get minModulusSizeInput() { return this._minModulusSize; } } exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaOutputReference = PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaOutputReference; _c = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaOutputReference[_c] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaOutputReference", version: "14.12.0" }; function privatecaCaPoolIssuancePolicyAllowedKeyTypesToTerraform(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 { elliptic_curve: privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToTerraform(struct.ellipticCurve), rsa: privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToTerraform(struct.rsa), }; } exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesToTerraform = privatecaCaPoolIssuancePolicyAllowedKeyTypesToTerraform; function privatecaCaPoolIssuancePolicyAllowedKeyTypesToHclTerraform(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 = { elliptic_curve: { value: privatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveToHclTerraform(struct.ellipticCurve), isBlock: true, type: "list", storageClassType: "PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveList", }, rsa: { value: privatecaCaPoolIssuancePolicyAllowedKeyTypesRsaToHclTerraform(struct.rsa), isBlock: true, type: "list", storageClassType: "PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCaPoolIssuancePolicyAllowedKeyTypesToHclTerraform = privatecaCaPoolIssuancePolicyAllowedKeyTypesToHclTerraform; class PrivatecaCaPoolIssuancePolicyAllowedKeyTypesOutputReference 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; // elliptic_curve - computed: false, optional: true, required: false this._ellipticCurve = new PrivatecaCaPoolIssuancePolicyAllowedKeyTypesEllipticCurveOutputReference(this, "elliptic_curve"); // rsa - computed: false, optional: true, required: false this._rsa = new PrivatecaCaPoolIssuancePolicyAllowedKeyTypesRsaOutputReference(this, "rsa"); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._ellipticCurve?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.ellipticCurve = this._ellipticCurve?.internalValue; } if (this._rsa?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.rsa = this._rsa?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._ellipticCurve.internalValue = undefined; this._rsa.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._ellipticCurve.internalValue = value.ellipticCurve; this._rsa.internalValue = value.rsa; } } get ellipticCurve() { return this._ellipticCurve; } putEllipticCurve(value) { this._ellipticCurve.internalValue = value; } resetEllipticCurve() { this._ellipticCurve.internalValue = undefined; } // Temporarily expose input value. Use with caution. get ellipticCurveInput() { return this._ellipticCurve.internalValue; } get rsa() { return this._rsa; } putRsa(value) { this._rsa.internalValue = value; } resetRsa() { this._rsa.internalValue = undefined; } // Temporarily expose input value. Use with caution. get rsaInput() { return this._rsa.internalValue; } } exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesOutputReference = PrivatecaCaPoolIssuancePolicyAllowedKeyTypesOutputReference; _d = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyAllowedKeyTypesOutputReference[_d] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesOutputReference", version: "14.12.0" }; class PrivatecaCaPoolIssuancePolicyAllowedKeyTypesList 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 PrivatecaCaPoolIssuancePolicyAllowedKeyTypesOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesList = PrivatecaCaPoolIssuancePolicyAllowedKeyTypesList; _e = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyAllowedKeyTypesList[_e] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyAllowedKeyTypesList", version: "14.12.0" }; function privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToTerraform(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.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToTerraform = privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToTerraform; function privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToHclTerraform(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.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToHclTerraform = privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToHclTerraform; class PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdOutputReference 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.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdOutputReference = PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdOutputReference; _f = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdOutputReference[_f] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdOutputReference", version: "14.12.0" }; function privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToTerraform(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: privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToTerraform(struct.objectId), }; } exports.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToTerraform = privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToTerraform; function privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToHclTerraform(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: privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdToHclTerraform(struct.objectId), isBlock: true, type: "list", storageClassType: "PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToHclTerraform = privatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsToHclTerraform; class PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsOutputReference 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 PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsObjectIdOutputReference(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.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsOutputReference = PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsOutputReference; _g = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsOutputReference[_g] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsOutputReference", version: "14.12.0" }; class PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsList 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 PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsList = PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsList; _h = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsList[_h] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyBaselineValuesAdditionalExtensionsList", version: "14.12.0" }; function privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToTerraform(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.privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToTerraform = privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToTerraform; function privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToHclTerraform(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.privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToHclTerraform = privatecaCaPoolIssuancePolicyBaselineValuesCaOptionsToHclTerraform; class PrivatecaCaPoolIssuancePolicyBaselineValuesCaOptionsOutputReference 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; } resetIsCa() { this._isCa = undefined; } // 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.PrivatecaCaPoolIssuancePolicyBaselineValuesCaOptionsOutputReference = PrivatecaCaPoolIssuancePolicyBaselineValuesCaOptionsOutputReference; _j = JSII_RTTI_SYMBOL_1; PrivatecaCaPoolIssuancePolicyBaselineValuesCaOptionsOutputReference[_j] = { fqn: "@cdktf/provider-google.privatecaCaPool.PrivatecaCaPoolIssuancePolicyBaselineValuesCaOptionsOutputReference", version: "14.12.0" }; function privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToTerraform(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 { cert_sign: cdktf.booleanToTerraform(struct.certSign), content_commitment: cdktf.booleanToTerraform(struct.contentCommitment), crl_sign: cdktf.booleanToTerraform(struct.crlSign), data_encipherment: cdktf.booleanToTerraform(struct.dataEncipherment), decipher_only: cdktf.booleanToTerraform(struct.decipherOnly), digital_signature: cdktf.booleanToTerraform(struct.digitalSignature), encipher_only: cdktf.booleanToTerraform(struct.encipherOnly), key_agreement: cdktf.booleanToTerraform(struct.keyAgreement), key_encipherment: cdktf.booleanToTerraform(struct.keyEncipherment), }; } exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToTerraform = privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToTerraform; function privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToHclTerraform(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 = { cert_sign: { value: cdktf.booleanToHclTerraform(struct.certSign), isBlock: false, type: "simple", storageClassType: "boolean", }, content_commitment: { value: cdktf.booleanToHclTerraform(struct.contentCommitment), isBlock: false, type: "simple", storageClassType: "boolean", }, crl_sign: { value: cdktf.booleanToHclTerraform(struct.crlSign), isBlock: false, type: "simple", storageClassType: "boolean", }, data_encipherment: { value: cdktf.booleanToHclTerraform(struct.dataEncipherment), isBlock: false, type: "simple", storageClassType: "boolean", }, decipher_only: { value: cdktf.booleanToHclTerraform(struct.decipherOnly), isBlock: false, type: "simple", storageClassType: "boolean", }, digital_signature: { value: cdktf.booleanToHclTerraform(struct.digitalSignature), isBlock: false, type: "simple", storageClassType: "boolean", }, encipher_only: { value: cdktf.booleanToHclTerraform(struct.encipherOnly), isBlock: false, type: "simple", storageClassType: "boolean", }, key_agreement: { value: cdktf.booleanToHclTerraform(struct.keyAgreement), isBlock: false, type: "simple", storageClassType: "boolean", }, key_encipherment: { value: cdktf.booleanToHclTerraform(struct.keyEncipherment), isBlock: false, type: "simple", storageClassType: "boolean", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } exports.privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToHclTerraform = privatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageToHclTerraform; class PrivatecaCaPoolIssuancePolicyBaselineValuesKeyUsageBaseKeyUsageOutputReference 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._certSign !== undefined) { hasAnyValues = true; internalValueResult.certSign = this._certSign; } if (this._contentCommitment !== undefined) { hasAnyValues = true; internalValueResult.contentCommitment = this._contentCommitment; } if (this._crlSign !== undefined) { hasAnyValues = true; internalValueResult.crlSign = this._crlSign; } if (this._dataEncipherment !== undefined) { hasAnyValues = true; internalValueResult.dataEncipherment = this._dataEncipherment; } if (this._decipherOnly !== undefined) { hasAnyValues = true; internalValueResult.decipherOnly = this._decipherOnly; } if (this._digitalSignature !== undefined) { hasAnyValues = true; internalValueResult.digitalSignature = this._digitalSignature; } if (this._encipherOnly !== undefined) { hasAnyValues = true; internalValueResult.encipherOnly = this._encipherOnly; } if (this._keyAgreement !== undefined) { hasAnyValues = true; internalValueResult.keyAgreement = this._keyAgreement; } if (this._keyEncipherment !== undefined) { hasAnyValues = true; internalValueResult.keyEncipherment = this._keyEncipherment; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._certSign = undefined; this._contentCommitment = undefined; this._crlSign = undefined; this._dataEncipherment = undefined; this._decipherOnly = undefined; this._digitalSignature = undefined; this._encipherOnly = undefined; this._keyAgreement = undefined; this._keyEncipherment = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._certSign = value.certSign; this._contentCommitment = value.contentCommitment; this._crlSign = value.crlSign; this._dataEncipherment = value.dataEncipherment; this._decipherOnly = value.decipherOnly; this._digitalSignature = value.digitalSignature; this._encipherOnly = value.encipherOnly; this._keyAgreement = value.keyAgreement; this._keyEncipherment = value.keyEncipherment; } } get certSign() { return this.getBooleanAttribute('cert_sign'); } set certSign(value) { this._certSign = value; } resetCertSign() { this._certSign = undefined; } // Temporarily expose input value. Use with caution. get certSignInput() { return this._certSign; } get contentCommitment() { return this.getBooleanAttribute('content_commitment'); } set contentCommitment(value) { this._contentCommitment = value; } resetContentCommitment() { this._contentCommitment = undefined; } // Temporarily expose input value. Use with caution. get contentCommitmentInput() { return this._contentCommitment; } get crlSign() { return this.getBooleanAttribute('crl_sign'); } set crlSign(value) { this._crlSign = value; } resetCrlSign() { this._crlSign = undefined; } // Temporarily expose input value. Use with caution. get crlSignInput() { return this._crlSign; } get dataEncipherment() { return this.getBooleanAttribute('data_encipherment'); } set dataEncipherment(value) { this._dataEncipherment = value; } resetDataEncipherment() { this._dataEncipherment = undefined; } // Temporarily expose input value. Use with caution. get dataEnciphermentInput() { return this._dataEncipherment; } get decipherOnly() { return this.getBooleanAttribute('decipher_only'); } set decipherOnly(value) { this._decipherOnly = value; } resetDecipherOnly() { this._decipherOnly = undefined; } // Temporarily expose input value. Use with caution. get decipherOnlyInput() { return this._decipherOnly; } get digitalSignature() { return this.getBooleanAttribute('digital_signature'); } set digitalSignature(value) { this._digitalSignature = value; } resetDigitalSignature() { this._digitalSignature = undefined; } // Temporarily expose input value. Use with caution. get digitalSignatureInput() { return this._digitalSignature; } get encipherOnly() { return this.getBooleanAttribute('encipher_only'); } set encipherOnly(value) { this._encipherOnly = value; } resetEncipherOnly() { this._encipherOnly = undefined; } // Temporarily expose input value. Use with caution. get encipherOnlyInput() { return this._encipherOn