UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,078 lines (1,077 loc) 329 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x; Object.defineProperty(exports, "__esModule", { value: true }); exports.CloudwatchEventConnection = exports.CloudwatchEventConnectionInvocationConnectivityParametersOutputReference = exports.CloudwatchEventConnectionInvocationConnectivityParametersResourceParametersOutputReference = exports.CloudwatchEventConnectionAuthParametersOutputReference = exports.CloudwatchEventConnectionAuthParametersOauthOutputReference = exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersOutputReference = exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersQueryStringList = exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersQueryStringOutputReference = exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersHeaderList = exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersHeaderOutputReference = exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyList = exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyOutputReference = exports.CloudwatchEventConnectionAuthParametersOauthClientParametersOutputReference = exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersOutputReference = exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList = exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringOutputReference = exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList = exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderOutputReference = exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList = exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyOutputReference = exports.CloudwatchEventConnectionAuthParametersBasicOutputReference = exports.CloudwatchEventConnectionAuthParametersApiKeyOutputReference = void 0; exports.cloudwatchEventConnectionAuthParametersApiKeyToTerraform = cloudwatchEventConnectionAuthParametersApiKeyToTerraform; exports.cloudwatchEventConnectionAuthParametersApiKeyToHclTerraform = cloudwatchEventConnectionAuthParametersApiKeyToHclTerraform; exports.cloudwatchEventConnectionAuthParametersBasicToTerraform = cloudwatchEventConnectionAuthParametersBasicToTerraform; exports.cloudwatchEventConnectionAuthParametersBasicToHclTerraform = cloudwatchEventConnectionAuthParametersBasicToHclTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToHclTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToHclTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToHclTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToHclTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToHclTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToHclTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersToTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersToTerraform; exports.cloudwatchEventConnectionAuthParametersInvocationHttpParametersToHclTerraform = cloudwatchEventConnectionAuthParametersInvocationHttpParametersToHclTerraform; exports.cloudwatchEventConnectionAuthParametersOauthClientParametersToTerraform = cloudwatchEventConnectionAuthParametersOauthClientParametersToTerraform; exports.cloudwatchEventConnectionAuthParametersOauthClientParametersToHclTerraform = cloudwatchEventConnectionAuthParametersOauthClientParametersToHclTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyToTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyToTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyToHclTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyToHclTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersHeaderToTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersHeaderToTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersHeaderToHclTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersHeaderToHclTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersQueryStringToTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersQueryStringToTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersQueryStringToHclTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersQueryStringToHclTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersToTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersToTerraform; exports.cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersToHclTerraform = cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersToHclTerraform; exports.cloudwatchEventConnectionAuthParametersOauthToTerraform = cloudwatchEventConnectionAuthParametersOauthToTerraform; exports.cloudwatchEventConnectionAuthParametersOauthToHclTerraform = cloudwatchEventConnectionAuthParametersOauthToHclTerraform; exports.cloudwatchEventConnectionAuthParametersToTerraform = cloudwatchEventConnectionAuthParametersToTerraform; exports.cloudwatchEventConnectionAuthParametersToHclTerraform = cloudwatchEventConnectionAuthParametersToHclTerraform; exports.cloudwatchEventConnectionInvocationConnectivityParametersResourceParametersToTerraform = cloudwatchEventConnectionInvocationConnectivityParametersResourceParametersToTerraform; exports.cloudwatchEventConnectionInvocationConnectivityParametersResourceParametersToHclTerraform = cloudwatchEventConnectionInvocationConnectivityParametersResourceParametersToHclTerraform; exports.cloudwatchEventConnectionInvocationConnectivityParametersToTerraform = cloudwatchEventConnectionInvocationConnectivityParametersToTerraform; exports.cloudwatchEventConnectionInvocationConnectivityParametersToHclTerraform = cloudwatchEventConnectionInvocationConnectivityParametersToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function cloudwatchEventConnectionAuthParametersApiKeyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } function cloudwatchEventConnectionAuthParametersApiKeyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersApiKeyOutputReference 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._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._key = undefined; this._value = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._key = value.key; this._value = value.value; } } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.CloudwatchEventConnectionAuthParametersApiKeyOutputReference = CloudwatchEventConnectionAuthParametersApiKeyOutputReference; _a = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersApiKeyOutputReference[_a] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersApiKeyOutputReference", version: "21.22.1" }; function cloudwatchEventConnectionAuthParametersBasicToTerraform(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 { password: cdktf.stringToTerraform(struct.password), username: cdktf.stringToTerraform(struct.username), }; } function cloudwatchEventConnectionAuthParametersBasicToHclTerraform(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 = { password: { value: cdktf.stringToHclTerraform(struct.password), isBlock: false, type: "simple", storageClassType: "string", }, username: { value: cdktf.stringToHclTerraform(struct.username), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersBasicOutputReference 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._password !== undefined) { hasAnyValues = true; internalValueResult.password = this._password; } if (this._username !== undefined) { hasAnyValues = true; internalValueResult.username = this._username; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._password = undefined; this._username = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._password = value.password; this._username = value.username; } } get password() { return this.getStringAttribute('password'); } set password(value) { this._password = value; } // Temporarily expose input value. Use with caution. get passwordInput() { return this._password; } get username() { return this.getStringAttribute('username'); } set username(value) { this._username = value; } // Temporarily expose input value. Use with caution. get usernameInput() { return this._username; } } exports.CloudwatchEventConnectionAuthParametersBasicOutputReference = CloudwatchEventConnectionAuthParametersBasicOutputReference; _b = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersBasicOutputReference[_b] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersBasicOutputReference", version: "21.22.1" }; function cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { is_value_secret: cdktf.booleanToTerraform(struct.isValueSecret), key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } function cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { is_value_secret: { value: cdktf.booleanToHclTerraform(struct.isValueSecret), isBlock: false, type: "simple", storageClassType: "boolean", }, key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isValueSecret !== undefined) { hasAnyValues = true; internalValueResult.isValueSecret = this._isValueSecret; } if (this._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._isValueSecret = undefined; this._key = undefined; this._value = 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._isValueSecret = value.isValueSecret; this._key = value.key; this._value = value.value; } } get isValueSecret() { return this.getBooleanAttribute('is_value_secret'); } set isValueSecret(value) { this._isValueSecret = value; } resetIsValueSecret() { this._isValueSecret = undefined; } // Temporarily expose input value. Use with caution. get isValueSecretInput() { return this._isValueSecret; } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } resetKey() { this._key = undefined; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyOutputReference = CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyOutputReference; _c = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyOutputReference[_c] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyOutputReference", version: "21.22.1" }; class CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList 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 CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList = CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList; _d = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList[_d] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList", version: "21.22.1" }; function cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { is_value_secret: cdktf.booleanToTerraform(struct.isValueSecret), key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } function cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { is_value_secret: { value: cdktf.booleanToHclTerraform(struct.isValueSecret), isBlock: false, type: "simple", storageClassType: "boolean", }, key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isValueSecret !== undefined) { hasAnyValues = true; internalValueResult.isValueSecret = this._isValueSecret; } if (this._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._isValueSecret = undefined; this._key = undefined; this._value = 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._isValueSecret = value.isValueSecret; this._key = value.key; this._value = value.value; } } get isValueSecret() { return this.getBooleanAttribute('is_value_secret'); } set isValueSecret(value) { this._isValueSecret = value; } resetIsValueSecret() { this._isValueSecret = undefined; } // Temporarily expose input value. Use with caution. get isValueSecretInput() { return this._isValueSecret; } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } resetKey() { this._key = undefined; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderOutputReference = CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderOutputReference; _e = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderOutputReference[_e] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderOutputReference", version: "21.22.1" }; class CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList 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 CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList = CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList; _f = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList[_f] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList", version: "21.22.1" }; function cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { is_value_secret: cdktf.booleanToTerraform(struct.isValueSecret), key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } function cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { is_value_secret: { value: cdktf.booleanToHclTerraform(struct.isValueSecret), isBlock: false, type: "simple", storageClassType: "boolean", }, key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isValueSecret !== undefined) { hasAnyValues = true; internalValueResult.isValueSecret = this._isValueSecret; } if (this._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._isValueSecret = undefined; this._key = undefined; this._value = 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._isValueSecret = value.isValueSecret; this._key = value.key; this._value = value.value; } } get isValueSecret() { return this.getBooleanAttribute('is_value_secret'); } set isValueSecret(value) { this._isValueSecret = value; } resetIsValueSecret() { this._isValueSecret = undefined; } // Temporarily expose input value. Use with caution. get isValueSecretInput() { return this._isValueSecret; } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } resetKey() { this._key = undefined; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringOutputReference = CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringOutputReference; _g = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringOutputReference[_g] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringOutputReference", version: "21.22.1" }; class CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList 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 CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList = CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList; _h = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList[_h] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList", version: "21.22.1" }; function cloudwatchEventConnectionAuthParametersInvocationHttpParametersToTerraform(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 { body: cdktf.listMapper(cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToTerraform, true)(struct.body), header: cdktf.listMapper(cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToTerraform, true)(struct.header), query_string: cdktf.listMapper(cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToTerraform, true)(struct.queryString), }; } function cloudwatchEventConnectionAuthParametersInvocationHttpParametersToHclTerraform(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 = { body: { value: cdktf.listMapperHcl(cloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyToHclTerraform, true)(struct.body), isBlock: true, type: "list", storageClassType: "CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList", }, header: { value: cdktf.listMapperHcl(cloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderToHclTerraform, true)(struct.header), isBlock: true, type: "list", storageClassType: "CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList", }, query_string: { value: cdktf.listMapperHcl(cloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringToHclTerraform, true)(struct.queryString), isBlock: true, type: "list", storageClassType: "CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersInvocationHttpParametersOutputReference 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; // body - computed: false, optional: true, required: false this._body = new CloudwatchEventConnectionAuthParametersInvocationHttpParametersBodyList(this, "body", false); // header - computed: false, optional: true, required: false this._header = new CloudwatchEventConnectionAuthParametersInvocationHttpParametersHeaderList(this, "header", false); // query_string - computed: false, optional: true, required: false this._queryString = new CloudwatchEventConnectionAuthParametersInvocationHttpParametersQueryStringList(this, "query_string", false); } get internalValue() { let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._body?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.body = this._body?.internalValue; } if (this._header?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.header = this._header?.internalValue; } if (this._queryString?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.queryString = this._queryString?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._body.internalValue = undefined; this._header.internalValue = undefined; this._queryString.internalValue = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._body.internalValue = value.body; this._header.internalValue = value.header; this._queryString.internalValue = value.queryString; } } get body() { return this._body; } putBody(value) { this._body.internalValue = value; } resetBody() { this._body.internalValue = undefined; } // Temporarily expose input value. Use with caution. get bodyInput() { return this._body.internalValue; } get header() { return this._header; } putHeader(value) { this._header.internalValue = value; } resetHeader() { this._header.internalValue = undefined; } // Temporarily expose input value. Use with caution. get headerInput() { return this._header.internalValue; } get queryString() { return this._queryString; } putQueryString(value) { this._queryString.internalValue = value; } resetQueryString() { this._queryString.internalValue = undefined; } // Temporarily expose input value. Use with caution. get queryStringInput() { return this._queryString.internalValue; } } exports.CloudwatchEventConnectionAuthParametersInvocationHttpParametersOutputReference = CloudwatchEventConnectionAuthParametersInvocationHttpParametersOutputReference; _j = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersInvocationHttpParametersOutputReference[_j] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersInvocationHttpParametersOutputReference", version: "21.22.1" }; function cloudwatchEventConnectionAuthParametersOauthClientParametersToTerraform(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 { client_id: cdktf.stringToTerraform(struct.clientId), client_secret: cdktf.stringToTerraform(struct.clientSecret), }; } function cloudwatchEventConnectionAuthParametersOauthClientParametersToHclTerraform(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 = { client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, client_secret: { value: cdktf.stringToHclTerraform(struct.clientSecret), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersOauthClientParametersOutputReference 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._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._clientSecret !== undefined) { hasAnyValues = true; internalValueResult.clientSecret = this._clientSecret; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this._clientId = undefined; this._clientSecret = undefined; } else { this.isEmptyObject = Object.keys(value).length === 0; this._clientId = value.clientId; this._clientSecret = value.clientSecret; } } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get clientSecret() { return this.getStringAttribute('client_secret'); } set clientSecret(value) { this._clientSecret = value; } // Temporarily expose input value. Use with caution. get clientSecretInput() { return this._clientSecret; } } exports.CloudwatchEventConnectionAuthParametersOauthClientParametersOutputReference = CloudwatchEventConnectionAuthParametersOauthClientParametersOutputReference; _k = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersOauthClientParametersOutputReference[_k] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersOauthClientParametersOutputReference", version: "21.22.1" }; function cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyToTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } return { is_value_secret: cdktf.booleanToTerraform(struct.isValueSecret), key: cdktf.stringToTerraform(struct.key), value: cdktf.stringToTerraform(struct.value), }; } function cloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyToHclTerraform(struct) { if (!cdktf.canInspect(struct) || cdktf.Tokenization.isResolvable(struct)) { return struct; } if (cdktf.isComplexElement(struct)) { throw new Error("A complex element was used as configuration, this is not supported: https://cdk.tf/complex-object-as-configuration"); } const attrs = { is_value_secret: { value: cdktf.booleanToHclTerraform(struct.isValueSecret), isBlock: false, type: "simple", storageClassType: "boolean", }, key: { value: cdktf.stringToHclTerraform(struct.key), isBlock: false, type: "simple", storageClassType: "string", }, value: { value: cdktf.stringToHclTerraform(struct.value), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyOutputReference 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() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._isValueSecret !== undefined) { hasAnyValues = true; internalValueResult.isValueSecret = this._isValueSecret; } if (this._key !== undefined) { hasAnyValues = true; internalValueResult.key = this._key; } if (this._value !== undefined) { hasAnyValues = true; internalValueResult.value = this._value; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._isValueSecret = undefined; this._key = undefined; this._value = 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._isValueSecret = value.isValueSecret; this._key = value.key; this._value = value.value; } } get isValueSecret() { return this.getBooleanAttribute('is_value_secret'); } set isValueSecret(value) { this._isValueSecret = value; } resetIsValueSecret() { this._isValueSecret = undefined; } // Temporarily expose input value. Use with caution. get isValueSecretInput() { return this._isValueSecret; } get key() { return this.getStringAttribute('key'); } set key(value) { this._key = value; } resetKey() { this._key = undefined; } // Temporarily expose input value. Use with caution. get keyInput() { return this._key; } get value() { return this.getStringAttribute('value'); } set value(value) { this._value = value; } resetValue() { this._value = undefined; } // Temporarily expose input value. Use with caution. get valueInput() { return this._value; } } exports.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyOutputReference = CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyOutputReference; _l = JSII_RTTI_SYMBOL_1; CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyOutputReference[_l] = { fqn: "@cdktf/provider-aws.cloudwatchEventConnection.CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyOutputReference", version: "21.22.1" }; class CloudwatchEventConnectionAuthParametersOauthOauthHttpParametersBodyList 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; } /**