aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 229 kB
JavaScript
"use strict";var _a,_b,_c;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnFlow=exports.CfnConnectorProfile=exports.CfnConnector=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnConnectorPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("connectorLabel",cdk.validateString)(properties.connectorLabel)),errors.collect(cdk.propertyValidator("connectorProvisioningConfig",cdk.requiredValidator)(properties.connectorProvisioningConfig)),errors.collect(cdk.propertyValidator("connectorProvisioningConfig",CfnConnector_ConnectorProvisioningConfigPropertyValidator)(properties.connectorProvisioningConfig)),errors.collect(cdk.propertyValidator("connectorProvisioningType",cdk.requiredValidator)(properties.connectorProvisioningType)),errors.collect(cdk.propertyValidator("connectorProvisioningType",cdk.validateString)(properties.connectorProvisioningType)),errors.collect(cdk.propertyValidator("description",cdk.validateString)(properties.description)),errors.wrap('supplied properties not correct for "CfnConnectorProps"')}function cfnConnectorPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorPropsValidator(properties).assertSuccess(),{ConnectorProvisioningConfig:cfnConnectorConnectorProvisioningConfigPropertyToCloudFormation(properties.connectorProvisioningConfig),ConnectorProvisioningType:cdk.stringToCloudFormation(properties.connectorProvisioningType),ConnectorLabel:cdk.stringToCloudFormation(properties.connectorLabel),Description:cdk.stringToCloudFormation(properties.description)}):properties}function CfnConnectorPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("connectorProvisioningConfig","ConnectorProvisioningConfig",CfnConnectorConnectorProvisioningConfigPropertyFromCloudFormation(properties.ConnectorProvisioningConfig)),ret.addPropertyResult("connectorProvisioningType","ConnectorProvisioningType",cfn_parse.FromCloudFormation.getString(properties.ConnectorProvisioningType)),ret.addPropertyResult("connectorLabel","ConnectorLabel",properties.ConnectorLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ConnectorLabel):void 0),ret.addPropertyResult("description","Description",properties.Description!=null?cfn_parse.FromCloudFormation.getString(properties.Description):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConnector extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConnector.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appflow_CfnConnectorProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnector),error}cdk.requireProperty(props,"connectorProvisioningConfig",this),cdk.requireProperty(props,"connectorProvisioningType",this),this.attrConnectorArn=cdk.Token.asString(this.getAtt("ConnectorArn",cdk.ResolutionTypeHint.STRING)),this.connectorProvisioningConfig=props.connectorProvisioningConfig,this.connectorProvisioningType=props.connectorProvisioningType,this.connectorLabel=props.connectorLabel,this.description=props.description}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectorPropsFromCloudFormation(resourceProperties),ret=new CfnConnector(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}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",CfnConnector.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{connectorProvisioningConfig:this.connectorProvisioningConfig,connectorProvisioningType:this.connectorProvisioningType,connectorLabel:this.connectorLabel,description:this.description}}renderProperties(props){return cfnConnectorPropsToCloudFormation(props)}}exports.CfnConnector=CfnConnector,_a=JSII_RTTI_SYMBOL_1,CfnConnector[_a]={fqn:"aws-cdk-lib.aws_appflow.CfnConnector",version:"2.70.0"},CfnConnector.CFN_RESOURCE_TYPE_NAME="AWS::AppFlow::Connector";function CfnConnector_ConnectorProvisioningConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("lambda",CfnConnector_LambdaConnectorProvisioningConfigPropertyValidator)(properties.lambda)),errors.wrap('supplied properties not correct for "ConnectorProvisioningConfigProperty"')}function cfnConnectorConnectorProvisioningConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnector_ConnectorProvisioningConfigPropertyValidator(properties).assertSuccess(),{Lambda:cfnConnectorLambdaConnectorProvisioningConfigPropertyToCloudFormation(properties.lambda)}):properties}function CfnConnectorConnectorProvisioningConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("lambda","Lambda",properties.Lambda!=null?CfnConnectorLambdaConnectorProvisioningConfigPropertyFromCloudFormation(properties.Lambda):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnector_LambdaConnectorProvisioningConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("lambdaArn",cdk.requiredValidator)(properties.lambdaArn)),errors.collect(cdk.propertyValidator("lambdaArn",cdk.validateString)(properties.lambdaArn)),errors.wrap('supplied properties not correct for "LambdaConnectorProvisioningConfigProperty"')}function cfnConnectorLambdaConnectorProvisioningConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnector_LambdaConnectorProvisioningConfigPropertyValidator(properties).assertSuccess(),{LambdaArn:cdk.stringToCloudFormation(properties.lambdaArn)}):properties}function CfnConnectorLambdaConnectorProvisioningConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("lambdaArn","LambdaArn",cfn_parse.FromCloudFormation.getString(properties.LambdaArn)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfilePropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("connectionMode",cdk.requiredValidator)(properties.connectionMode)),errors.collect(cdk.propertyValidator("connectionMode",cdk.validateString)(properties.connectionMode)),errors.collect(cdk.propertyValidator("connectorLabel",cdk.validateString)(properties.connectorLabel)),errors.collect(cdk.propertyValidator("connectorProfileConfig",CfnConnectorProfile_ConnectorProfileConfigPropertyValidator)(properties.connectorProfileConfig)),errors.collect(cdk.propertyValidator("connectorProfileName",cdk.requiredValidator)(properties.connectorProfileName)),errors.collect(cdk.propertyValidator("connectorProfileName",cdk.validateString)(properties.connectorProfileName)),errors.collect(cdk.propertyValidator("connectorType",cdk.requiredValidator)(properties.connectorType)),errors.collect(cdk.propertyValidator("connectorType",cdk.validateString)(properties.connectorType)),errors.collect(cdk.propertyValidator("kmsArn",cdk.validateString)(properties.kmsArn)),errors.wrap('supplied properties not correct for "CfnConnectorProfileProps"')}function cfnConnectorProfilePropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfilePropsValidator(properties).assertSuccess(),{ConnectionMode:cdk.stringToCloudFormation(properties.connectionMode),ConnectorProfileName:cdk.stringToCloudFormation(properties.connectorProfileName),ConnectorType:cdk.stringToCloudFormation(properties.connectorType),ConnectorLabel:cdk.stringToCloudFormation(properties.connectorLabel),ConnectorProfileConfig:cfnConnectorProfileConnectorProfileConfigPropertyToCloudFormation(properties.connectorProfileConfig),KMSArn:cdk.stringToCloudFormation(properties.kmsArn)}):properties}function CfnConnectorProfilePropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("connectionMode","ConnectionMode",cfn_parse.FromCloudFormation.getString(properties.ConnectionMode)),ret.addPropertyResult("connectorProfileName","ConnectorProfileName",cfn_parse.FromCloudFormation.getString(properties.ConnectorProfileName)),ret.addPropertyResult("connectorType","ConnectorType",cfn_parse.FromCloudFormation.getString(properties.ConnectorType)),ret.addPropertyResult("connectorLabel","ConnectorLabel",properties.ConnectorLabel!=null?cfn_parse.FromCloudFormation.getString(properties.ConnectorLabel):void 0),ret.addPropertyResult("connectorProfileConfig","ConnectorProfileConfig",properties.ConnectorProfileConfig!=null?CfnConnectorProfileConnectorProfileConfigPropertyFromCloudFormation(properties.ConnectorProfileConfig):void 0),ret.addPropertyResult("kmsArn","KMSArn",properties.KMSArn!=null?cfn_parse.FromCloudFormation.getString(properties.KMSArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnConnectorProfile extends cdk.CfnResource{constructor(scope,id,props){super(scope,id,{type:CfnConnectorProfile.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings.aws_cdk_lib_aws_appflow_CfnConnectorProfileProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnConnectorProfile),error}cdk.requireProperty(props,"connectionMode",this),cdk.requireProperty(props,"connectorProfileName",this),cdk.requireProperty(props,"connectorType",this),this.attrConnectorProfileArn=cdk.Token.asString(this.getAtt("ConnectorProfileArn",cdk.ResolutionTypeHint.STRING)),this.attrCredentialsArn=cdk.Token.asString(this.getAtt("CredentialsArn",cdk.ResolutionTypeHint.STRING)),this.connectionMode=props.connectionMode,this.connectorProfileName=props.connectorProfileName,this.connectorType=props.connectorType,this.connectorLabel=props.connectorLabel,this.connectorProfileConfig=props.connectorProfileConfig,this.kmsArn=props.kmsArn}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnConnectorProfilePropsFromCloudFormation(resourceProperties),ret=new CfnConnectorProfile(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}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",CfnConnectorProfile.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}get cfnProperties(){return{connectionMode:this.connectionMode,connectorProfileName:this.connectorProfileName,connectorType:this.connectorType,connectorLabel:this.connectorLabel,connectorProfileConfig:this.connectorProfileConfig,kmsArn:this.kmsArn}}renderProperties(props){return cfnConnectorProfilePropsToCloudFormation(props)}}exports.CfnConnectorProfile=CfnConnectorProfile,_b=JSII_RTTI_SYMBOL_1,CfnConnectorProfile[_b]={fqn:"aws-cdk-lib.aws_appflow.CfnConnectorProfile",version:"2.70.0"},CfnConnectorProfile.CFN_RESOURCE_TYPE_NAME="AWS::AppFlow::ConnectorProfile";function CfnConnectorProfile_AmplitudeConnectorProfileCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("apiKey",cdk.requiredValidator)(properties.apiKey)),errors.collect(cdk.propertyValidator("apiKey",cdk.validateString)(properties.apiKey)),errors.collect(cdk.propertyValidator("secretKey",cdk.requiredValidator)(properties.secretKey)),errors.collect(cdk.propertyValidator("secretKey",cdk.validateString)(properties.secretKey)),errors.wrap('supplied properties not correct for "AmplitudeConnectorProfileCredentialsProperty"')}function cfnConnectorProfileAmplitudeConnectorProfileCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_AmplitudeConnectorProfileCredentialsPropertyValidator(properties).assertSuccess(),{ApiKey:cdk.stringToCloudFormation(properties.apiKey),SecretKey:cdk.stringToCloudFormation(properties.secretKey)}):properties}function CfnConnectorProfileAmplitudeConnectorProfileCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("apiKey","ApiKey",cfn_parse.FromCloudFormation.getString(properties.ApiKey)),ret.addPropertyResult("secretKey","SecretKey",cfn_parse.FromCloudFormation.getString(properties.SecretKey)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_ApiKeyCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("apiKey",cdk.requiredValidator)(properties.apiKey)),errors.collect(cdk.propertyValidator("apiKey",cdk.validateString)(properties.apiKey)),errors.collect(cdk.propertyValidator("apiSecretKey",cdk.validateString)(properties.apiSecretKey)),errors.wrap('supplied properties not correct for "ApiKeyCredentialsProperty"')}function cfnConnectorProfileApiKeyCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_ApiKeyCredentialsPropertyValidator(properties).assertSuccess(),{ApiKey:cdk.stringToCloudFormation(properties.apiKey),ApiSecretKey:cdk.stringToCloudFormation(properties.apiSecretKey)}):properties}function CfnConnectorProfileApiKeyCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("apiKey","ApiKey",cfn_parse.FromCloudFormation.getString(properties.ApiKey)),ret.addPropertyResult("apiSecretKey","ApiSecretKey",properties.ApiSecretKey!=null?cfn_parse.FromCloudFormation.getString(properties.ApiSecretKey):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_BasicAuthCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("password",cdk.requiredValidator)(properties.password)),errors.collect(cdk.propertyValidator("password",cdk.validateString)(properties.password)),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 "BasicAuthCredentialsProperty"')}function cfnConnectorProfileBasicAuthCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_BasicAuthCredentialsPropertyValidator(properties).assertSuccess(),{Password:cdk.stringToCloudFormation(properties.password),Username:cdk.stringToCloudFormation(properties.username)}):properties}function CfnConnectorProfileBasicAuthCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("password","Password",cfn_parse.FromCloudFormation.getString(properties.Password)),ret.addPropertyResult("username","Username",cfn_parse.FromCloudFormation.getString(properties.Username)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_ConnectorOAuthRequestPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("authCode",cdk.validateString)(properties.authCode)),errors.collect(cdk.propertyValidator("redirectUri",cdk.validateString)(properties.redirectUri)),errors.wrap('supplied properties not correct for "ConnectorOAuthRequestProperty"')}function cfnConnectorProfileConnectorOAuthRequestPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_ConnectorOAuthRequestPropertyValidator(properties).assertSuccess(),{AuthCode:cdk.stringToCloudFormation(properties.authCode),RedirectUri:cdk.stringToCloudFormation(properties.redirectUri)}):properties}function CfnConnectorProfileConnectorOAuthRequestPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("authCode","AuthCode",properties.AuthCode!=null?cfn_parse.FromCloudFormation.getString(properties.AuthCode):void 0),ret.addPropertyResult("redirectUri","RedirectUri",properties.RedirectUri!=null?cfn_parse.FromCloudFormation.getString(properties.RedirectUri):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_ConnectorProfileConfigPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("connectorProfileCredentials",CfnConnectorProfile_ConnectorProfileCredentialsPropertyValidator)(properties.connectorProfileCredentials)),errors.collect(cdk.propertyValidator("connectorProfileProperties",CfnConnectorProfile_ConnectorProfilePropertiesPropertyValidator)(properties.connectorProfileProperties)),errors.wrap('supplied properties not correct for "ConnectorProfileConfigProperty"')}function cfnConnectorProfileConnectorProfileConfigPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_ConnectorProfileConfigPropertyValidator(properties).assertSuccess(),{ConnectorProfileCredentials:cfnConnectorProfileConnectorProfileCredentialsPropertyToCloudFormation(properties.connectorProfileCredentials),ConnectorProfileProperties:cfnConnectorProfileConnectorProfilePropertiesPropertyToCloudFormation(properties.connectorProfileProperties)}):properties}function CfnConnectorProfileConnectorProfileConfigPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("connectorProfileCredentials","ConnectorProfileCredentials",properties.ConnectorProfileCredentials!=null?CfnConnectorProfileConnectorProfileCredentialsPropertyFromCloudFormation(properties.ConnectorProfileCredentials):void 0),ret.addPropertyResult("connectorProfileProperties","ConnectorProfileProperties",properties.ConnectorProfileProperties!=null?CfnConnectorProfileConnectorProfilePropertiesPropertyFromCloudFormation(properties.ConnectorProfileProperties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_ConnectorProfileCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("amplitude",CfnConnectorProfile_AmplitudeConnectorProfileCredentialsPropertyValidator)(properties.amplitude)),errors.collect(cdk.propertyValidator("customConnector",CfnConnectorProfile_CustomConnectorProfileCredentialsPropertyValidator)(properties.customConnector)),errors.collect(cdk.propertyValidator("datadog",CfnConnectorProfile_DatadogConnectorProfileCredentialsPropertyValidator)(properties.datadog)),errors.collect(cdk.propertyValidator("dynatrace",CfnConnectorProfile_DynatraceConnectorProfileCredentialsPropertyValidator)(properties.dynatrace)),errors.collect(cdk.propertyValidator("googleAnalytics",CfnConnectorProfile_GoogleAnalyticsConnectorProfileCredentialsPropertyValidator)(properties.googleAnalytics)),errors.collect(cdk.propertyValidator("inforNexus",CfnConnectorProfile_InforNexusConnectorProfileCredentialsPropertyValidator)(properties.inforNexus)),errors.collect(cdk.propertyValidator("marketo",CfnConnectorProfile_MarketoConnectorProfileCredentialsPropertyValidator)(properties.marketo)),errors.collect(cdk.propertyValidator("pardot",CfnConnectorProfile_PardotConnectorProfileCredentialsPropertyValidator)(properties.pardot)),errors.collect(cdk.propertyValidator("redshift",CfnConnectorProfile_RedshiftConnectorProfileCredentialsPropertyValidator)(properties.redshift)),errors.collect(cdk.propertyValidator("sapoData",CfnConnectorProfile_SAPODataConnectorProfileCredentialsPropertyValidator)(properties.sapoData)),errors.collect(cdk.propertyValidator("salesforce",CfnConnectorProfile_SalesforceConnectorProfileCredentialsPropertyValidator)(properties.salesforce)),errors.collect(cdk.propertyValidator("serviceNow",CfnConnectorProfile_ServiceNowConnectorProfileCredentialsPropertyValidator)(properties.serviceNow)),errors.collect(cdk.propertyValidator("singular",CfnConnectorProfile_SingularConnectorProfileCredentialsPropertyValidator)(properties.singular)),errors.collect(cdk.propertyValidator("slack",CfnConnectorProfile_SlackConnectorProfileCredentialsPropertyValidator)(properties.slack)),errors.collect(cdk.propertyValidator("snowflake",CfnConnectorProfile_SnowflakeConnectorProfileCredentialsPropertyValidator)(properties.snowflake)),errors.collect(cdk.propertyValidator("trendmicro",CfnConnectorProfile_TrendmicroConnectorProfileCredentialsPropertyValidator)(properties.trendmicro)),errors.collect(cdk.propertyValidator("veeva",CfnConnectorProfile_VeevaConnectorProfileCredentialsPropertyValidator)(properties.veeva)),errors.collect(cdk.propertyValidator("zendesk",CfnConnectorProfile_ZendeskConnectorProfileCredentialsPropertyValidator)(properties.zendesk)),errors.wrap('supplied properties not correct for "ConnectorProfileCredentialsProperty"')}function cfnConnectorProfileConnectorProfileCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_ConnectorProfileCredentialsPropertyValidator(properties).assertSuccess(),{Amplitude:cfnConnectorProfileAmplitudeConnectorProfileCredentialsPropertyToCloudFormation(properties.amplitude),CustomConnector:cfnConnectorProfileCustomConnectorProfileCredentialsPropertyToCloudFormation(properties.customConnector),Datadog:cfnConnectorProfileDatadogConnectorProfileCredentialsPropertyToCloudFormation(properties.datadog),Dynatrace:cfnConnectorProfileDynatraceConnectorProfileCredentialsPropertyToCloudFormation(properties.dynatrace),GoogleAnalytics:cfnConnectorProfileGoogleAnalyticsConnectorProfileCredentialsPropertyToCloudFormation(properties.googleAnalytics),InforNexus:cfnConnectorProfileInforNexusConnectorProfileCredentialsPropertyToCloudFormation(properties.inforNexus),Marketo:cfnConnectorProfileMarketoConnectorProfileCredentialsPropertyToCloudFormation(properties.marketo),Pardot:cfnConnectorProfilePardotConnectorProfileCredentialsPropertyToCloudFormation(properties.pardot),Redshift:cfnConnectorProfileRedshiftConnectorProfileCredentialsPropertyToCloudFormation(properties.redshift),SAPOData:cfnConnectorProfileSAPODataConnectorProfileCredentialsPropertyToCloudFormation(properties.sapoData),Salesforce:cfnConnectorProfileSalesforceConnectorProfileCredentialsPropertyToCloudFormation(properties.salesforce),ServiceNow:cfnConnectorProfileServiceNowConnectorProfileCredentialsPropertyToCloudFormation(properties.serviceNow),Singular:cfnConnectorProfileSingularConnectorProfileCredentialsPropertyToCloudFormation(properties.singular),Slack:cfnConnectorProfileSlackConnectorProfileCredentialsPropertyToCloudFormation(properties.slack),Snowflake:cfnConnectorProfileSnowflakeConnectorProfileCredentialsPropertyToCloudFormation(properties.snowflake),Trendmicro:cfnConnectorProfileTrendmicroConnectorProfileCredentialsPropertyToCloudFormation(properties.trendmicro),Veeva:cfnConnectorProfileVeevaConnectorProfileCredentialsPropertyToCloudFormation(properties.veeva),Zendesk:cfnConnectorProfileZendeskConnectorProfileCredentialsPropertyToCloudFormation(properties.zendesk)}):properties}function CfnConnectorProfileConnectorProfileCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("amplitude","Amplitude",properties.Amplitude!=null?CfnConnectorProfileAmplitudeConnectorProfileCredentialsPropertyFromCloudFormation(properties.Amplitude):void 0),ret.addPropertyResult("customConnector","CustomConnector",properties.CustomConnector!=null?CfnConnectorProfileCustomConnectorProfileCredentialsPropertyFromCloudFormation(properties.CustomConnector):void 0),ret.addPropertyResult("datadog","Datadog",properties.Datadog!=null?CfnConnectorProfileDatadogConnectorProfileCredentialsPropertyFromCloudFormation(properties.Datadog):void 0),ret.addPropertyResult("dynatrace","Dynatrace",properties.Dynatrace!=null?CfnConnectorProfileDynatraceConnectorProfileCredentialsPropertyFromCloudFormation(properties.Dynatrace):void 0),ret.addPropertyResult("googleAnalytics","GoogleAnalytics",properties.GoogleAnalytics!=null?CfnConnectorProfileGoogleAnalyticsConnectorProfileCredentialsPropertyFromCloudFormation(properties.GoogleAnalytics):void 0),ret.addPropertyResult("inforNexus","InforNexus",properties.InforNexus!=null?CfnConnectorProfileInforNexusConnectorProfileCredentialsPropertyFromCloudFormation(properties.InforNexus):void 0),ret.addPropertyResult("marketo","Marketo",properties.Marketo!=null?CfnConnectorProfileMarketoConnectorProfileCredentialsPropertyFromCloudFormation(properties.Marketo):void 0),ret.addPropertyResult("pardot","Pardot",properties.Pardot!=null?CfnConnectorProfilePardotConnectorProfileCredentialsPropertyFromCloudFormation(properties.Pardot):void 0),ret.addPropertyResult("redshift","Redshift",properties.Redshift!=null?CfnConnectorProfileRedshiftConnectorProfileCredentialsPropertyFromCloudFormation(properties.Redshift):void 0),ret.addPropertyResult("sapoData","SAPOData",properties.SAPOData!=null?CfnConnectorProfileSAPODataConnectorProfileCredentialsPropertyFromCloudFormation(properties.SAPOData):void 0),ret.addPropertyResult("salesforce","Salesforce",properties.Salesforce!=null?CfnConnectorProfileSalesforceConnectorProfileCredentialsPropertyFromCloudFormation(properties.Salesforce):void 0),ret.addPropertyResult("serviceNow","ServiceNow",properties.ServiceNow!=null?CfnConnectorProfileServiceNowConnectorProfileCredentialsPropertyFromCloudFormation(properties.ServiceNow):void 0),ret.addPropertyResult("singular","Singular",properties.Singular!=null?CfnConnectorProfileSingularConnectorProfileCredentialsPropertyFromCloudFormation(properties.Singular):void 0),ret.addPropertyResult("slack","Slack",properties.Slack!=null?CfnConnectorProfileSlackConnectorProfileCredentialsPropertyFromCloudFormation(properties.Slack):void 0),ret.addPropertyResult("snowflake","Snowflake",properties.Snowflake!=null?CfnConnectorProfileSnowflakeConnectorProfileCredentialsPropertyFromCloudFormation(properties.Snowflake):void 0),ret.addPropertyResult("trendmicro","Trendmicro",properties.Trendmicro!=null?CfnConnectorProfileTrendmicroConnectorProfileCredentialsPropertyFromCloudFormation(properties.Trendmicro):void 0),ret.addPropertyResult("veeva","Veeva",properties.Veeva!=null?CfnConnectorProfileVeevaConnectorProfileCredentialsPropertyFromCloudFormation(properties.Veeva):void 0),ret.addPropertyResult("zendesk","Zendesk",properties.Zendesk!=null?CfnConnectorProfileZendeskConnectorProfileCredentialsPropertyFromCloudFormation(properties.Zendesk):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_ConnectorProfilePropertiesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("customConnector",CfnConnectorProfile_CustomConnectorProfilePropertiesPropertyValidator)(properties.customConnector)),errors.collect(cdk.propertyValidator("datadog",CfnConnectorProfile_DatadogConnectorProfilePropertiesPropertyValidator)(properties.datadog)),errors.collect(cdk.propertyValidator("dynatrace",CfnConnectorProfile_DynatraceConnectorProfilePropertiesPropertyValidator)(properties.dynatrace)),errors.collect(cdk.propertyValidator("inforNexus",CfnConnectorProfile_InforNexusConnectorProfilePropertiesPropertyValidator)(properties.inforNexus)),errors.collect(cdk.propertyValidator("marketo",CfnConnectorProfile_MarketoConnectorProfilePropertiesPropertyValidator)(properties.marketo)),errors.collect(cdk.propertyValidator("pardot",CfnConnectorProfile_PardotConnectorProfilePropertiesPropertyValidator)(properties.pardot)),errors.collect(cdk.propertyValidator("redshift",CfnConnectorProfile_RedshiftConnectorProfilePropertiesPropertyValidator)(properties.redshift)),errors.collect(cdk.propertyValidator("sapoData",CfnConnectorProfile_SAPODataConnectorProfilePropertiesPropertyValidator)(properties.sapoData)),errors.collect(cdk.propertyValidator("salesforce",CfnConnectorProfile_SalesforceConnectorProfilePropertiesPropertyValidator)(properties.salesforce)),errors.collect(cdk.propertyValidator("serviceNow",CfnConnectorProfile_ServiceNowConnectorProfilePropertiesPropertyValidator)(properties.serviceNow)),errors.collect(cdk.propertyValidator("slack",CfnConnectorProfile_SlackConnectorProfilePropertiesPropertyValidator)(properties.slack)),errors.collect(cdk.propertyValidator("snowflake",CfnConnectorProfile_SnowflakeConnectorProfilePropertiesPropertyValidator)(properties.snowflake)),errors.collect(cdk.propertyValidator("veeva",CfnConnectorProfile_VeevaConnectorProfilePropertiesPropertyValidator)(properties.veeva)),errors.collect(cdk.propertyValidator("zendesk",CfnConnectorProfile_ZendeskConnectorProfilePropertiesPropertyValidator)(properties.zendesk)),errors.wrap('supplied properties not correct for "ConnectorProfilePropertiesProperty"')}function cfnConnectorProfileConnectorProfilePropertiesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_ConnectorProfilePropertiesPropertyValidator(properties).assertSuccess(),{CustomConnector:cfnConnectorProfileCustomConnectorProfilePropertiesPropertyToCloudFormation(properties.customConnector),Datadog:cfnConnectorProfileDatadogConnectorProfilePropertiesPropertyToCloudFormation(properties.datadog),Dynatrace:cfnConnectorProfileDynatraceConnectorProfilePropertiesPropertyToCloudFormation(properties.dynatrace),InforNexus:cfnConnectorProfileInforNexusConnectorProfilePropertiesPropertyToCloudFormation(properties.inforNexus),Marketo:cfnConnectorProfileMarketoConnectorProfilePropertiesPropertyToCloudFormation(properties.marketo),Pardot:cfnConnectorProfilePardotConnectorProfilePropertiesPropertyToCloudFormation(properties.pardot),Redshift:cfnConnectorProfileRedshiftConnectorProfilePropertiesPropertyToCloudFormation(properties.redshift),SAPOData:cfnConnectorProfileSAPODataConnectorProfilePropertiesPropertyToCloudFormation(properties.sapoData),Salesforce:cfnConnectorProfileSalesforceConnectorProfilePropertiesPropertyToCloudFormation(properties.salesforce),ServiceNow:cfnConnectorProfileServiceNowConnectorProfilePropertiesPropertyToCloudFormation(properties.serviceNow),Slack:cfnConnectorProfileSlackConnectorProfilePropertiesPropertyToCloudFormation(properties.slack),Snowflake:cfnConnectorProfileSnowflakeConnectorProfilePropertiesPropertyToCloudFormation(properties.snowflake),Veeva:cfnConnectorProfileVeevaConnectorProfilePropertiesPropertyToCloudFormation(properties.veeva),Zendesk:cfnConnectorProfileZendeskConnectorProfilePropertiesPropertyToCloudFormation(properties.zendesk)}):properties}function CfnConnectorProfileConnectorProfilePropertiesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("customConnector","CustomConnector",properties.CustomConnector!=null?CfnConnectorProfileCustomConnectorProfilePropertiesPropertyFromCloudFormation(properties.CustomConnector):void 0),ret.addPropertyResult("datadog","Datadog",properties.Datadog!=null?CfnConnectorProfileDatadogConnectorProfilePropertiesPropertyFromCloudFormation(properties.Datadog):void 0),ret.addPropertyResult("dynatrace","Dynatrace",properties.Dynatrace!=null?CfnConnectorProfileDynatraceConnectorProfilePropertiesPropertyFromCloudFormation(properties.Dynatrace):void 0),ret.addPropertyResult("inforNexus","InforNexus",properties.InforNexus!=null?CfnConnectorProfileInforNexusConnectorProfilePropertiesPropertyFromCloudFormation(properties.InforNexus):void 0),ret.addPropertyResult("marketo","Marketo",properties.Marketo!=null?CfnConnectorProfileMarketoConnectorProfilePropertiesPropertyFromCloudFormation(properties.Marketo):void 0),ret.addPropertyResult("pardot","Pardot",properties.Pardot!=null?CfnConnectorProfilePardotConnectorProfilePropertiesPropertyFromCloudFormation(properties.Pardot):void 0),ret.addPropertyResult("redshift","Redshift",properties.Redshift!=null?CfnConnectorProfileRedshiftConnectorProfilePropertiesPropertyFromCloudFormation(properties.Redshift):void 0),ret.addPropertyResult("sapoData","SAPOData",properties.SAPOData!=null?CfnConnectorProfileSAPODataConnectorProfilePropertiesPropertyFromCloudFormation(properties.SAPOData):void 0),ret.addPropertyResult("salesforce","Salesforce",properties.Salesforce!=null?CfnConnectorProfileSalesforceConnectorProfilePropertiesPropertyFromCloudFormation(properties.Salesforce):void 0),ret.addPropertyResult("serviceNow","ServiceNow",properties.ServiceNow!=null?CfnConnectorProfileServiceNowConnectorProfilePropertiesPropertyFromCloudFormation(properties.ServiceNow):void 0),ret.addPropertyResult("slack","Slack",properties.Slack!=null?CfnConnectorProfileSlackConnectorProfilePropertiesPropertyFromCloudFormation(properties.Slack):void 0),ret.addPropertyResult("snowflake","Snowflake",properties.Snowflake!=null?CfnConnectorProfileSnowflakeConnectorProfilePropertiesPropertyFromCloudFormation(properties.Snowflake):void 0),ret.addPropertyResult("veeva","Veeva",properties.Veeva!=null?CfnConnectorProfileVeevaConnectorProfilePropertiesPropertyFromCloudFormation(properties.Veeva):void 0),ret.addPropertyResult("zendesk","Zendesk",properties.Zendesk!=null?CfnConnectorProfileZendeskConnectorProfilePropertiesPropertyFromCloudFormation(properties.Zendesk):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_CustomAuthCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("credentialsMap",cdk.hashValidator(cdk.validateString))(properties.credentialsMap)),errors.collect(cdk.propertyValidator("customAuthenticationType",cdk.requiredValidator)(properties.customAuthenticationType)),errors.collect(cdk.propertyValidator("customAuthenticationType",cdk.validateString)(properties.customAuthenticationType)),errors.wrap('supplied properties not correct for "CustomAuthCredentialsProperty"')}function cfnConnectorProfileCustomAuthCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_CustomAuthCredentialsPropertyValidator(properties).assertSuccess(),{CredentialsMap:cdk.hashMapper(cdk.stringToCloudFormation)(properties.credentialsMap),CustomAuthenticationType:cdk.stringToCloudFormation(properties.customAuthenticationType)}):properties}function CfnConnectorProfileCustomAuthCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("credentialsMap","CredentialsMap",properties.CredentialsMap!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.CredentialsMap):void 0),ret.addPropertyResult("customAuthenticationType","CustomAuthenticationType",cfn_parse.FromCloudFormation.getString(properties.CustomAuthenticationType)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_CustomConnectorProfileCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("apiKey",CfnConnectorProfile_ApiKeyCredentialsPropertyValidator)(properties.apiKey)),errors.collect(cdk.propertyValidator("authenticationType",cdk.requiredValidator)(properties.authenticationType)),errors.collect(cdk.propertyValidator("authenticationType",cdk.validateString)(properties.authenticationType)),errors.collect(cdk.propertyValidator("basic",CfnConnectorProfile_BasicAuthCredentialsPropertyValidator)(properties.basic)),errors.collect(cdk.propertyValidator("custom",CfnConnectorProfile_CustomAuthCredentialsPropertyValidator)(properties.custom)),errors.collect(cdk.propertyValidator("oauth2",CfnConnectorProfile_OAuth2CredentialsPropertyValidator)(properties.oauth2)),errors.wrap('supplied properties not correct for "CustomConnectorProfileCredentialsProperty"')}function cfnConnectorProfileCustomConnectorProfileCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_CustomConnectorProfileCredentialsPropertyValidator(properties).assertSuccess(),{ApiKey:cfnConnectorProfileApiKeyCredentialsPropertyToCloudFormation(properties.apiKey),AuthenticationType:cdk.stringToCloudFormation(properties.authenticationType),Basic:cfnConnectorProfileBasicAuthCredentialsPropertyToCloudFormation(properties.basic),Custom:cfnConnectorProfileCustomAuthCredentialsPropertyToCloudFormation(properties.custom),Oauth2:cfnConnectorProfileOAuth2CredentialsPropertyToCloudFormation(properties.oauth2)}):properties}function CfnConnectorProfileCustomConnectorProfileCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("apiKey","ApiKey",properties.ApiKey!=null?CfnConnectorProfileApiKeyCredentialsPropertyFromCloudFormation(properties.ApiKey):void 0),ret.addPropertyResult("authenticationType","AuthenticationType",cfn_parse.FromCloudFormation.getString(properties.AuthenticationType)),ret.addPropertyResult("basic","Basic",properties.Basic!=null?CfnConnectorProfileBasicAuthCredentialsPropertyFromCloudFormation(properties.Basic):void 0),ret.addPropertyResult("custom","Custom",properties.Custom!=null?CfnConnectorProfileCustomAuthCredentialsPropertyFromCloudFormation(properties.Custom):void 0),ret.addPropertyResult("oauth2","Oauth2",properties.Oauth2!=null?CfnConnectorProfileOAuth2CredentialsPropertyFromCloudFormation(properties.Oauth2):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_CustomConnectorProfilePropertiesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("oAuth2Properties",CfnConnectorProfile_OAuth2PropertiesPropertyValidator)(properties.oAuth2Properties)),errors.collect(cdk.propertyValidator("profileProperties",cdk.hashValidator(cdk.validateString))(properties.profileProperties)),errors.wrap('supplied properties not correct for "CustomConnectorProfilePropertiesProperty"')}function cfnConnectorProfileCustomConnectorProfilePropertiesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_CustomConnectorProfilePropertiesPropertyValidator(properties).assertSuccess(),{OAuth2Properties:cfnConnectorProfileOAuth2PropertiesPropertyToCloudFormation(properties.oAuth2Properties),ProfileProperties:cdk.hashMapper(cdk.stringToCloudFormation)(properties.profileProperties)}):properties}function CfnConnectorProfileCustomConnectorProfilePropertiesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("oAuth2Properties","OAuth2Properties",properties.OAuth2Properties!=null?CfnConnectorProfileOAuth2PropertiesPropertyFromCloudFormation(properties.OAuth2Properties):void 0),ret.addPropertyResult("profileProperties","ProfileProperties",properties.ProfileProperties!=null?cfn_parse.FromCloudFormation.getMap(cfn_parse.FromCloudFormation.getString)(properties.ProfileProperties):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_DatadogConnectorProfileCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("apiKey",cdk.requiredValidator)(properties.apiKey)),errors.collect(cdk.propertyValidator("apiKey",cdk.validateString)(properties.apiKey)),errors.collect(cdk.propertyValidator("applicationKey",cdk.requiredValidator)(properties.applicationKey)),errors.collect(cdk.propertyValidator("applicationKey",cdk.validateString)(properties.applicationKey)),errors.wrap('supplied properties not correct for "DatadogConnectorProfileCredentialsProperty"')}function cfnConnectorProfileDatadogConnectorProfileCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_DatadogConnectorProfileCredentialsPropertyValidator(properties).assertSuccess(),{ApiKey:cdk.stringToCloudFormation(properties.apiKey),ApplicationKey:cdk.stringToCloudFormation(properties.applicationKey)}):properties}function CfnConnectorProfileDatadogConnectorProfileCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("apiKey","ApiKey",cfn_parse.FromCloudFormation.getString(properties.ApiKey)),ret.addPropertyResult("applicationKey","ApplicationKey",cfn_parse.FromCloudFormation.getString(properties.ApplicationKey)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_DatadogConnectorProfilePropertiesPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("instanceUrl",cdk.requiredValidator)(properties.instanceUrl)),errors.collect(cdk.propertyValidator("instanceUrl",cdk.validateString)(properties.instanceUrl)),errors.wrap('supplied properties not correct for "DatadogConnectorProfilePropertiesProperty"')}function cfnConnectorProfileDatadogConnectorProfilePropertiesPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_DatadogConnectorProfilePropertiesPropertyValidator(properties).assertSuccess(),{InstanceUrl:cdk.stringToCloudFormation(properties.instanceUrl)}):properties}function CfnConnectorProfileDatadogConnectorProfilePropertiesPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("instanceUrl","InstanceUrl",cfn_parse.FromCloudFormation.getString(properties.InstanceUrl)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnConnectorProfile_DynatraceConnectorProfileCredentialsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("apiToken",cdk.requiredValidator)(properties.apiToken)),errors.collect(cdk.propertyValidator("apiToken",cdk.validateString)(properties.apiToken)),errors.wrap('supplied properties not correct for "DynatraceConnectorProfileCredentialsProperty"')}function cfnConnectorProfileDynatraceConnectorProfileCredentialsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnConnectorProfile_DynatraceConnectorProfileCredentialsPropertyValidator(properties).assertSuccess(),{ApiToken:cdk.stringToCloudFormation(properties.apiToken)}):properties}function CfnConnectorProfileDynatraceConnectorProfileCredentialsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(