@cdktf/provider-google
Version:
Prebuilt google Provider for Terraform CDK (cdktf)
718 lines • 368 kB
JavaScript
"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, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsList = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsOutputReference = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdList = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdOutputReference = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsList = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsOutputReference = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigsList = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigsOutputReference = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsBanThresholdList = exports.DataGoogleComputeSecurityPolicyRuleRateLimitOptionsBanThresholdOutputReference = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigList = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigOutputReference = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionList = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionOutputReference = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriList = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriOutputReference = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamList = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamOutputReference = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeaderList = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeaderOutputReference = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCookieList = exports.DataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCookieOutputReference = exports.DataGoogleComputeSecurityPolicyRuleMatchList = exports.DataGoogleComputeSecurityPolicyRuleMatchOutputReference = exports.DataGoogleComputeSecurityPolicyRuleMatchExprOptionsList = exports.DataGoogleComputeSecurityPolicyRuleMatchExprOptionsOutputReference = exports.DataGoogleComputeSecurityPolicyRuleMatchExprOptionsRecaptchaOptionsList = exports.DataGoogleComputeSecurityPolicyRuleMatchExprOptionsRecaptchaOptionsOutputReference = exports.DataGoogleComputeSecurityPolicyRuleMatchExprList = exports.DataGoogleComputeSecurityPolicyRuleMatchExprOutputReference = exports.DataGoogleComputeSecurityPolicyRuleMatchConfigList = exports.DataGoogleComputeSecurityPolicyRuleMatchConfigOutputReference = exports.DataGoogleComputeSecurityPolicyRuleHeaderActionList = exports.DataGoogleComputeSecurityPolicyRuleHeaderActionOutputReference = exports.DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsList = exports.DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsOutputReference = exports.DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigList = exports.DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigOutputReference = exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigList = exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigOutputReference = exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigList = exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigOutputReference = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigList = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigOutputReference = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigList = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigOutputReference = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsList = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsOutputReference = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsList = exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsOutputReference = void 0;
exports.DataGoogleComputeSecurityPolicy = exports.DataGoogleComputeSecurityPolicyRuleList = exports.DataGoogleComputeSecurityPolicyRuleOutputReference = exports.DataGoogleComputeSecurityPolicyRuleRedirectOptionsList = exports.DataGoogleComputeSecurityPolicyRuleRedirectOptionsOutputReference = void 0;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsToTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsToTerraform;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsToHclTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsToTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsToTerraform;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsToHclTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigToTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigToTerraform;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigToHclTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigToHclTerraform;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigToTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigToTerraform;
exports.dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigToHclTerraform = dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigToHclTerraform;
exports.dataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigToTerraform = dataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigToTerraform;
exports.dataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigToHclTerraform = dataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigToHclTerraform;
exports.dataGoogleComputeSecurityPolicyAdvancedOptionsConfigToTerraform = dataGoogleComputeSecurityPolicyAdvancedOptionsConfigToTerraform;
exports.dataGoogleComputeSecurityPolicyAdvancedOptionsConfigToHclTerraform = dataGoogleComputeSecurityPolicyAdvancedOptionsConfigToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRecaptchaOptionsConfigToTerraform = dataGoogleComputeSecurityPolicyRecaptchaOptionsConfigToTerraform;
exports.dataGoogleComputeSecurityPolicyRecaptchaOptionsConfigToHclTerraform = dataGoogleComputeSecurityPolicyRecaptchaOptionsConfigToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsToTerraform = dataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsToHclTerraform = dataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleHeaderActionToTerraform = dataGoogleComputeSecurityPolicyRuleHeaderActionToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleHeaderActionToHclTerraform = dataGoogleComputeSecurityPolicyRuleHeaderActionToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchConfigToTerraform = dataGoogleComputeSecurityPolicyRuleMatchConfigToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchConfigToHclTerraform = dataGoogleComputeSecurityPolicyRuleMatchConfigToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchExprToTerraform = dataGoogleComputeSecurityPolicyRuleMatchExprToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchExprToHclTerraform = dataGoogleComputeSecurityPolicyRuleMatchExprToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchExprOptionsRecaptchaOptionsToTerraform = dataGoogleComputeSecurityPolicyRuleMatchExprOptionsRecaptchaOptionsToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchExprOptionsRecaptchaOptionsToHclTerraform = dataGoogleComputeSecurityPolicyRuleMatchExprOptionsRecaptchaOptionsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchExprOptionsToTerraform = dataGoogleComputeSecurityPolicyRuleMatchExprOptionsToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchExprOptionsToHclTerraform = dataGoogleComputeSecurityPolicyRuleMatchExprOptionsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchToTerraform = dataGoogleComputeSecurityPolicyRuleMatchToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleMatchToHclTerraform = dataGoogleComputeSecurityPolicyRuleMatchToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCookieToTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCookieToTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCookieToHclTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestCookieToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeaderToTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeaderToTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeaderToHclTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestHeaderToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamToTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamToTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamToHclTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestQueryParamToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriToTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriToTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriToHclTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionRequestUriToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionToTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionToTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionToHclTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigExclusionToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigToTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigToTerraform;
exports.dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigToHclTerraform = dataGoogleComputeSecurityPolicyRulePreconfiguredWafConfigToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsBanThresholdToTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsBanThresholdToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsBanThresholdToHclTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsBanThresholdToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigsToTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigsToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigsToHclTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsEnforceOnKeyConfigsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsToTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsToHclTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsExceedRedirectOptionsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdToTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdToHclTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsRateLimitThresholdToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsToTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRateLimitOptionsToHclTerraform = dataGoogleComputeSecurityPolicyRuleRateLimitOptionsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRedirectOptionsToTerraform = dataGoogleComputeSecurityPolicyRuleRedirectOptionsToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleRedirectOptionsToHclTerraform = dataGoogleComputeSecurityPolicyRuleRedirectOptionsToHclTerraform;
exports.dataGoogleComputeSecurityPolicyRuleToTerraform = dataGoogleComputeSecurityPolicyRuleToTerraform;
exports.dataGoogleComputeSecurityPolicyRuleToHclTerraform = dataGoogleComputeSecurityPolicyRuleToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsOutputReference 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;
}
}
// enable_each_unique_value - computed: true, optional: false, required: false
get enableEachUniqueValue() {
return this.getBooleanAttribute('enable_each_unique_value');
}
// type - computed: true, optional: false, required: false
get type() {
return this.getStringAttribute('type');
}
// value - computed: true, optional: false, required: false
get value() {
return this.getStringAttribute('value');
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsOutputReference = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsOutputReference;
_a = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsOutputReference[_a] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsList 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 DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsList = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsList;
_b = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsList[_b] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsOutputReference 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;
// traffic_granularity_configs - computed: true, optional: false, required: false
this._trafficGranularityConfigs = new DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsTrafficGranularityConfigsList(this, "traffic_granularity_configs", 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;
}
}
// auto_deploy_confidence_threshold - computed: true, optional: false, required: false
get autoDeployConfidenceThreshold() {
return this.getNumberAttribute('auto_deploy_confidence_threshold');
}
// auto_deploy_expiration_sec - computed: true, optional: false, required: false
get autoDeployExpirationSec() {
return this.getNumberAttribute('auto_deploy_expiration_sec');
}
// auto_deploy_impacted_baseline_threshold - computed: true, optional: false, required: false
get autoDeployImpactedBaselineThreshold() {
return this.getNumberAttribute('auto_deploy_impacted_baseline_threshold');
}
// auto_deploy_load_threshold - computed: true, optional: false, required: false
get autoDeployLoadThreshold() {
return this.getNumberAttribute('auto_deploy_load_threshold');
}
// detection_absolute_qps - computed: true, optional: false, required: false
get detectionAbsoluteQps() {
return this.getNumberAttribute('detection_absolute_qps');
}
// detection_load_threshold - computed: true, optional: false, required: false
get detectionLoadThreshold() {
return this.getNumberAttribute('detection_load_threshold');
}
// detection_relative_to_baseline_qps - computed: true, optional: false, required: false
get detectionRelativeToBaselineQps() {
return this.getNumberAttribute('detection_relative_to_baseline_qps');
}
// name - computed: true, optional: false, required: false
get name() {
return this.getStringAttribute('name');
}
get trafficGranularityConfigs() {
return this._trafficGranularityConfigs;
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsOutputReference = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsOutputReference;
_c = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsOutputReference[_c] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsList 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 DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsList = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsList;
_d = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsList[_d] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigOutputReference 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;
// threshold_configs - computed: true, optional: false, required: false
this._thresholdConfigs = new DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfigsList(this, "threshold_configs", 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;
}
}
// enable - computed: true, optional: false, required: false
get enable() {
return this.getBooleanAttribute('enable');
}
// rule_visibility - computed: true, optional: false, required: false
get ruleVisibility() {
return this.getStringAttribute('rule_visibility');
}
get thresholdConfigs() {
return this._thresholdConfigs;
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigOutputReference = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigOutputReference;
_e = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigOutputReference[_e] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigList 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 DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigList = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigList;
_f = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigList[_f] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyAdaptiveProtectionConfigToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigOutputReference 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;
// layer_7_ddos_defense_config - computed: true, optional: false, required: false
this._layer7DdosDefenseConfig = new DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigList(this, "layer_7_ddos_defense_config", 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 layer7DdosDefenseConfig() {
return this._layer7DdosDefenseConfig;
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigOutputReference = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigOutputReference;
_g = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigOutputReference[_g] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigList 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 DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigList = DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigList;
_h = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigList[_h] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdaptiveProtectionConfigList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigOutputReference 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;
}
}
// content_types - computed: true, optional: false, required: false
get contentTypes() {
return cdktf.Fn.tolist(this.getListAttribute('content_types'));
}
}
exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigOutputReference = DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigOutputReference;
_j = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigOutputReference[_j] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigList 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 DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigList = DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigList;
_k = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigList[_k] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyAdvancedOptionsConfigToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyAdvancedOptionsConfigToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyAdvancedOptionsConfigOutputReference 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;
// json_custom_config - computed: true, optional: false, required: false
this._jsonCustomConfig = new DataGoogleComputeSecurityPolicyAdvancedOptionsConfigJsonCustomConfigList(this, "json_custom_config", 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 jsonCustomConfig() {
return this._jsonCustomConfig;
}
// json_parsing - computed: true, optional: false, required: false
get jsonParsing() {
return this.getStringAttribute('json_parsing');
}
// log_level - computed: true, optional: false, required: false
get logLevel() {
return this.getStringAttribute('log_level');
}
// user_ip_request_headers - computed: true, optional: false, required: false
get userIpRequestHeaders() {
return cdktf.Fn.tolist(this.getListAttribute('user_ip_request_headers'));
}
}
exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigOutputReference = DataGoogleComputeSecurityPolicyAdvancedOptionsConfigOutputReference;
_l = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdvancedOptionsConfigOutputReference[_l] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyAdvancedOptionsConfigList 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 DataGoogleComputeSecurityPolicyAdvancedOptionsConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigList = DataGoogleComputeSecurityPolicyAdvancedOptionsConfigList;
_m = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyAdvancedOptionsConfigList[_m] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyAdvancedOptionsConfigList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyRecaptchaOptionsConfigToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyRecaptchaOptionsConfigToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigOutputReference 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;
}
}
// redirect_site_key - computed: true, optional: false, required: false
get redirectSiteKey() {
return this.getStringAttribute('redirect_site_key');
}
}
exports.DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigOutputReference = DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigOutputReference;
_o = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigOutputReference[_o] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigList 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 DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigList = DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigList;
_p = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigList[_p] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyRecaptchaOptionsConfigList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsToTerraform(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 {};
}
function dataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsToHclTerraform(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;
}
class DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsOutputReference 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;
}
}
// header_name - computed: true, optional: false, required: false
get headerName() {
return this.getStringAttribute('header_name');
}
// header_value - computed: true, optional: false, required: false
get headerValue() {
return this.getStringAttribute('header_value');
}
}
exports.DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsOutputReference = DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsOutputReference;
_q = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsOutputReference[_q] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsOutputReference", version: "14.35.0" };
class DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsList 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 DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsList = DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsList;
_r = JSII_RTTI_SYMBOL_1;
DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsList[_r] = { fqn: "@cdktf/provider-google.dataGoogleComputeSecurityPolicy.DataGoogleComputeSecurityPolicyRuleHeaderActionRequestHeadersToAddsList", version: "14.35.0" };
function dataGoogleComputeSecurityPolicyRuleHeaderActionToTerraform(struct) {
if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) {
return struct;
}
if (cdktf.