@cdktf/provider-aws
Version:
Prebuilt aws Provider for Terraform CDK (cdktf)
860 lines • 719 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;
Object.defineProperty(exports, "__esModule", { value: true });
exports.wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderToHclTerraform = exports.wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderToTerraform = exports.Wafv2WebAclDefaultActionAllowOutputReference = exports.wafv2WebAclDefaultActionAllowToHclTerraform = exports.wafv2WebAclDefaultActionAllowToTerraform = exports.Wafv2WebAclDefaultActionAllowCustomRequestHandlingOutputReference = exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingToHclTerraform = exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingToTerraform = exports.Wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderOutputReference = exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderToHclTerraform = exports.wafv2WebAclDefaultActionAllowCustomRequestHandlingInsertHeaderToTerraform = exports.Wafv2WebAclCustomResponseBodyList = exports.Wafv2WebAclCustomResponseBodyOutputReference = exports.wafv2WebAclCustomResponseBodyToHclTerraform = exports.wafv2WebAclCustomResponseBodyToTerraform = exports.Wafv2WebAclChallengeConfigOutputReference = exports.wafv2WebAclChallengeConfigToHclTerraform = exports.wafv2WebAclChallengeConfigToTerraform = exports.Wafv2WebAclChallengeConfigImmunityTimePropertyOutputReference = exports.wafv2WebAclChallengeConfigImmunityTimePropertyToHclTerraform = exports.wafv2WebAclChallengeConfigImmunityTimePropertyToTerraform = exports.Wafv2WebAclCaptchaConfigOutputReference = exports.wafv2WebAclCaptchaConfigToHclTerraform = exports.wafv2WebAclCaptchaConfigToTerraform = exports.Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference = exports.wafv2WebAclCaptchaConfigImmunityTimePropertyToHclTerraform = exports.wafv2WebAclCaptchaConfigImmunityTimePropertyToTerraform = exports.Wafv2WebAclAssociationConfigOutputReference = exports.wafv2WebAclAssociationConfigToHclTerraform = exports.wafv2WebAclAssociationConfigToTerraform = exports.Wafv2WebAclAssociationConfigRequestBodyList = exports.Wafv2WebAclAssociationConfigRequestBodyOutputReference = exports.wafv2WebAclAssociationConfigRequestBodyToHclTerraform = exports.wafv2WebAclAssociationConfigRequestBodyToTerraform = exports.Wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceOutputReference = exports.wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToHclTerraform = exports.wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToTerraform = exports.Wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolOutputReference = exports.wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToHclTerraform = exports.wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToTerraform = exports.Wafv2WebAclAssociationConfigRequestBodyCloudfrontOutputReference = exports.wafv2WebAclAssociationConfigRequestBodyCloudfrontToHclTerraform = exports.wafv2WebAclAssociationConfigRequestBodyCloudfrontToTerraform = exports.Wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceOutputReference = exports.wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToHclTerraform = exports.wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToTerraform = exports.Wafv2WebAclAssociationConfigRequestBodyApiGatewayOutputReference = exports.wafv2WebAclAssociationConfigRequestBodyApiGatewayToHclTerraform = exports.wafv2WebAclAssociationConfigRequestBodyApiGatewayToTerraform = void 0;
exports.wafv2WebAclRuleActionChallengeToHclTerraform = exports.wafv2WebAclRuleActionChallengeToTerraform = exports.Wafv2WebAclRuleActionChallengeCustomRequestHandlingOutputReference = exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingToHclTerraform = exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingToTerraform = exports.Wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderOutputReference = exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderToHclTerraform = exports.wafv2WebAclRuleActionChallengeCustomRequestHandlingInsertHeaderToTerraform = exports.Wafv2WebAclRuleActionCaptchaOutputReference = exports.wafv2WebAclRuleActionCaptchaToHclTerraform = exports.wafv2WebAclRuleActionCaptchaToTerraform = exports.Wafv2WebAclRuleActionCaptchaCustomRequestHandlingOutputReference = exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingToHclTerraform = exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingToTerraform = exports.Wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderOutputReference = exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderToHclTerraform = exports.wafv2WebAclRuleActionCaptchaCustomRequestHandlingInsertHeaderToTerraform = exports.Wafv2WebAclRuleActionBlockOutputReference = exports.wafv2WebAclRuleActionBlockToHclTerraform = exports.wafv2WebAclRuleActionBlockToTerraform = exports.Wafv2WebAclRuleActionBlockCustomResponseOutputReference = exports.wafv2WebAclRuleActionBlockCustomResponseToHclTerraform = exports.wafv2WebAclRuleActionBlockCustomResponseToTerraform = exports.Wafv2WebAclRuleActionBlockCustomResponseResponseHeaderList = exports.Wafv2WebAclRuleActionBlockCustomResponseResponseHeaderOutputReference = exports.wafv2WebAclRuleActionBlockCustomResponseResponseHeaderToHclTerraform = exports.wafv2WebAclRuleActionBlockCustomResponseResponseHeaderToTerraform = exports.Wafv2WebAclRuleActionAllowOutputReference = exports.wafv2WebAclRuleActionAllowToHclTerraform = exports.wafv2WebAclRuleActionAllowToTerraform = exports.Wafv2WebAclRuleActionAllowCustomRequestHandlingOutputReference = exports.wafv2WebAclRuleActionAllowCustomRequestHandlingToHclTerraform = exports.wafv2WebAclRuleActionAllowCustomRequestHandlingToTerraform = exports.Wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderOutputReference = exports.wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderToHclTerraform = exports.wafv2WebAclRuleActionAllowCustomRequestHandlingInsertHeaderToTerraform = exports.Wafv2WebAclDefaultActionOutputReference = exports.wafv2WebAclDefaultActionToHclTerraform = exports.wafv2WebAclDefaultActionToTerraform = exports.Wafv2WebAclDefaultActionBlockOutputReference = exports.wafv2WebAclDefaultActionBlockToHclTerraform = exports.wafv2WebAclDefaultActionBlockToTerraform = exports.Wafv2WebAclDefaultActionBlockCustomResponseOutputReference = exports.wafv2WebAclDefaultActionBlockCustomResponseToHclTerraform = exports.wafv2WebAclDefaultActionBlockCustomResponseToTerraform = exports.Wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderList = exports.Wafv2WebAclDefaultActionBlockCustomResponseResponseHeaderOutputReference = void 0;
exports.Wafv2WebAcl = exports.Wafv2WebAclVisibilityConfigOutputReference = exports.wafv2WebAclVisibilityConfigToHclTerraform = exports.wafv2WebAclVisibilityConfigToTerraform = exports.Wafv2WebAclRuleList = exports.Wafv2WebAclRuleOutputReference = exports.wafv2WebAclRuleToHclTerraform = exports.wafv2WebAclRuleToTerraform = exports.Wafv2WebAclRuleVisibilityConfigOutputReference = exports.wafv2WebAclRuleVisibilityConfigToHclTerraform = exports.wafv2WebAclRuleVisibilityConfigToTerraform = exports.Wafv2WebAclRuleRuleLabelList = exports.Wafv2WebAclRuleRuleLabelOutputReference = exports.wafv2WebAclRuleRuleLabelToHclTerraform = exports.wafv2WebAclRuleRuleLabelToTerraform = exports.Wafv2WebAclRuleOverrideActionOutputReference = exports.wafv2WebAclRuleOverrideActionToHclTerraform = exports.wafv2WebAclRuleOverrideActionToTerraform = exports.Wafv2WebAclRuleOverrideActionNoneOutputReference = exports.wafv2WebAclRuleOverrideActionNoneToHclTerraform = exports.wafv2WebAclRuleOverrideActionNoneToTerraform = exports.Wafv2WebAclRuleOverrideActionCountOutputReference = exports.wafv2WebAclRuleOverrideActionCountToHclTerraform = exports.wafv2WebAclRuleOverrideActionCountToTerraform = exports.Wafv2WebAclRuleCaptchaConfigOutputReference = exports.wafv2WebAclRuleCaptchaConfigToHclTerraform = exports.wafv2WebAclRuleCaptchaConfigToTerraform = exports.Wafv2WebAclRuleCaptchaConfigImmunityTimePropertyOutputReference = exports.wafv2WebAclRuleCaptchaConfigImmunityTimePropertyToHclTerraform = exports.wafv2WebAclRuleCaptchaConfigImmunityTimePropertyToTerraform = exports.Wafv2WebAclRuleActionOutputReference = exports.wafv2WebAclRuleActionToHclTerraform = exports.wafv2WebAclRuleActionToTerraform = exports.Wafv2WebAclRuleActionCountOutputReference = exports.wafv2WebAclRuleActionCountToHclTerraform = exports.wafv2WebAclRuleActionCountToTerraform = exports.Wafv2WebAclRuleActionCountCustomRequestHandlingOutputReference = exports.wafv2WebAclRuleActionCountCustomRequestHandlingToHclTerraform = exports.wafv2WebAclRuleActionCountCustomRequestHandlingToTerraform = exports.Wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderList = exports.Wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderOutputReference = exports.wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderToHclTerraform = exports.wafv2WebAclRuleActionCountCustomRequestHandlingInsertHeaderToTerraform = exports.Wafv2WebAclRuleActionChallengeOutputReference = void 0;
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),
};
}
exports.wafv2WebAclAssociationConfigRequestBodyApiGatewayToTerraform = wafv2WebAclAssociationConfigRequestBodyApiGatewayToTerraform;
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));
}
exports.wafv2WebAclAssociationConfigRequestBodyApiGatewayToHclTerraform = wafv2WebAclAssociationConfigRequestBodyApiGatewayToHclTerraform;
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToTerraform = wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToTerraform;
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));
}
exports.wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToHclTerraform = wafv2WebAclAssociationConfigRequestBodyAppRunnerServiceToHclTerraform;
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclAssociationConfigRequestBodyCloudfrontToTerraform = wafv2WebAclAssociationConfigRequestBodyCloudfrontToTerraform;
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));
}
exports.wafv2WebAclAssociationConfigRequestBodyCloudfrontToHclTerraform = wafv2WebAclAssociationConfigRequestBodyCloudfrontToHclTerraform;
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToTerraform = wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToTerraform;
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));
}
exports.wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToHclTerraform = wafv2WebAclAssociationConfigRequestBodyCognitoUserPoolToHclTerraform;
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToTerraform = wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToTerraform;
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));
}
exports.wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToHclTerraform = wafv2WebAclAssociationConfigRequestBodyVerifiedAccessInstanceToHclTerraform;
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclAssociationConfigRequestBodyToTerraform = wafv2WebAclAssociationConfigRequestBodyToTerraform;
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));
}
exports.wafv2WebAclAssociationConfigRequestBodyToHclTerraform = wafv2WebAclAssociationConfigRequestBodyToHclTerraform;
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: "19.50.0" };
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclAssociationConfigToTerraform = wafv2WebAclAssociationConfigToTerraform;
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));
}
exports.wafv2WebAclAssociationConfigToHclTerraform = wafv2WebAclAssociationConfigToHclTerraform;
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclCaptchaConfigImmunityTimePropertyToTerraform = wafv2WebAclCaptchaConfigImmunityTimePropertyToTerraform;
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));
}
exports.wafv2WebAclCaptchaConfigImmunityTimePropertyToHclTerraform = wafv2WebAclCaptchaConfigImmunityTimePropertyToHclTerraform;
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: "19.50.0" };
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),
};
}
exports.wafv2WebAclCaptchaConfigToTerraform = wafv2WebAclCaptchaConfigToTerraform;
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 = {
immunity_time_property: {
value: wafv2WebAclCaptchaConfigImmunityTimePropertyToHclTerraform(struct.immunityTimeProperty),
isBlock: true,
type: "list",
storageClassType: "Wafv2WebAclCaptchaConfigImmunityTimePropertyList",
},
};
// remove undefined attributes
return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined));
}
exports.wafv2WebAclCaptchaConfigToHclTerraform = wafv2WebAclCaptchaConfigToHclTerraform;
class Wafv2WebAclCaptchaConfigOutputReference 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;
// immunity_time_property - computed: false, optional: true, required: false
this._immunityTimeProperty = new Wafv2WebAclCaptchaConfigImmunityTimePropertyOutputReference(this, "immunity_time_property");
}
get internalValue() {
let hasAnyValues = this.isEmptyObject;
const internalValueResult = {};
if (this._immunityTimeProperty?.internalValue !== undefined) {
hasAnyValues = true;
internalValueResult.immunityTimeProperty = this._immunityTimeProperty?.internalValue;
}
return hasAnyValues ? internalValueResult : undefined;
}
set internalValue(value) {
if (value === undefined) {
this.isEmptyObject = false;
this._immunityTimeProperty.internalValue = undefined;
}
else {
this.isEmptyObject = Object.keys(value).length === 0;
this._immunityTimeProperty.internalValue = value.immunityTimeProperty;
}
}
get immunityTimeProperty() {
return this._immunityTimeProperty;
}
putImmunityTimeProperty(value) {
this._immunityTimeProperty.internalValue = value;
}
resetImmunityTimeProperty() {
this._immunityTimeProperty.internalValue = undefined;
}
// Temporarily expose input value. Use with caution.
get immunityTimePropertyInput() {
return this._immunityTimeProperty.internalValue;
}
}
exports.Wafv2WebAclCaptchaConfigOutputReference = Wafv2WebAclCaptchaConfigOutputReference;
_k = JSII_RTTI_SYMBOL_1;
Wafv2WebAclCaptchaConfigOutputReference[_k] = { fqn: "@cdktf/provider-aws.wafv2WebAcl.Wafv2WebAclCaptchaConfigOutputReference", version: "19.50.0" };
function wafv2WebAclChallengeConfigImmunityTimePropertyToTerraform(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),
};
}
exports.wafv2WebAclChallengeConfigImmunityTimePropertyToTerraform = wafv2WebAclChallengeConfigImmunityTimePropertyToTerraform;
function wafv2WebAclChallengeConfigImmunityTimePropertyToHclTerraform(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));
}
exports.wafv2WebAclChallengeConfigImmunityTimePropertyToHclTerraform = wafv2WebAclChallengeConfigImmunityTimePropertyToHclTerraform;
class Wafv2WebAclChallengeConfigImmunityTimePropertyOutputReference ext