aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
2 lines (1 loc) • 24.4 kB
JavaScript
"use strict";var _a,_b;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnIdentitySource=exports.CfnApprovalTeam=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");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 CfnApprovalTeam extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnApprovalTeamPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnApprovalTeam(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}constructor(scope,id,props){super(scope,id,{type:CfnApprovalTeam.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mpa_CfnApprovalTeamProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnApprovalTeam),error}cdk().requireProperty(props,"approvalStrategy",this),cdk().requireProperty(props,"approvers",this),cdk().requireProperty(props,"description",this),cdk().requireProperty(props,"name",this),cdk().requireProperty(props,"policies",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrCreationTime=cdk().Token.asString(this.getAtt("CreationTime",cdk().ResolutionTypeHint.STRING)),this.attrLastUpdateTime=cdk().Token.asString(this.getAtt("LastUpdateTime",cdk().ResolutionTypeHint.STRING)),this.attrNumberOfApprovers=cdk().Token.asNumber(this.getAtt("NumberOfApprovers",cdk().ResolutionTypeHint.NUMBER)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.attrStatusCode=cdk().Token.asString(this.getAtt("StatusCode",cdk().ResolutionTypeHint.STRING)),this.attrStatusMessage=cdk().Token.asString(this.getAtt("StatusMessage",cdk().ResolutionTypeHint.STRING)),this.attrUpdateSessionArn=cdk().Token.asString(this.getAtt("UpdateSessionArn",cdk().ResolutionTypeHint.STRING)),this.attrVersionId=cdk().Token.asString(this.getAtt("VersionId",cdk().ResolutionTypeHint.STRING)),this.approvalStrategy=props.approvalStrategy,this.approvers=props.approvers,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MPA::ApprovalTeam",void 0,{tagPropertyName:"tags"}),this.description=props.description,this.name=props.name,this.policies=props.policies,this.tags=props.tags}get cfnProperties(){return{approvalStrategy:this.approvalStrategy,approvers:this.approvers,tags:this.cdkTagManager.renderTags(this.tags),description:this.description,name:this.name,policies:this.policies}}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",CfnApprovalTeam.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnApprovalTeamPropsToCloudFormation(props)}}exports.CfnApprovalTeam=CfnApprovalTeam,_a=JSII_RTTI_SYMBOL_1,CfnApprovalTeam[_a]={fqn:"aws-cdk-lib.aws_mpa.CfnApprovalTeam",version:"2.211.0"},CfnApprovalTeam.CFN_RESOURCE_TYPE_NAME="AWS::MPA::ApprovalTeam";function CfnApprovalTeamMofNApprovalStrategyPropertyValidator(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("minApprovalsRequired",cdk().requiredValidator)(properties.minApprovalsRequired)),errors.collect(cdk().propertyValidator("minApprovalsRequired",cdk().validateNumber)(properties.minApprovalsRequired)),errors.wrap('supplied properties not correct for "MofNApprovalStrategyProperty"')}function convertCfnApprovalTeamMofNApprovalStrategyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApprovalTeamMofNApprovalStrategyPropertyValidator(properties).assertSuccess(),{MinApprovalsRequired:cdk().numberToCloudFormation(properties.minApprovalsRequired)}):properties}function CfnApprovalTeamMofNApprovalStrategyPropertyFromCloudFormation(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("minApprovalsRequired","MinApprovalsRequired",properties.MinApprovalsRequired!=null?cfn_parse().FromCloudFormation.getNumber(properties.MinApprovalsRequired):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnApprovalTeamApprovalStrategyPropertyValidator(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("mofN",cdk().requiredValidator)(properties.mofN)),errors.collect(cdk().propertyValidator("mofN",CfnApprovalTeamMofNApprovalStrategyPropertyValidator)(properties.mofN)),errors.wrap('supplied properties not correct for "ApprovalStrategyProperty"')}function convertCfnApprovalTeamApprovalStrategyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApprovalTeamApprovalStrategyPropertyValidator(properties).assertSuccess(),{MofN:convertCfnApprovalTeamMofNApprovalStrategyPropertyToCloudFormation(properties.mofN)}):properties}function CfnApprovalTeamApprovalStrategyPropertyFromCloudFormation(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("mofN","MofN",properties.MofN!=null?CfnApprovalTeamMofNApprovalStrategyPropertyFromCloudFormation(properties.MofN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnApprovalTeamApproverPropertyValidator(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("approverId",cdk().validateString)(properties.approverId)),errors.collect(cdk().propertyValidator("primaryIdentityId",cdk().requiredValidator)(properties.primaryIdentityId)),errors.collect(cdk().propertyValidator("primaryIdentityId",cdk().validateString)(properties.primaryIdentityId)),errors.collect(cdk().propertyValidator("primaryIdentitySourceArn",cdk().requiredValidator)(properties.primaryIdentitySourceArn)),errors.collect(cdk().propertyValidator("primaryIdentitySourceArn",cdk().validateString)(properties.primaryIdentitySourceArn)),errors.collect(cdk().propertyValidator("primaryIdentityStatus",cdk().validateString)(properties.primaryIdentityStatus)),errors.collect(cdk().propertyValidator("responseTime",cdk().validateString)(properties.responseTime)),errors.wrap('supplied properties not correct for "ApproverProperty"')}function convertCfnApprovalTeamApproverPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApprovalTeamApproverPropertyValidator(properties).assertSuccess(),{ApproverId:cdk().stringToCloudFormation(properties.approverId),PrimaryIdentityId:cdk().stringToCloudFormation(properties.primaryIdentityId),PrimaryIdentitySourceArn:cdk().stringToCloudFormation(properties.primaryIdentitySourceArn),PrimaryIdentityStatus:cdk().stringToCloudFormation(properties.primaryIdentityStatus),ResponseTime:cdk().stringToCloudFormation(properties.responseTime)}):properties}function CfnApprovalTeamApproverPropertyFromCloudFormation(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("approverId","ApproverId",properties.ApproverId!=null?cfn_parse().FromCloudFormation.getString(properties.ApproverId):void 0),ret.addPropertyResult("primaryIdentityId","PrimaryIdentityId",properties.PrimaryIdentityId!=null?cfn_parse().FromCloudFormation.getString(properties.PrimaryIdentityId):void 0),ret.addPropertyResult("primaryIdentitySourceArn","PrimaryIdentitySourceArn",properties.PrimaryIdentitySourceArn!=null?cfn_parse().FromCloudFormation.getString(properties.PrimaryIdentitySourceArn):void 0),ret.addPropertyResult("primaryIdentityStatus","PrimaryIdentityStatus",properties.PrimaryIdentityStatus!=null?cfn_parse().FromCloudFormation.getString(properties.PrimaryIdentityStatus):void 0),ret.addPropertyResult("responseTime","ResponseTime",properties.ResponseTime!=null?cfn_parse().FromCloudFormation.getString(properties.ResponseTime):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnApprovalTeamPolicyPropertyValidator(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("policyArn",cdk().requiredValidator)(properties.policyArn)),errors.collect(cdk().propertyValidator("policyArn",cdk().validateString)(properties.policyArn)),errors.wrap('supplied properties not correct for "PolicyProperty"')}function convertCfnApprovalTeamPolicyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApprovalTeamPolicyPropertyValidator(properties).assertSuccess(),{PolicyArn:cdk().stringToCloudFormation(properties.policyArn)}):properties}function CfnApprovalTeamPolicyPropertyFromCloudFormation(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("policyArn","PolicyArn",properties.PolicyArn!=null?cfn_parse().FromCloudFormation.getString(properties.PolicyArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnApprovalTeamPropsValidator(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("approvalStrategy",cdk().requiredValidator)(properties.approvalStrategy)),errors.collect(cdk().propertyValidator("approvalStrategy",CfnApprovalTeamApprovalStrategyPropertyValidator)(properties.approvalStrategy)),errors.collect(cdk().propertyValidator("approvers",cdk().requiredValidator)(properties.approvers)),errors.collect(cdk().propertyValidator("approvers",cdk().listValidator(CfnApprovalTeamApproverPropertyValidator))(properties.approvers)),errors.collect(cdk().propertyValidator("description",cdk().requiredValidator)(properties.description)),errors.collect(cdk().propertyValidator("description",cdk().validateString)(properties.description)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("policies",cdk().requiredValidator)(properties.policies)),errors.collect(cdk().propertyValidator("policies",cdk().listValidator(CfnApprovalTeamPolicyPropertyValidator))(properties.policies)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnApprovalTeamProps"')}function convertCfnApprovalTeamPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnApprovalTeamPropsValidator(properties).assertSuccess(),{ApprovalStrategy:convertCfnApprovalTeamApprovalStrategyPropertyToCloudFormation(properties.approvalStrategy),Approvers:cdk().listMapper(convertCfnApprovalTeamApproverPropertyToCloudFormation)(properties.approvers),Description:cdk().stringToCloudFormation(properties.description),Name:cdk().stringToCloudFormation(properties.name),Policies:cdk().listMapper(convertCfnApprovalTeamPolicyPropertyToCloudFormation)(properties.policies),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnApprovalTeamPropsFromCloudFormation(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("approvalStrategy","ApprovalStrategy",properties.ApprovalStrategy!=null?CfnApprovalTeamApprovalStrategyPropertyFromCloudFormation(properties.ApprovalStrategy):void 0),ret.addPropertyResult("approvers","Approvers",properties.Approvers!=null?cfn_parse().FromCloudFormation.getArray(CfnApprovalTeamApproverPropertyFromCloudFormation)(properties.Approvers):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse().FromCloudFormation.getString(properties.Description):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("policies","Policies",properties.Policies!=null?cfn_parse().FromCloudFormation.getArray(CfnApprovalTeamPolicyPropertyFromCloudFormation)(properties.Policies):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnIdentitySource extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnIdentitySourcePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnIdentitySource(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}constructor(scope,id,props){super(scope,id,{type:CfnIdentitySource.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_mpa_CfnIdentitySourceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnIdentitySource),error}cdk().requireProperty(props,"identitySourceParameters",this),this.attrCreationTime=cdk().Token.asString(this.getAtt("CreationTime",cdk().ResolutionTypeHint.STRING)),this.attrIdentitySourceArn=cdk().Token.asString(this.getAtt("IdentitySourceArn",cdk().ResolutionTypeHint.STRING)),this.attrIdentitySourceParametersIamIdentityCenterApprovalPortalUrl=cdk().Token.asString(this.getAtt("IdentitySourceParameters.IamIdentityCenter.ApprovalPortalUrl",cdk().ResolutionTypeHint.STRING)),this.attrIdentitySourceType=cdk().Token.asString(this.getAtt("IdentitySourceType",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.attrStatusCode=cdk().Token.asString(this.getAtt("StatusCode",cdk().ResolutionTypeHint.STRING)),this.attrStatusMessage=cdk().Token.asString(this.getAtt("StatusMessage",cdk().ResolutionTypeHint.STRING)),this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::MPA::IdentitySource",void 0,{tagPropertyName:"tags"}),this.identitySourceParameters=props.identitySourceParameters,this.tags=props.tags}get cfnProperties(){return{tags:this.cdkTagManager.renderTags(this.tags),identitySourceParameters:this.identitySourceParameters}}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",CfnIdentitySource.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnIdentitySourcePropsToCloudFormation(props)}}exports.CfnIdentitySource=CfnIdentitySource,_b=JSII_RTTI_SYMBOL_1,CfnIdentitySource[_b]={fqn:"aws-cdk-lib.aws_mpa.CfnIdentitySource",version:"2.211.0"},CfnIdentitySource.CFN_RESOURCE_TYPE_NAME="AWS::MPA::IdentitySource";function CfnIdentitySourceIamIdentityCenterPropertyValidator(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("approvalPortalUrl",cdk().validateString)(properties.approvalPortalUrl)),errors.collect(cdk().propertyValidator("instanceArn",cdk().requiredValidator)(properties.instanceArn)),errors.collect(cdk().propertyValidator("instanceArn",cdk().validateString)(properties.instanceArn)),errors.collect(cdk().propertyValidator("region",cdk().requiredValidator)(properties.region)),errors.collect(cdk().propertyValidator("region",cdk().validateString)(properties.region)),errors.wrap('supplied properties not correct for "IamIdentityCenterProperty"')}function convertCfnIdentitySourceIamIdentityCenterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentitySourceIamIdentityCenterPropertyValidator(properties).assertSuccess(),{ApprovalPortalUrl:cdk().stringToCloudFormation(properties.approvalPortalUrl),InstanceArn:cdk().stringToCloudFormation(properties.instanceArn),Region:cdk().stringToCloudFormation(properties.region)}):properties}function CfnIdentitySourceIamIdentityCenterPropertyFromCloudFormation(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("approvalPortalUrl","ApprovalPortalUrl",properties.ApprovalPortalUrl!=null?cfn_parse().FromCloudFormation.getString(properties.ApprovalPortalUrl):void 0),ret.addPropertyResult("instanceArn","InstanceArn",properties.InstanceArn!=null?cfn_parse().FromCloudFormation.getString(properties.InstanceArn):void 0),ret.addPropertyResult("region","Region",properties.Region!=null?cfn_parse().FromCloudFormation.getString(properties.Region):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentitySourceIdentitySourceParametersPropertyValidator(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("iamIdentityCenter",cdk().requiredValidator)(properties.iamIdentityCenter)),errors.collect(cdk().propertyValidator("iamIdentityCenter",CfnIdentitySourceIamIdentityCenterPropertyValidator)(properties.iamIdentityCenter)),errors.wrap('supplied properties not correct for "IdentitySourceParametersProperty"')}function convertCfnIdentitySourceIdentitySourceParametersPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentitySourceIdentitySourceParametersPropertyValidator(properties).assertSuccess(),{IamIdentityCenter:convertCfnIdentitySourceIamIdentityCenterPropertyToCloudFormation(properties.iamIdentityCenter)}):properties}function CfnIdentitySourceIdentitySourceParametersPropertyFromCloudFormation(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("iamIdentityCenter","IamIdentityCenter",properties.IamIdentityCenter!=null?CfnIdentitySourceIamIdentityCenterPropertyFromCloudFormation(properties.IamIdentityCenter):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnIdentitySourcePropsValidator(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("identitySourceParameters",cdk().requiredValidator)(properties.identitySourceParameters)),errors.collect(cdk().propertyValidator("identitySourceParameters",CfnIdentitySourceIdentitySourceParametersPropertyValidator)(properties.identitySourceParameters)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnIdentitySourceProps"')}function convertCfnIdentitySourcePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnIdentitySourcePropsValidator(properties).assertSuccess(),{IdentitySourceParameters:convertCfnIdentitySourceIdentitySourceParametersPropertyToCloudFormation(properties.identitySourceParameters),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnIdentitySourcePropsFromCloudFormation(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("identitySourceParameters","IdentitySourceParameters",properties.IdentitySourceParameters!=null?CfnIdentitySourceIdentitySourceParametersPropertyFromCloudFormation(properties.IdentitySourceParameters):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}