UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines 228 kB
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnTerms=exports.CfnManagedLoginBranding=exports.CfnLogDeliveryConfiguration=exports.CfnUserPoolUserToGroupAttachment=exports.CfnUserPoolUser=exports.CfnUserPoolUICustomizationAttachment=exports.CfnUserPoolRiskConfigurationAttachment=exports.CfnUserPoolResourceServer=exports.CfnUserPoolIdentityProvider=exports.CfnUserPoolGroup=exports.CfnUserPoolDomain=exports.CfnUserPoolClient=exports.CfnUserPool=exports.CfnIdentityPoolRoleAttachment=exports.CfnIdentityPoolPrincipalTag=exports.CfnIdentityPool=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var cdk=()=>{var tmp=require("../../core/lib");return cdk=()=>tmp,tmp},cfn_parse=()=>{var tmp=require("../../core/lib/helpers-internal");return cfn_parse=()=>tmp,tmp},cdk_errors=()=>{var tmp=require("../../core/lib/errors");return cdk_errors=()=>tmp,tmp};class CfnIdentityPool extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnIdentityPool",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::IdentityPool";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentityPoolPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnIdentityPool(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnIdentityPool(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIdentityPool.CFN_RESOURCE_TYPE_NAME}static fromIdentityPoolId(scope,id,identityPoolId){class Import extends cdk().Resource{identityPoolRef;constructor(scope2,id2,identityPoolId2){super(scope2,id2),this.identityPoolRef={identityPoolId:identityPoolId2}}}return new Import(scope,id,identityPoolId)}static arnForIdentityPool(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cognito_IIdentityPoolRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForIdentityPool),error}return new(cfn_parse()).TemplateString("arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}").interpolate({Partition:cdk().Stack.of(resource).partition,Region:cdk().Stack.of(resource).region,Account:cdk().Stack.of(resource).account,IdentityPoolId:resource.identityPoolRef.identityPoolId})}attrId;attrName;allowClassicFlow;allowUnauthenticatedIdentities;cdkTagManager;cognitoEvents;cognitoIdentityProviders;cognitoStreams;developerProviderName;identityPoolName;identityPoolTags;openIdConnectProviderArns;pushSync;samlProviderArns;supportedLoginProviders;constructor(scope,id,props){super(scope,id,{type:CfnIdentityPool.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnIdentityPoolProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentityPool),error}cdk().requireProperty(props,"allowUnauthenticatedIdentities",this),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.attrName=cdk().Token.asString(this.getAtt("Name",cdk().ResolutionTypeHint.STRING)),this.allowClassicFlow=props.allowClassicFlow,this.allowUnauthenticatedIdentities=props.allowUnauthenticatedIdentities,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Cognito::IdentityPool",void 0,{tagPropertyName:"identityPoolTags"}),this.cognitoEvents=props.cognitoEvents,this.cognitoIdentityProviders=props.cognitoIdentityProviders,this.cognitoStreams=props.cognitoStreams,this.developerProviderName=props.developerProviderName,this.identityPoolName=props.identityPoolName,this.identityPoolTags=props.identityPoolTags,this.openIdConnectProviderArns=cdk().mapArrayInPlace(props.openIdConnectProviderArns,item=>item?.oidcProviderRef?.oidcProviderArn??cdk().ensureStringOrUndefined(item,"openIdConnectProviderArns","iam.IOIDCProviderRef | string")),this.pushSync=props.pushSync,this.samlProviderArns=props.samlProviderArns,this.supportedLoginProviders=props.supportedLoginProviders}get identityPoolRef(){return{identityPoolId:this.ref}}get cfnProperties(){return{allowClassicFlow:this.allowClassicFlow,allowUnauthenticatedIdentities:this.allowUnauthenticatedIdentities,identityPoolTags:this.cdkTagManager.renderTags(this.identityPoolTags),cognitoEvents:this.cognitoEvents,cognitoIdentityProviders:this.cognitoIdentityProviders,cognitoStreams:this.cognitoStreams,developerProviderName:this.developerProviderName,identityPoolName:this.identityPoolName,openIdConnectProviderArns:this.openIdConnectProviderArns,pushSync:this.pushSync,samlProviderArns:this.samlProviderArns,supportedLoginProviders:this.supportedLoginProviders}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnIdentityPool.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentityPoolPropsToCloudFormation(props)}}exports.CfnIdentityPool=CfnIdentityPool;function CfnIdentityPoolPushSyncPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("applicationArns",cdk().listValidator(cdk().validateString))(properties.applicationArns)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "PushSyncProperty"')}function convertCfnIdentityPoolPushSyncPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolPushSyncPropertyValidator(properties).assertSuccess(),{ApplicationArns:cdk().listMapper(cdk().stringToCloudFormation)(properties.applicationArns),RoleArn:cdk().stringToCloudFormation(properties.roleArn)}):properties}function CfnIdentityPoolPushSyncPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationArns","ApplicationArns",properties.ApplicationArns!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ApplicationArns):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolCognitoIdentityProviderPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("clientId",cdk().requiredValidator)(properties.clientId)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("providerName",cdk().requiredValidator)(properties.providerName)),errors.collect(cdk().propertyValidator("providerName",cdk().validateString)(properties.providerName)),errors.collect(cdk().propertyValidator("serverSideTokenCheck",cdk().validateBoolean)(properties.serverSideTokenCheck)),errors.wrap('supplied properties not correct for "CognitoIdentityProviderProperty"')}function convertCfnIdentityPoolCognitoIdentityProviderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolCognitoIdentityProviderPropertyValidator(properties).assertSuccess(),{ClientId:cdk().stringToCloudFormation(properties.clientId),ProviderName:cdk().stringToCloudFormation(properties.providerName),ServerSideTokenCheck:cdk().booleanToCloudFormation(properties.serverSideTokenCheck)}):properties}function CfnIdentityPoolCognitoIdentityProviderPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("providerName","ProviderName",properties.ProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.ProviderName):void 0),ret.addPropertyResult("serverSideTokenCheck","ServerSideTokenCheck",properties.ServerSideTokenCheck!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ServerSideTokenCheck):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolCognitoStreamsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("streamName",cdk().validateString)(properties.streamName)),errors.collect(cdk().propertyValidator("streamingStatus",cdk().validateString)(properties.streamingStatus)),errors.wrap('supplied properties not correct for "CognitoStreamsProperty"')}function convertCfnIdentityPoolCognitoStreamsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolCognitoStreamsPropertyValidator(properties).assertSuccess(),{RoleArn:cdk().stringToCloudFormation(properties.roleArn),StreamName:cdk().stringToCloudFormation(properties.streamName),StreamingStatus:cdk().stringToCloudFormation(properties.streamingStatus)}):properties}function CfnIdentityPoolCognitoStreamsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("streamingStatus","StreamingStatus",properties.StreamingStatus!=null?cfn_parse().FromCloudFormation.getString(properties.StreamingStatus):void 0),ret.addPropertyResult("streamName","StreamName",properties.StreamName!=null?cfn_parse().FromCloudFormation.getString(properties.StreamName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowClassicFlow",cdk().validateBoolean)(properties.allowClassicFlow)),errors.collect(cdk().propertyValidator("allowUnauthenticatedIdentities",cdk().requiredValidator)(properties.allowUnauthenticatedIdentities)),errors.collect(cdk().propertyValidator("allowUnauthenticatedIdentities",cdk().validateBoolean)(properties.allowUnauthenticatedIdentities)),errors.collect(cdk().propertyValidator("cognitoEvents",cdk().validateObject)(properties.cognitoEvents)),errors.collect(cdk().propertyValidator("cognitoIdentityProviders",cdk().listValidator(CfnIdentityPoolCognitoIdentityProviderPropertyValidator))(properties.cognitoIdentityProviders)),errors.collect(cdk().propertyValidator("cognitoStreams",CfnIdentityPoolCognitoStreamsPropertyValidator)(properties.cognitoStreams)),errors.collect(cdk().propertyValidator("developerProviderName",cdk().validateString)(properties.developerProviderName)),errors.collect(cdk().propertyValidator("identityPoolName",cdk().validateString)(properties.identityPoolName)),errors.collect(cdk().propertyValidator("identityPoolTags",cdk().listValidator(cdk().validateCfnTag))(properties.identityPoolTags)),errors.collect(cdk().propertyValidator("openIdConnectProviderArns",cdk().listValidator(cdk().validateString))(properties.openIdConnectProviderArns)),errors.collect(cdk().propertyValidator("pushSync",CfnIdentityPoolPushSyncPropertyValidator)(properties.pushSync)),errors.collect(cdk().propertyValidator("samlProviderArns",cdk().listValidator(cdk().validateString))(properties.samlProviderArns)),errors.collect(cdk().propertyValidator("supportedLoginProviders",cdk().validateObject)(properties.supportedLoginProviders)),errors.wrap('supplied properties not correct for "CfnIdentityPoolProps"')}function convertCfnIdentityPoolPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolPropsValidator(properties).assertSuccess(),{AllowClassicFlow:cdk().booleanToCloudFormation(properties.allowClassicFlow),AllowUnauthenticatedIdentities:cdk().booleanToCloudFormation(properties.allowUnauthenticatedIdentities),CognitoEvents:cdk().objectToCloudFormation(properties.cognitoEvents),CognitoIdentityProviders:cdk().listMapper(convertCfnIdentityPoolCognitoIdentityProviderPropertyToCloudFormation)(properties.cognitoIdentityProviders),CognitoStreams:convertCfnIdentityPoolCognitoStreamsPropertyToCloudFormation(properties.cognitoStreams),DeveloperProviderName:cdk().stringToCloudFormation(properties.developerProviderName),IdentityPoolName:cdk().stringToCloudFormation(properties.identityPoolName),IdentityPoolTags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.identityPoolTags),OpenIdConnectProviderARNs:cdk().listMapper(cdk().stringToCloudFormation)(properties.openIdConnectProviderArns),PushSync:convertCfnIdentityPoolPushSyncPropertyToCloudFormation(properties.pushSync),SamlProviderARNs:cdk().listMapper(cdk().stringToCloudFormation)(properties.samlProviderArns),SupportedLoginProviders:cdk().objectToCloudFormation(properties.supportedLoginProviders)}):properties}function CfnIdentityPoolPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowClassicFlow","AllowClassicFlow",properties.AllowClassicFlow!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowClassicFlow):void 0),ret.addPropertyResult("allowUnauthenticatedIdentities","AllowUnauthenticatedIdentities",properties.AllowUnauthenticatedIdentities!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowUnauthenticatedIdentities):void 0),ret.addPropertyResult("cognitoEvents","CognitoEvents",properties.CognitoEvents!=null?cfn_parse().FromCloudFormation.getAny(properties.CognitoEvents):void 0),ret.addPropertyResult("cognitoIdentityProviders","CognitoIdentityProviders",properties.CognitoIdentityProviders!=null?cfn_parse().FromCloudFormation.getArray(CfnIdentityPoolCognitoIdentityProviderPropertyFromCloudFormation)(properties.CognitoIdentityProviders):void 0),ret.addPropertyResult("cognitoStreams","CognitoStreams",properties.CognitoStreams!=null?CfnIdentityPoolCognitoStreamsPropertyFromCloudFormation(properties.CognitoStreams):void 0),ret.addPropertyResult("developerProviderName","DeveloperProviderName",properties.DeveloperProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.DeveloperProviderName):void 0),ret.addPropertyResult("identityPoolName","IdentityPoolName",properties.IdentityPoolName!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityPoolName):void 0),ret.addPropertyResult("identityPoolTags","IdentityPoolTags",properties.IdentityPoolTags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.IdentityPoolTags):void 0),ret.addPropertyResult("openIdConnectProviderArns","OpenIdConnectProviderARNs",properties.OpenIdConnectProviderARNs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.OpenIdConnectProviderARNs):void 0),ret.addPropertyResult("pushSync","PushSync",properties.PushSync!=null?CfnIdentityPoolPushSyncPropertyFromCloudFormation(properties.PushSync):void 0),ret.addPropertyResult("samlProviderArns","SamlProviderARNs",properties.SamlProviderARNs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SamlProviderARNs):void 0),ret.addPropertyResult("supportedLoginProviders","SupportedLoginProviders",properties.SupportedLoginProviders!=null?cfn_parse().FromCloudFormation.getAny(properties.SupportedLoginProviders):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIdentityPoolPrincipalTag extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnIdentityPoolPrincipalTag",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::IdentityPoolPrincipalTag";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentityPoolPrincipalTagPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnIdentityPoolPrincipalTag(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnIdentityPoolPrincipalTag(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIdentityPoolPrincipalTag.CFN_RESOURCE_TYPE_NAME}identityPoolId;identityProviderName;principalTags;useDefaults;constructor(scope,id,props){super(scope,id,{type:CfnIdentityPoolPrincipalTag.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnIdentityPoolPrincipalTagProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentityPoolPrincipalTag),error}cdk().requireProperty(props,"identityPoolId",this),cdk().requireProperty(props,"identityProviderName",this),this.identityPoolId=props.identityPoolId,this.identityProviderName=props.identityProviderName,this.principalTags=props.principalTags,this.useDefaults=props.useDefaults}get identityPoolPrincipalTagRef(){return{identityPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),identityProviderName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{identityPoolId:this.identityPoolId,identityProviderName:this.identityProviderName,principalTags:this.principalTags,useDefaults:this.useDefaults}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnIdentityPoolPrincipalTag.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentityPoolPrincipalTagPropsToCloudFormation(props)}}exports.CfnIdentityPoolPrincipalTag=CfnIdentityPoolPrincipalTag;function CfnIdentityPoolPrincipalTagPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("identityPoolId",cdk().requiredValidator)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("identityPoolId",cdk().validateString)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("identityProviderName",cdk().requiredValidator)(properties.identityProviderName)),errors.collect(cdk().propertyValidator("identityProviderName",cdk().validateString)(properties.identityProviderName)),errors.collect(cdk().propertyValidator("principalTags",cdk().validateObject)(properties.principalTags)),errors.collect(cdk().propertyValidator("useDefaults",cdk().validateBoolean)(properties.useDefaults)),errors.wrap('supplied properties not correct for "CfnIdentityPoolPrincipalTagProps"')}function convertCfnIdentityPoolPrincipalTagPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolPrincipalTagPropsValidator(properties).assertSuccess(),{IdentityPoolId:cdk().stringToCloudFormation(properties.identityPoolId),IdentityProviderName:cdk().stringToCloudFormation(properties.identityProviderName),PrincipalTags:cdk().objectToCloudFormation(properties.principalTags),UseDefaults:cdk().booleanToCloudFormation(properties.useDefaults)}):properties}function CfnIdentityPoolPrincipalTagPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("identityPoolId","IdentityPoolId",properties.IdentityPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityPoolId):void 0),ret.addPropertyResult("identityProviderName","IdentityProviderName",properties.IdentityProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityProviderName):void 0),ret.addPropertyResult("principalTags","PrincipalTags",properties.PrincipalTags!=null?cfn_parse().FromCloudFormation.getAny(properties.PrincipalTags):void 0),ret.addPropertyResult("useDefaults","UseDefaults",properties.UseDefaults!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UseDefaults):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIdentityPoolRoleAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnIdentityPoolRoleAttachment",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::IdentityPoolRoleAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentityPoolRoleAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnIdentityPoolRoleAttachment(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnIdentityPoolRoleAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnIdentityPoolRoleAttachment.CFN_RESOURCE_TYPE_NAME}attrId;identityPoolId;roleMappings;roles;constructor(scope,id,props){super(scope,id,{type:CfnIdentityPoolRoleAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnIdentityPoolRoleAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentityPoolRoleAttachment),error}cdk().requireProperty(props,"identityPoolId",this),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.identityPoolId=props.identityPoolId?.identityPoolRef?.identityPoolId??cdk().ensureStringOrUndefined(props.identityPoolId,"identityPoolId","cognito.IIdentityPoolRef | string"),this.roleMappings=props.roleMappings,this.roles=props.roles}get identityPoolRoleAttachmentRef(){return{identityPoolRoleAttachmentId:this.ref}}get cfnProperties(){return{identityPoolId:this.identityPoolId,roleMappings:this.roleMappings,roles:this.roles}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnIdentityPoolRoleAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentityPoolRoleAttachmentPropsToCloudFormation(props)}}exports.CfnIdentityPoolRoleAttachment=CfnIdentityPoolRoleAttachment;function CfnIdentityPoolRoleAttachmentMappingRulePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("claim",cdk().requiredValidator)(properties.claim)),errors.collect(cdk().propertyValidator("claim",cdk().validateString)(properties.claim)),errors.collect(cdk().propertyValidator("matchType",cdk().requiredValidator)(properties.matchType)),errors.collect(cdk().propertyValidator("matchType",cdk().validateString)(properties.matchType)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("value",cdk().requiredValidator)(properties.value)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "MappingRuleProperty"')}function convertCfnIdentityPoolRoleAttachmentMappingRulePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentMappingRulePropertyValidator(properties).assertSuccess(),{Claim:cdk().stringToCloudFormation(properties.claim),MatchType:cdk().stringToCloudFormation(properties.matchType),RoleARN:cdk().stringToCloudFormation(properties.roleArn),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnIdentityPoolRoleAttachmentMappingRulePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("claim","Claim",properties.Claim!=null?cfn_parse().FromCloudFormation.getString(properties.Claim):void 0),ret.addPropertyResult("matchType","MatchType",properties.MatchType!=null?cfn_parse().FromCloudFormation.getString(properties.MatchType):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.RoleARN):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("rules",cdk().requiredValidator)(properties.rules)),errors.collect(cdk().propertyValidator("rules",cdk().listValidator(CfnIdentityPoolRoleAttachmentMappingRulePropertyValidator))(properties.rules)),errors.wrap('supplied properties not correct for "RulesConfigurationTypeProperty"')}function convertCfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyValidator(properties).assertSuccess(),{Rules:cdk().listMapper(convertCfnIdentityPoolRoleAttachmentMappingRulePropertyToCloudFormation)(properties.rules)}):properties}function CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("rules","Rules",properties.Rules!=null?cfn_parse().FromCloudFormation.getArray(CfnIdentityPoolRoleAttachmentMappingRulePropertyFromCloudFormation)(properties.Rules):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolRoleAttachmentRoleMappingPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("ambiguousRoleResolution",cdk().validateString)(properties.ambiguousRoleResolution)),errors.collect(cdk().propertyValidator("identityProvider",cdk().validateString)(properties.identityProvider)),errors.collect(cdk().propertyValidator("rulesConfiguration",CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyValidator)(properties.rulesConfiguration)),errors.collect(cdk().propertyValidator("type",cdk().requiredValidator)(properties.type)),errors.collect(cdk().propertyValidator("type",cdk().validateString)(properties.type)),errors.wrap('supplied properties not correct for "RoleMappingProperty"')}function convertCfnIdentityPoolRoleAttachmentRoleMappingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentRoleMappingPropertyValidator(properties).assertSuccess(),{AmbiguousRoleResolution:cdk().stringToCloudFormation(properties.ambiguousRoleResolution),IdentityProvider:cdk().stringToCloudFormation(properties.identityProvider),RulesConfiguration:convertCfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyToCloudFormation(properties.rulesConfiguration),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnIdentityPoolRoleAttachmentRoleMappingPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("ambiguousRoleResolution","AmbiguousRoleResolution",properties.AmbiguousRoleResolution!=null?cfn_parse().FromCloudFormation.getString(properties.AmbiguousRoleResolution):void 0),ret.addPropertyResult("identityProvider","IdentityProvider",properties.IdentityProvider!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityProvider):void 0),ret.addPropertyResult("rulesConfiguration","RulesConfiguration",properties.RulesConfiguration!=null?CfnIdentityPoolRoleAttachmentRulesConfigurationTypePropertyFromCloudFormation(properties.RulesConfiguration):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentityPoolRoleAttachmentPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("identityPoolId",cdk().requiredValidator)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("identityPoolId",cdk().validateString)(properties.identityPoolId)),errors.collect(cdk().propertyValidator("roleMappings",cdk().hashValidator(CfnIdentityPoolRoleAttachmentRoleMappingPropertyValidator))(properties.roleMappings)),errors.collect(cdk().propertyValidator("roles",cdk().validateObject)(properties.roles)),errors.wrap('supplied properties not correct for "CfnIdentityPoolRoleAttachmentProps"')}function convertCfnIdentityPoolRoleAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentityPoolRoleAttachmentPropsValidator(properties).assertSuccess(),{IdentityPoolId:cdk().stringToCloudFormation(properties.identityPoolId),RoleMappings:cdk().hashMapper(convertCfnIdentityPoolRoleAttachmentRoleMappingPropertyToCloudFormation)(properties.roleMappings),Roles:cdk().objectToCloudFormation(properties.roles)}):properties}function CfnIdentityPoolRoleAttachmentPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("identityPoolId","IdentityPoolId",properties.IdentityPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.IdentityPoolId):void 0),ret.addPropertyResult("roleMappings","RoleMappings",properties.RoleMappings!=null?cfn_parse().FromCloudFormation.getMap(CfnIdentityPoolRoleAttachmentRoleMappingPropertyFromCloudFormation)(properties.RoleMappings):void 0),ret.addPropertyResult("roles","Roles",properties.Roles!=null?cfn_parse().FromCloudFormation.getAny(properties.Roles):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPool extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPool",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPool";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPool(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPool(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPool.CFN_RESOURCE_TYPE_NAME}static fromUserPoolArn(scope,id,arn){class Import extends cdk().Resource{userPoolRef;constructor(scope2,id2,arn2){super(scope2,id2,{environmentFromArn:arn2});const variables=new(cfn_parse()).TemplateString("arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}").parse(arn2);this.userPoolRef={userPoolId:variables.UserPoolId,userPoolArn:arn2}}}return new Import(scope,id,arn)}static fromUserPoolId(scope,id,userPoolId){class Import extends cdk().Resource{userPoolRef;constructor(scope2,id2,userPoolId2){const arn=new(cfn_parse()).TemplateString("arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}").interpolate({Partition:cdk().Stack.of(scope2).partition,Region:cdk().Stack.of(scope2).region,Account:cdk().Stack.of(scope2).account,UserPoolId:userPoolId2});super(scope2,id2,{environmentFromArn:arn}),this.userPoolRef={userPoolId:userPoolId2,userPoolArn:arn}}}return new Import(scope,id,userPoolId)}static arnForUserPool(resource){try{jsiiDeprecationWarnings().aws_cdk_lib_interfaces_aws_cognito_IUserPoolRef(resource)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.arnForUserPool),error}return resource.userPoolRef.userPoolArn}attrArn;attrProviderName;attrProviderUrl;attrUserPoolId;accountRecoverySetting;adminCreateUserConfig;aliasAttributes;autoVerifiedAttributes;deletionProtection;deviceConfiguration;emailAuthenticationMessage;emailAuthenticationSubject;emailConfiguration;emailVerificationMessage;emailVerificationSubject;enabledMfas;lambdaConfig;mfaConfiguration;policies;schema;smsAuthenticationMessage;smsConfiguration;smsVerificationMessage;tags;userAttributeUpdateSettings;usernameAttributes;usernameConfiguration;userPoolAddOns;userPoolName;userPoolTagsRaw;userPoolTier;verificationMessageTemplate;webAuthnRelyingPartyId;webAuthnUserVerification;constructor(scope,id,props={}){super(scope,id,{type:CfnUserPool.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPool),error}this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrProviderName=cdk().Token.asString(this.getAtt("ProviderName",cdk().ResolutionTypeHint.STRING)),this.attrProviderUrl=cdk().Token.asString(this.getAtt("ProviderURL",cdk().ResolutionTypeHint.STRING)),this.attrUserPoolId=cdk().Token.asString(this.getAtt("UserPoolId",cdk().ResolutionTypeHint.STRING)),this.accountRecoverySetting=props.accountRecoverySetting,this.adminCreateUserConfig=props.adminCreateUserConfig,this.aliasAttributes=props.aliasAttributes,this.autoVerifiedAttributes=props.autoVerifiedAttributes,this.deletionProtection=props.deletionProtection,this.deviceConfiguration=props.deviceConfiguration,this.emailAuthenticationMessage=props.emailAuthenticationMessage,this.emailAuthenticationSubject=props.emailAuthenticationSubject,this.emailConfiguration=props.emailConfiguration,this.emailVerificationMessage=props.emailVerificationMessage,this.emailVerificationSubject=props.emailVerificationSubject,this.enabledMfas=props.enabledMfas,this.lambdaConfig=props.lambdaConfig,this.mfaConfiguration=props.mfaConfiguration,this.policies=props.policies,this.schema=props.schema,this.smsAuthenticationMessage=props.smsAuthenticationMessage,this.smsConfiguration=props.smsConfiguration,this.smsVerificationMessage=props.smsVerificationMessage,this.tags=new(cdk()).TagManager(cdk().TagType.MAP,"AWS::Cognito::UserPool",props.userPoolTags,{tagPropertyName:"userPoolTags"}),this.userAttributeUpdateSettings=props.userAttributeUpdateSettings,this.usernameAttributes=props.usernameAttributes,this.usernameConfiguration=props.usernameConfiguration,this.userPoolAddOns=props.userPoolAddOns,this.userPoolName=props.userPoolName,this.userPoolTagsRaw=props.userPoolTags,this.userPoolTier=props.userPoolTier,this.verificationMessageTemplate=props.verificationMessageTemplate,this.webAuthnRelyingPartyId=props.webAuthnRelyingPartyId,this.webAuthnUserVerification=props.webAuthnUserVerification,this.node.scope!=null&&cdk().Resource.isResource(this.node.scope)&&this.node.addValidation({validate:()=>this.cfnOptions.deletionPolicy===void 0?["'AWS::Cognito::UserPool' is a stateful resource type, and you must specify a Removal Policy for it. Call 'resource.applyRemovalPolicy()'."]:[]})}get userPoolRef(){return{userPoolId:this.ref,userPoolArn:this.attrArn}}get cfnProperties(){return{accountRecoverySetting:this.accountRecoverySetting,adminCreateUserConfig:this.adminCreateUserConfig,aliasAttributes:this.aliasAttributes,autoVerifiedAttributes:this.autoVerifiedAttributes,deletionProtection:this.deletionProtection,deviceConfiguration:this.deviceConfiguration,emailAuthenticationMessage:this.emailAuthenticationMessage,emailAuthenticationSubject:this.emailAuthenticationSubject,emailConfiguration:this.emailConfiguration,emailVerificationMessage:this.emailVerificationMessage,emailVerificationSubject:this.emailVerificationSubject,enabledMfas:this.enabledMfas,lambdaConfig:this.lambdaConfig,mfaConfiguration:this.mfaConfiguration,policies:this.policies,schema:this.schema,smsAuthenticationMessage:this.smsAuthenticationMessage,smsConfiguration:this.smsConfiguration,smsVerificationMessage:this.smsVerificationMessage,userPoolTags:this.tags.renderTags(),userAttributeUpdateSettings:this.userAttributeUpdateSettings,usernameAttributes:this.usernameAttributes,usernameConfiguration:this.usernameConfiguration,userPoolAddOns:this.userPoolAddOns,userPoolName:this.userPoolName,userPoolTier:this.userPoolTier,verificationMessageTemplate:this.verificationMessageTemplate,webAuthnRelyingPartyId:this.webAuthnRelyingPartyId,webAuthnUserVerification:this.webAuthnUserVerification}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPool.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolPropsToCloudFormation(props)}}exports.CfnUserPool=CfnUserPool;function CfnUserPoolPasswordPolicyPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("minimumLength",cdk().validateNumber)(properties.minimumLength)),errors.collect(cdk().propertyValidator("passwordHistorySize",cdk().validateNumber)(properties.passwordHistorySize)),errors.collect(cdk().propertyValidator("requireLowercase",cdk().validateBoolean)(properties.requireLowercase)),errors.collect(cdk().propertyValidator("requireNumbers",cdk().validateBoolean)(properties.requireNumbers)),errors.collect(cdk().propertyValidator("requireSymbols",cdk().validateBoolean)(properties.requireSymbols)),errors.collect(cdk().propertyValidator("requireUppercase",cdk().validateBoolean)(properties.requireUppercase)),errors.collect(cdk().propertyValidator("temporaryPasswordValidityDays",cdk().validateNumber)(properties.temporaryPasswordValidityDays)),errors.wrap('supplied properties not correct for "PasswordPolicyProperty"')}function convertCfnUserPoolPasswordPolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPasswordPolicyPropertyValidator(properties).assertSuccess(),{MinimumLength:cdk().numberToCloudFormation(properties.minimumLength),PasswordHistorySize:cdk().numberToCloudFormation(properties.passwordHistorySize),RequireLowercase:cdk().booleanToCloudFormation(properties.requireLowercase),RequireNumbers:cdk().booleanToCloudFormation(properties.requireNumbers),RequireSymbols:cdk().booleanToCloudFormation(properties.requireSymbols),RequireUppercase:cdk().booleanToCloudFormation(properties.requireUppercase),TemporaryPasswordValidityDays:cdk().numberToCloudFormation(properties.temporaryPasswordValidityDays)}):properties}function CfnUserPoolPasswordPolicyPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("minimumLength","MinimumLength",properties.MinimumLength!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinimumLength):void 0),ret.addPropertyResult("passwordHistorySize","PasswordHistorySize",properties.PasswordHistorySize!=null?cfn_parse().FromCloudFormation.getNumber(properties.PasswordHistorySize):void 0),ret.addPropertyResult("requireLowercase","RequireLowercase",properties.RequireLowercase!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireLowercase):void 0),ret.addPropertyResult("requireNumbers","RequireNumbers",properties.RequireNumbers!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireNumbers):void 0),ret.addPropertyResult("requireSymbols","RequireSymbols",properties.RequireSymbols!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireSymbols):void 0),ret.addPropertyResult("requireUppercase","RequireUppercase",properties.RequireUppercase!=null?cfn_parse().FromCloudFormation.getBoolean(properties.RequireUppercase):void 0),ret.addPropertyResult("temporaryPasswordValidityDays","TemporaryPasswordValidityDays",properties.TemporaryPasswordValidityDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.TemporaryPasswordValidityDays):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolSignInPolicyPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowedFirstAuthFactors",cdk().listValidator(cdk().validateString))(properties.allowedFirstAuthFactors)),errors.wrap('supplied properties not correct for "SignInPolicyProperty"')}function convertCfnUserPoolSignInPolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolSignInPolicyPropertyValidator(properties).assertSuccess(),{AllowedFirstAuthFactors:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedFirstAuthFactors)}):properties}function CfnUserPoolSignInPolicyPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowedFirstAuthFactors","AllowedFirstAuthFactors",properties.AllowedFirstAuthFactors!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedFirstAuthFactors):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolPoliciesPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("passwordPolicy",CfnUserPoolPasswordPolicyPropertyValidator)(properties.passwordPolicy)),errors.collect(cdk().propertyValidator("signInPolicy",CfnUserPoolSignInPolicyPropertyValidator)(properties.signInPolicy)),errors.wrap('supplied properties not correct for "PoliciesProperty"')}function convertCfnUserPoolPoliciesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPoliciesPropertyValidator(properties).assertSuccess(),{PasswordPolicy:convertCfnUserPoolPasswordPolicyPropertyToCloudFormation(properties.passwordPolicy),SignInPolicy:convertCfnUserPoolSignInPolicyPropertyToCloudFormation(properties.signInPolicy)}):properties}function CfnUserPoolPoliciesPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("passwordPolicy","PasswordPolicy",properties.PasswordPolicy!=null?CfnUserPoolPasswordPolicyPropertyFromCloudFormation(properties.PasswordPolicy):void 0),ret.addPropertyResult("signInPolicy","SignInPolicy",properties.SignInPolicy!=null?CfnUserPoolSignInPolicyPropertyFromCloudFormation(properties.SignInPolicy):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolVerificationMessageTemplatePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("defaultEmailOption",cdk().validateString)(properties.defaultEmailOption)),errors.collect(cdk().propertyValidator("emailMessage",cdk().validateString)(properties.emailMessage)),errors.collect(cdk().propertyValidator("emailMessageByLink",cdk().validateString)(properties.emailMessageByLink)),errors.collect(cdk().propertyValidator("emailSubject",cdk().validateString)(properties.emailSubject)),errors.collect(cdk().propertyValidator("emailSubjectByLink",cdk().validateString)(properties.emailSubjectByLink)),errors.collect(cdk().propertyValidator("smsMessage",cdk().validateString)(properties.smsMessage)),errors.wrap('supplied properties not correct for "VerificationMessageTemplateProperty"')}function convertCfnUserPoolVerificationMessageTemplatePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolVerificationMessageTemplatePropertyValidator(properties).assertSuccess(),{DefaultEmailOption:cdk().stringToCloudFormation(properties.defaultEmailOption),EmailMessage:cdk().stringToCloudFormation(properties.emailMessage),EmailMessageByLink:cdk().stringToCloudFormation(properties.emailMessageByLink),EmailSubject:cdk().stringToCloudFormation(properties.emailSubject),EmailSubjectByLink:cdk().stringToCloudFormation(properties.emailSubjectByLink),SmsMessage:cdk().stringToCloudFormation(properties.smsMessage)}):properties}function CfnUserPoolVerificationMessageTemplatePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("defaultEmailOption","DefaultEmailOption",properties.DefaultEmailOption!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultEmailOption):void 0),ret.addPropertyResult("emailMessage","EmailMessage",properties.EmailMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailMessage):void 0),ret.addPropertyResult("emailMessageByLink","EmailMessageByLink",properties.EmailMessageByLink!=null?cfn_parse().FromCloudFormation.getString(properties.EmailMessageByLink):void 0),ret.addPropertyResult("emailSubject","EmailSubject",properties.EmailSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSubject):void 0),ret.addPropertyResult("emailSubjectByLink","EmailSubjectByLink",properties.EmailSubjectByLink!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSubjectByLink):void 0),ret.addPropertyResult("smsMessage","SmsMessage",properties.SmsMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SmsMessage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolStringAttributeConstraintsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("maxLength",cdk().validateString)(properties.maxLength)),errors.collect(cdk().propertyValidator("minLength",cdk().validateString)(properties.minLength)),errors.wrap('supplied properties not correct for "StringAttributeConstraintsProperty"')}function convertCfnUserPoolStringAttributeConstraintsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolStringAttributeConstraintsPropertyValidator(properties).assertSuccess(),{MaxLength:cdk().stringToCloudFormation(properties.maxLength),MinLength:cdk().stringToCloudFormation(properties.minLength)}):properties}function CfnUserPoolStringAttributeConstraintsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("maxLength","MaxLength",properties.MaxLength!=null?cfn_parse().FromCloudFormation.getString(properties.MaxLength):void 0),ret.addPropertyResult("minLength","MinLength",properties.MinLength!=null?cfn_parse().FromCloudFormation.getString(properties.MinLength):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolNumberAttributeConstraintsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("maxValue",cdk().validateString)(properties.maxValue)),errors.collect(cdk().propertyValidator("minValue",cdk().validateString)(properties.minValue)),errors.wrap('supplied properties not correct for "NumberAttributeConstraintsProperty"')}function convertCfnUserPoolNumberAttributeConstraintsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolNumberAttributeConstraintsPropertyValidator(properties).assertSuccess(),{MaxValue:cdk().stringToCloudFormation(properties.maxValue),MinValue:cdk().stringToCloudFormation(properties.minValue)}):properties}function CfnUserPoolNumberAttributeConstraintsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("maxValue","MaxValue",properties.MaxValue!=null?cfn_parse().FromCloudFormation.getString(properties.MaxValue):void 0),ret.addPropertyResult("minValue","MinValue",properties.MinValue!=null?cfn_parse().FromCloudFormation.getString(properties.MinValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolSchemaAttributePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("attributeDataType",cdk().validateString)(properties.attributeDataType)),errors.collect(cdk().propertyValidator("developerOnlyAttribute",cdk().validateBoolean)(properties.developerOnlyAttribute)),errors.collect(cdk().propertyValidator("mutable",cdk().validateBoolean)(properties.mutable)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("numberAttributeConstraints",CfnUserPoolNumberAttributeConstraintsPropertyValidator)(properties.numberAttributeConstraints)),errors.collect(cdk().propertyValidator("required",cdk().validateBoolean)(properties.required)),errors.collect(cdk().propertyValidator("stringAttributeConstraints",CfnUserPoolStringAttributeConstraintsPropertyValidator)(properties.stringAttributeConstraints)),errors.wrap('supplied properties not correct for "SchemaAttributeProperty"')}function convertCfnUserPoolSchemaAttributePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolSchemaAttributePropertyValidator(properties).assertSuccess(),{AttributeDataType:cdk().stringToCloudFormation(properties.attributeDataType),DeveloperOnlyAttribute:cdk().booleanToCloudFormation(properties.developerOnlyAttribute),Mutable:cdk().booleanToCloudFormation(properties.mutable),Name:cdk().stringToCloudFormation(properties.name),NumberAttributeConstraints:convertCfnUserPoolNumberAttributeConstraintsPropertyToCloudFormation(properties.numberAttributeConstraints),Required:cdk().booleanToCloudFormation(properties.required),StringAttributeConstraints:convertCfnUserPoolStringAttributeConstraintsPropertyToCloudFormation(properties.stringAttributeConstraints)}):properties}function CfnUserPoolSchemaAttributePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("attributeDataType","AttributeDataType",properties.AttributeDataType!=null?cfn_parse().FromCloudFormation.getString(properties.AttributeDataType):void 0),ret.addPropertyResult("developerOnlyAttribute","DeveloperOnlyAttribute",properties.DeveloperOnlyAttribute!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DeveloperOnlyAttribute):void 0),ret.addPropertyResult("mutable","Mutable",properties.Mutable!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Mutable):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("numberAttributeConstraints","NumberAttributeConstraints",properties.NumberAttributeConstraints!=null?CfnUserPoolNumberAttributeConstraintsPropertyFromCloudFormation(properties.NumberAttributeConstraints):void 0),ret.addPropertyResult("required","Required",properties.Required!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Required):void 0),ret.addPropertyResult("stringAttributeConstraints","StringAttributeConstraints",properties.StringAttributeConstraints!=null?CfnUserPoolStringAttributeConstraintsPropertyFromCloudFormation(properties.StringAttributeConstraints):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolInviteMessageTemplatePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("emailMessage",cdk().validateString)(properties.emailMessage)),errors.collect(cdk().propertyValidator("emailSubject",cdk().validateString)(properties.emailSubject)),errors.collect(cdk().propertyValidator("smsMessage",cdk().validateString)(properties.smsMessage)),errors.wrap('supplied properties not correct for "InviteMessageTemplateProperty"')}function convertCfnUserPoolInviteMessageTemplatePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolInviteMessageTemplatePropertyValidator(properties).assertSuccess(),{EmailMessage:cdk().stringToCloudFormation(properties.emailMessage),EmailSubject:cdk().stringToCloudFormation(properties.emailSubject),SMSMessage:cdk().stringToCloudFormation(properties.smsMessage)}):properties}function CfnUserPoolInviteMessageTemplatePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("emailMessage","EmailMessage",properties.EmailMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailMessage):void 0),ret.addPropertyResult("emailSubject","EmailSubject",properties.EmailSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSubject):void 0),ret.addPropertyResult("smsMessage","SMSMessage",properties.SMSMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SMSMessage):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolAdminCreateUserConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("allowAdminCreateUserOnly",cdk().validateBoolean)(properties.allowAdminCreateUserOnly)),errors.collect(cdk().propertyValidator("inviteMessageTemplate",CfnUserPoolInviteMessageTemplatePropertyValidator)(properties.inviteMessageTemplate)),errors.collect(cdk().propertyValidator("unusedAccountValidityDays",cdk().validateNumber)(properties.unusedAccountValidityDays)),errors.wrap('supplied properties not correct for "AdminCreateUserConfigProperty"')}function convertCfnUserPoolAdminCreateUserConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolAdminCreateUserConfigPropertyValidator(properties).assertSuccess(),{AllowAdminCreateUserOnly:cdk().booleanToCloudFormation(properties.allowAdminCreateUserOnly),InviteMessageTemplate:convertCfnUserPoolInviteMessageTemplatePropertyToCloudFormation(properties.inviteMessageTemplate),UnusedAccountValidityDays:cdk().numberToCloudFormation(properties.unusedAccountValidityDays)}):properties}function CfnUserPoolAdminCreateUserConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("allowAdminCreateUserOnly","AllowAdminCreateUserOnly",properties.AllowAdminCreateUserOnly!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowAdminCreateUserOnly):void 0),ret.addPropertyResult("inviteMessageTemplate","InviteMessageTemplate",properties.InviteMessageTemplate!=null?CfnUserPoolInviteMessageTemplatePropertyFromCloudFormation(properties.InviteMessageTemplate):void 0),ret.addPropertyResult("unusedAccountValidityDays","UnusedAccountValidityDays",properties.UnusedAccountValidityDays!=null?cfn_parse().FromCloudFormation.getNumber(properties.UnusedAccountValidityDays):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUsernameConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("caseSensitive",cdk().validateBoolean)(properties.caseSensitive)),errors.wrap('supplied properties not correct for "UsernameConfigurationProperty"')}function convertCfnUserPoolUsernameConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUsernameConfigurationPropertyValidator(properties).assertSuccess(),{CaseSensitive:cdk().booleanToCloudFormation(properties.caseSensitive)}):properties}function CfnUserPoolUsernameConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("caseSensitive","CaseSensitive",properties.CaseSensitive!=null?cfn_parse().FromCloudFormation.getBoolean(properties.CaseSensitive):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("customAuthMode",cdk().validateString)(properties.customAuthMode)),errors.wrap('supplied properties not correct for "AdvancedSecurityAdditionalFlowsProperty"')}function convertCfnUserPoolAdvancedSecurityAdditionalFlowsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyValidator(properties).assertSuccess(),{CustomAuthMode:cdk().stringToCloudFormation(properties.customAuthMode)}):properties}function CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("customAuthMode","CustomAuthMode",properties.CustomAuthMode!=null?cfn_parse().FromCloudFormation.getString(properties.CustomAuthMode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUserPoolAddOnsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("advancedSecurityAdditionalFlows",CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyValidator)(properties.advancedSecurityAdditionalFlows)),errors.collect(cdk().propertyValidator("advancedSecurityMode",cdk().validateString)(properties.advancedSecurityMode)),errors.wrap('supplied properties not correct for "UserPoolAddOnsProperty"')}function convertCfnUserPoolUserPoolAddOnsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserPoolAddOnsPropertyValidator(properties).assertSuccess(),{AdvancedSecurityAdditionalFlows:convertCfnUserPoolAdvancedSecurityAdditionalFlowsPropertyToCloudFormation(properties.advancedSecurityAdditionalFlows),AdvancedSecurityMode:cdk().stringToCloudFormation(properties.advancedSecurityMode)}):properties}function CfnUserPoolUserPoolAddOnsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("advancedSecurityAdditionalFlows","AdvancedSecurityAdditionalFlows",properties.AdvancedSecurityAdditionalFlows!=null?CfnUserPoolAdvancedSecurityAdditionalFlowsPropertyFromCloudFormation(properties.AdvancedSecurityAdditionalFlows):void 0),ret.addPropertyResult("advancedSecurityMode","AdvancedSecurityMode",properties.AdvancedSecurityMode!=null?cfn_parse().FromCloudFormation.getString(properties.AdvancedSecurityMode):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUserAttributeUpdateSettingsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("attributesRequireVerificationBeforeUpdate",cdk().requiredValidator)(properties.attributesRequireVerificationBeforeUpdate)),errors.collect(cdk().propertyValidator("attributesRequireVerificationBeforeUpdate",cdk().listValidator(cdk().validateString))(properties.attributesRequireVerificationBeforeUpdate)),errors.wrap('supplied properties not correct for "UserAttributeUpdateSettingsProperty"')}function convertCfnUserPoolUserAttributeUpdateSettingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserAttributeUpdateSettingsPropertyValidator(properties).assertSuccess(),{AttributesRequireVerificationBeforeUpdate:cdk().listMapper(cdk().stringToCloudFormation)(properties.attributesRequireVerificationBeforeUpdate)}):properties}function CfnUserPoolUserAttributeUpdateSettingsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("attributesRequireVerificationBeforeUpdate","AttributesRequireVerificationBeforeUpdate",properties.AttributesRequireVerificationBeforeUpdate!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AttributesRequireVerificationBeforeUpdate):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolEmailConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("configurationSet",cdk().validateString)(properties.configurationSet)),errors.collect(cdk().propertyValidator("emailSendingAccount",cdk().validateString)(properties.emailSendingAccount)),errors.collect(cdk().propertyValidator("from",cdk().validateString)(properties.from)),errors.collect(cdk().propertyValidator("replyToEmailAddress",cdk().validateString)(properties.replyToEmailAddress)),errors.collect(cdk().propertyValidator("sourceArn",cdk().validateString)(properties.sourceArn)),errors.wrap('supplied properties not correct for "EmailConfigurationProperty"')}function convertCfnUserPoolEmailConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolEmailConfigurationPropertyValidator(properties).assertSuccess(),{ConfigurationSet:cdk().stringToCloudFormation(properties.configurationSet),EmailSendingAccount:cdk().stringToCloudFormation(properties.emailSendingAccount),From:cdk().stringToCloudFormation(properties.from),ReplyToEmailAddress:cdk().stringToCloudFormation(properties.replyToEmailAddress),SourceArn:cdk().stringToCloudFormation(properties.sourceArn)}):properties}function CfnUserPoolEmailConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("configurationSet","ConfigurationSet",properties.ConfigurationSet!=null?cfn_parse().FromCloudFormation.getString(properties.ConfigurationSet):void 0),ret.addPropertyResult("emailSendingAccount","EmailSendingAccount",properties.EmailSendingAccount!=null?cfn_parse().FromCloudFormation.getString(properties.EmailSendingAccount):void 0),ret.addPropertyResult("from","From",properties.From!=null?cfn_parse().FromCloudFormation.getString(properties.From):void 0),ret.addPropertyResult("replyToEmailAddress","ReplyToEmailAddress",properties.ReplyToEmailAddress!=null?cfn_parse().FromCloudFormation.getString(properties.ReplyToEmailAddress):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolSmsConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("externalId",cdk().validateString)(properties.externalId)),errors.collect(cdk().propertyValidator("snsCallerArn",cdk().validateString)(properties.snsCallerArn)),errors.collect(cdk().propertyValidator("snsRegion",cdk().validateString)(properties.snsRegion)),errors.wrap('supplied properties not correct for "SmsConfigurationProperty"')}function convertCfnUserPoolSmsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolSmsConfigurationPropertyValidator(properties).assertSuccess(),{ExternalId:cdk().stringToCloudFormation(properties.externalId),SnsCallerArn:cdk().stringToCloudFormation(properties.snsCallerArn),SnsRegion:cdk().stringToCloudFormation(properties.snsRegion)}):properties}function CfnUserPoolSmsConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("externalId","ExternalId",properties.ExternalId!=null?cfn_parse().FromCloudFormation.getString(properties.ExternalId):void 0),ret.addPropertyResult("snsCallerArn","SnsCallerArn",properties.SnsCallerArn!=null?cfn_parse().FromCloudFormation.getString(properties.SnsCallerArn):void 0),ret.addPropertyResult("snsRegion","SnsRegion",properties.SnsRegion!=null?cfn_parse().FromCloudFormation.getString(properties.SnsRegion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolCustomSMSSenderPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("lambdaArn",cdk().validateString)(properties.lambdaArn)),errors.collect(cdk().propertyValidator("lambdaVersion",cdk().validateString)(properties.lambdaVersion)),errors.wrap('supplied properties not correct for "CustomSMSSenderProperty"')}function convertCfnUserPoolCustomSMSSenderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolCustomSMSSenderPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk().stringToCloudFormation(properties.lambdaArn),LambdaVersion:cdk().stringToCloudFormation(properties.lambdaVersion)}):properties}function CfnUserPoolCustomSMSSenderPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("lambdaArn","LambdaArn",properties.LambdaArn!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaArn):void 0),ret.addPropertyResult("lambdaVersion","LambdaVersion",properties.LambdaVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolCustomEmailSenderPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("lambdaArn",cdk().validateString)(properties.lambdaArn)),errors.collect(cdk().propertyValidator("lambdaVersion",cdk().validateString)(properties.lambdaVersion)),errors.wrap('supplied properties not correct for "CustomEmailSenderProperty"')}function convertCfnUserPoolCustomEmailSenderPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolCustomEmailSenderPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk().stringToCloudFormation(properties.lambdaArn),LambdaVersion:cdk().stringToCloudFormation(properties.lambdaVersion)}):properties}function CfnUserPoolCustomEmailSenderPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("lambdaArn","LambdaArn",properties.LambdaArn!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaArn):void 0),ret.addPropertyResult("lambdaVersion","LambdaVersion",properties.LambdaVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolPreTokenGenerationConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("lambdaArn",cdk().validateString)(properties.lambdaArn)),errors.collect(cdk().propertyValidator("lambdaVersion",cdk().validateString)(properties.lambdaVersion)),errors.wrap('supplied properties not correct for "PreTokenGenerationConfigProperty"')}function convertCfnUserPoolPreTokenGenerationConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPreTokenGenerationConfigPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk().stringToCloudFormation(properties.lambdaArn),LambdaVersion:cdk().stringToCloudFormation(properties.lambdaVersion)}):properties}function CfnUserPoolPreTokenGenerationConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("lambdaArn","LambdaArn",properties.LambdaArn!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaArn):void 0),ret.addPropertyResult("lambdaVersion","LambdaVersion",properties.LambdaVersion!=null?cfn_parse().FromCloudFormation.getString(properties.LambdaVersion):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolLambdaConfigPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("createAuthChallenge",cdk().validateString)(properties.createAuthChallenge)),errors.collect(cdk().propertyValidator("customEmailSender",CfnUserPoolCustomEmailSenderPropertyValidator)(properties.customEmailSender)),errors.collect(cdk().propertyValidator("customMessage",cdk().validateString)(properties.customMessage)),errors.collect(cdk().propertyValidator("customSmsSender",CfnUserPoolCustomSMSSenderPropertyValidator)(properties.customSmsSender)),errors.collect(cdk().propertyValidator("defineAuthChallenge",cdk().validateString)(properties.defineAuthChallenge)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("postAuthentication",cdk().validateString)(properties.postAuthentication)),errors.collect(cdk().propertyValidator("postConfirmation",cdk().validateString)(properties.postConfirmation)),errors.collect(cdk().propertyValidator("preAuthentication",cdk().validateString)(properties.preAuthentication)),errors.collect(cdk().propertyValidator("preSignUp",cdk().validateString)(properties.preSignUp)),errors.collect(cdk().propertyValidator("preTokenGeneration",cdk().validateString)(properties.preTokenGeneration)),errors.collect(cdk().propertyValidator("preTokenGenerationConfig",CfnUserPoolPreTokenGenerationConfigPropertyValidator)(properties.preTokenGenerationConfig)),errors.collect(cdk().propertyValidator("userMigration",cdk().validateString)(properties.userMigration)),errors.collect(cdk().propertyValidator("verifyAuthChallengeResponse",cdk().validateString)(properties.verifyAuthChallengeResponse)),errors.wrap('supplied properties not correct for "LambdaConfigProperty"')}function convertCfnUserPoolLambdaConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolLambdaConfigPropertyValidator(properties).assertSuccess(),{CreateAuthChallenge:cdk().stringToCloudFormation(properties.createAuthChallenge),CustomEmailSender:convertCfnUserPoolCustomEmailSenderPropertyToCloudFormation(properties.customEmailSender),CustomMessage:cdk().stringToCloudFormation(properties.customMessage),CustomSMSSender:convertCfnUserPoolCustomSMSSenderPropertyToCloudFormation(properties.customSmsSender),DefineAuthChallenge:cdk().stringToCloudFormation(properties.defineAuthChallenge),KMSKeyID:cdk().stringToCloudFormation(properties.kmsKeyId),PostAuthentication:cdk().stringToCloudFormation(properties.postAuthentication),PostConfirmation:cdk().stringToCloudFormation(properties.postConfirmation),PreAuthentication:cdk().stringToCloudFormation(properties.preAuthentication),PreSignUp:cdk().stringToCloudFormation(properties.preSignUp),PreTokenGeneration:cdk().stringToCloudFormation(properties.preTokenGeneration),PreTokenGenerationConfig:convertCfnUserPoolPreTokenGenerationConfigPropertyToCloudFormation(properties.preTokenGenerationConfig),UserMigration:cdk().stringToCloudFormation(properties.userMigration),VerifyAuthChallengeResponse:cdk().stringToCloudFormation(properties.verifyAuthChallengeResponse)}):properties}function CfnUserPoolLambdaConfigPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("createAuthChallenge","CreateAuthChallenge",properties.CreateAuthChallenge!=null?cfn_parse().FromCloudFormation.getString(properties.CreateAuthChallenge):void 0),ret.addPropertyResult("customEmailSender","CustomEmailSender",properties.CustomEmailSender!=null?CfnUserPoolCustomEmailSenderPropertyFromCloudFormation(properties.CustomEmailSender):void 0),ret.addPropertyResult("customMessage","CustomMessage",properties.CustomMessage!=null?cfn_parse().FromCloudFormation.getString(properties.CustomMessage):void 0),ret.addPropertyResult("customSmsSender","CustomSMSSender",properties.CustomSMSSender!=null?CfnUserPoolCustomSMSSenderPropertyFromCloudFormation(properties.CustomSMSSender):void 0),ret.addPropertyResult("defineAuthChallenge","DefineAuthChallenge",properties.DefineAuthChallenge!=null?cfn_parse().FromCloudFormation.getString(properties.DefineAuthChallenge):void 0),ret.addPropertyResult("kmsKeyId","KMSKeyID",properties.KMSKeyID!=null?cfn_parse().FromCloudFormation.getString(properties.KMSKeyID):void 0),ret.addPropertyResult("postAuthentication","PostAuthentication",properties.PostAuthentication!=null?cfn_parse().FromCloudFormation.getString(properties.PostAuthentication):void 0),ret.addPropertyResult("postConfirmation","PostConfirmation",properties.PostConfirmation!=null?cfn_parse().FromCloudFormation.getString(properties.PostConfirmation):void 0),ret.addPropertyResult("preAuthentication","PreAuthentication",properties.PreAuthentication!=null?cfn_parse().FromCloudFormation.getString(properties.PreAuthentication):void 0),ret.addPropertyResult("preSignUp","PreSignUp",properties.PreSignUp!=null?cfn_parse().FromCloudFormation.getString(properties.PreSignUp):void 0),ret.addPropertyResult("preTokenGeneration","PreTokenGeneration",properties.PreTokenGeneration!=null?cfn_parse().FromCloudFormation.getString(properties.PreTokenGeneration):void 0),ret.addPropertyResult("preTokenGenerationConfig","PreTokenGenerationConfig",properties.PreTokenGenerationConfig!=null?CfnUserPoolPreTokenGenerationConfigPropertyFromCloudFormation(properties.PreTokenGenerationConfig):void 0),ret.addPropertyResult("userMigration","UserMigration",properties.UserMigration!=null?cfn_parse().FromCloudFormation.getString(properties.UserMigration):void 0),ret.addPropertyResult("verifyAuthChallengeResponse","VerifyAuthChallengeResponse",properties.VerifyAuthChallengeResponse!=null?cfn_parse().FromCloudFormation.getString(properties.VerifyAuthChallengeResponse):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolDeviceConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("challengeRequiredOnNewDevice",cdk().validateBoolean)(properties.challengeRequiredOnNewDevice)),errors.collect(cdk().propertyValidator("deviceOnlyRememberedOnUserPrompt",cdk().validateBoolean)(properties.deviceOnlyRememberedOnUserPrompt)),errors.wrap('supplied properties not correct for "DeviceConfigurationProperty"')}function convertCfnUserPoolDeviceConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolDeviceConfigurationPropertyValidator(properties).assertSuccess(),{ChallengeRequiredOnNewDevice:cdk().booleanToCloudFormation(properties.challengeRequiredOnNewDevice),DeviceOnlyRememberedOnUserPrompt:cdk().booleanToCloudFormation(properties.deviceOnlyRememberedOnUserPrompt)}):properties}function CfnUserPoolDeviceConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("challengeRequiredOnNewDevice","ChallengeRequiredOnNewDevice",properties.ChallengeRequiredOnNewDevice!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ChallengeRequiredOnNewDevice):void 0),ret.addPropertyResult("deviceOnlyRememberedOnUserPrompt","DeviceOnlyRememberedOnUserPrompt",properties.DeviceOnlyRememberedOnUserPrompt!=null?cfn_parse().FromCloudFormation.getBoolean(properties.DeviceOnlyRememberedOnUserPrompt):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRecoveryOptionPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("priority",cdk().validateNumber)(properties.priority)),errors.wrap('supplied properties not correct for "RecoveryOptionProperty"')}function convertCfnUserPoolRecoveryOptionPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRecoveryOptionPropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Priority:cdk().numberToCloudFormation(properties.priority)}):properties}function CfnUserPoolRecoveryOptionPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("priority","Priority",properties.Priority!=null?cfn_parse().FromCloudFormation.getNumber(properties.Priority):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolAccountRecoverySettingPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("recoveryMechanisms",cdk().listValidator(CfnUserPoolRecoveryOptionPropertyValidator))(properties.recoveryMechanisms)),errors.wrap('supplied properties not correct for "AccountRecoverySettingProperty"')}function convertCfnUserPoolAccountRecoverySettingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolAccountRecoverySettingPropertyValidator(properties).assertSuccess(),{RecoveryMechanisms:cdk().listMapper(convertCfnUserPoolRecoveryOptionPropertyToCloudFormation)(properties.recoveryMechanisms)}):properties}function CfnUserPoolAccountRecoverySettingPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("recoveryMechanisms","RecoveryMechanisms",properties.RecoveryMechanisms!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolRecoveryOptionPropertyFromCloudFormation)(properties.RecoveryMechanisms):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("accountRecoverySetting",CfnUserPoolAccountRecoverySettingPropertyValidator)(properties.accountRecoverySetting)),errors.collect(cdk().propertyValidator("adminCreateUserConfig",CfnUserPoolAdminCreateUserConfigPropertyValidator)(properties.adminCreateUserConfig)),errors.collect(cdk().propertyValidator("aliasAttributes",cdk().listValidator(cdk().validateString))(properties.aliasAttributes)),errors.collect(cdk().propertyValidator("autoVerifiedAttributes",cdk().listValidator(cdk().validateString))(properties.autoVerifiedAttributes)),errors.collect(cdk().propertyValidator("deletionProtection",cdk().validateString)(properties.deletionProtection)),errors.collect(cdk().propertyValidator("deviceConfiguration",CfnUserPoolDeviceConfigurationPropertyValidator)(properties.deviceConfiguration)),errors.collect(cdk().propertyValidator("emailAuthenticationMessage",cdk().validateString)(properties.emailAuthenticationMessage)),errors.collect(cdk().propertyValidator("emailAuthenticationSubject",cdk().validateString)(properties.emailAuthenticationSubject)),errors.collect(cdk().propertyValidator("emailConfiguration",CfnUserPoolEmailConfigurationPropertyValidator)(properties.emailConfiguration)),errors.collect(cdk().propertyValidator("emailVerificationMessage",cdk().validateString)(properties.emailVerificationMessage)),errors.collect(cdk().propertyValidator("emailVerificationSubject",cdk().validateString)(properties.emailVerificationSubject)),errors.collect(cdk().propertyValidator("enabledMfas",cdk().listValidator(cdk().validateString))(properties.enabledMfas)),errors.collect(cdk().propertyValidator("lambdaConfig",CfnUserPoolLambdaConfigPropertyValidator)(properties.lambdaConfig)),errors.collect(cdk().propertyValidator("mfaConfiguration",cdk().validateString)(properties.mfaConfiguration)),errors.collect(cdk().propertyValidator("policies",CfnUserPoolPoliciesPropertyValidator)(properties.policies)),errors.collect(cdk().propertyValidator("schema",cdk().listValidator(CfnUserPoolSchemaAttributePropertyValidator))(properties.schema)),errors.collect(cdk().propertyValidator("smsAuthenticationMessage",cdk().validateString)(properties.smsAuthenticationMessage)),errors.collect(cdk().propertyValidator("smsConfiguration",CfnUserPoolSmsConfigurationPropertyValidator)(properties.smsConfiguration)),errors.collect(cdk().propertyValidator("smsVerificationMessage",cdk().validateString)(properties.smsVerificationMessage)),errors.collect(cdk().propertyValidator("userAttributeUpdateSettings",CfnUserPoolUserAttributeUpdateSettingsPropertyValidator)(properties.userAttributeUpdateSettings)),errors.collect(cdk().propertyValidator("userPoolAddOns",CfnUserPoolUserPoolAddOnsPropertyValidator)(properties.userPoolAddOns)),errors.collect(cdk().propertyValidator("userPoolName",cdk().validateString)(properties.userPoolName)),errors.collect(cdk().propertyValidator("userPoolTags",cdk().validateObject)(properties.userPoolTags)),errors.collect(cdk().propertyValidator("userPoolTier",cdk().validateString)(properties.userPoolTier)),errors.collect(cdk().propertyValidator("usernameAttributes",cdk().listValidator(cdk().validateString))(properties.usernameAttributes)),errors.collect(cdk().propertyValidator("usernameConfiguration",CfnUserPoolUsernameConfigurationPropertyValidator)(properties.usernameConfiguration)),errors.collect(cdk().propertyValidator("verificationMessageTemplate",CfnUserPoolVerificationMessageTemplatePropertyValidator)(properties.verificationMessageTemplate)),errors.collect(cdk().propertyValidator("webAuthnRelyingPartyId",cdk().validateString)(properties.webAuthnRelyingPartyId)),errors.collect(cdk().propertyValidator("webAuthnUserVerification",cdk().validateString)(properties.webAuthnUserVerification)),errors.wrap('supplied properties not correct for "CfnUserPoolProps"')}function convertCfnUserPoolPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolPropsValidator(properties).assertSuccess(),{AccountRecoverySetting:convertCfnUserPoolAccountRecoverySettingPropertyToCloudFormation(properties.accountRecoverySetting),AdminCreateUserConfig:convertCfnUserPoolAdminCreateUserConfigPropertyToCloudFormation(properties.adminCreateUserConfig),AliasAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.aliasAttributes),AutoVerifiedAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.autoVerifiedAttributes),DeletionProtection:cdk().stringToCloudFormation(properties.deletionProtection),DeviceConfiguration:convertCfnUserPoolDeviceConfigurationPropertyToCloudFormation(properties.deviceConfiguration),EmailAuthenticationMessage:cdk().stringToCloudFormation(properties.emailAuthenticationMessage),EmailAuthenticationSubject:cdk().stringToCloudFormation(properties.emailAuthenticationSubject),EmailConfiguration:convertCfnUserPoolEmailConfigurationPropertyToCloudFormation(properties.emailConfiguration),EmailVerificationMessage:cdk().stringToCloudFormation(properties.emailVerificationMessage),EmailVerificationSubject:cdk().stringToCloudFormation(properties.emailVerificationSubject),EnabledMfas:cdk().listMapper(cdk().stringToCloudFormation)(properties.enabledMfas),LambdaConfig:convertCfnUserPoolLambdaConfigPropertyToCloudFormation(properties.lambdaConfig),MfaConfiguration:cdk().stringToCloudFormation(properties.mfaConfiguration),Policies:convertCfnUserPoolPoliciesPropertyToCloudFormation(properties.policies),Schema:cdk().listMapper(convertCfnUserPoolSchemaAttributePropertyToCloudFormation)(properties.schema),SmsAuthenticationMessage:cdk().stringToCloudFormation(properties.smsAuthenticationMessage),SmsConfiguration:convertCfnUserPoolSmsConfigurationPropertyToCloudFormation(properties.smsConfiguration),SmsVerificationMessage:cdk().stringToCloudFormation(properties.smsVerificationMessage),UserAttributeUpdateSettings:convertCfnUserPoolUserAttributeUpdateSettingsPropertyToCloudFormation(properties.userAttributeUpdateSettings),UserPoolAddOns:convertCfnUserPoolUserPoolAddOnsPropertyToCloudFormation(properties.userPoolAddOns),UserPoolName:cdk().stringToCloudFormation(properties.userPoolName),UserPoolTags:cdk().objectToCloudFormation(properties.userPoolTags),UserPoolTier:cdk().stringToCloudFormation(properties.userPoolTier),UsernameAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.usernameAttributes),UsernameConfiguration:convertCfnUserPoolUsernameConfigurationPropertyToCloudFormation(properties.usernameConfiguration),VerificationMessageTemplate:convertCfnUserPoolVerificationMessageTemplatePropertyToCloudFormation(properties.verificationMessageTemplate),WebAuthnRelyingPartyID:cdk().stringToCloudFormation(properties.webAuthnRelyingPartyId),WebAuthnUserVerification:cdk().stringToCloudFormation(properties.webAuthnUserVerification)}):properties}function CfnUserPoolPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("accountRecoverySetting","AccountRecoverySetting",properties.AccountRecoverySetting!=null?CfnUserPoolAccountRecoverySettingPropertyFromCloudFormation(properties.AccountRecoverySetting):void 0),ret.addPropertyResult("adminCreateUserConfig","AdminCreateUserConfig",properties.AdminCreateUserConfig!=null?CfnUserPoolAdminCreateUserConfigPropertyFromCloudFormation(properties.AdminCreateUserConfig):void 0),ret.addPropertyResult("aliasAttributes","AliasAttributes",properties.AliasAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AliasAttributes):void 0),ret.addPropertyResult("autoVerifiedAttributes","AutoVerifiedAttributes",properties.AutoVerifiedAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AutoVerifiedAttributes):void 0),ret.addPropertyResult("deletionProtection","DeletionProtection",properties.DeletionProtection!=null?cfn_parse().FromCloudFormation.getString(properties.DeletionProtection):void 0),ret.addPropertyResult("deviceConfiguration","DeviceConfiguration",properties.DeviceConfiguration!=null?CfnUserPoolDeviceConfigurationPropertyFromCloudFormation(properties.DeviceConfiguration):void 0),ret.addPropertyResult("emailAuthenticationMessage","EmailAuthenticationMessage",properties.EmailAuthenticationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailAuthenticationMessage):void 0),ret.addPropertyResult("emailAuthenticationSubject","EmailAuthenticationSubject",properties.EmailAuthenticationSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailAuthenticationSubject):void 0),ret.addPropertyResult("emailConfiguration","EmailConfiguration",properties.EmailConfiguration!=null?CfnUserPoolEmailConfigurationPropertyFromCloudFormation(properties.EmailConfiguration):void 0),ret.addPropertyResult("emailVerificationMessage","EmailVerificationMessage",properties.EmailVerificationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.EmailVerificationMessage):void 0),ret.addPropertyResult("emailVerificationSubject","EmailVerificationSubject",properties.EmailVerificationSubject!=null?cfn_parse().FromCloudFormation.getString(properties.EmailVerificationSubject):void 0),ret.addPropertyResult("enabledMfas","EnabledMfas",properties.EnabledMfas!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EnabledMfas):void 0),ret.addPropertyResult("lambdaConfig","LambdaConfig",properties.LambdaConfig!=null?CfnUserPoolLambdaConfigPropertyFromCloudFormation(properties.LambdaConfig):void 0),ret.addPropertyResult("mfaConfiguration","MfaConfiguration",properties.MfaConfiguration!=null?cfn_parse().FromCloudFormation.getString(properties.MfaConfiguration):void 0),ret.addPropertyResult("policies","Policies",properties.Policies!=null?CfnUserPoolPoliciesPropertyFromCloudFormation(properties.Policies):void 0),ret.addPropertyResult("schema","Schema",properties.Schema!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolSchemaAttributePropertyFromCloudFormation)(properties.Schema):void 0),ret.addPropertyResult("smsAuthenticationMessage","SmsAuthenticationMessage",properties.SmsAuthenticationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SmsAuthenticationMessage):void 0),ret.addPropertyResult("smsConfiguration","SmsConfiguration",properties.SmsConfiguration!=null?CfnUserPoolSmsConfigurationPropertyFromCloudFormation(properties.SmsConfiguration):void 0),ret.addPropertyResult("smsVerificationMessage","SmsVerificationMessage",properties.SmsVerificationMessage!=null?cfn_parse().FromCloudFormation.getString(properties.SmsVerificationMessage):void 0),ret.addPropertyResult("userAttributeUpdateSettings","UserAttributeUpdateSettings",properties.UserAttributeUpdateSettings!=null?CfnUserPoolUserAttributeUpdateSettingsPropertyFromCloudFormation(properties.UserAttributeUpdateSettings):void 0),ret.addPropertyResult("usernameAttributes","UsernameAttributes",properties.UsernameAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.UsernameAttributes):void 0),ret.addPropertyResult("usernameConfiguration","UsernameConfiguration",properties.UsernameConfiguration!=null?CfnUserPoolUsernameConfigurationPropertyFromCloudFormation(properties.UsernameConfiguration):void 0),ret.addPropertyResult("userPoolAddOns","UserPoolAddOns",properties.UserPoolAddOns!=null?CfnUserPoolUserPoolAddOnsPropertyFromCloudFormation(properties.UserPoolAddOns):void 0),ret.addPropertyResult("userPoolName","UserPoolName",properties.UserPoolName!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolName):void 0),ret.addPropertyResult("userPoolTags","UserPoolTags",properties.UserPoolTags!=null?cfn_parse().FromCloudFormation.getAny(properties.UserPoolTags):void 0),ret.addPropertyResult("userPoolTier","UserPoolTier",properties.UserPoolTier!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolTier):void 0),ret.addPropertyResult("verificationMessageTemplate","VerificationMessageTemplate",properties.VerificationMessageTemplate!=null?CfnUserPoolVerificationMessageTemplatePropertyFromCloudFormation(properties.VerificationMessageTemplate):void 0),ret.addPropertyResult("webAuthnRelyingPartyId","WebAuthnRelyingPartyID",properties.WebAuthnRelyingPartyID!=null?cfn_parse().FromCloudFormation.getString(properties.WebAuthnRelyingPartyID):void 0),ret.addPropertyResult("webAuthnUserVerification","WebAuthnUserVerification",properties.WebAuthnUserVerification!=null?cfn_parse().FromCloudFormation.getString(properties.WebAuthnUserVerification):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolClient extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolClient",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolClient";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolClientPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolClient(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolClient(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolClient.CFN_RESOURCE_TYPE_NAME}attrClientId;attrClientSecret;attrName;accessTokenValidity;allowedOAuthFlows;allowedOAuthFlowsUserPoolClient;allowedOAuthScopes;analyticsConfiguration;authSessionValidity;callbackUrLs;clientName;defaultRedirectUri;enablePropagateAdditionalUserContextData;enableTokenRevocation;explicitAuthFlows;generateSecret;idTokenValidity;logoutUrLs;preventUserExistenceErrors;readAttributes;refreshTokenRotation;refreshTokenValidity;supportedIdentityProviders;tokenValidityUnits;userPoolId;writeAttributes;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolClient.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolClientProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolClient),error}cdk().requireProperty(props,"userPoolId",this),this.attrClientId=cdk().Token.asString(this.getAtt("ClientId",cdk().ResolutionTypeHint.STRING)),this.attrClientSecret=cdk().Token.asString(this.getAtt("ClientSecret",cdk().ResolutionTypeHint.STRING)),this.attrName=cdk().Token.asString(this.getAtt("Name",cdk().ResolutionTypeHint.STRING)),this.accessTokenValidity=props.accessTokenValidity,this.allowedOAuthFlows=props.allowedOAuthFlows,this.allowedOAuthFlowsUserPoolClient=props.allowedOAuthFlowsUserPoolClient,this.allowedOAuthScopes=props.allowedOAuthScopes,this.analyticsConfiguration=props.analyticsConfiguration,this.authSessionValidity=props.authSessionValidity,this.callbackUrLs=props.callbackUrLs,this.clientName=props.clientName,this.defaultRedirectUri=props.defaultRedirectUri,this.enablePropagateAdditionalUserContextData=props.enablePropagateAdditionalUserContextData,this.enableTokenRevocation=props.enableTokenRevocation,this.explicitAuthFlows=props.explicitAuthFlows,this.generateSecret=props.generateSecret,this.idTokenValidity=props.idTokenValidity,this.logoutUrLs=props.logoutUrLs,this.preventUserExistenceErrors=props.preventUserExistenceErrors,this.readAttributes=props.readAttributes,this.refreshTokenRotation=props.refreshTokenRotation,this.refreshTokenValidity=props.refreshTokenValidity,this.supportedIdentityProviders=props.supportedIdentityProviders,this.tokenValidityUnits=props.tokenValidityUnits,this.userPoolId=props.userPoolId?.userPoolRef?.userPoolId??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string"),this.writeAttributes=props.writeAttributes}get userPoolClientRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),clientId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{accessTokenValidity:this.accessTokenValidity,allowedOAuthFlows:this.allowedOAuthFlows,allowedOAuthFlowsUserPoolClient:this.allowedOAuthFlowsUserPoolClient,allowedOAuthScopes:this.allowedOAuthScopes,analyticsConfiguration:this.analyticsConfiguration,authSessionValidity:this.authSessionValidity,callbackUrLs:this.callbackUrLs,clientName:this.clientName,defaultRedirectUri:this.defaultRedirectUri,enablePropagateAdditionalUserContextData:this.enablePropagateAdditionalUserContextData,enableTokenRevocation:this.enableTokenRevocation,explicitAuthFlows:this.explicitAuthFlows,generateSecret:this.generateSecret,idTokenValidity:this.idTokenValidity,logoutUrLs:this.logoutUrLs,preventUserExistenceErrors:this.preventUserExistenceErrors,readAttributes:this.readAttributes,refreshTokenRotation:this.refreshTokenRotation,refreshTokenValidity:this.refreshTokenValidity,supportedIdentityProviders:this.supportedIdentityProviders,tokenValidityUnits:this.tokenValidityUnits,userPoolId:this.userPoolId,writeAttributes:this.writeAttributes}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolClient.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolClientPropsToCloudFormation(props)}}exports.CfnUserPoolClient=CfnUserPoolClient;function CfnUserPoolClientAnalyticsConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("applicationArn",cdk().validateString)(properties.applicationArn)),errors.collect(cdk().propertyValidator("applicationId",cdk().validateString)(properties.applicationId)),errors.collect(cdk().propertyValidator("externalId",cdk().validateString)(properties.externalId)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("userDataShared",cdk().validateBoolean)(properties.userDataShared)),errors.wrap('supplied properties not correct for "AnalyticsConfigurationProperty"')}function convertCfnUserPoolClientAnalyticsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientAnalyticsConfigurationPropertyValidator(properties).assertSuccess(),{ApplicationArn:cdk().stringToCloudFormation(properties.applicationArn),ApplicationId:cdk().stringToCloudFormation(properties.applicationId),ExternalId:cdk().stringToCloudFormation(properties.externalId),RoleArn:cdk().stringToCloudFormation(properties.roleArn),UserDataShared:cdk().booleanToCloudFormation(properties.userDataShared)}):properties}function CfnUserPoolClientAnalyticsConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("applicationArn","ApplicationArn",properties.ApplicationArn!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationArn):void 0),ret.addPropertyResult("applicationId","ApplicationId",properties.ApplicationId!=null?cfn_parse().FromCloudFormation.getString(properties.ApplicationId):void 0),ret.addPropertyResult("externalId","ExternalId",properties.ExternalId!=null?cfn_parse().FromCloudFormation.getString(properties.ExternalId):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("userDataShared","UserDataShared",properties.UserDataShared!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UserDataShared):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolClientTokenValidityUnitsPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("accessToken",cdk().validateString)(properties.accessToken)),errors.collect(cdk().propertyValidator("idToken",cdk().validateString)(properties.idToken)),errors.collect(cdk().propertyValidator("refreshToken",cdk().validateString)(properties.refreshToken)),errors.wrap('supplied properties not correct for "TokenValidityUnitsProperty"')}function convertCfnUserPoolClientTokenValidityUnitsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientTokenValidityUnitsPropertyValidator(properties).assertSuccess(),{AccessToken:cdk().stringToCloudFormation(properties.accessToken),IdToken:cdk().stringToCloudFormation(properties.idToken),RefreshToken:cdk().stringToCloudFormation(properties.refreshToken)}):properties}function CfnUserPoolClientTokenValidityUnitsPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("accessToken","AccessToken",properties.AccessToken!=null?cfn_parse().FromCloudFormation.getString(properties.AccessToken):void 0),ret.addPropertyResult("idToken","IdToken",properties.IdToken!=null?cfn_parse().FromCloudFormation.getString(properties.IdToken):void 0),ret.addPropertyResult("refreshToken","RefreshToken",properties.RefreshToken!=null?cfn_parse().FromCloudFormation.getString(properties.RefreshToken):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolClientRefreshTokenRotationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("feature",cdk().validateString)(properties.feature)),errors.collect(cdk().propertyValidator("retryGracePeriodSeconds",cdk().validateNumber)(properties.retryGracePeriodSeconds)),errors.wrap('supplied properties not correct for "RefreshTokenRotationProperty"')}function convertCfnUserPoolClientRefreshTokenRotationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientRefreshTokenRotationPropertyValidator(properties).assertSuccess(),{Feature:cdk().stringToCloudFormation(properties.feature),RetryGracePeriodSeconds:cdk().numberToCloudFormation(properties.retryGracePeriodSeconds)}):properties}function CfnUserPoolClientRefreshTokenRotationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("feature","Feature",properties.Feature!=null?cfn_parse().FromCloudFormation.getString(properties.Feature):void 0),ret.addPropertyResult("retryGracePeriodSeconds","RetryGracePeriodSeconds",properties.RetryGracePeriodSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.RetryGracePeriodSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolClientPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("accessTokenValidity",cdk().validateNumber)(properties.accessTokenValidity)),errors.collect(cdk().propertyValidator("allowedOAuthFlows",cdk().listValidator(cdk().validateString))(properties.allowedOAuthFlows)),errors.collect(cdk().propertyValidator("allowedOAuthFlowsUserPoolClient",cdk().validateBoolean)(properties.allowedOAuthFlowsUserPoolClient)),errors.collect(cdk().propertyValidator("allowedOAuthScopes",cdk().listValidator(cdk().validateString))(properties.allowedOAuthScopes)),errors.collect(cdk().propertyValidator("analyticsConfiguration",CfnUserPoolClientAnalyticsConfigurationPropertyValidator)(properties.analyticsConfiguration)),errors.collect(cdk().propertyValidator("authSessionValidity",cdk().validateNumber)(properties.authSessionValidity)),errors.collect(cdk().propertyValidator("callbackUrLs",cdk().listValidator(cdk().validateString))(properties.callbackUrLs)),errors.collect(cdk().propertyValidator("clientName",cdk().validateString)(properties.clientName)),errors.collect(cdk().propertyValidator("defaultRedirectUri",cdk().validateString)(properties.defaultRedirectUri)),errors.collect(cdk().propertyValidator("enablePropagateAdditionalUserContextData",cdk().validateBoolean)(properties.enablePropagateAdditionalUserContextData)),errors.collect(cdk().propertyValidator("enableTokenRevocation",cdk().validateBoolean)(properties.enableTokenRevocation)),errors.collect(cdk().propertyValidator("explicitAuthFlows",cdk().listValidator(cdk().validateString))(properties.explicitAuthFlows)),errors.collect(cdk().propertyValidator("generateSecret",cdk().validateBoolean)(properties.generateSecret)),errors.collect(cdk().propertyValidator("idTokenValidity",cdk().validateNumber)(properties.idTokenValidity)),errors.collect(cdk().propertyValidator("logoutUrLs",cdk().listValidator(cdk().validateString))(properties.logoutUrLs)),errors.collect(cdk().propertyValidator("preventUserExistenceErrors",cdk().validateString)(properties.preventUserExistenceErrors)),errors.collect(cdk().propertyValidator("readAttributes",cdk().listValidator(cdk().validateString))(properties.readAttributes)),errors.collect(cdk().propertyValidator("refreshTokenRotation",CfnUserPoolClientRefreshTokenRotationPropertyValidator)(properties.refreshTokenRotation)),errors.collect(cdk().propertyValidator("refreshTokenValidity",cdk().validateNumber)(properties.refreshTokenValidity)),errors.collect(cdk().propertyValidator("supportedIdentityProviders",cdk().listValidator(cdk().validateString))(properties.supportedIdentityProviders)),errors.collect(cdk().propertyValidator("tokenValidityUnits",CfnUserPoolClientTokenValidityUnitsPropertyValidator)(properties.tokenValidityUnits)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.collect(cdk().propertyValidator("writeAttributes",cdk().listValidator(cdk().validateString))(properties.writeAttributes)),errors.wrap('supplied properties not correct for "CfnUserPoolClientProps"')}function convertCfnUserPoolClientPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolClientPropsValidator(properties).assertSuccess(),{AccessTokenValidity:cdk().numberToCloudFormation(properties.accessTokenValidity),AllowedOAuthFlows:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedOAuthFlows),AllowedOAuthFlowsUserPoolClient:cdk().booleanToCloudFormation(properties.allowedOAuthFlowsUserPoolClient),AllowedOAuthScopes:cdk().listMapper(cdk().stringToCloudFormation)(properties.allowedOAuthScopes),AnalyticsConfiguration:convertCfnUserPoolClientAnalyticsConfigurationPropertyToCloudFormation(properties.analyticsConfiguration),AuthSessionValidity:cdk().numberToCloudFormation(properties.authSessionValidity),CallbackURLs:cdk().listMapper(cdk().stringToCloudFormation)(properties.callbackUrLs),ClientName:cdk().stringToCloudFormation(properties.clientName),DefaultRedirectURI:cdk().stringToCloudFormation(properties.defaultRedirectUri),EnablePropagateAdditionalUserContextData:cdk().booleanToCloudFormation(properties.enablePropagateAdditionalUserContextData),EnableTokenRevocation:cdk().booleanToCloudFormation(properties.enableTokenRevocation),ExplicitAuthFlows:cdk().listMapper(cdk().stringToCloudFormation)(properties.explicitAuthFlows),GenerateSecret:cdk().booleanToCloudFormation(properties.generateSecret),IdTokenValidity:cdk().numberToCloudFormation(properties.idTokenValidity),LogoutURLs:cdk().listMapper(cdk().stringToCloudFormation)(properties.logoutUrLs),PreventUserExistenceErrors:cdk().stringToCloudFormation(properties.preventUserExistenceErrors),ReadAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.readAttributes),RefreshTokenRotation:convertCfnUserPoolClientRefreshTokenRotationPropertyToCloudFormation(properties.refreshTokenRotation),RefreshTokenValidity:cdk().numberToCloudFormation(properties.refreshTokenValidity),SupportedIdentityProviders:cdk().listMapper(cdk().stringToCloudFormation)(properties.supportedIdentityProviders),TokenValidityUnits:convertCfnUserPoolClientTokenValidityUnitsPropertyToCloudFormation(properties.tokenValidityUnits),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId),WriteAttributes:cdk().listMapper(cdk().stringToCloudFormation)(properties.writeAttributes)}):properties}function CfnUserPoolClientPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("accessTokenValidity","AccessTokenValidity",properties.AccessTokenValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.AccessTokenValidity):void 0),ret.addPropertyResult("allowedOAuthFlows","AllowedOAuthFlows",properties.AllowedOAuthFlows!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedOAuthFlows):void 0),ret.addPropertyResult("allowedOAuthFlowsUserPoolClient","AllowedOAuthFlowsUserPoolClient",properties.AllowedOAuthFlowsUserPoolClient!=null?cfn_parse().FromCloudFormation.getBoolean(properties.AllowedOAuthFlowsUserPoolClient):void 0),ret.addPropertyResult("allowedOAuthScopes","AllowedOAuthScopes",properties.AllowedOAuthScopes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.AllowedOAuthScopes):void 0),ret.addPropertyResult("analyticsConfiguration","AnalyticsConfiguration",properties.AnalyticsConfiguration!=null?CfnUserPoolClientAnalyticsConfigurationPropertyFromCloudFormation(properties.AnalyticsConfiguration):void 0),ret.addPropertyResult("authSessionValidity","AuthSessionValidity",properties.AuthSessionValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.AuthSessionValidity):void 0),ret.addPropertyResult("callbackUrLs","CallbackURLs",properties.CallbackURLs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.CallbackURLs):void 0),ret.addPropertyResult("clientName","ClientName",properties.ClientName!=null?cfn_parse().FromCloudFormation.getString(properties.ClientName):void 0),ret.addPropertyResult("defaultRedirectUri","DefaultRedirectURI",properties.DefaultRedirectURI!=null?cfn_parse().FromCloudFormation.getString(properties.DefaultRedirectURI):void 0),ret.addPropertyResult("enablePropagateAdditionalUserContextData","EnablePropagateAdditionalUserContextData",properties.EnablePropagateAdditionalUserContextData!=null?cfn_parse().FromCloudFormation.getBoolean(properties.EnablePropagateAdditionalUserContextData):void 0),ret.addPropertyResult("enableTokenRevocation","EnableTokenRevocation",properties.EnableTokenRevocation!=null?cfn_parse().FromCloudFormation.getBoolean(properties.EnableTokenRevocation):void 0),ret.addPropertyResult("explicitAuthFlows","ExplicitAuthFlows",properties.ExplicitAuthFlows!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ExplicitAuthFlows):void 0),ret.addPropertyResult("generateSecret","GenerateSecret",properties.GenerateSecret!=null?cfn_parse().FromCloudFormation.getBoolean(properties.GenerateSecret):void 0),ret.addPropertyResult("idTokenValidity","IdTokenValidity",properties.IdTokenValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.IdTokenValidity):void 0),ret.addPropertyResult("logoutUrLs","LogoutURLs",properties.LogoutURLs!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.LogoutURLs):void 0),ret.addPropertyResult("preventUserExistenceErrors","PreventUserExistenceErrors",properties.PreventUserExistenceErrors!=null?cfn_parse().FromCloudFormation.getString(properties.PreventUserExistenceErrors):void 0),ret.addPropertyResult("readAttributes","ReadAttributes",properties.ReadAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.ReadAttributes):void 0),ret.addPropertyResult("refreshTokenRotation","RefreshTokenRotation",properties.RefreshTokenRotation!=null?CfnUserPoolClientRefreshTokenRotationPropertyFromCloudFormation(properties.RefreshTokenRotation):void 0),ret.addPropertyResult("refreshTokenValidity","RefreshTokenValidity",properties.RefreshTokenValidity!=null?cfn_parse().FromCloudFormation.getNumber(properties.RefreshTokenValidity):void 0),ret.addPropertyResult("supportedIdentityProviders","SupportedIdentityProviders",properties.SupportedIdentityProviders!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SupportedIdentityProviders):void 0),ret.addPropertyResult("tokenValidityUnits","TokenValidityUnits",properties.TokenValidityUnits!=null?CfnUserPoolClientTokenValidityUnitsPropertyFromCloudFormation(properties.TokenValidityUnits):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addPropertyResult("writeAttributes","WriteAttributes",properties.WriteAttributes!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.WriteAttributes):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolDomain extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolDomain",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolDomain";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolDomainPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolDomain(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolDomain(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolDomain.CFN_RESOURCE_TYPE_NAME}attrCloudFrontDistribution;customDomainConfig;domain;managedLoginVersion;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolDomain.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolDomainProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolDomain),error}cdk().requireProperty(props,"domain",this),cdk().requireProperty(props,"userPoolId",this),this.attrCloudFrontDistribution=cdk().Token.asString(this.getAtt("CloudFrontDistribution",cdk().ResolutionTypeHint.STRING)),this.customDomainConfig=props.customDomainConfig,this.domain=props.domain,this.managedLoginVersion=props.managedLoginVersion,this.userPoolId=props.userPoolId}get userPoolDomainRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),domain:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{customDomainConfig:this.customDomainConfig,domain:this.domain,managedLoginVersion:this.managedLoginVersion,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolDomain.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolDomainPropsToCloudFormation(props)}}exports.CfnUserPoolDomain=CfnUserPoolDomain;function CfnUserPoolDomainCustomDomainConfigTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("certificateArn",cdk().validateString)(properties.certificateArn)),errors.wrap('supplied properties not correct for "CustomDomainConfigTypeProperty"')}function convertCfnUserPoolDomainCustomDomainConfigTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolDomainCustomDomainConfigTypePropertyValidator(properties).assertSuccess(),{CertificateArn:cdk().stringToCloudFormation(properties.certificateArn)}):properties}function CfnUserPoolDomainCustomDomainConfigTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("certificateArn","CertificateArn",properties.CertificateArn!=null?cfn_parse().FromCloudFormation.getString(properties.CertificateArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolDomainPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("customDomainConfig",CfnUserPoolDomainCustomDomainConfigTypePropertyValidator)(properties.customDomainConfig)),errors.collect(cdk().propertyValidator("domain",cdk().requiredValidator)(properties.domain)),errors.collect(cdk().propertyValidator("domain",cdk().validateString)(properties.domain)),errors.collect(cdk().propertyValidator("managedLoginVersion",cdk().validateNumber)(properties.managedLoginVersion)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolDomainProps"')}function convertCfnUserPoolDomainPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolDomainPropsValidator(properties).assertSuccess(),{CustomDomainConfig:convertCfnUserPoolDomainCustomDomainConfigTypePropertyToCloudFormation(properties.customDomainConfig),Domain:cdk().stringToCloudFormation(properties.domain),ManagedLoginVersion:cdk().numberToCloudFormation(properties.managedLoginVersion),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolDomainPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("customDomainConfig","CustomDomainConfig",properties.CustomDomainConfig!=null?CfnUserPoolDomainCustomDomainConfigTypePropertyFromCloudFormation(properties.CustomDomainConfig):void 0),ret.addPropertyResult("domain","Domain",properties.Domain!=null?cfn_parse().FromCloudFormation.getString(properties.Domain):void 0),ret.addPropertyResult("managedLoginVersion","ManagedLoginVersion",properties.ManagedLoginVersion!=null?cfn_parse().FromCloudFormation.getNumber(properties.ManagedLoginVersion):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolGroup extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolGroup",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolGroup";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolGroupPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolGroup(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolGroup(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolGroup.CFN_RESOURCE_TYPE_NAME}description;groupName;precedence;roleArn;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolGroup.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolGroupProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolGroup),error}cdk().requireProperty(props,"userPoolId",this),this.description=props.description,this.groupName=props.groupName,this.precedence=props.precedence,this.roleArn=props.roleArn?.roleRef?.roleArn??cdk().ensureStringOrUndefined(props.roleArn,"roleArn","iam.IRoleRef | string"),this.userPoolId=props.userPoolId?.userPoolRef?.userPoolId??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolGroupRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),groupName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{description:this.description,groupName:this.groupName,precedence:this.precedence,roleArn:this.roleArn,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolGroup.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolGroupPropsToCloudFormation(props)}}exports.CfnUserPoolGroup=CfnUserPoolGroup;function CfnUserPoolGroupPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("groupName",cdk().validateString)(properties.groupName)),errors.collect(cdk().propertyValidator("precedence",cdk().validateNumber)(properties.precedence)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolGroupProps"')}function convertCfnUserPoolGroupPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolGroupPropsValidator(properties).assertSuccess(),{Description:cdk().stringToCloudFormation(properties.description),GroupName:cdk().stringToCloudFormation(properties.groupName),Precedence:cdk().numberToCloudFormation(properties.precedence),RoleArn:cdk().stringToCloudFormation(properties.roleArn),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolGroupPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("groupName","GroupName",properties.GroupName!=null?cfn_parse().FromCloudFormation.getString(properties.GroupName):void 0),ret.addPropertyResult("precedence","Precedence",properties.Precedence!=null?cfn_parse().FromCloudFormation.getNumber(properties.Precedence):void 0),ret.addPropertyResult("roleArn","RoleArn",properties.RoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.RoleArn):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolIdentityProvider extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolIdentityProvider",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolIdentityProvider";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolIdentityProviderPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolIdentityProvider(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolIdentityProvider(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolIdentityProvider.CFN_RESOURCE_TYPE_NAME}attributeMapping;idpIdentifiers;providerDetails;providerName;providerType;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolIdentityProvider.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolIdentityProviderProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolIdentityProvider),error}cdk().requireProperty(props,"providerDetails",this),cdk().requireProperty(props,"providerName",this),cdk().requireProperty(props,"providerType",this),cdk().requireProperty(props,"userPoolId",this),this.attributeMapping=props.attributeMapping,this.idpIdentifiers=props.idpIdentifiers,this.providerDetails=props.providerDetails,this.providerName=props.providerName,this.providerType=props.providerType,this.userPoolId=props.userPoolId}get userPoolIdentityProviderRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),providerName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{attributeMapping:this.attributeMapping,idpIdentifiers:this.idpIdentifiers,providerDetails:this.providerDetails,providerName:this.providerName,providerType:this.providerType,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolIdentityProvider.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolIdentityProviderPropsToCloudFormation(props)}}exports.CfnUserPoolIdentityProvider=CfnUserPoolIdentityProvider;function CfnUserPoolIdentityProviderPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("attributeMapping",cdk().validateObject)(properties.attributeMapping)),errors.collect(cdk().propertyValidator("idpIdentifiers",cdk().listValidator(cdk().validateString))(properties.idpIdentifiers)),errors.collect(cdk().propertyValidator("providerDetails",cdk().requiredValidator)(properties.providerDetails)),errors.collect(cdk().propertyValidator("providerDetails",cdk().validateObject)(properties.providerDetails)),errors.collect(cdk().propertyValidator("providerName",cdk().requiredValidator)(properties.providerName)),errors.collect(cdk().propertyValidator("providerName",cdk().validateString)(properties.providerName)),errors.collect(cdk().propertyValidator("providerType",cdk().requiredValidator)(properties.providerType)),errors.collect(cdk().propertyValidator("providerType",cdk().validateString)(properties.providerType)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolIdentityProviderProps"')}function convertCfnUserPoolIdentityProviderPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolIdentityProviderPropsValidator(properties).assertSuccess(),{AttributeMapping:cdk().objectToCloudFormation(properties.attributeMapping),IdpIdentifiers:cdk().listMapper(cdk().stringToCloudFormation)(properties.idpIdentifiers),ProviderDetails:cdk().objectToCloudFormation(properties.providerDetails),ProviderName:cdk().stringToCloudFormation(properties.providerName),ProviderType:cdk().stringToCloudFormation(properties.providerType),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolIdentityProviderPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("attributeMapping","AttributeMapping",properties.AttributeMapping!=null?cfn_parse().FromCloudFormation.getAny(properties.AttributeMapping):void 0),ret.addPropertyResult("idpIdentifiers","IdpIdentifiers",properties.IdpIdentifiers!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.IdpIdentifiers):void 0),ret.addPropertyResult("providerDetails","ProviderDetails",properties.ProviderDetails!=null?cfn_parse().FromCloudFormation.getAny(properties.ProviderDetails):void 0),ret.addPropertyResult("providerName","ProviderName",properties.ProviderName!=null?cfn_parse().FromCloudFormation.getString(properties.ProviderName):void 0),ret.addPropertyResult("providerType","ProviderType",properties.ProviderType!=null?cfn_parse().FromCloudFormation.getString(properties.ProviderType):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolResourceServer extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolResourceServer",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolResourceServer";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolResourceServerPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolResourceServer(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolResourceServer(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolResourceServer.CFN_RESOURCE_TYPE_NAME}identifier;name;scopes;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolResourceServer.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolResourceServerProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolResourceServer),error}cdk().requireProperty(props,"identifier",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"userPoolId",this),this.identifier=props.identifier,this.name=props.name,this.scopes=props.scopes,this.userPoolId=props.userPoolId?.userPoolRef?.userPoolId??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolResourceServerRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),identifier:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{identifier:this.identifier,name:this.name,scopes:this.scopes,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolResourceServer.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolResourceServerPropsToCloudFormation(props)}}exports.CfnUserPoolResourceServer=CfnUserPoolResourceServer;function CfnUserPoolResourceServerResourceServerScopeTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("scopeDescription",cdk().requiredValidator)(properties.scopeDescription)),errors.collect(cdk().propertyValidator("scopeDescription",cdk().validateString)(properties.scopeDescription)),errors.collect(cdk().propertyValidator("scopeName",cdk().requiredValidator)(properties.scopeName)),errors.collect(cdk().propertyValidator("scopeName",cdk().validateString)(properties.scopeName)),errors.wrap('supplied properties not correct for "ResourceServerScopeTypeProperty"')}function convertCfnUserPoolResourceServerResourceServerScopeTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolResourceServerResourceServerScopeTypePropertyValidator(properties).assertSuccess(),{ScopeDescription:cdk().stringToCloudFormation(properties.scopeDescription),ScopeName:cdk().stringToCloudFormation(properties.scopeName)}):properties}function CfnUserPoolResourceServerResourceServerScopeTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("scopeDescription","ScopeDescription",properties.ScopeDescription!=null?cfn_parse().FromCloudFormation.getString(properties.ScopeDescription):void 0),ret.addPropertyResult("scopeName","ScopeName",properties.ScopeName!=null?cfn_parse().FromCloudFormation.getString(properties.ScopeName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolResourceServerPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("identifier",cdk().requiredValidator)(properties.identifier)),errors.collect(cdk().propertyValidator("identifier",cdk().validateString)(properties.identifier)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("scopes",cdk().listValidator(CfnUserPoolResourceServerResourceServerScopeTypePropertyValidator))(properties.scopes)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolResourceServerProps"')}function convertCfnUserPoolResourceServerPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolResourceServerPropsValidator(properties).assertSuccess(),{Identifier:cdk().stringToCloudFormation(properties.identifier),Name:cdk().stringToCloudFormation(properties.name),Scopes:cdk().listMapper(convertCfnUserPoolResourceServerResourceServerScopeTypePropertyToCloudFormation)(properties.scopes),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolResourceServerPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("identifier","Identifier",properties.Identifier!=null?cfn_parse().FromCloudFormation.getString(properties.Identifier):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("scopes","Scopes",properties.Scopes!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolResourceServerResourceServerScopeTypePropertyFromCloudFormation)(properties.Scopes):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolRiskConfigurationAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolRiskConfigurationAttachment",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolRiskConfigurationAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolRiskConfigurationAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolRiskConfigurationAttachment(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolRiskConfigurationAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolRiskConfigurationAttachment.CFN_RESOURCE_TYPE_NAME}accountTakeoverRiskConfiguration;clientId;compromisedCredentialsRiskConfiguration;riskExceptionConfiguration;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolRiskConfigurationAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolRiskConfigurationAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolRiskConfigurationAttachment),error}cdk().requireProperty(props,"clientId",this),cdk().requireProperty(props,"userPoolId",this),this.accountTakeoverRiskConfiguration=props.accountTakeoverRiskConfiguration,this.clientId=props.clientId,this.compromisedCredentialsRiskConfiguration=props.compromisedCredentialsRiskConfiguration,this.riskExceptionConfiguration=props.riskExceptionConfiguration,this.userPoolId=props.userPoolId?.userPoolRef?.userPoolId??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolRiskConfigurationAttachmentRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),clientId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{accountTakeoverRiskConfiguration:this.accountTakeoverRiskConfiguration,clientId:this.clientId,compromisedCredentialsRiskConfiguration:this.compromisedCredentialsRiskConfiguration,riskExceptionConfiguration:this.riskExceptionConfiguration,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolRiskConfigurationAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolRiskConfigurationAttachmentPropsToCloudFormation(props)}}exports.CfnUserPoolRiskConfigurationAttachment=CfnUserPoolRiskConfigurationAttachment;function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("eventAction",cdk().requiredValidator)(properties.eventAction)),errors.collect(cdk().propertyValidator("eventAction",cdk().validateString)(properties.eventAction)),errors.wrap('supplied properties not correct for "CompromisedCredentialsActionsTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyValidator(properties).assertSuccess(),{EventAction:cdk().stringToCloudFormation(properties.eventAction)}):properties}function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("eventAction","EventAction",properties.EventAction!=null?cfn_parse().FromCloudFormation.getString(properties.EventAction):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("actions",cdk().requiredValidator)(properties.actions)),errors.collect(cdk().propertyValidator("actions",CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyValidator)(properties.actions)),errors.collect(cdk().propertyValidator("eventFilter",cdk().listValidator(cdk().validateString))(properties.eventFilter)),errors.wrap('supplied properties not correct for "CompromisedCredentialsRiskConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyValidator(properties).assertSuccess(),{Actions:convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyToCloudFormation(properties.actions),EventFilter:cdk().listMapper(cdk().stringToCloudFormation)(properties.eventFilter)}):properties}function CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("actions","Actions",properties.Actions!=null?CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsActionsTypePropertyFromCloudFormation(properties.Actions):void 0),ret.addPropertyResult("eventFilter","EventFilter",properties.EventFilter!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.EventFilter):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("eventAction",cdk().requiredValidator)(properties.eventAction)),errors.collect(cdk().propertyValidator("eventAction",cdk().validateString)(properties.eventAction)),errors.collect(cdk().propertyValidator("notify",cdk().requiredValidator)(properties.notify)),errors.collect(cdk().propertyValidator("notify",cdk().validateBoolean)(properties.notify)),errors.wrap('supplied properties not correct for "AccountTakeoverActionTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator(properties).assertSuccess(),{EventAction:cdk().stringToCloudFormation(properties.eventAction),Notify:cdk().booleanToCloudFormation(properties.notify)}):properties}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("eventAction","EventAction",properties.EventAction!=null?cfn_parse().FromCloudFormation.getString(properties.EventAction):void 0),ret.addPropertyResult("notify","Notify",properties.Notify!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Notify):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("highAction",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator)(properties.highAction)),errors.collect(cdk().propertyValidator("lowAction",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator)(properties.lowAction)),errors.collect(cdk().propertyValidator("mediumAction",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyValidator)(properties.mediumAction)),errors.wrap('supplied properties not correct for "AccountTakeoverActionsTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyValidator(properties).assertSuccess(),{HighAction:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties.highAction),LowAction:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties.lowAction),MediumAction:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyToCloudFormation(properties.mediumAction)}):properties}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("highAction","HighAction",properties.HighAction!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(properties.HighAction):void 0),ret.addPropertyResult("lowAction","LowAction",properties.LowAction!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(properties.LowAction):void 0),ret.addPropertyResult("mediumAction","MediumAction",properties.MediumAction!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionTypePropertyFromCloudFormation(properties.MediumAction):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("htmlBody",cdk().validateString)(properties.htmlBody)),errors.collect(cdk().propertyValidator("subject",cdk().requiredValidator)(properties.subject)),errors.collect(cdk().propertyValidator("subject",cdk().validateString)(properties.subject)),errors.collect(cdk().propertyValidator("textBody",cdk().validateString)(properties.textBody)),errors.wrap('supplied properties not correct for "NotifyEmailTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator(properties).assertSuccess(),{HtmlBody:cdk().stringToCloudFormation(properties.htmlBody),Subject:cdk().stringToCloudFormation(properties.subject),TextBody:cdk().stringToCloudFormation(properties.textBody)}):properties}function CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("htmlBody","HtmlBody",properties.HtmlBody!=null?cfn_parse().FromCloudFormation.getString(properties.HtmlBody):void 0),ret.addPropertyResult("subject","Subject",properties.Subject!=null?cfn_parse().FromCloudFormation.getString(properties.Subject):void 0),ret.addPropertyResult("textBody","TextBody",properties.TextBody!=null?cfn_parse().FromCloudFormation.getString(properties.TextBody):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("blockEmail",CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator)(properties.blockEmail)),errors.collect(cdk().propertyValidator("from",cdk().validateString)(properties.from)),errors.collect(cdk().propertyValidator("mfaEmail",CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator)(properties.mfaEmail)),errors.collect(cdk().propertyValidator("noActionEmail",CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyValidator)(properties.noActionEmail)),errors.collect(cdk().propertyValidator("replyTo",cdk().validateString)(properties.replyTo)),errors.collect(cdk().propertyValidator("sourceArn",cdk().requiredValidator)(properties.sourceArn)),errors.collect(cdk().propertyValidator("sourceArn",cdk().validateString)(properties.sourceArn)),errors.wrap('supplied properties not correct for "NotifyConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyValidator(properties).assertSuccess(),{BlockEmail:convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties.blockEmail),From:cdk().stringToCloudFormation(properties.from),MfaEmail:convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties.mfaEmail),NoActionEmail:convertCfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyToCloudFormation(properties.noActionEmail),ReplyTo:cdk().stringToCloudFormation(properties.replyTo),SourceArn:cdk().stringToCloudFormation(properties.sourceArn)}):properties}function CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("blockEmail","BlockEmail",properties.BlockEmail!=null?CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(properties.BlockEmail):void 0),ret.addPropertyResult("from","From",properties.From!=null?cfn_parse().FromCloudFormation.getString(properties.From):void 0),ret.addPropertyResult("mfaEmail","MfaEmail",properties.MfaEmail!=null?CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(properties.MfaEmail):void 0),ret.addPropertyResult("noActionEmail","NoActionEmail",properties.NoActionEmail!=null?CfnUserPoolRiskConfigurationAttachmentNotifyEmailTypePropertyFromCloudFormation(properties.NoActionEmail):void 0),ret.addPropertyResult("replyTo","ReplyTo",properties.ReplyTo!=null?cfn_parse().FromCloudFormation.getString(properties.ReplyTo):void 0),ret.addPropertyResult("sourceArn","SourceArn",properties.SourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("actions",cdk().requiredValidator)(properties.actions)),errors.collect(cdk().propertyValidator("actions",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyValidator)(properties.actions)),errors.collect(cdk().propertyValidator("notifyConfiguration",CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyValidator)(properties.notifyConfiguration)),errors.wrap('supplied properties not correct for "AccountTakeoverRiskConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyValidator(properties).assertSuccess(),{Actions:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyToCloudFormation(properties.actions),NotifyConfiguration:convertCfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyToCloudFormation(properties.notifyConfiguration)}):properties}function CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("actions","Actions",properties.Actions!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverActionsTypePropertyFromCloudFormation(properties.Actions):void 0),ret.addPropertyResult("notifyConfiguration","NotifyConfiguration",properties.NotifyConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentNotifyConfigurationTypePropertyFromCloudFormation(properties.NotifyConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("blockedIpRangeList",cdk().listValidator(cdk().validateString))(properties.blockedIpRangeList)),errors.collect(cdk().propertyValidator("skippedIpRangeList",cdk().listValidator(cdk().validateString))(properties.skippedIpRangeList)),errors.wrap('supplied properties not correct for "RiskExceptionConfigurationTypeProperty"')}function convertCfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyValidator(properties).assertSuccess(),{BlockedIPRangeList:cdk().listMapper(cdk().stringToCloudFormation)(properties.blockedIpRangeList),SkippedIPRangeList:cdk().listMapper(cdk().stringToCloudFormation)(properties.skippedIpRangeList)}):properties}function CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("blockedIpRangeList","BlockedIPRangeList",properties.BlockedIPRangeList!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.BlockedIPRangeList):void 0),ret.addPropertyResult("skippedIpRangeList","SkippedIPRangeList",properties.SkippedIPRangeList!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.SkippedIPRangeList):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolRiskConfigurationAttachmentPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("accountTakeoverRiskConfiguration",CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyValidator)(properties.accountTakeoverRiskConfiguration)),errors.collect(cdk().propertyValidator("clientId",cdk().requiredValidator)(properties.clientId)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("compromisedCredentialsRiskConfiguration",CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyValidator)(properties.compromisedCredentialsRiskConfiguration)),errors.collect(cdk().propertyValidator("riskExceptionConfiguration",CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyValidator)(properties.riskExceptionConfiguration)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolRiskConfigurationAttachmentProps"')}function convertCfnUserPoolRiskConfigurationAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolRiskConfigurationAttachmentPropsValidator(properties).assertSuccess(),{AccountTakeoverRiskConfiguration:convertCfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyToCloudFormation(properties.accountTakeoverRiskConfiguration),ClientId:cdk().stringToCloudFormation(properties.clientId),CompromisedCredentialsRiskConfiguration:convertCfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyToCloudFormation(properties.compromisedCredentialsRiskConfiguration),RiskExceptionConfiguration:convertCfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyToCloudFormation(properties.riskExceptionConfiguration),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolRiskConfigurationAttachmentPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("accountTakeoverRiskConfiguration","AccountTakeoverRiskConfiguration",properties.AccountTakeoverRiskConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentAccountTakeoverRiskConfigurationTypePropertyFromCloudFormation(properties.AccountTakeoverRiskConfiguration):void 0),ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("compromisedCredentialsRiskConfiguration","CompromisedCredentialsRiskConfiguration",properties.CompromisedCredentialsRiskConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentCompromisedCredentialsRiskConfigurationTypePropertyFromCloudFormation(properties.CompromisedCredentialsRiskConfiguration):void 0),ret.addPropertyResult("riskExceptionConfiguration","RiskExceptionConfiguration",properties.RiskExceptionConfiguration!=null?CfnUserPoolRiskConfigurationAttachmentRiskExceptionConfigurationTypePropertyFromCloudFormation(properties.RiskExceptionConfiguration):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolUICustomizationAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolUICustomizationAttachment",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolUICustomizationAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolUICustomizationAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolUICustomizationAttachment(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolUICustomizationAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolUICustomizationAttachment.CFN_RESOURCE_TYPE_NAME}clientId;css;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolUICustomizationAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolUICustomizationAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolUICustomizationAttachment),error}cdk().requireProperty(props,"clientId",this),cdk().requireProperty(props,"userPoolId",this),this.clientId=props.clientId,this.css=props.css,this.userPoolId=props.userPoolId?.userPoolRef?.userPoolId??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolUiCustomizationAttachmentRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),clientId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{clientId:this.clientId,css:this.css,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolUICustomizationAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolUICustomizationAttachmentPropsToCloudFormation(props)}}exports.CfnUserPoolUICustomizationAttachment=CfnUserPoolUICustomizationAttachment;function CfnUserPoolUICustomizationAttachmentPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("css",cdk().validateString)(properties.css)),errors.collect(cdk().propertyValidator("clientId",cdk().requiredValidator)(properties.clientId)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnUserPoolUICustomizationAttachmentProps"')}function convertCfnUserPoolUICustomizationAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUICustomizationAttachmentPropsValidator(properties).assertSuccess(),{CSS:cdk().stringToCloudFormation(properties.css),ClientId:cdk().stringToCloudFormation(properties.clientId),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnUserPoolUICustomizationAttachmentPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("css","CSS",properties.CSS!=null?cfn_parse().FromCloudFormation.getString(properties.CSS):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolUser extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolUser",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolUser";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolUserPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolUser(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolUser(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolUser.CFN_RESOURCE_TYPE_NAME}clientMetadata;desiredDeliveryMediums;forceAliasCreation;messageAction;userAttributes;username;userPoolId;validationData;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolUser.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolUserProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolUser),error}cdk().requireProperty(props,"userPoolId",this),this.clientMetadata=props.clientMetadata,this.desiredDeliveryMediums=props.desiredDeliveryMediums,this.forceAliasCreation=props.forceAliasCreation,this.messageAction=props.messageAction,this.userAttributes=props.userAttributes,this.username=props.username,this.userPoolId=props.userPoolId?.userPoolRef?.userPoolId??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string"),this.validationData=props.validationData}get userPoolUserRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),username:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{clientMetadata:this.clientMetadata,desiredDeliveryMediums:this.desiredDeliveryMediums,forceAliasCreation:this.forceAliasCreation,messageAction:this.messageAction,userAttributes:this.userAttributes,username:this.username,userPoolId:this.userPoolId,validationData:this.validationData}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolUser.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolUserPropsToCloudFormation(props)}}exports.CfnUserPoolUser=CfnUserPoolUser;function CfnUserPoolUserAttributeTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("value",cdk().validateString)(properties.value)),errors.wrap('supplied properties not correct for "AttributeTypeProperty"')}function convertCfnUserPoolUserAttributeTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserAttributeTypePropertyValidator(properties).assertSuccess(),{Name:cdk().stringToCloudFormation(properties.name),Value:cdk().stringToCloudFormation(properties.value)}):properties}function CfnUserPoolUserAttributeTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("value","Value",properties.Value!=null?cfn_parse().FromCloudFormation.getString(properties.Value):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnUserPoolUserPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("clientMetadata",cdk().hashValidator(cdk().validateString))(properties.clientMetadata)),errors.collect(cdk().propertyValidator("desiredDeliveryMediums",cdk().listValidator(cdk().validateString))(properties.desiredDeliveryMediums)),errors.collect(cdk().propertyValidator("forceAliasCreation",cdk().validateBoolean)(properties.forceAliasCreation)),errors.collect(cdk().propertyValidator("messageAction",cdk().validateString)(properties.messageAction)),errors.collect(cdk().propertyValidator("userAttributes",cdk().listValidator(CfnUserPoolUserAttributeTypePropertyValidator))(properties.userAttributes)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.collect(cdk().propertyValidator("username",cdk().validateString)(properties.username)),errors.collect(cdk().propertyValidator("validationData",cdk().listValidator(CfnUserPoolUserAttributeTypePropertyValidator))(properties.validationData)),errors.wrap('supplied properties not correct for "CfnUserPoolUserProps"')}function convertCfnUserPoolUserPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserPropsValidator(properties).assertSuccess(),{ClientMetadata:cdk().hashMapper(cdk().stringToCloudFormation)(properties.clientMetadata),DesiredDeliveryMediums:cdk().listMapper(cdk().stringToCloudFormation)(properties.desiredDeliveryMediums),ForceAliasCreation:cdk().booleanToCloudFormation(properties.forceAliasCreation),MessageAction:cdk().stringToCloudFormation(properties.messageAction),UserAttributes:cdk().listMapper(convertCfnUserPoolUserAttributeTypePropertyToCloudFormation)(properties.userAttributes),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId),Username:cdk().stringToCloudFormation(properties.username),ValidationData:cdk().listMapper(convertCfnUserPoolUserAttributeTypePropertyToCloudFormation)(properties.validationData)}):properties}function CfnUserPoolUserPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("clientMetadata","ClientMetadata",properties.ClientMetadata!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.ClientMetadata):void 0),ret.addPropertyResult("desiredDeliveryMediums","DesiredDeliveryMediums",properties.DesiredDeliveryMediums!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.DesiredDeliveryMediums):void 0),ret.addPropertyResult("forceAliasCreation","ForceAliasCreation",properties.ForceAliasCreation!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ForceAliasCreation):void 0),ret.addPropertyResult("messageAction","MessageAction",properties.MessageAction!=null?cfn_parse().FromCloudFormation.getString(properties.MessageAction):void 0),ret.addPropertyResult("userAttributes","UserAttributes",properties.UserAttributes!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolUserAttributeTypePropertyFromCloudFormation)(properties.UserAttributes):void 0),ret.addPropertyResult("username","Username",properties.Username!=null?cfn_parse().FromCloudFormation.getString(properties.Username):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addPropertyResult("validationData","ValidationData",properties.ValidationData!=null?cfn_parse().FromCloudFormation.getArray(CfnUserPoolUserAttributeTypePropertyFromCloudFormation)(properties.ValidationData):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnUserPoolUserToGroupAttachment extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnUserPoolUserToGroupAttachment",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::UserPoolUserToGroupAttachment";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnUserPoolUserToGroupAttachmentPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnUserPoolUserToGroupAttachment(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnUserPoolUserToGroupAttachment(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnUserPoolUserToGroupAttachment.CFN_RESOURCE_TYPE_NAME}groupName;username;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnUserPoolUserToGroupAttachment.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnUserPoolUserToGroupAttachmentProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnUserPoolUserToGroupAttachment),error}cdk().requireProperty(props,"groupName",this),cdk().requireProperty(props,"username",this),cdk().requireProperty(props,"userPoolId",this),this.groupName=props.groupName?.userPoolGroupRef?.groupName??cdk().ensureStringOrUndefined(props.groupName,"groupName","cognito.IUserPoolGroupRef | string"),this.username=props.username?.userPoolUserRef?.username??cdk().ensureStringOrUndefined(props.username,"username","cognito.IUserPoolUserRef | string"),this.userPoolId=props.userPoolId?.userPoolRef?.userPoolId??cdk().ensureStringOrUndefined(props.userPoolId,"userPoolId","cognito.IUserPoolRef | string")}get userPoolUserToGroupAttachmentRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),groupName:cdk().Fn.select(1,cdk().Fn.split("|",this.ref)),username:cdk().Fn.select(2,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{groupName:this.groupName,username:this.username,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnUserPoolUserToGroupAttachment.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnUserPoolUserToGroupAttachmentPropsToCloudFormation(props)}}exports.CfnUserPoolUserToGroupAttachment=CfnUserPoolUserToGroupAttachment;function CfnUserPoolUserToGroupAttachmentPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("groupName",cdk().requiredValidator)(properties.groupName)),errors.collect(cdk().propertyValidator("groupName",cdk().validateString)(properties.groupName)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.collect(cdk().propertyValidator("username",cdk().requiredValidator)(properties.username)),errors.collect(cdk().propertyValidator("username",cdk().validateString)(properties.username)),errors.wrap('supplied properties not correct for "CfnUserPoolUserToGroupAttachmentProps"')}function convertCfnUserPoolUserToGroupAttachmentPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnUserPoolUserToGroupAttachmentPropsValidator(properties).assertSuccess(),{GroupName:cdk().stringToCloudFormation(properties.groupName),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId),Username:cdk().stringToCloudFormation(properties.username)}):properties}function CfnUserPoolUserToGroupAttachmentPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("groupName","GroupName",properties.GroupName!=null?cfn_parse().FromCloudFormation.getString(properties.GroupName):void 0),ret.addPropertyResult("username","Username",properties.Username!=null?cfn_parse().FromCloudFormation.getString(properties.Username):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnLogDeliveryConfiguration extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnLogDeliveryConfiguration",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::LogDeliveryConfiguration";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnLogDeliveryConfigurationPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnLogDeliveryConfiguration(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnLogDeliveryConfiguration(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnLogDeliveryConfiguration.CFN_RESOURCE_TYPE_NAME}attrId;logConfigurations;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnLogDeliveryConfiguration.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnLogDeliveryConfigurationProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnLogDeliveryConfiguration),error}cdk().requireProperty(props,"userPoolId",this),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.logConfigurations=props.logConfigurations,this.userPoolId=props.userPoolId}get logDeliveryConfigurationRef(){return{logDeliveryConfigurationId:this.ref}}get cfnProperties(){return{logConfigurations:this.logConfigurations,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnLogDeliveryConfiguration.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnLogDeliveryConfigurationPropsToCloudFormation(props)}}exports.CfnLogDeliveryConfiguration=CfnLogDeliveryConfiguration;function CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("logGroupArn",cdk().validateString)(properties.logGroupArn)),errors.wrap('supplied properties not correct for "CloudWatchLogsConfigurationProperty"')}function convertCfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyValidator(properties).assertSuccess(),{LogGroupArn:cdk().stringToCloudFormation(properties.logGroupArn)}):properties}function CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("logGroupArn","LogGroupArn",properties.LogGroupArn!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroupArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationS3ConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("bucketArn",cdk().validateString)(properties.bucketArn)),errors.wrap('supplied properties not correct for "S3ConfigurationProperty"')}function convertCfnLogDeliveryConfigurationS3ConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationS3ConfigurationPropertyValidator(properties).assertSuccess(),{BucketArn:cdk().stringToCloudFormation(properties.bucketArn)}):properties}function CfnLogDeliveryConfigurationS3ConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("bucketArn","BucketArn",properties.BucketArn!=null?cfn_parse().FromCloudFormation.getString(properties.BucketArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationFirehoseConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("streamArn",cdk().validateString)(properties.streamArn)),errors.wrap('supplied properties not correct for "FirehoseConfigurationProperty"')}function convertCfnLogDeliveryConfigurationFirehoseConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationFirehoseConfigurationPropertyValidator(properties).assertSuccess(),{StreamArn:cdk().stringToCloudFormation(properties.streamArn)}):properties}function CfnLogDeliveryConfigurationFirehoseConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("streamArn","StreamArn",properties.StreamArn!=null?cfn_parse().FromCloudFormation.getString(properties.StreamArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationLogConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("cloudWatchLogsConfiguration",CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyValidator)(properties.cloudWatchLogsConfiguration)),errors.collect(cdk().propertyValidator("eventSource",cdk().validateString)(properties.eventSource)),errors.collect(cdk().propertyValidator("firehoseConfiguration",CfnLogDeliveryConfigurationFirehoseConfigurationPropertyValidator)(properties.firehoseConfiguration)),errors.collect(cdk().propertyValidator("logLevel",cdk().validateString)(properties.logLevel)),errors.collect(cdk().propertyValidator("s3Configuration",CfnLogDeliveryConfigurationS3ConfigurationPropertyValidator)(properties.s3Configuration)),errors.wrap('supplied properties not correct for "LogConfigurationProperty"')}function convertCfnLogDeliveryConfigurationLogConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationLogConfigurationPropertyValidator(properties).assertSuccess(),{CloudWatchLogsConfiguration:convertCfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyToCloudFormation(properties.cloudWatchLogsConfiguration),EventSource:cdk().stringToCloudFormation(properties.eventSource),FirehoseConfiguration:convertCfnLogDeliveryConfigurationFirehoseConfigurationPropertyToCloudFormation(properties.firehoseConfiguration),LogLevel:cdk().stringToCloudFormation(properties.logLevel),S3Configuration:convertCfnLogDeliveryConfigurationS3ConfigurationPropertyToCloudFormation(properties.s3Configuration)}):properties}function CfnLogDeliveryConfigurationLogConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("cloudWatchLogsConfiguration","CloudWatchLogsConfiguration",properties.CloudWatchLogsConfiguration!=null?CfnLogDeliveryConfigurationCloudWatchLogsConfigurationPropertyFromCloudFormation(properties.CloudWatchLogsConfiguration):void 0),ret.addPropertyResult("eventSource","EventSource",properties.EventSource!=null?cfn_parse().FromCloudFormation.getString(properties.EventSource):void 0),ret.addPropertyResult("firehoseConfiguration","FirehoseConfiguration",properties.FirehoseConfiguration!=null?CfnLogDeliveryConfigurationFirehoseConfigurationPropertyFromCloudFormation(properties.FirehoseConfiguration):void 0),ret.addPropertyResult("logLevel","LogLevel",properties.LogLevel!=null?cfn_parse().FromCloudFormation.getString(properties.LogLevel):void 0),ret.addPropertyResult("s3Configuration","S3Configuration",properties.S3Configuration!=null?CfnLogDeliveryConfigurationS3ConfigurationPropertyFromCloudFormation(properties.S3Configuration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnLogDeliveryConfigurationPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("logConfigurations",cdk().listValidator(CfnLogDeliveryConfigurationLogConfigurationPropertyValidator))(properties.logConfigurations)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnLogDeliveryConfigurationProps"')}function convertCfnLogDeliveryConfigurationPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnLogDeliveryConfigurationPropsValidator(properties).assertSuccess(),{LogConfigurations:cdk().listMapper(convertCfnLogDeliveryConfigurationLogConfigurationPropertyToCloudFormation)(properties.logConfigurations),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnLogDeliveryConfigurationPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("logConfigurations","LogConfigurations",properties.LogConfigurations!=null?cfn_parse().FromCloudFormation.getArray(CfnLogDeliveryConfigurationLogConfigurationPropertyFromCloudFormation)(properties.LogConfigurations):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnManagedLoginBranding extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnManagedLoginBranding",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::ManagedLoginBranding";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnManagedLoginBrandingPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnManagedLoginBranding(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnManagedLoginBranding(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnManagedLoginBranding.CFN_RESOURCE_TYPE_NAME}attrManagedLoginBrandingId;assets;clientId;returnMergedResources;settings;useCognitoProvidedValues;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnManagedLoginBranding.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnManagedLoginBrandingProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnManagedLoginBranding),error}cdk().requireProperty(props,"userPoolId",this),this.attrManagedLoginBrandingId=cdk().Token.asString(this.getAtt("ManagedLoginBrandingId",cdk().ResolutionTypeHint.STRING)),this.assets=props.assets,this.clientId=props.clientId,this.returnMergedResources=props.returnMergedResources,this.settings=props.settings,this.useCognitoProvidedValues=props.useCognitoProvidedValues,this.userPoolId=props.userPoolId}get managedLoginBrandingRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),managedLoginBrandingId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{assets:this.assets,clientId:this.clientId,returnMergedResources:this.returnMergedResources,settings:this.settings,useCognitoProvidedValues:this.useCognitoProvidedValues,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnManagedLoginBranding.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnManagedLoginBrandingPropsToCloudFormation(props)}}exports.CfnManagedLoginBranding=CfnManagedLoginBranding;function CfnManagedLoginBrandingAssetTypePropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("bytes",cdk().validateString)(properties.bytes)),errors.collect(cdk().propertyValidator("category",cdk().requiredValidator)(properties.category)),errors.collect(cdk().propertyValidator("category",cdk().validateString)(properties.category)),errors.collect(cdk().propertyValidator("colorMode",cdk().requiredValidator)(properties.colorMode)),errors.collect(cdk().propertyValidator("colorMode",cdk().validateString)(properties.colorMode)),errors.collect(cdk().propertyValidator("extension",cdk().requiredValidator)(properties.extension)),errors.collect(cdk().propertyValidator("extension",cdk().validateString)(properties.extension)),errors.collect(cdk().propertyValidator("resourceId",cdk().validateString)(properties.resourceId)),errors.wrap('supplied properties not correct for "AssetTypeProperty"')}function convertCfnManagedLoginBrandingAssetTypePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnManagedLoginBrandingAssetTypePropertyValidator(properties).assertSuccess(),{Bytes:cdk().stringToCloudFormation(properties.bytes),Category:cdk().stringToCloudFormation(properties.category),ColorMode:cdk().stringToCloudFormation(properties.colorMode),Extension:cdk().stringToCloudFormation(properties.extension),ResourceId:cdk().stringToCloudFormation(properties.resourceId)}):properties}function CfnManagedLoginBrandingAssetTypePropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("bytes","Bytes",properties.Bytes!=null?cfn_parse().FromCloudFormation.getString(properties.Bytes):void 0),ret.addPropertyResult("category","Category",properties.Category!=null?cfn_parse().FromCloudFormation.getString(properties.Category):void 0),ret.addPropertyResult("colorMode","ColorMode",properties.ColorMode!=null?cfn_parse().FromCloudFormation.getString(properties.ColorMode):void 0),ret.addPropertyResult("extension","Extension",properties.Extension!=null?cfn_parse().FromCloudFormation.getString(properties.Extension):void 0),ret.addPropertyResult("resourceId","ResourceId",properties.ResourceId!=null?cfn_parse().FromCloudFormation.getString(properties.ResourceId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnManagedLoginBrandingPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("assets",cdk().listValidator(CfnManagedLoginBrandingAssetTypePropertyValidator))(properties.assets)),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("returnMergedResources",cdk().validateBoolean)(properties.returnMergedResources)),errors.collect(cdk().propertyValidator("settings",cdk().validateObject)(properties.settings)),errors.collect(cdk().propertyValidator("useCognitoProvidedValues",cdk().validateBoolean)(properties.useCognitoProvidedValues)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnManagedLoginBrandingProps"')}function convertCfnManagedLoginBrandingPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnManagedLoginBrandingPropsValidator(properties).assertSuccess(),{Assets:cdk().listMapper(convertCfnManagedLoginBrandingAssetTypePropertyToCloudFormation)(properties.assets),ClientId:cdk().stringToCloudFormation(properties.clientId),ReturnMergedResources:cdk().booleanToCloudFormation(properties.returnMergedResources),Settings:cdk().objectToCloudFormation(properties.settings),UseCognitoProvidedValues:cdk().booleanToCloudFormation(properties.useCognitoProvidedValues),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnManagedLoginBrandingPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("assets","Assets",properties.Assets!=null?cfn_parse().FromCloudFormation.getArray(CfnManagedLoginBrandingAssetTypePropertyFromCloudFormation)(properties.Assets):void 0),ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("returnMergedResources","ReturnMergedResources",properties.ReturnMergedResources!=null?cfn_parse().FromCloudFormation.getBoolean(properties.ReturnMergedResources):void 0),ret.addPropertyResult("settings","Settings",properties.Settings!=null?cfn_parse().FromCloudFormation.getAny(properties.Settings):void 0),ret.addPropertyResult("useCognitoProvidedValues","UseCognitoProvidedValues",properties.UseCognitoProvidedValues!=null?cfn_parse().FromCloudFormation.getBoolean(properties.UseCognitoProvidedValues):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnTerms extends cdk().CfnResource{static[JSII_RTTI_SYMBOL_1]={fqn:"aws-cdk-lib.aws_cognito.CfnTerms",version:"2.233.0"};static CFN_RESOURCE_TYPE_NAME="AWS::Cognito::Terms";static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTermsPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnTerms(scope,id,propsResult.value);for(const[propKey,propVal]of Object.entries(propsResult.extraProperties))ret.addPropertyOverride(propKey,propVal);return options.parser.handleAttributes(ret,resourceAttributes,id),ret}static isCfnTerms(x){return cdk().CfnResource.isCfnResource(x)&&x.cfnResourceType===CfnTerms.CFN_RESOURCE_TYPE_NAME}attrTermsId;clientId;enforcement;links;termsName;termsSource;userPoolId;constructor(scope,id,props){super(scope,id,{type:CfnTerms.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_cognito_CfnTermsProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTerms),error}cdk().requireProperty(props,"enforcement",this),cdk().requireProperty(props,"links",this),cdk().requireProperty(props,"termsName",this),cdk().requireProperty(props,"termsSource",this),cdk().requireProperty(props,"userPoolId",this),this.attrTermsId=cdk().Token.asString(this.getAtt("TermsId",cdk().ResolutionTypeHint.STRING)),this.clientId=props.clientId,this.enforcement=props.enforcement,this.links=props.links,this.termsName=props.termsName,this.termsSource=props.termsSource,this.userPoolId=props.userPoolId}get termsRef(){return{userPoolId:cdk().Fn.select(0,cdk().Fn.split("|",this.ref)),termsId:cdk().Fn.select(1,cdk().Fn.split("|",this.ref))}}get cfnProperties(){return{clientId:this.clientId,enforcement:this.enforcement,links:this.links,termsName:this.termsName,termsSource:this.termsSource,userPoolId:this.userPoolId}}inspect(inspector){try{jsiiDeprecationWarnings().aws_cdk_lib_TreeInspector(inspector)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.inspect),error}inspector.addAttribute("aws:cdk:cloudformation:type",CfnTerms.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTermsPropsToCloudFormation(props)}}exports.CfnTerms=CfnTerms;function CfnTermsPropsValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("clientId",cdk().validateString)(properties.clientId)),errors.collect(cdk().propertyValidator("enforcement",cdk().requiredValidator)(properties.enforcement)),errors.collect(cdk().propertyValidator("enforcement",cdk().validateString)(properties.enforcement)),errors.collect(cdk().propertyValidator("links",cdk().requiredValidator)(properties.links)),errors.collect(cdk().propertyValidator("links",cdk().hashValidator(cdk().validateString))(properties.links)),errors.collect(cdk().propertyValidator("termsName",cdk().requiredValidator)(properties.termsName)),errors.collect(cdk().propertyValidator("termsName",cdk().validateString)(properties.termsName)),errors.collect(cdk().propertyValidator("termsSource",cdk().requiredValidator)(properties.termsSource)),errors.collect(cdk().propertyValidator("termsSource",cdk().validateString)(properties.termsSource)),errors.collect(cdk().propertyValidator("userPoolId",cdk().requiredValidator)(properties.userPoolId)),errors.collect(cdk().propertyValidator("userPoolId",cdk().validateString)(properties.userPoolId)),errors.wrap('supplied properties not correct for "CfnTermsProps"')}function convertCfnTermsPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTermsPropsValidator(properties).assertSuccess(),{ClientId:cdk().stringToCloudFormation(properties.clientId),Enforcement:cdk().stringToCloudFormation(properties.enforcement),Links:cdk().hashMapper(cdk().stringToCloudFormation)(properties.links),TermsName:cdk().stringToCloudFormation(properties.termsName),TermsSource:cdk().stringToCloudFormation(properties.termsSource),UserPoolId:cdk().stringToCloudFormation(properties.userPoolId)}):properties}function CfnTermsPropsFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("clientId","ClientId",properties.ClientId!=null?cfn_parse().FromCloudFormation.getString(properties.ClientId):void 0),ret.addPropertyResult("enforcement","Enforcement",properties.Enforcement!=null?cfn_parse().FromCloudFormation.getString(properties.Enforcement):void 0),ret.addPropertyResult("links","Links",properties.Links!=null?cfn_parse().FromCloudFormation.getMap(cfn_parse().FromCloudFormation.getString)(properties.Links):void 0),ret.addPropertyResult("termsName","TermsName",properties.TermsName!=null?cfn_parse().FromCloudFormation.getString(properties.TermsName):void 0),ret.addPropertyResult("termsSource","TermsSource",properties.TermsSource!=null?cfn_parse().FromCloudFormation.getString(properties.TermsSource):void 0),ret.addPropertyResult("userPoolId","UserPoolId",properties.UserPoolId!=null?cfn_parse().FromCloudFormation.getString(properties.UserPoolId):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}