UNPKG

@cdktf/provider-aws

Version:

Prebuilt aws Provider for Terraform CDK (cdktf)

1,080 lines 226 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.AppsyncApi = exports.AppsyncApiEventConfigList = exports.AppsyncApiEventConfigOutputReference = exports.AppsyncApiEventConfigLogConfigList = exports.AppsyncApiEventConfigLogConfigOutputReference = exports.AppsyncApiEventConfigDefaultSubscribeAuthModeList = exports.AppsyncApiEventConfigDefaultSubscribeAuthModeOutputReference = exports.AppsyncApiEventConfigDefaultPublishAuthModeList = exports.AppsyncApiEventConfigDefaultPublishAuthModeOutputReference = exports.AppsyncApiEventConfigConnectionAuthModeList = exports.AppsyncApiEventConfigConnectionAuthModeOutputReference = exports.AppsyncApiEventConfigAuthProviderList = exports.AppsyncApiEventConfigAuthProviderOutputReference = exports.AppsyncApiEventConfigAuthProviderOpenidConnectConfigList = exports.AppsyncApiEventConfigAuthProviderOpenidConnectConfigOutputReference = exports.AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList = exports.AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigOutputReference = exports.AppsyncApiEventConfigAuthProviderCognitoConfigList = exports.AppsyncApiEventConfigAuthProviderCognitoConfigOutputReference = void 0; exports.appsyncApiEventConfigAuthProviderCognitoConfigToTerraform = appsyncApiEventConfigAuthProviderCognitoConfigToTerraform; exports.appsyncApiEventConfigAuthProviderCognitoConfigToHclTerraform = appsyncApiEventConfigAuthProviderCognitoConfigToHclTerraform; exports.appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToTerraform = appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToTerraform; exports.appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToHclTerraform = appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToHclTerraform; exports.appsyncApiEventConfigAuthProviderOpenidConnectConfigToTerraform = appsyncApiEventConfigAuthProviderOpenidConnectConfigToTerraform; exports.appsyncApiEventConfigAuthProviderOpenidConnectConfigToHclTerraform = appsyncApiEventConfigAuthProviderOpenidConnectConfigToHclTerraform; exports.appsyncApiEventConfigAuthProviderToTerraform = appsyncApiEventConfigAuthProviderToTerraform; exports.appsyncApiEventConfigAuthProviderToHclTerraform = appsyncApiEventConfigAuthProviderToHclTerraform; exports.appsyncApiEventConfigConnectionAuthModeToTerraform = appsyncApiEventConfigConnectionAuthModeToTerraform; exports.appsyncApiEventConfigConnectionAuthModeToHclTerraform = appsyncApiEventConfigConnectionAuthModeToHclTerraform; exports.appsyncApiEventConfigDefaultPublishAuthModeToTerraform = appsyncApiEventConfigDefaultPublishAuthModeToTerraform; exports.appsyncApiEventConfigDefaultPublishAuthModeToHclTerraform = appsyncApiEventConfigDefaultPublishAuthModeToHclTerraform; exports.appsyncApiEventConfigDefaultSubscribeAuthModeToTerraform = appsyncApiEventConfigDefaultSubscribeAuthModeToTerraform; exports.appsyncApiEventConfigDefaultSubscribeAuthModeToHclTerraform = appsyncApiEventConfigDefaultSubscribeAuthModeToHclTerraform; exports.appsyncApiEventConfigLogConfigToTerraform = appsyncApiEventConfigLogConfigToTerraform; exports.appsyncApiEventConfigLogConfigToHclTerraform = appsyncApiEventConfigLogConfigToHclTerraform; exports.appsyncApiEventConfigToTerraform = appsyncApiEventConfigToTerraform; exports.appsyncApiEventConfigToHclTerraform = appsyncApiEventConfigToHclTerraform; const JSII_RTTI_SYMBOL_1 = Symbol.for("jsii.rtti"); const cdktf = require("cdktf"); function appsyncApiEventConfigAuthProviderCognitoConfigToTerraform(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 { app_id_client_regex: cdktf.stringToTerraform(struct.appIdClientRegex), aws_region: cdktf.stringToTerraform(struct.awsRegion), user_pool_id: cdktf.stringToTerraform(struct.userPoolId), }; } function appsyncApiEventConfigAuthProviderCognitoConfigToHclTerraform(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 = { app_id_client_regex: { value: cdktf.stringToHclTerraform(struct.appIdClientRegex), isBlock: false, type: "simple", storageClassType: "string", }, aws_region: { value: cdktf.stringToHclTerraform(struct.awsRegion), isBlock: false, type: "simple", storageClassType: "string", }, user_pool_id: { value: cdktf.stringToHclTerraform(struct.userPoolId), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncApiEventConfigAuthProviderCognitoConfigOutputReference 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._appIdClientRegex !== undefined) { hasAnyValues = true; internalValueResult.appIdClientRegex = this._appIdClientRegex; } if (this._awsRegion !== undefined) { hasAnyValues = true; internalValueResult.awsRegion = this._awsRegion; } if (this._userPoolId !== undefined) { hasAnyValues = true; internalValueResult.userPoolId = this._userPoolId; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._appIdClientRegex = undefined; this._awsRegion = undefined; this._userPoolId = 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._appIdClientRegex = value.appIdClientRegex; this._awsRegion = value.awsRegion; this._userPoolId = value.userPoolId; } } get appIdClientRegex() { return this.getStringAttribute('app_id_client_regex'); } set appIdClientRegex(value) { this._appIdClientRegex = value; } resetAppIdClientRegex() { this._appIdClientRegex = undefined; } // Temporarily expose input value. Use with caution. get appIdClientRegexInput() { return this._appIdClientRegex; } get awsRegion() { return this.getStringAttribute('aws_region'); } set awsRegion(value) { this._awsRegion = value; } // Temporarily expose input value. Use with caution. get awsRegionInput() { return this._awsRegion; } get userPoolId() { return this.getStringAttribute('user_pool_id'); } set userPoolId(value) { this._userPoolId = value; } // Temporarily expose input value. Use with caution. get userPoolIdInput() { return this._userPoolId; } } exports.AppsyncApiEventConfigAuthProviderCognitoConfigOutputReference = AppsyncApiEventConfigAuthProviderCognitoConfigOutputReference; _a = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderCognitoConfigOutputReference[_a] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderCognitoConfigOutputReference", version: "21.22.1" }; class AppsyncApiEventConfigAuthProviderCognitoConfigList 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 AppsyncApiEventConfigAuthProviderCognitoConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncApiEventConfigAuthProviderCognitoConfigList = AppsyncApiEventConfigAuthProviderCognitoConfigList; _b = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderCognitoConfigList[_b] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderCognitoConfigList", version: "21.22.1" }; function appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToTerraform(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 { authorizer_result_ttl_in_seconds: cdktf.numberToTerraform(struct.authorizerResultTtlInSeconds), authorizer_uri: cdktf.stringToTerraform(struct.authorizerUri), identity_validation_expression: cdktf.stringToTerraform(struct.identityValidationExpression), }; } function appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToHclTerraform(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 = { authorizer_result_ttl_in_seconds: { value: cdktf.numberToHclTerraform(struct.authorizerResultTtlInSeconds), isBlock: false, type: "simple", storageClassType: "number", }, authorizer_uri: { value: cdktf.stringToHclTerraform(struct.authorizerUri), isBlock: false, type: "simple", storageClassType: "string", }, identity_validation_expression: { value: cdktf.stringToHclTerraform(struct.identityValidationExpression), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigOutputReference 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._authorizerResultTtlInSeconds !== undefined) { hasAnyValues = true; internalValueResult.authorizerResultTtlInSeconds = this._authorizerResultTtlInSeconds; } if (this._authorizerUri !== undefined) { hasAnyValues = true; internalValueResult.authorizerUri = this._authorizerUri; } if (this._identityValidationExpression !== undefined) { hasAnyValues = true; internalValueResult.identityValidationExpression = this._identityValidationExpression; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._authorizerResultTtlInSeconds = undefined; this._authorizerUri = undefined; this._identityValidationExpression = 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._authorizerResultTtlInSeconds = value.authorizerResultTtlInSeconds; this._authorizerUri = value.authorizerUri; this._identityValidationExpression = value.identityValidationExpression; } } get authorizerResultTtlInSeconds() { return this.getNumberAttribute('authorizer_result_ttl_in_seconds'); } set authorizerResultTtlInSeconds(value) { this._authorizerResultTtlInSeconds = value; } resetAuthorizerResultTtlInSeconds() { this._authorizerResultTtlInSeconds = undefined; } // Temporarily expose input value. Use with caution. get authorizerResultTtlInSecondsInput() { return this._authorizerResultTtlInSeconds; } get authorizerUri() { return this.getStringAttribute('authorizer_uri'); } set authorizerUri(value) { this._authorizerUri = value; } // Temporarily expose input value. Use with caution. get authorizerUriInput() { return this._authorizerUri; } get identityValidationExpression() { return this.getStringAttribute('identity_validation_expression'); } set identityValidationExpression(value) { this._identityValidationExpression = value; } resetIdentityValidationExpression() { this._identityValidationExpression = undefined; } // Temporarily expose input value. Use with caution. get identityValidationExpressionInput() { return this._identityValidationExpression; } } exports.AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigOutputReference = AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigOutputReference; _c = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigOutputReference[_c] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigOutputReference", version: "21.22.1" }; class AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList 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 AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList = AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList; _d = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList[_d] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList", version: "21.22.1" }; function appsyncApiEventConfigAuthProviderOpenidConnectConfigToTerraform(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_ttl: cdktf.numberToTerraform(struct.authTtl), client_id: cdktf.stringToTerraform(struct.clientId), iat_ttl: cdktf.numberToTerraform(struct.iatTtl), issuer: cdktf.stringToTerraform(struct.issuer), }; } function appsyncApiEventConfigAuthProviderOpenidConnectConfigToHclTerraform(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_ttl: { value: cdktf.numberToHclTerraform(struct.authTtl), isBlock: false, type: "simple", storageClassType: "number", }, client_id: { value: cdktf.stringToHclTerraform(struct.clientId), isBlock: false, type: "simple", storageClassType: "string", }, iat_ttl: { value: cdktf.numberToHclTerraform(struct.iatTtl), isBlock: false, type: "simple", storageClassType: "number", }, issuer: { value: cdktf.stringToHclTerraform(struct.issuer), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncApiEventConfigAuthProviderOpenidConnectConfigOutputReference 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._authTtl !== undefined) { hasAnyValues = true; internalValueResult.authTtl = this._authTtl; } if (this._clientId !== undefined) { hasAnyValues = true; internalValueResult.clientId = this._clientId; } if (this._iatTtl !== undefined) { hasAnyValues = true; internalValueResult.iatTtl = this._iatTtl; } if (this._issuer !== undefined) { hasAnyValues = true; internalValueResult.issuer = this._issuer; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._authTtl = undefined; this._clientId = undefined; this._iatTtl = undefined; this._issuer = 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._authTtl = value.authTtl; this._clientId = value.clientId; this._iatTtl = value.iatTtl; this._issuer = value.issuer; } } get authTtl() { return this.getNumberAttribute('auth_ttl'); } set authTtl(value) { this._authTtl = value; } resetAuthTtl() { this._authTtl = undefined; } // Temporarily expose input value. Use with caution. get authTtlInput() { return this._authTtl; } get clientId() { return this.getStringAttribute('client_id'); } set clientId(value) { this._clientId = value; } resetClientId() { this._clientId = undefined; } // Temporarily expose input value. Use with caution. get clientIdInput() { return this._clientId; } get iatTtl() { return this.getNumberAttribute('iat_ttl'); } set iatTtl(value) { this._iatTtl = value; } resetIatTtl() { this._iatTtl = undefined; } // Temporarily expose input value. Use with caution. get iatTtlInput() { return this._iatTtl; } get issuer() { return this.getStringAttribute('issuer'); } set issuer(value) { this._issuer = value; } // Temporarily expose input value. Use with caution. get issuerInput() { return this._issuer; } } exports.AppsyncApiEventConfigAuthProviderOpenidConnectConfigOutputReference = AppsyncApiEventConfigAuthProviderOpenidConnectConfigOutputReference; _e = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderOpenidConnectConfigOutputReference[_e] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderOpenidConnectConfigOutputReference", version: "21.22.1" }; class AppsyncApiEventConfigAuthProviderOpenidConnectConfigList 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 AppsyncApiEventConfigAuthProviderOpenidConnectConfigOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncApiEventConfigAuthProviderOpenidConnectConfigList = AppsyncApiEventConfigAuthProviderOpenidConnectConfigList; _f = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderOpenidConnectConfigList[_f] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderOpenidConnectConfigList", version: "21.22.1" }; function appsyncApiEventConfigAuthProviderToTerraform(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), cognito_config: cdktf.listMapper(appsyncApiEventConfigAuthProviderCognitoConfigToTerraform, true)(struct.cognitoConfig), lambda_authorizer_config: cdktf.listMapper(appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToTerraform, true)(struct.lambdaAuthorizerConfig), openid_connect_config: cdktf.listMapper(appsyncApiEventConfigAuthProviderOpenidConnectConfigToTerraform, true)(struct.openidConnectConfig), }; } function appsyncApiEventConfigAuthProviderToHclTerraform(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", }, cognito_config: { value: cdktf.listMapperHcl(appsyncApiEventConfigAuthProviderCognitoConfigToHclTerraform, true)(struct.cognitoConfig), isBlock: true, type: "list", storageClassType: "AppsyncApiEventConfigAuthProviderCognitoConfigList", }, lambda_authorizer_config: { value: cdktf.listMapperHcl(appsyncApiEventConfigAuthProviderLambdaAuthorizerConfigToHclTerraform, true)(struct.lambdaAuthorizerConfig), isBlock: true, type: "list", storageClassType: "AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList", }, openid_connect_config: { value: cdktf.listMapperHcl(appsyncApiEventConfigAuthProviderOpenidConnectConfigToHclTerraform, true)(struct.openidConnectConfig), isBlock: true, type: "list", storageClassType: "AppsyncApiEventConfigAuthProviderOpenidConnectConfigList", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncApiEventConfigAuthProviderOutputReference 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; // cognito_config - computed: false, optional: true, required: false this._cognitoConfig = new AppsyncApiEventConfigAuthProviderCognitoConfigList(this, "cognito_config", false); // lambda_authorizer_config - computed: false, optional: true, required: false this._lambdaAuthorizerConfig = new AppsyncApiEventConfigAuthProviderLambdaAuthorizerConfigList(this, "lambda_authorizer_config", false); // openid_connect_config - computed: false, optional: true, required: false this._openidConnectConfig = new AppsyncApiEventConfigAuthProviderOpenidConnectConfigList(this, "openid_connect_config", 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; } if (this._cognitoConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.cognitoConfig = this._cognitoConfig?.internalValue; } if (this._lambdaAuthorizerConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.lambdaAuthorizerConfig = this._lambdaAuthorizerConfig?.internalValue; } if (this._openidConnectConfig?.internalValue !== undefined) { hasAnyValues = true; internalValueResult.openidConnectConfig = this._openidConnectConfig?.internalValue; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value === undefined) { this.isEmptyObject = false; this.resolvableValue = undefined; this._authType = undefined; this._cognitoConfig.internalValue = undefined; this._lambdaAuthorizerConfig.internalValue = undefined; this._openidConnectConfig.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._authType = value.authType; this._cognitoConfig.internalValue = value.cognitoConfig; this._lambdaAuthorizerConfig.internalValue = value.lambdaAuthorizerConfig; this._openidConnectConfig.internalValue = value.openidConnectConfig; } } 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; } get cognitoConfig() { return this._cognitoConfig; } putCognitoConfig(value) { this._cognitoConfig.internalValue = value; } resetCognitoConfig() { this._cognitoConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get cognitoConfigInput() { return this._cognitoConfig.internalValue; } get lambdaAuthorizerConfig() { return this._lambdaAuthorizerConfig; } putLambdaAuthorizerConfig(value) { this._lambdaAuthorizerConfig.internalValue = value; } resetLambdaAuthorizerConfig() { this._lambdaAuthorizerConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get lambdaAuthorizerConfigInput() { return this._lambdaAuthorizerConfig.internalValue; } get openidConnectConfig() { return this._openidConnectConfig; } putOpenidConnectConfig(value) { this._openidConnectConfig.internalValue = value; } resetOpenidConnectConfig() { this._openidConnectConfig.internalValue = undefined; } // Temporarily expose input value. Use with caution. get openidConnectConfigInput() { return this._openidConnectConfig.internalValue; } } exports.AppsyncApiEventConfigAuthProviderOutputReference = AppsyncApiEventConfigAuthProviderOutputReference; _g = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderOutputReference[_g] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderOutputReference", version: "21.22.1" }; class AppsyncApiEventConfigAuthProviderList 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 AppsyncApiEventConfigAuthProviderOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncApiEventConfigAuthProviderList = AppsyncApiEventConfigAuthProviderList; _h = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigAuthProviderList[_h] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigAuthProviderList", version: "21.22.1" }; function appsyncApiEventConfigConnectionAuthModeToTerraform(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 appsyncApiEventConfigConnectionAuthModeToHclTerraform(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 AppsyncApiEventConfigConnectionAuthModeOutputReference 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.AppsyncApiEventConfigConnectionAuthModeOutputReference = AppsyncApiEventConfigConnectionAuthModeOutputReference; _j = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigConnectionAuthModeOutputReference[_j] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigConnectionAuthModeOutputReference", version: "21.22.1" }; class AppsyncApiEventConfigConnectionAuthModeList 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 AppsyncApiEventConfigConnectionAuthModeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncApiEventConfigConnectionAuthModeList = AppsyncApiEventConfigConnectionAuthModeList; _k = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigConnectionAuthModeList[_k] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigConnectionAuthModeList", version: "21.22.1" }; function appsyncApiEventConfigDefaultPublishAuthModeToTerraform(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 appsyncApiEventConfigDefaultPublishAuthModeToHclTerraform(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 AppsyncApiEventConfigDefaultPublishAuthModeOutputReference 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.AppsyncApiEventConfigDefaultPublishAuthModeOutputReference = AppsyncApiEventConfigDefaultPublishAuthModeOutputReference; _l = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigDefaultPublishAuthModeOutputReference[_l] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigDefaultPublishAuthModeOutputReference", version: "21.22.1" }; class AppsyncApiEventConfigDefaultPublishAuthModeList 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 AppsyncApiEventConfigDefaultPublishAuthModeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncApiEventConfigDefaultPublishAuthModeList = AppsyncApiEventConfigDefaultPublishAuthModeList; _m = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigDefaultPublishAuthModeList[_m] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigDefaultPublishAuthModeList", version: "21.22.1" }; function appsyncApiEventConfigDefaultSubscribeAuthModeToTerraform(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 appsyncApiEventConfigDefaultSubscribeAuthModeToHclTerraform(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 AppsyncApiEventConfigDefaultSubscribeAuthModeOutputReference 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.AppsyncApiEventConfigDefaultSubscribeAuthModeOutputReference = AppsyncApiEventConfigDefaultSubscribeAuthModeOutputReference; _o = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigDefaultSubscribeAuthModeOutputReference[_o] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigDefaultSubscribeAuthModeOutputReference", version: "21.22.1" }; class AppsyncApiEventConfigDefaultSubscribeAuthModeList 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 AppsyncApiEventConfigDefaultSubscribeAuthModeOutputReference(this.terraformResource, this.terraformAttribute, index, this.wrapsSet); } } exports.AppsyncApiEventConfigDefaultSubscribeAuthModeList = AppsyncApiEventConfigDefaultSubscribeAuthModeList; _p = JSII_RTTI_SYMBOL_1; AppsyncApiEventConfigDefaultSubscribeAuthModeList[_p] = { fqn: "@cdktf/provider-aws.appsyncApi.AppsyncApiEventConfigDefaultSubscribeAuthModeList", version: "21.22.1" }; function appsyncApiEventConfigLogConfigToTerraform(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 { cloudwatch_logs_role_arn: cdktf.stringToTerraform(struct.cloudwatchLogsRoleArn), log_level: cdktf.stringToTerraform(struct.logLevel), }; } function appsyncApiEventConfigLogConfigToHclTerraform(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 = { cloudwatch_logs_role_arn: { value: cdktf.stringToHclTerraform(struct.cloudwatchLogsRoleArn), isBlock: false, type: "simple", storageClassType: "string", }, log_level: { value: cdktf.stringToHclTerraform(struct.logLevel), isBlock: false, type: "simple", storageClassType: "string", }, }; // remove undefined attributes return Object.fromEntries(Object.entries(attrs).filter(([_, value]) => value !== undefined && value.value !== undefined)); } class AppsyncApiEventConfigLogConfigOutputReference 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._cloudwatchLogsRoleArn !== undefined) { hasAnyValues = true; internalValueResult.cloudwatchLogsRoleArn = this._cloudwatchLogsRoleArn; } if (this._logLevel !== undefined) { hasAnyValues = true; internalValueResult.logLevel = this._logLevel; } return hasAnyValues ? internalValueResult : undefined; } set internalValue(value) { if (value