@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
851 lines (850 loc) • 803 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, _31, _32, _33, _34, _35, _36, _37;
Object.defineProperty(exports, "__esModule", { value: true });
exports.Wafv2WebAclRuleCaptchaConfigOutputReference = exports.Wafv2WebAclRuleCaptchaConfigImmunityTimePropertyOutputReference = exports.Wafv2WebAclRuleActionOutputReference = exports.Wafv2WebAclRuleActionCountOutputReference = exports.Wafv2WebAclRuleActionCountCustomRequestHandlingOutputReference = exports.Wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputReference = exports.Wafv2WebAclRuleActionChallengeOutputReference = exports.Wafv2WebAclRuleActionChallengeCustomRequestHandlingOutputReference = exports.Wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputReference = exports.Wafv2WebAclRuleActionCaptchaOutputReference = exports.Wafv2WebAclRuleActionCaptchaCustomRequestHandlingOutputReference = exports.Wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputReference = exports.Wafv2WebAclRuleActionBlockOutputReference = exports.Wafv2WebAclRuleActionBlockCustomResponseOutputReference = exports.Wafv2WebAclRuleActionBlockCustomResponseResponseHeaderList = exports.Wafv2WebAclRuleActionBlockCustomResponseResponseHeaderOutputReference = exports.Wafv2WebAclRuleActionAllowOutputReference = exports.Wafv2WebAclRuleActionAllowCustomRequestHandlingOutputReference = exports.Wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputReference = exports.Wafv2WebAclDefaultActionOutputReference = exports.Wafv2WebAclDefaultActionBlockOutputReference = exports.Wafv2WebAclDefaultActionBlockCustomResponseOutputReference = exports.Wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderList = exports.Wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderOutputReference = exports.Wafv2WebAclDefaultActionAllowOutputReference = exports.Wafv2WebAclDefaultActionAllowCustomRequestHandlingOutputReference = exports.Wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputReference = exports.Wafv2WebAclDataProtectionConfigOutputReference = exports.Wafv2WebAclDataProtectionConfigDataProtectionList = exports.Wafv2WebAclDataProtectionConfigDataProtectionOutputReference = exports.Wafv2WebAclDataProtectionConfigDataProtectionFieldOutputReference = exports.Wafv2WebAclCustomResponseBodyList = exports.Wafv2WebAclCustomResponseBodyOutputReference = exports.Wafv2WebAclChallengeConfigOutputReference = exports.Wafv2WebAclChallengeConfigImmunityTimePropertyOutputReference = exports.Wafv2WebAclCaptchaConfigOutputReference = exports.Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference = exports.Wafv2WebAclAssociationConfigOutputReference = exports.Wafv2WebAclAssociationConfigRequestBodyList = exports.Wafv2WebAclAssociationConfigRequestBodyOutputReference = exports.Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference = exports.Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference = exports.Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference = exports.Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference = exports.Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference = void 0;
exports.Wafv2WebAcl = exports.Wafv2WebAclVisibilityConfigOutputReference = exports.Wafv2WebAclRuleList = exports.Wafv2WebAclRuleOutputReference = exports.Wafv2WebAclRuleVisibilityConfigOutputReference = exports.Wafv2WebAclRuleRuleLabelList = exports.Wafv2WebAclRuleRuleLabelOutputReference = exports.Wafv2WebAclRuleOverrideActionOutputReference = exports.Wafv2WebAclRuleOverrideActionNoneOutputReference = exports.Wafv2WebAclRuleOverrideActionCountOutputReference = exports.Wafv2WebAclRuleChallengeConfigOutputReference = exports.Wafv2WebAclRuleChallengeConfigImmunityTimePropertyOutputReference = void 0;
exports.wafv2WebAclAssociationConfigRequestBodyApiGatewayToTerraform = wafv2WebAclAssociationConfigRequestBodyApiGatewayToTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyApiGatewayToHclTerraform = wafv2WebAclAssociationConfigRequestBodyApiGatewayToHclTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToTerraform = wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToHclTerraform = wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToHclTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyCloudfrontToTerraform = wafv2WebAclAssociationConfigRequestBodyCloudfrontToTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyCloudfrontToHclTerraform = wafv2WebAclAssociationConfigRequestBodyCloudfrontToHclTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToTerraform = wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToHclTerraform = wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToHclTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToTerraform = wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToHclTerraform = wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToHclTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyToTerraform = wafv2WebAclAssociationConfigRequestBodyToTerraform;
exports.wafv2WebAclAssociationConfigRequestBodyToHclTerraform = wafv2WebAclAssociationConfigRequestBodyToHclTerraform;
exports.wafv2WebAclAssociationConfigToTerraform = wafv2WebAclAssociationConfigToTerraform;
exports.wafv2WebAclAssociationConfigToHclTerraform = wafv2WebAclAssociationConfigToHclTerraform;
exports.wafv2WebAclCaptchaConfigImmunityTimePropertyToTerraform = wafv2WebAclCaptchaConfigImmunityTimePropertyToTerraform;
exports.wafv2WebAclCaptchaConfigImmunityTimePropertyToHclTerraform = wafv2WebAclCaptchaConfigImmunityTimePropertyToHclTerraform;
exports.wafv2WebAclCaptchaConfigToTerraform = wafv2WebAclCaptchaConfigToTerraform;
exports.wafv2WebAclCaptchaConfigToHclTerraform = wafv2WebAclCaptchaConfigToHclTerraform;
exports.wafv2WebAclChallengeConfigImmunityTimePropertyToTerraform = wafv2WebAclChallengeConfigImmunityTimePropertyToTerraform;
exports.wafv2WebAclChallengeConfigImmunityTimePropertyToHclTerraform = wafv2WebAclChallengeConfigImmunityTimePropertyToHclTerraform;
exports.wafv2WebAclChallengeConfigToTerraform = wafv2WebAclChallengeConfigToTerraform;
exports.wafv2WebAclChallengeConfigToHclTerraform = wafv2WebAclChallengeConfigToHclTerraform;
exports.wafv2WebAclCustomResponseBodyToTerraform = wafv2WebAclCustomResponseBodyToTerraform;
exports.wafv2WebAclCustomResponseBodyToHclTerraform = wafv2WebAclCustomResponseBodyToHclTerraform;
exports.wafv2WebAclDataProtectionConfigDataProtectionFieldToTerraform = wafv2WebAclDataProtectionConfigDataProtectionFieldToTerraform;
exports.wafv2WebAclDataProtectionConfigDataProtectionFieldToHclTerraform = wafv2WebAclDataProtectionConfigDataProtectionFieldToHclTerraform;
exports.wafv2WebAclDataProtectionConfigDataProtectionToTerraform = wafv2WebAclDataProtectionConfigDataProtectionToTerraform;
exports.wafv2WebAclDataProtectionConfigDataProtectionToHclTerraform = wafv2WebAclDataProtectionConfigDataProtectionToHclTerraform;
exports.wafv2WebAclDataProtectionConfigToTerraform = wafv2WebAclDataProtectionConfigToTerraform;
exports.wafv2WebAclDataProtectionConfigToHclTerraform = wafv2WebAclDataProtectionConfigToHclTerraform;
exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderToTerraform = wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderToTerraform;
exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderToHclTerraform = wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderToHclTerraform;
exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingToTerraform = wafv2WebAclDefaultActionAllowCustomRequestHandlingToTerraform;
exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingToHclTerraform = wafv2WebAclDefaultActionAllowCustomRequestHandlingToHclTerraform;
exports.wafv2WebAclDefaultActionAllowToTerraform = wafv2WebAclDefaultActionAllowToTerraform;
exports.wafv2WebAclDefaultActionAllowToHclTerraform = wafv2WebAclDefaultActionAllowToHclTerraform;
exports.wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderToTerraform = wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderToTerraform;
exports.wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderToHclTerraform = wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderToHclTerraform;
exports.wafv2WebAclDefaultActionBlockCustomResponseToTerraform = wafv2WebAclDefaultActionBlockCustomResponseToTerraform;
exports.wafv2WebAclDefaultActionBlockCustomResponseToHclTerraform = wafv2WebAclDefaultActionBlockCustomResponseToHclTerraform;
exports.wafv2WebAclDefaultActionBlockToTerraform = wafv2WebAclDefaultActionBlockToTerraform;
exports.wafv2WebAclDefaultActionBlockToHclTerraform = wafv2WebAclDefaultActionBlockToHclTerraform;
exports.wafv2WebAclDefaultActionToTerraform = wafv2WebAclDefaultActionToTerraform;
exports.wafv2WebAclDefaultActionToHclTerraform = wafv2WebAclDefaultActionToHclTerraform;
exports.wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderToTerraform = wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderToTerraform;
exports.wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderToHclTerraform = wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderToHclTerraform;
exports.wafv2WebAclRuleActionAllowCustomRequestHandlingToTerraform = wafv2WebAclRuleActionAllowCustomRequestHandlingToTerraform;
exports.wafv2WebAclRuleActionAllowCustomRequestHandlingToHclTerraform = wafv2WebAclRuleActionAllowCustomRequestHandlingToHclTerraform;
exports.wafv2WebAclRuleActionAllowToTerraform = wafv2WebAclRuleActionAllowToTerraform;
exports.wafv2WebAclRuleActionAllowToHclTerraform = wafv2WebAclRuleActionAllowToHclTerraform;
exports.wafv2WebAclRuleActionBlockCustomResponseResponseHeaderToTerraform = wafv2WebAclRuleActionBlockCustomResponseResponseHeaderToTerraform;
exports.wafv2WebAclRuleActionBlockCustomResponseResponseHeaderToHclTerraform = wafv2WebAclRuleActionBlockCustomResponseResponseHeaderToHclTerraform;
exports.wafv2WebAclRuleActionBlockCustomResponseToTerraform = wafv2WebAclRuleActionBlockCustomResponseToTerraform;
exports.wafv2WebAclRuleActionBlockCustomResponseToHclTerraform = wafv2WebAclRuleActionBlockCustomResponseToHclTerraform;
exports.wafv2WebAclRuleActionBlockToTerraform = wafv2WebAclRuleActionBlockToTerraform;
exports.wafv2WebAclRuleActionBlockToHclTerraform = wafv2WebAclRuleActionBlockToHclTerraform;
exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderToTerraform = wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderToTerraform;
exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderToHclTerraform = wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderToHclTerraform;
exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingToTerraform = wafv2WebAclRuleActionCaptchaCustomRequestHandlingToTerraform;
exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingToHclTerraform = wafv2WebAclRuleActionCaptchaCustomRequestHandlingToHclTerraform;
exports.wafv2WebAclRuleActionCaptchaToTerraform = wafv2WebAclRuleActionCaptchaToTerraform;
exports.wafv2WebAclRuleActionCaptchaToHclTerraform = wafv2WebAclRuleActionCaptchaToHclTerraform;
exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderToTerraform = wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderToTerraform;
exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderToHclTerraform = wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderToHclTerraform;
exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingToTerraform = wafv2WebAclRuleActionChallengeCustomRequestHandlingToTerraform;
exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingToHclTerraform = wafv2WebAclRuleActionChallengeCustomRequestHandlingToHclTerraform;
exports.wafv2WebAclRuleActionChallengeToTerraform = wafv2WebAclRuleActionChallengeToTerraform;
exports.wafv2WebAclRuleActionChallengeToHclTerraform = wafv2WebAclRuleActionChallengeToHclTerraform;
exports.wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderToTerraform = wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderToTerraform;
exports.wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderToHclTerraform = wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderToHclTerraform;
exports.wafv2WebAclRuleActionCountCustomRequestHandlingToTerraform = wafv2WebAclRuleActionCountCustomRequestHandlingToTerraform;
exports.wafv2WebAclRuleActionCountCustomRequestHandlingToHclTerraform = wafv2WebAclRuleActionCountCustomRequestHandlingToHclTerraform;
exports.wafv2WebAclRuleActionCountToTerraform = wafv2WebAclRuleActionCountToTerraform;
exports.wafv2WebAclRuleActionCountToHclTerraform = wafv2WebAclRuleActionCountToHclTerraform;
exports.wafv2WebAclRuleActionToTerraform = wafv2WebAclRuleActionToTerraform;
exports.wafv2WebAclRuleActionToHclTerraform = wafv2WebAclRuleActionToHclTerraform;
exports.wafv2WebAclRuleCaptchaConfigImmunityTimePropertyToTerraform = wafv2WebAclRuleCaptchaConfigImmunityTimePropertyToTerraform;
exports.wafv2WebAclRuleCaptchaConfigImmunityTimePropertyToHclTerraform = wafv2WebAclRuleCaptchaConfigImmunityTimePropertyToHclTerraform;
exports.wafv2WebAclRuleCaptchaConfigToTerraform = wafv2WebAclRuleCaptchaConfigToTerraform;
exports.wafv2WebAclRuleCaptchaConfigToHclTerraform = wafv2WebAclRuleCaptchaConfigToHclTerraform;
exports.wafv2WebAclRuleChallengeConfigImmunityTimePropertyToTerraform = wafv2WebAclRuleChallengeConfigImmunityTimePropertyToTerraform;
exports.wafv2WebAclRuleChallengeConfigImmunityTimePropertyToHclTerraform = wafv2WebAclRuleChallengeConfigImmunityTimePropertyToHclTerraform;
exports.wafv2WebAclRuleChallengeConfigToTerraform = wafv2WebAclRuleChallengeConfigToTerraform;
exports.wafv2WebAclRuleChallengeConfigToHclTerraform = wafv2WebAclRuleChallengeConfigToHclTerraform;
exports.wafv2WebAclRuleOverrideActionCountToTerraform = wafv2WebAclRuleOverrideActionCountToTerraform;
exports.wafv2WebAclRuleOverrideActionCountToHclTerraform = wafv2WebAclRuleOverrideActionCountToHclTerraform;
exports.wafv2WebAclRuleOverrideActionNoneToTerraform = wafv2WebAclRuleOverrideActionNoneToTerraform;
exports.wafv2WebAclRuleOverrideActionNoneToHclTerraform = wafv2WebAclRuleOverrideActionNoneToHclTerraform;
exports.wafv2WebAclRuleOverrideActionToTerraform = wafv2WebAclRuleOverrideActionToTerraform;
exports.wafv2WebAclRuleOverrideActionToHclTerraform = wafv2WebAclRuleOverrideActionToHclTerraform;
exports.wafv2WebAclRuleRuleLabelToTerraform = wafv2WebAclRuleRuleLabelToTerraform;
exports.wafv2WebAclRuleRuleLabelToHclTerraform = wafv2WebAclRuleRuleLabelToHclTerraform;
exports.wafv2WebAclRuleVisibilityConfigToTerraform = wafv2WebAclRuleVisibilityConfigToTerraform;
exports.wafv2WebAclRuleVisibilityConfigToHclTerraform = wafv2WebAclRuleVisibilityConfigToHclTerraform;
exports.wafv2WebAclRuleToTerraform = wafv2WebAclRuleToTerraform;
exports.wafv2WebAclRuleToHclTerraform = wafv2WebAclRuleToHclTerraform;
exports.wafv2WebAclVisibilityConfigToTerraform = wafv2WebAclVisibilityConfigToTerraform;
exports.wafv2WebAclVisibilityConfigToHclTerraform = wafv2WebAclVisibilityConfigToHclTerraform;
const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti");
const cdktf = require("cdktf");
function wafv2WebAclAssociationConfigRequestBodyApiGatewayToTerraform(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 {
default_size_inspection_limit: cdktf.stringToTerraform(struct.defaultSizeInspectionLimit),
};
}
function wafv2WebAclAssociationConfigRequestBodyApiGatewayToHclTerraform(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 = {
default_size_inspection_limit: {
value: cdktf.stringToHclTerraform(struct.defaultSizeInspectionLimit),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference 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._defaultSizeInspectionLimit !== undefined) {
hasAnyValues = true;
internalValueResult.defaultSizeInspectionLimit = this._defaultSizeInspectionLimit;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._defaultSizeInspectionLimit = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._defaultSizeInspectionLimit = value.defaultSizeInspectionLimit;
}
}
get defaultSizeInspectionLimit() {
return this.getStringAttribute('default_size_inspection_limit');
}
set defaultSizeInspectionLimit(value) {
this._defaultSizeInspectionLimit = value;
}
// Temporarily expose input value. Use with caution.
get defaultSizeInspectionLimitInput() {
return this._defaultSizeInspectionLimit;
}
}
exports.Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference = Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference;
_a = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference[_a] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference", version: "21.22.1" };
function wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToTerraform(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 {
default_size_inspection_limit: cdktf.stringToTerraform(struct.defaultSizeInspectionLimit),
};
}
function wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToHclTerraform(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 = {
default_size_inspection_limit: {
value: cdktf.stringToHclTerraform(struct.defaultSizeInspectionLimit),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference 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._defaultSizeInspectionLimit !== undefined) {
hasAnyValues = true;
internalValueResult.defaultSizeInspectionLimit = this._defaultSizeInspectionLimit;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._defaultSizeInspectionLimit = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._defaultSizeInspectionLimit = value.defaultSizeInspectionLimit;
}
}
get defaultSizeInspectionLimit() {
return this.getStringAttribute('default_size_inspection_limit');
}
set defaultSizeInspectionLimit(value) {
this._defaultSizeInspectionLimit = value;
}
// Temporarily expose input value. Use with caution.
get defaultSizeInspectionLimitInput() {
return this._defaultSizeInspectionLimit;
}
}
exports.Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference = Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference;
_b = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference[_b] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference", version: "21.22.1" };
function wafv2WebAclAssociationConfigRequestBodyCloudfrontToTerraform(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 {
default_size_inspection_limit: cdktf.stringToTerraform(struct.defaultSizeInspectionLimit),
};
}
function wafv2WebAclAssociationConfigRequestBodyCloudfrontToHclTerraform(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 = {
default_size_inspection_limit: {
value: cdktf.stringToHclTerraform(struct.defaultSizeInspectionLimit),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference 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._defaultSizeInspectionLimit !== undefined) {
hasAnyValues = true;
internalValueResult.defaultSizeInspectionLimit = this._defaultSizeInspectionLimit;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._defaultSizeInspectionLimit = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._defaultSizeInspectionLimit = value.defaultSizeInspectionLimit;
}
}
get defaultSizeInspectionLimit() {
return this.getStringAttribute('default_size_inspection_limit');
}
set defaultSizeInspectionLimit(value) {
this._defaultSizeInspectionLimit = value;
}
// Temporarily expose input value. Use with caution.
get defaultSizeInspectionLimitInput() {
return this._defaultSizeInspectionLimit;
}
}
exports.Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference = Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference;
_c = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference[_c] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference", version: "21.22.1" };
function wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToTerraform(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 {
default_size_inspection_limit: cdktf.stringToTerraform(struct.defaultSizeInspectionLimit),
};
}
function wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToHclTerraform(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 = {
default_size_inspection_limit: {
value: cdktf.stringToHclTerraform(struct.defaultSizeInspectionLimit),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference 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._defaultSizeInspectionLimit !== undefined) {
hasAnyValues = true;
internalValueResult.defaultSizeInspectionLimit = this._defaultSizeInspectionLimit;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._defaultSizeInspectionLimit = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._defaultSizeInspectionLimit = value.defaultSizeInspectionLimit;
}
}
get defaultSizeInspectionLimit() {
return this.getStringAttribute('default_size_inspection_limit');
}
set defaultSizeInspectionLimit(value) {
this._defaultSizeInspectionLimit = value;
}
// Temporarily expose input value. Use with caution.
get defaultSizeInspectionLimitInput() {
return this._defaultSizeInspectionLimit;
}
}
exports.Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference = Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference;
_d = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference[_d] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference", version: "21.22.1" };
function wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToTerraform(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 {
default_size_inspection_limit: cdktf.stringToTerraform(struct.defaultSizeInspectionLimit),
};
}
function wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToHclTerraform(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 = {
default_size_inspection_limit: {
value: cdktf.stringToHclTerraform(struct.defaultSizeInspectionLimit),
isBlock: false,
type: "simple",
storageClassType: "string",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference 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._defaultSizeInspectionLimit !== undefined) {
hasAnyValues = true;
internalValueResult.defaultSizeInspectionLimit = this._defaultSizeInspectionLimit;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._defaultSizeInspectionLimit = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._defaultSizeInspectionLimit = value.defaultSizeInspectionLimit;
}
}
get defaultSizeInspectionLimit() {
return this.getStringAttribute('default_size_inspection_limit');
}
set defaultSizeInspectionLimit(value) {
this._defaultSizeInspectionLimit = value;
}
// Temporarily expose input value. Use with caution.
get defaultSizeInspectionLimitInput() {
return this._defaultSizeInspectionLimit;
}
}
exports.Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference = Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference;
_e = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference[_e] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference", version: "21.22.1" };
function wafv2WebAclAssociationConfigRequestBodyToTerraform(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 {
api_gateway: wafv2WebAclAssociationConfigRequestBodyApiGatewayToTerraform(struct.apiGateway),
app_runner_service: wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToTerraform(struct.appRunnerService),
cloudfront: wafv2WebAclAssociationConfigRequestBodyCloudfrontToTerraform(struct.cloudfront),
cognito_user_pool: wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToTerraform(struct.cognitoUserPool),
verified_access_instance: wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToTerraform(struct.verifiedAccessInstance),
};
}
function wafv2WebAclAssociationConfigRequestBodyToHclTerraform(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 = {
api_gateway: {
value: wafv2WebAclAssociationConfigRequestBodyApiGatewayToHclTerraform(struct.apiGateway),
isBlock: true,
type: "list",
storageClassType: "Wafv2WebAclAssociationConfigRequestBodyApiGatewayList",
},
app_runner_service: {
value: wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToHclTerraform(struct.appRunnerService),
isBlock: true,
type: "list",
storageClassType: "Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceList",
},
cloudfront: {
value: wafv2WebAclAssociationConfigRequestBodyCloudfrontToHclTerraform(struct.cloudfront),
isBlock: true,
type: "list",
storageClassType: "Wafv2WebAclAssociationConfigRequestBodyCloudfrontList",
},
cognito_user_pool: {
value: wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToHclTerraform(struct.cognitoUserPool),
isBlock: true,
type: "list",
storageClassType: "Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolList",
},
verified_access_instance: {
value: wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToHclTerraform(struct.verifiedAccessInstance),
isBlock: true,
type: "list",
storageClassType: "Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclAssociationConfigRequestBodyOutputReference 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;
// api_gateway - computed: false, optional: true, required: false
this._apiGateway = new Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference(this, "api_gateway");
// app_runner_service - computed: false, optional: true, required: false
this._appRunnerService = new Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference(this, "app_runner_service");
// cloudfront - computed: false, optional: true, required: false
this._cloudfront = new Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference(this, "cloudfront");
// cognito_user_pool - computed: false, optional: true, required: false
this._cognitoUserPool = new Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference(this, "cognito_user_pool");
// verified_access_instance - computed: false, optional: true, required: false
this._verifiedAccessInstance = new Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference(this, "verified_access_instance");
}
get internalValue() {
if (this.resolvableValue) {
return this.resolvableValue;
}
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._apiGateway?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.apiGateway = this._apiGateway?.internalValue;
}
if (this._appRunnerService?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.appRunnerService = this._appRunnerService?.internalValue;
}
if (this._cloudfront?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.cloudfront = this._cloudfront?.internalValue;
}
if (this._cognitoUserPool?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.cognitoUserPool = this._cognitoUserPool?.internalValue;
}
if (this._verifiedAccessInstance?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.verifiedAccessInstance = this._verifiedAccessInstance?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this.resolvableValue = undefined;
this._apiGateway.internalValue = undefined;
this._appRunnerService.internalValue = undefined;
this._cloudfront.internalValue = undefined;
this._cognitoUserPool.internalValue = undefined;
this._verifiedAccessInstance.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._apiGateway.internalValue = value.apiGateway;
this._appRunnerService.internalValue = value.appRunnerService;
this._cloudfront.internalValue = value.cloudfront;
this._cognitoUserPool.internalValue = value.cognitoUserPool;
this._verifiedAccessInstance.internalValue = value.verifiedAccessInstance;
}
}
get apiGateway() {
return this._apiGateway;
}
putApiGateway(value) {
this._apiGateway.internalValue = value;
}
resetApiGateway() {
this._apiGateway.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get apiGatewayInput() {
return this._apiGateway.internalValue;
}
get appRunnerService() {
return this._appRunnerService;
}
putAppRunnerService(value) {
this._appRunnerService.internalValue = value;
}
resetAppRunnerService() {
this._appRunnerService.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get appRunnerServiceInput() {
return this._appRunnerService.internalValue;
}
get cloudfront() {
return this._cloudfront;
}
putCloudfront(value) {
this._cloudfront.internalValue = value;
}
resetCloudfront() {
this._cloudfront.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get cloudfrontInput() {
return this._cloudfront.internalValue;
}
get cognitoUserPool() {
return this._cognitoUserPool;
}
putCognitoUserPool(value) {
this._cognitoUserPool.internalValue = value;
}
resetCognitoUserPool() {
this._cognitoUserPool.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get cognitoUserPoolInput() {
return this._cognitoUserPool.internalValue;
}
get verifiedAccessInstance() {
return this._verifiedAccessInstance;
}
putVerifiedAccessInstance(value) {
this._verifiedAccessInstance.internalValue = value;
}
resetVerifiedAccessInstance() {
this._verifiedAccessInstance.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get verifiedAccessInstanceInput() {
return this._verifiedAccessInstance.internalValue;
}
}
exports.Wafv2WebAclAssociationConfigRequestBodyOutputReference = Wafv2WebAclAssociationConfigRequestBodyOutputReference;
_f = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigRequestBodyOutputReference[_f] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigRequestBodyOutputReference", version: "21.22.1" };
class Wafv2WebAclAssociationConfigRequestBodyList 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 Wafv2WebAclAssociationConfigRequestBodyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);
}
}
exports.Wafv2WebAclAssociationConfigRequestBodyList = Wafv2WebAclAssociationConfigRequestBodyList;
_g = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigRequestBodyList[_g] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigRequestBodyList", version: "21.22.1" };
function wafv2WebAclAssociationConfigToTerraform(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 {
request_body: cdktf.listMapper(wafv2WebAclAssociationConfigRequestBodyToTerraform, true)(struct.requestBody),
};
}
function wafv2WebAclAssociationConfigToHclTerraform(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 = {
request_body: {
value: cdktf.listMapperHcl(wafv2WebAclAssociationConfigRequestBodyToHclTerraform, true)(struct.requestBody),
isBlock: true,
type: "list",
storageClassType: "Wafv2WebAclAssociationConfigRequestBodyList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclAssociationConfigOutputReference 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;
// request_body - computed: false, optional: true, required: false
this._requestBody = new Wafv2WebAclAssociationConfigRequestBodyList(this, "request_body", false);
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._requestBody?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.requestBody = this._requestBody?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._requestBody.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._requestBody.internalValue = value.requestBody;
}
}
get requestBody() {
return this._requestBody;
}
putRequestBody(value) {
this._requestBody.internalValue = value;
}
resetRequestBody() {
this._requestBody.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get requestBodyInput() {
return this._requestBody.internalValue;
}
}
exports.Wafv2WebAclAssociationConfigOutputReference = Wafv2WebAclAssociationConfigOutputReference;
_h = JSII_RTTI_SYMBOL_1;
Wafv2WebAclAssociationConfigOutputReference[_h] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclAssociationConfigOutputReference", version: "21.22.1" };
function wafv2WebAclCaptchaConfigImmunityTimePropertyToTerraform(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 {
immunity_time: cdktf.numberToTerraform(struct.immunityTime),
};
}
function wafv2WebAclCaptchaConfigImmunityTimePropertyToHclTerraform(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 = {
immunity_time: {
value: cdktf.numberToHclTerraform(struct.immunityTime),
isBlock: false,
type: "simple",
storageClassType: "number",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
class Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference 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._immunityTime !== undefined) {
hasAnyValues = true;
internalValueResult.immunityTime = this._immunityTime;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._immunityTime = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._immunityTime = value.immunityTime;
}
}
get immunityTime() {
return this.getNumberAttribute('immunity_time');
}
set immunityTime(value) {
this._immunityTime = value;
}
resetImmunityTime() {
this._immunityTime = undefined;
}
// Temporarily expose input value. Use with caution.
get immunityTimeInput() {
return this._immunityTime;
}
}
exports.Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference = Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference;
_j = JSII_RTTI_SYMBOL_1;
Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference[_j] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference", version: "21.22.1" };
function wafv2WebAclCaptchaConfigToTerraform(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 {
immunity_time_property: wafv2WebAclCaptchaConfigImmunityTimePropertyToTerraform(struct.immunityTimeProperty),
};
}
function wafv2WebAclCaptchaConfigToHclTerraform(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 = {