UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,003 lines (1,002 loc) 202 kB
"use strict"; var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppsyncChannelNamespace = exports.AppsyncChannelNamespaceSubscribeAuthModeList = exports.AppsyncChannelNamespaceSubscribeAuthModeOutputReference = exports.AppsyncChannelNamespacePublishAuthModeList = exports.AppsyncChannelNamespacePublishAuthModeOutputReference = exports.AppsyncChannelNamespaceHandlerConfigsList = exports.AppsyncChannelNamespaceHandlerConfigsOutputReference = exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeList = exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeOutputReference = exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList = exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationOutputReference = exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList = exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigOutputReference = exports.AppsyncChannelNamespaceHandlerConfigsOnPublishList = exports.AppsyncChannelNamespaceHandlerConfigsOnPublishOutputReference = exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList = exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationOutputReference = exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList = exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigOutputReference = void 0; exports.appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToTerraform = appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToHclTerraform = appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToHclTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToTerraform = appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToHclTerraform = appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToHclTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnPublishToTerraform = appsyncChannelNamespaceHandlerConfigsOnPublishToTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnPublishToHclTerraform = appsyncChannelNamespaceHandlerConfigsOnPublishToHclTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToTerraform = appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToHclTerraform = appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToHclTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToTerraform = appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToHclTerraform = appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToHclTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnSubscribeToTerraform = appsyncChannelNamespaceHandlerConfigsOnSubscribeToTerraform; exports.appsyncChannelNamespaceHandlerConfigsOnSubscribeToHclTerraform = appsyncChannelNamespaceHandlerConfigsOnSubscribeToHclTerraform; exports.appsyncChannelNamespaceHandlerConfigsToTerraform = appsyncChannelNamespaceHandlerConfigsToTerraform; exports.appsyncChannelNamespaceHandlerConfigsToHclTerraform = appsyncChannelNamespaceHandlerConfigsToHclTerraform; exports.appsyncChannelNamespacePublishAuthModeToTerraform = appsyncChannelNamespacePublishAuthModeToTerraform; exports.appsyncChannelNamespacePublishAuthModeToHclTerraform = appsyncChannelNamespacePublishAuthModeToHclTerraform; exports.appsyncChannelNamespaceSubscribeAuthModeToTerraform = appsyncChannelNamespaceSubscribeAuthModeToTerraform; exports.appsyncChannelNamespaceSubscribeAuthModeToHclTerraform = appsyncChannelNamespaceSubscribeAuthModeToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToTerraform(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 { invoke_type: cdktf.stringToTerraform(struct.invokeType), }; } function appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToHclTerraform(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 = { invoke_type: { value: cdktf.stringToHclTerraform(struct.invokeType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigOutputReference 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._invokeType !== undefined) { hasAnyValues = true; internalValueResult.invokeType = this._invokeType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._invokeType = 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._invokeType = value.invokeType; } } get invokeType() { return this.getStringAttribute('invoke_type'); } set invokeType(value) { this._invokeType = value; } resetInvokeType() { this._invokeType = undefined; } // Temporarily expose input value. Use with caution. get invokeTypeInput() { return this._invokeType; } } exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigOutputReference = AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigOutputReference[_a] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigOutputReference", version: "21.22.1" }; class AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList 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 AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList = AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList; _b = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList[_b] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList", version: "21.22.1" }; function appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToTerraform(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 { data_source_name: cdktf.stringToTerraform(struct.dataSourceName), lambda_config: cdktf.listMapper(appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToTerraform, true)(struct.lambdaConfig), }; } function appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToHclTerraform(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 = { data_source_name: { value: cdktf.stringToHclTerraform(struct.dataSourceName), isBlock: false, type: "simple", storageClassType: "string", }, lambda_config: { value: cdktf.listMapperHcl(appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigToHclTerraform, true)(struct.lambdaConfig), isBlock: true, type: "list", storageClassType: "AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationOutputReference 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; // lambda_config - computed: false, optional: true, required: false this._lambdaConfig = new AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationLambdaConfigList(this, "lambda_config", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._dataSourceName !== undefined) { hasAnyValues = true; internalValueResult.dataSourceName = this._dataSourceName; } if (this._lambdaConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.lambdaConfig = this._lambdaConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._dataSourceName = undefined; this._lambdaConfig.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._dataSourceName = value.dataSourceName; this._lambdaConfig.internalValue = value.lambdaConfig; } } get dataSourceName() { return this.getStringAttribute('data_source_name'); } set dataSourceName(value) { this._dataSourceName = value; } // Temporarily expose input value. Use with caution. get dataSourceNameInput() { return this._dataSourceName; } get lambdaConfig() { return this._lambdaConfig; } putLambdaConfig(value) { this._lambdaConfig.internalValue = value; } resetLambdaConfig() { this._lambdaConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get lambdaConfigInput() { return this._lambdaConfig.internalValue; } } exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationOutputReference = AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationOutputReference; _c = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationOutputReference[_c] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationOutputReference", version: "21.22.1" }; class AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList 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 AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList = AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList; _d = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList[_d] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList", version: "21.22.1" }; function appsyncChannelNamespaceHandlerConfigsOnPublishToTerraform(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 { behavior: cdktf.stringToTerraform(struct.behavior), integration: cdktf.listMapper(appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToTerraform, true)(struct.integration), }; } function appsyncChannelNamespaceHandlerConfigsOnPublishToHclTerraform(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 = { behavior: { value: cdktf.stringToHclTerraform(struct.behavior), isBlock: false, type: "simple", storageClassType: "string", }, integration: { value: cdktf.listMapperHcl(appsyncChannelNamespaceHandlerConfigsOnPublishIntegrationToHclTerraform, true)(struct.integration), isBlock: true, type: "list", storageClassType: "AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespaceHandlerConfigsOnPublishOutputReference 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; // integration - computed: false, optional: true, required: false this._integration = new AppsyncChannelNamespaceHandlerConfigsOnPublishIntegrationList(this, "integration", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._behavior !== undefined) { hasAnyValues = true; internalValueResult.behavior = this._behavior; } if (this._integration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.integration = this._integration?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._behavior = undefined; this._integration.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._behavior = value.behavior; this._integration.internalValue = value.integration; } } get behavior() { return this.getStringAttribute('behavior'); } set behavior(value) { this._behavior = value; } // Temporarily expose input value. Use with caution. get behaviorInput() { return this._behavior; } get integration() { return this._integration; } putIntegration(value) { this._integration.internalValue = value; } resetIntegration() { this._integration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get integrationInput() { return this._integration.internalValue; } } exports.AppsyncChannelNamespaceHandlerConfigsOnPublishOutputReference = AppsyncChannelNamespaceHandlerConfigsOnPublishOutputReference; _e = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnPublishOutputReference[_e] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnPublishOutputReference", version: "21.22.1" }; class AppsyncChannelNamespaceHandlerConfigsOnPublishList 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 AppsyncChannelNamespaceHandlerConfigsOnPublishOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncChannelNamespaceHandlerConfigsOnPublishList = AppsyncChannelNamespaceHandlerConfigsOnPublishList; _f = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnPublishList[_f] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnPublishList", version: "21.22.1" }; function appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToTerraform(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 { invoke_type: cdktf.stringToTerraform(struct.invokeType), }; } function appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToHclTerraform(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 = { invoke_type: { value: cdktf.stringToHclTerraform(struct.invokeType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigOutputReference 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._invokeType !== undefined) { hasAnyValues = true; internalValueResult.invokeType = this._invokeType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._invokeType = 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._invokeType = value.invokeType; } } get invokeType() { return this.getStringAttribute('invoke_type'); } set invokeType(value) { this._invokeType = value; } resetInvokeType() { this._invokeType = undefined; } // Temporarily expose input value. Use with caution. get invokeTypeInput() { return this._invokeType; } } exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigOutputReference = AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigOutputReference; _g = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigOutputReference[_g] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigOutputReference", version: "21.22.1" }; class AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList 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 AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList = AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList; _h = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList[_h] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList", version: "21.22.1" }; function appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToTerraform(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 { data_source_name: cdktf.stringToTerraform(struct.dataSourceName), lambda_config: cdktf.listMapper(appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToTerraform, true)(struct.lambdaConfig), }; } function appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToHclTerraform(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 = { data_source_name: { value: cdktf.stringToHclTerraform(struct.dataSourceName), isBlock: false, type: "simple", storageClassType: "string", }, lambda_config: { value: cdktf.listMapperHcl(appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigToHclTerraform, true)(struct.lambdaConfig), isBlock: true, type: "list", storageClassType: "AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationOutputReference 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; // lambda_config - computed: false, optional: true, required: false this._lambdaConfig = new AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationLambdaConfigList(this, "lambda_config", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._dataSourceName !== undefined) { hasAnyValues = true; internalValueResult.dataSourceName = this._dataSourceName; } if (this._lambdaConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.lambdaConfig = this._lambdaConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._dataSourceName = undefined; this._lambdaConfig.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._dataSourceName = value.dataSourceName; this._lambdaConfig.internalValue = value.lambdaConfig; } } get dataSourceName() { return this.getStringAttribute('data_source_name'); } set dataSourceName(value) { this._dataSourceName = value; } // Temporarily expose input value. Use with caution. get dataSourceNameInput() { return this._dataSourceName; } get lambdaConfig() { return this._lambdaConfig; } putLambdaConfig(value) { this._lambdaConfig.internalValue = value; } resetLambdaConfig() { this._lambdaConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get lambdaConfigInput() { return this._lambdaConfig.internalValue; } } exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationOutputReference = AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationOutputReference; _j = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationOutputReference[_j] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationOutputReference", version: "21.22.1" }; class AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList 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 AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList = AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList; _k = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList[_k] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList", version: "21.22.1" }; function appsyncChannelNamespaceHandlerConfigsOnSubscribeToTerraform(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 { behavior: cdktf.stringToTerraform(struct.behavior), integration: cdktf.listMapper(appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToTerraform, true)(struct.integration), }; } function appsyncChannelNamespaceHandlerConfigsOnSubscribeToHclTerraform(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 = { behavior: { value: cdktf.stringToHclTerraform(struct.behavior), isBlock: false, type: "simple", storageClassType: "string", }, integration: { value: cdktf.listMapperHcl(appsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationToHclTerraform, true)(struct.integration), isBlock: true, type: "list", storageClassType: "AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespaceHandlerConfigsOnSubscribeOutputReference 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; // integration - computed: false, optional: true, required: false this._integration = new AppsyncChannelNamespaceHandlerConfigsOnSubscribeIntegrationList(this, "integration", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._behavior !== undefined) { hasAnyValues = true; internalValueResult.behavior = this._behavior; } if (this._integration?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.integration = this._integration?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._behavior = undefined; this._integration.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._behavior = value.behavior; this._integration.internalValue = value.integration; } } get behavior() { return this.getStringAttribute('behavior'); } set behavior(value) { this._behavior = value; } // Temporarily expose input value. Use with caution. get behaviorInput() { return this._behavior; } get integration() { return this._integration; } putIntegration(value) { this._integration.internalValue = value; } resetIntegration() { this._integration.internalValue = undefined; } // Temporarily expose input value. Use with caution. get integrationInput() { return this._integration.internalValue; } } exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeOutputReference = AppsyncChannelNamespaceHandlerConfigsOnSubscribeOutputReference; _l = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnSubscribeOutputReference[_l] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnSubscribeOutputReference", version: "21.22.1" }; class AppsyncChannelNamespaceHandlerConfigsOnSubscribeList 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 AppsyncChannelNamespaceHandlerConfigsOnSubscribeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncChannelNamespaceHandlerConfigsOnSubscribeList = AppsyncChannelNamespaceHandlerConfigsOnSubscribeList; _m = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOnSubscribeList[_m] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOnSubscribeList", version: "21.22.1" }; function appsyncChannelNamespaceHandlerConfigsToTerraform(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 { on_publish: cdktf.listMapper(appsyncChannelNamespaceHandlerConfigsOnPublishToTerraform, true)(struct.onPublish), on_subscribe: cdktf.listMapper(appsyncChannelNamespaceHandlerConfigsOnSubscribeToTerraform, true)(struct.onSubscribe), }; } function appsyncChannelNamespaceHandlerConfigsToHclTerraform(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 = { on_publish: { value: cdktf.listMapperHcl(appsyncChannelNamespaceHandlerConfigsOnPublishToHclTerraform, true)(struct.onPublish), isBlock: true, type: "list", storageClassType: "AppsyncChannelNamespaceHandlerConfigsOnPublishList", }, on_subscribe: { value: cdktf.listMapperHcl(appsyncChannelNamespaceHandlerConfigsOnSubscribeToHclTerraform, true)(struct.onSubscribe), isBlock: true, type: "list", storageClassType: "AppsyncChannelNamespaceHandlerConfigsOnSubscribeList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespaceHandlerConfigsOutputReference 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; // on_publish - computed: false, optional: true, required: false this._onPublish = new AppsyncChannelNamespaceHandlerConfigsOnPublishList(this, "on_publish", false); // on_subscribe - computed: false, optional: true, required: false this._onSubscribe = new AppsyncChannelNamespaceHandlerConfigsOnSubscribeList(this, "on_subscribe", false); } get internalValue() { if (this.resolvableValue) { return this.resolvableValue; } let hasAnyValues = this.isEmptyObject; const internalValueResult = {}; if (this._onPublish?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.onPublish = this._onPublish?.internalValue; } if (this._onSubscribe?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.onSubscribe = this._onSubscribe?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._onPublish.internalValue = undefined; this._onSubscribe.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._onPublish.internalValue = value.onPublish; this._onSubscribe.internalValue = value.onSubscribe; } } get onPublish() { return this._onPublish; } putOnPublish(value) { this._onPublish.internalValue = value; } resetOnPublish() { this._onPublish.internalValue = undefined; } // Temporarily expose input value. Use with caution. get onPublishInput() { return this._onPublish.internalValue; } get onSubscribe() { return this._onSubscribe; } putOnSubscribe(value) { this._onSubscribe.internalValue = value; } resetOnSubscribe() { this._onSubscribe.internalValue = undefined; } // Temporarily expose input value. Use with caution. get onSubscribeInput() { return this._onSubscribe.internalValue; } } exports.AppsyncChannelNamespaceHandlerConfigsOutputReference = AppsyncChannelNamespaceHandlerConfigsOutputReference; _o = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsOutputReference[_o] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsOutputReference", version: "21.22.1" }; class AppsyncChannelNamespaceHandlerConfigsList 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 AppsyncChannelNamespaceHandlerConfigsOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncChannelNamespaceHandlerConfigsList = AppsyncChannelNamespaceHandlerConfigsList; _p = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespaceHandlerConfigsList[_p] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespaceHandlerConfigsList", version: "21.22.1" }; function appsyncChannelNamespacePublishAuthModeToTerraform(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 { auth_type: cdktf.stringToTerraform(struct.authType), }; } function appsyncChannelNamespacePublishAuthModeToHclTerraform(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 = { auth_type: { value: cdktf.stringToHclTerraform(struct.authType), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncChannelNamespacePublishAuthModeOutputReference 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._authType !== undefined) { hasAnyValues = true; internalValueResult.authType = this._authType; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._authType = 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._authType = value.authType; } } get authType() { return this.getStringAttribute('auth_type'); } set authType(value) { this._authType = value; } // Temporarily expose input value. Use with caution. get authTypeInput() { return this._authType; } } exports.AppsyncChannelNamespacePublishAuthModeOutputReference = AppsyncChannelNamespacePublishAuthModeOutputReference; _q = JSII_RTTI_SYMBOL_1; AppsyncChannelNamespacePublishAuthModeOutputReference[_q] = { fqn: "@cdktf/provider-aws.appsyncChannelNamespace.AppsyncChannelNamespacePublishAuthModeOutputReference", version: "21.22.1" }; class AppsyncChannelNamespacePublishAuthModeList 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 AppsyncChannelNamespacePublishAuthModeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet);