UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines 72 kB
"use strict";var _a,_b,_c,_d;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnInfluxDBInstance=exports.CfnTable=exports.CfnScheduledQuery=exports.CfnDatabase=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 CfnDatabase extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDatabasePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnDatabase(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:CfnDatabase.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_timestream_CfnDatabaseProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDatabase),error}this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.databaseName=props.databaseName,this.kmsKeyId=props.kmsKeyId,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Timestream::Database",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{databaseName:this.databaseName,kmsKeyId:this.kmsKeyId,tags:this.tags.renderTags()}}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",CfnDatabase.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnDatabasePropsToCloudFormation(props)}}exports.CfnDatabase=CfnDatabase,_a=JSII_RTTI_SYMBOL_1,CfnDatabase[_a]={fqn:"aws-cdk-lib.aws_timestream.CfnDatabase",version:"2.202.0"},CfnDatabase.CFN_RESOURCE_TYPE_NAME="AWS::Timestream::Database";function CfnDatabasePropsValidator(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("databaseName",cdk().validateString)(properties.databaseName)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDatabaseProps"')}function convertCfnDatabasePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDatabasePropsValidator(properties).assertSuccess(),{DatabaseName:cdk().stringToCloudFormation(properties.databaseName),KmsKeyId:cdk().stringToCloudFormation(properties.kmsKeyId),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnDatabasePropsFromCloudFormation(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("databaseName","DatabaseName",properties.DatabaseName!=null?cfn_parse().FromCloudFormation.getString(properties.DatabaseName):void 0),ret.addPropertyResult("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyId):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 CfnScheduledQuery extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnScheduledQueryPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnScheduledQuery(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:CfnScheduledQuery.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_timestream_CfnScheduledQueryProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnScheduledQuery),error}cdk().requireProperty(props,"errorReportConfiguration",this),cdk().requireProperty(props,"notificationConfiguration",this),cdk().requireProperty(props,"queryString",this),cdk().requireProperty(props,"scheduleConfiguration",this),cdk().requireProperty(props,"scheduledQueryExecutionRoleArn",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrSqErrorReportConfiguration=cdk().Token.asString(this.getAtt("SQErrorReportConfiguration",cdk().ResolutionTypeHint.STRING)),this.attrSqKmsKeyId=cdk().Token.asString(this.getAtt("SQKmsKeyId",cdk().ResolutionTypeHint.STRING)),this.attrSqName=cdk().Token.asString(this.getAtt("SQName",cdk().ResolutionTypeHint.STRING)),this.attrSqNotificationConfiguration=cdk().Token.asString(this.getAtt("SQNotificationConfiguration",cdk().ResolutionTypeHint.STRING)),this.attrSqQueryString=cdk().Token.asString(this.getAtt("SQQueryString",cdk().ResolutionTypeHint.STRING)),this.attrSqScheduleConfiguration=cdk().Token.asString(this.getAtt("SQScheduleConfiguration",cdk().ResolutionTypeHint.STRING)),this.attrSqScheduledQueryExecutionRoleArn=cdk().Token.asString(this.getAtt("SQScheduledQueryExecutionRoleArn",cdk().ResolutionTypeHint.STRING)),this.attrSqTargetConfiguration=cdk().Token.asString(this.getAtt("SQTargetConfiguration",cdk().ResolutionTypeHint.STRING)),this.clientToken=props.clientToken,this.errorReportConfiguration=props.errorReportConfiguration,this.kmsKeyId=props.kmsKeyId,this.notificationConfiguration=props.notificationConfiguration,this.queryString=props.queryString,this.scheduleConfiguration=props.scheduleConfiguration,this.scheduledQueryExecutionRoleArn=props.scheduledQueryExecutionRoleArn,this.scheduledQueryName=props.scheduledQueryName,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Timestream::ScheduledQuery",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags,this.targetConfiguration=props.targetConfiguration}get cfnProperties(){return{clientToken:this.clientToken,errorReportConfiguration:this.errorReportConfiguration,kmsKeyId:this.kmsKeyId,notificationConfiguration:this.notificationConfiguration,queryString:this.queryString,scheduleConfiguration:this.scheduleConfiguration,scheduledQueryExecutionRoleArn:this.scheduledQueryExecutionRoleArn,scheduledQueryName:this.scheduledQueryName,tags:this.tags.renderTags(),targetConfiguration:this.targetConfiguration}}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",CfnScheduledQuery.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnScheduledQueryPropsToCloudFormation(props)}}exports.CfnScheduledQuery=CfnScheduledQuery,_b=JSII_RTTI_SYMBOL_1,CfnScheduledQuery[_b]={fqn:"aws-cdk-lib.aws_timestream.CfnScheduledQuery",version:"2.202.0"},CfnScheduledQuery.CFN_RESOURCE_TYPE_NAME="AWS::Timestream::ScheduledQuery";function CfnScheduledQueryS3ConfigurationPropertyValidator(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("bucketName",cdk().requiredValidator)(properties.bucketName)),errors.collect(cdk().propertyValidator("bucketName",cdk().validateString)(properties.bucketName)),errors.collect(cdk().propertyValidator("encryptionOption",cdk().validateString)(properties.encryptionOption)),errors.collect(cdk().propertyValidator("objectKeyPrefix",cdk().validateString)(properties.objectKeyPrefix)),errors.wrap('supplied properties not correct for "S3ConfigurationProperty"')}function convertCfnScheduledQueryS3ConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryS3ConfigurationPropertyValidator(properties).assertSuccess(),{BucketName:cdk().stringToCloudFormation(properties.bucketName),EncryptionOption:cdk().stringToCloudFormation(properties.encryptionOption),ObjectKeyPrefix:cdk().stringToCloudFormation(properties.objectKeyPrefix)}):properties}function CfnScheduledQueryS3ConfigurationPropertyFromCloudFormation(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("bucketName","BucketName",properties.BucketName!=null?cfn_parse().FromCloudFormation.getString(properties.BucketName):void 0),ret.addPropertyResult("encryptionOption","EncryptionOption",properties.EncryptionOption!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptionOption):void 0),ret.addPropertyResult("objectKeyPrefix","ObjectKeyPrefix",properties.ObjectKeyPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.ObjectKeyPrefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryErrorReportConfigurationPropertyValidator(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("s3Configuration",cdk().requiredValidator)(properties.s3Configuration)),errors.collect(cdk().propertyValidator("s3Configuration",CfnScheduledQueryS3ConfigurationPropertyValidator)(properties.s3Configuration)),errors.wrap('supplied properties not correct for "ErrorReportConfigurationProperty"')}function convertCfnScheduledQueryErrorReportConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryErrorReportConfigurationPropertyValidator(properties).assertSuccess(),{S3Configuration:convertCfnScheduledQueryS3ConfigurationPropertyToCloudFormation(properties.s3Configuration)}):properties}function CfnScheduledQueryErrorReportConfigurationPropertyFromCloudFormation(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("s3Configuration","S3Configuration",properties.S3Configuration!=null?CfnScheduledQueryS3ConfigurationPropertyFromCloudFormation(properties.S3Configuration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryScheduleConfigurationPropertyValidator(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("scheduleExpression",cdk().requiredValidator)(properties.scheduleExpression)),errors.collect(cdk().propertyValidator("scheduleExpression",cdk().validateString)(properties.scheduleExpression)),errors.wrap('supplied properties not correct for "ScheduleConfigurationProperty"')}function convertCfnScheduledQueryScheduleConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryScheduleConfigurationPropertyValidator(properties).assertSuccess(),{ScheduleExpression:cdk().stringToCloudFormation(properties.scheduleExpression)}):properties}function CfnScheduledQueryScheduleConfigurationPropertyFromCloudFormation(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("scheduleExpression","ScheduleExpression",properties.ScheduleExpression!=null?cfn_parse().FromCloudFormation.getString(properties.ScheduleExpression):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryDimensionMappingPropertyValidator(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("dimensionValueType",cdk().requiredValidator)(properties.dimensionValueType)),errors.collect(cdk().propertyValidator("dimensionValueType",cdk().validateString)(properties.dimensionValueType)),errors.collect(cdk().propertyValidator("name",cdk().requiredValidator)(properties.name)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.wrap('supplied properties not correct for "DimensionMappingProperty"')}function convertCfnScheduledQueryDimensionMappingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryDimensionMappingPropertyValidator(properties).assertSuccess(),{DimensionValueType:cdk().stringToCloudFormation(properties.dimensionValueType),Name:cdk().stringToCloudFormation(properties.name)}):properties}function CfnScheduledQueryDimensionMappingPropertyFromCloudFormation(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("dimensionValueType","DimensionValueType",properties.DimensionValueType!=null?cfn_parse().FromCloudFormation.getString(properties.DimensionValueType):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryMultiMeasureAttributeMappingPropertyValidator(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("measureValueType",cdk().requiredValidator)(properties.measureValueType)),errors.collect(cdk().propertyValidator("measureValueType",cdk().validateString)(properties.measureValueType)),errors.collect(cdk().propertyValidator("sourceColumn",cdk().requiredValidator)(properties.sourceColumn)),errors.collect(cdk().propertyValidator("sourceColumn",cdk().validateString)(properties.sourceColumn)),errors.collect(cdk().propertyValidator("targetMultiMeasureAttributeName",cdk().validateString)(properties.targetMultiMeasureAttributeName)),errors.wrap('supplied properties not correct for "MultiMeasureAttributeMappingProperty"')}function convertCfnScheduledQueryMultiMeasureAttributeMappingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryMultiMeasureAttributeMappingPropertyValidator(properties).assertSuccess(),{MeasureValueType:cdk().stringToCloudFormation(properties.measureValueType),SourceColumn:cdk().stringToCloudFormation(properties.sourceColumn),TargetMultiMeasureAttributeName:cdk().stringToCloudFormation(properties.targetMultiMeasureAttributeName)}):properties}function CfnScheduledQueryMultiMeasureAttributeMappingPropertyFromCloudFormation(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("measureValueType","MeasureValueType",properties.MeasureValueType!=null?cfn_parse().FromCloudFormation.getString(properties.MeasureValueType):void 0),ret.addPropertyResult("sourceColumn","SourceColumn",properties.SourceColumn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceColumn):void 0),ret.addPropertyResult("targetMultiMeasureAttributeName","TargetMultiMeasureAttributeName",properties.TargetMultiMeasureAttributeName!=null?cfn_parse().FromCloudFormation.getString(properties.TargetMultiMeasureAttributeName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryMixedMeasureMappingPropertyValidator(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("measureName",cdk().validateString)(properties.measureName)),errors.collect(cdk().propertyValidator("measureValueType",cdk().requiredValidator)(properties.measureValueType)),errors.collect(cdk().propertyValidator("measureValueType",cdk().validateString)(properties.measureValueType)),errors.collect(cdk().propertyValidator("multiMeasureAttributeMappings",cdk().listValidator(CfnScheduledQueryMultiMeasureAttributeMappingPropertyValidator))(properties.multiMeasureAttributeMappings)),errors.collect(cdk().propertyValidator("sourceColumn",cdk().validateString)(properties.sourceColumn)),errors.collect(cdk().propertyValidator("targetMeasureName",cdk().validateString)(properties.targetMeasureName)),errors.wrap('supplied properties not correct for "MixedMeasureMappingProperty"')}function convertCfnScheduledQueryMixedMeasureMappingPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryMixedMeasureMappingPropertyValidator(properties).assertSuccess(),{MeasureName:cdk().stringToCloudFormation(properties.measureName),MeasureValueType:cdk().stringToCloudFormation(properties.measureValueType),MultiMeasureAttributeMappings:cdk().listMapper(convertCfnScheduledQueryMultiMeasureAttributeMappingPropertyToCloudFormation)(properties.multiMeasureAttributeMappings),SourceColumn:cdk().stringToCloudFormation(properties.sourceColumn),TargetMeasureName:cdk().stringToCloudFormation(properties.targetMeasureName)}):properties}function CfnScheduledQueryMixedMeasureMappingPropertyFromCloudFormation(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("measureName","MeasureName",properties.MeasureName!=null?cfn_parse().FromCloudFormation.getString(properties.MeasureName):void 0),ret.addPropertyResult("measureValueType","MeasureValueType",properties.MeasureValueType!=null?cfn_parse().FromCloudFormation.getString(properties.MeasureValueType):void 0),ret.addPropertyResult("multiMeasureAttributeMappings","MultiMeasureAttributeMappings",properties.MultiMeasureAttributeMappings!=null?cfn_parse().FromCloudFormation.getArray(CfnScheduledQueryMultiMeasureAttributeMappingPropertyFromCloudFormation)(properties.MultiMeasureAttributeMappings):void 0),ret.addPropertyResult("sourceColumn","SourceColumn",properties.SourceColumn!=null?cfn_parse().FromCloudFormation.getString(properties.SourceColumn):void 0),ret.addPropertyResult("targetMeasureName","TargetMeasureName",properties.TargetMeasureName!=null?cfn_parse().FromCloudFormation.getString(properties.TargetMeasureName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryMultiMeasureMappingsPropertyValidator(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("multiMeasureAttributeMappings",cdk().requiredValidator)(properties.multiMeasureAttributeMappings)),errors.collect(cdk().propertyValidator("multiMeasureAttributeMappings",cdk().listValidator(CfnScheduledQueryMultiMeasureAttributeMappingPropertyValidator))(properties.multiMeasureAttributeMappings)),errors.collect(cdk().propertyValidator("targetMultiMeasureName",cdk().validateString)(properties.targetMultiMeasureName)),errors.wrap('supplied properties not correct for "MultiMeasureMappingsProperty"')}function convertCfnScheduledQueryMultiMeasureMappingsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryMultiMeasureMappingsPropertyValidator(properties).assertSuccess(),{MultiMeasureAttributeMappings:cdk().listMapper(convertCfnScheduledQueryMultiMeasureAttributeMappingPropertyToCloudFormation)(properties.multiMeasureAttributeMappings),TargetMultiMeasureName:cdk().stringToCloudFormation(properties.targetMultiMeasureName)}):properties}function CfnScheduledQueryMultiMeasureMappingsPropertyFromCloudFormation(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("multiMeasureAttributeMappings","MultiMeasureAttributeMappings",properties.MultiMeasureAttributeMappings!=null?cfn_parse().FromCloudFormation.getArray(CfnScheduledQueryMultiMeasureAttributeMappingPropertyFromCloudFormation)(properties.MultiMeasureAttributeMappings):void 0),ret.addPropertyResult("targetMultiMeasureName","TargetMultiMeasureName",properties.TargetMultiMeasureName!=null?cfn_parse().FromCloudFormation.getString(properties.TargetMultiMeasureName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryTimestreamConfigurationPropertyValidator(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("databaseName",cdk().requiredValidator)(properties.databaseName)),errors.collect(cdk().propertyValidator("databaseName",cdk().validateString)(properties.databaseName)),errors.collect(cdk().propertyValidator("dimensionMappings",cdk().requiredValidator)(properties.dimensionMappings)),errors.collect(cdk().propertyValidator("dimensionMappings",cdk().listValidator(CfnScheduledQueryDimensionMappingPropertyValidator))(properties.dimensionMappings)),errors.collect(cdk().propertyValidator("measureNameColumn",cdk().validateString)(properties.measureNameColumn)),errors.collect(cdk().propertyValidator("mixedMeasureMappings",cdk().listValidator(CfnScheduledQueryMixedMeasureMappingPropertyValidator))(properties.mixedMeasureMappings)),errors.collect(cdk().propertyValidator("multiMeasureMappings",CfnScheduledQueryMultiMeasureMappingsPropertyValidator)(properties.multiMeasureMappings)),errors.collect(cdk().propertyValidator("tableName",cdk().requiredValidator)(properties.tableName)),errors.collect(cdk().propertyValidator("tableName",cdk().validateString)(properties.tableName)),errors.collect(cdk().propertyValidator("timeColumn",cdk().requiredValidator)(properties.timeColumn)),errors.collect(cdk().propertyValidator("timeColumn",cdk().validateString)(properties.timeColumn)),errors.wrap('supplied properties not correct for "TimestreamConfigurationProperty"')}function convertCfnScheduledQueryTimestreamConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryTimestreamConfigurationPropertyValidator(properties).assertSuccess(),{DatabaseName:cdk().stringToCloudFormation(properties.databaseName),DimensionMappings:cdk().listMapper(convertCfnScheduledQueryDimensionMappingPropertyToCloudFormation)(properties.dimensionMappings),MeasureNameColumn:cdk().stringToCloudFormation(properties.measureNameColumn),MixedMeasureMappings:cdk().listMapper(convertCfnScheduledQueryMixedMeasureMappingPropertyToCloudFormation)(properties.mixedMeasureMappings),MultiMeasureMappings:convertCfnScheduledQueryMultiMeasureMappingsPropertyToCloudFormation(properties.multiMeasureMappings),TableName:cdk().stringToCloudFormation(properties.tableName),TimeColumn:cdk().stringToCloudFormation(properties.timeColumn)}):properties}function CfnScheduledQueryTimestreamConfigurationPropertyFromCloudFormation(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("databaseName","DatabaseName",properties.DatabaseName!=null?cfn_parse().FromCloudFormation.getString(properties.DatabaseName):void 0),ret.addPropertyResult("dimensionMappings","DimensionMappings",properties.DimensionMappings!=null?cfn_parse().FromCloudFormation.getArray(CfnScheduledQueryDimensionMappingPropertyFromCloudFormation)(properties.DimensionMappings):void 0),ret.addPropertyResult("measureNameColumn","MeasureNameColumn",properties.MeasureNameColumn!=null?cfn_parse().FromCloudFormation.getString(properties.MeasureNameColumn):void 0),ret.addPropertyResult("mixedMeasureMappings","MixedMeasureMappings",properties.MixedMeasureMappings!=null?cfn_parse().FromCloudFormation.getArray(CfnScheduledQueryMixedMeasureMappingPropertyFromCloudFormation)(properties.MixedMeasureMappings):void 0),ret.addPropertyResult("multiMeasureMappings","MultiMeasureMappings",properties.MultiMeasureMappings!=null?CfnScheduledQueryMultiMeasureMappingsPropertyFromCloudFormation(properties.MultiMeasureMappings):void 0),ret.addPropertyResult("tableName","TableName",properties.TableName!=null?cfn_parse().FromCloudFormation.getString(properties.TableName):void 0),ret.addPropertyResult("timeColumn","TimeColumn",properties.TimeColumn!=null?cfn_parse().FromCloudFormation.getString(properties.TimeColumn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryTargetConfigurationPropertyValidator(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("timestreamConfiguration",cdk().requiredValidator)(properties.timestreamConfiguration)),errors.collect(cdk().propertyValidator("timestreamConfiguration",CfnScheduledQueryTimestreamConfigurationPropertyValidator)(properties.timestreamConfiguration)),errors.wrap('supplied properties not correct for "TargetConfigurationProperty"')}function convertCfnScheduledQueryTargetConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryTargetConfigurationPropertyValidator(properties).assertSuccess(),{TimestreamConfiguration:convertCfnScheduledQueryTimestreamConfigurationPropertyToCloudFormation(properties.timestreamConfiguration)}):properties}function CfnScheduledQueryTargetConfigurationPropertyFromCloudFormation(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("timestreamConfiguration","TimestreamConfiguration",properties.TimestreamConfiguration!=null?CfnScheduledQueryTimestreamConfigurationPropertyFromCloudFormation(properties.TimestreamConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQuerySnsConfigurationPropertyValidator(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("topicArn",cdk().requiredValidator)(properties.topicArn)),errors.collect(cdk().propertyValidator("topicArn",cdk().validateString)(properties.topicArn)),errors.wrap('supplied properties not correct for "SnsConfigurationProperty"')}function convertCfnScheduledQuerySnsConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQuerySnsConfigurationPropertyValidator(properties).assertSuccess(),{TopicArn:cdk().stringToCloudFormation(properties.topicArn)}):properties}function CfnScheduledQuerySnsConfigurationPropertyFromCloudFormation(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("topicArn","TopicArn",properties.TopicArn!=null?cfn_parse().FromCloudFormation.getString(properties.TopicArn):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryNotificationConfigurationPropertyValidator(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("snsConfiguration",cdk().requiredValidator)(properties.snsConfiguration)),errors.collect(cdk().propertyValidator("snsConfiguration",CfnScheduledQuerySnsConfigurationPropertyValidator)(properties.snsConfiguration)),errors.wrap('supplied properties not correct for "NotificationConfigurationProperty"')}function convertCfnScheduledQueryNotificationConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryNotificationConfigurationPropertyValidator(properties).assertSuccess(),{SnsConfiguration:convertCfnScheduledQuerySnsConfigurationPropertyToCloudFormation(properties.snsConfiguration)}):properties}function CfnScheduledQueryNotificationConfigurationPropertyFromCloudFormation(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("snsConfiguration","SnsConfiguration",properties.SnsConfiguration!=null?CfnScheduledQuerySnsConfigurationPropertyFromCloudFormation(properties.SnsConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnScheduledQueryPropsValidator(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("clientToken",cdk().validateString)(properties.clientToken)),errors.collect(cdk().propertyValidator("errorReportConfiguration",cdk().requiredValidator)(properties.errorReportConfiguration)),errors.collect(cdk().propertyValidator("errorReportConfiguration",CfnScheduledQueryErrorReportConfigurationPropertyValidator)(properties.errorReportConfiguration)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("notificationConfiguration",cdk().requiredValidator)(properties.notificationConfiguration)),errors.collect(cdk().propertyValidator("notificationConfiguration",CfnScheduledQueryNotificationConfigurationPropertyValidator)(properties.notificationConfiguration)),errors.collect(cdk().propertyValidator("queryString",cdk().requiredValidator)(properties.queryString)),errors.collect(cdk().propertyValidator("queryString",cdk().validateString)(properties.queryString)),errors.collect(cdk().propertyValidator("scheduleConfiguration",cdk().requiredValidator)(properties.scheduleConfiguration)),errors.collect(cdk().propertyValidator("scheduleConfiguration",CfnScheduledQueryScheduleConfigurationPropertyValidator)(properties.scheduleConfiguration)),errors.collect(cdk().propertyValidator("scheduledQueryExecutionRoleArn",cdk().requiredValidator)(properties.scheduledQueryExecutionRoleArn)),errors.collect(cdk().propertyValidator("scheduledQueryExecutionRoleArn",cdk().validateString)(properties.scheduledQueryExecutionRoleArn)),errors.collect(cdk().propertyValidator("scheduledQueryName",cdk().validateString)(properties.scheduledQueryName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("targetConfiguration",CfnScheduledQueryTargetConfigurationPropertyValidator)(properties.targetConfiguration)),errors.wrap('supplied properties not correct for "CfnScheduledQueryProps"')}function convertCfnScheduledQueryPropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnScheduledQueryPropsValidator(properties).assertSuccess(),{ClientToken:cdk().stringToCloudFormation(properties.clientToken),ErrorReportConfiguration:convertCfnScheduledQueryErrorReportConfigurationPropertyToCloudFormation(properties.errorReportConfiguration),KmsKeyId:cdk().stringToCloudFormation(properties.kmsKeyId),NotificationConfiguration:convertCfnScheduledQueryNotificationConfigurationPropertyToCloudFormation(properties.notificationConfiguration),QueryString:cdk().stringToCloudFormation(properties.queryString),ScheduleConfiguration:convertCfnScheduledQueryScheduleConfigurationPropertyToCloudFormation(properties.scheduleConfiguration),ScheduledQueryExecutionRoleArn:cdk().stringToCloudFormation(properties.scheduledQueryExecutionRoleArn),ScheduledQueryName:cdk().stringToCloudFormation(properties.scheduledQueryName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),TargetConfiguration:convertCfnScheduledQueryTargetConfigurationPropertyToCloudFormation(properties.targetConfiguration)}):properties}function CfnScheduledQueryPropsFromCloudFormation(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("clientToken","ClientToken",properties.ClientToken!=null?cfn_parse().FromCloudFormation.getString(properties.ClientToken):void 0),ret.addPropertyResult("errorReportConfiguration","ErrorReportConfiguration",properties.ErrorReportConfiguration!=null?CfnScheduledQueryErrorReportConfigurationPropertyFromCloudFormation(properties.ErrorReportConfiguration):void 0),ret.addPropertyResult("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addPropertyResult("notificationConfiguration","NotificationConfiguration",properties.NotificationConfiguration!=null?CfnScheduledQueryNotificationConfigurationPropertyFromCloudFormation(properties.NotificationConfiguration):void 0),ret.addPropertyResult("queryString","QueryString",properties.QueryString!=null?cfn_parse().FromCloudFormation.getString(properties.QueryString):void 0),ret.addPropertyResult("scheduleConfiguration","ScheduleConfiguration",properties.ScheduleConfiguration!=null?CfnScheduledQueryScheduleConfigurationPropertyFromCloudFormation(properties.ScheduleConfiguration):void 0),ret.addPropertyResult("scheduledQueryExecutionRoleArn","ScheduledQueryExecutionRoleArn",properties.ScheduledQueryExecutionRoleArn!=null?cfn_parse().FromCloudFormation.getString(properties.ScheduledQueryExecutionRoleArn):void 0),ret.addPropertyResult("scheduledQueryName","ScheduledQueryName",properties.ScheduledQueryName!=null?cfn_parse().FromCloudFormation.getString(properties.ScheduledQueryName):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("targetConfiguration","TargetConfiguration",properties.TargetConfiguration!=null?CfnScheduledQueryTargetConfigurationPropertyFromCloudFormation(properties.TargetConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}class CfnTable extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnTablePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnTable(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:CfnTable.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_timestream_CfnTableProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnTable),error}cdk().requireProperty(props,"databaseName",this),this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrName=cdk().Token.asString(this.getAtt("Name",cdk().ResolutionTypeHint.STRING)),this.databaseName=props.databaseName,this.magneticStoreWriteProperties=props.magneticStoreWriteProperties,this.retentionProperties=props.retentionProperties,this.schema=props.schema,this.tableName=props.tableName,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Timestream::Table",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{databaseName:this.databaseName,magneticStoreWriteProperties:this.magneticStoreWriteProperties,retentionProperties:this.retentionProperties,schema:this.schema,tableName:this.tableName,tags:this.tags.renderTags()}}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",CfnTable.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnTablePropsToCloudFormation(props)}}exports.CfnTable=CfnTable,_c=JSII_RTTI_SYMBOL_1,CfnTable[_c]={fqn:"aws-cdk-lib.aws_timestream.CfnTable",version:"2.202.0"},CfnTable.CFN_RESOURCE_TYPE_NAME="AWS::Timestream::Table";function CfnTableRetentionPropertiesPropertyValidator(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("magneticStoreRetentionPeriodInDays",cdk().validateString)(properties.magneticStoreRetentionPeriodInDays)),errors.collect(cdk().propertyValidator("memoryStoreRetentionPeriodInHours",cdk().validateString)(properties.memoryStoreRetentionPeriodInHours)),errors.wrap('supplied properties not correct for "RetentionPropertiesProperty"')}function convertCfnTableRetentionPropertiesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTableRetentionPropertiesPropertyValidator(properties).assertSuccess(),{MagneticStoreRetentionPeriodInDays:cdk().stringToCloudFormation(properties.magneticStoreRetentionPeriodInDays),MemoryStoreRetentionPeriodInHours:cdk().stringToCloudFormation(properties.memoryStoreRetentionPeriodInHours)}):properties}function CfnTableRetentionPropertiesPropertyFromCloudFormation(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("magneticStoreRetentionPeriodInDays","MagneticStoreRetentionPeriodInDays",properties.MagneticStoreRetentionPeriodInDays!=null?cfn_parse().FromCloudFormation.getString(properties.MagneticStoreRetentionPeriodInDays):void 0),ret.addPropertyResult("memoryStoreRetentionPeriodInHours","MemoryStoreRetentionPeriodInHours",properties.MemoryStoreRetentionPeriodInHours!=null?cfn_parse().FromCloudFormation.getString(properties.MemoryStoreRetentionPeriodInHours):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnTablePartitionKeyPropertyValidator(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("enforcementInRecord",cdk().validateString)(properties.enforcementInRecord)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),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 "PartitionKeyProperty"')}function convertCfnTablePartitionKeyPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTablePartitionKeyPropertyValidator(properties).assertSuccess(),{EnforcementInRecord:cdk().stringToCloudFormation(properties.enforcementInRecord),Name:cdk().stringToCloudFormation(properties.name),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnTablePartitionKeyPropertyFromCloudFormation(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("enforcementInRecord","EnforcementInRecord",properties.EnforcementInRecord!=null?cfn_parse().FromCloudFormation.getString(properties.EnforcementInRecord):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnTableSchemaPropertyValidator(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("compositePartitionKey",cdk().listValidator(CfnTablePartitionKeyPropertyValidator))(properties.compositePartitionKey)),errors.wrap('supplied properties not correct for "SchemaProperty"')}function convertCfnTableSchemaPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTableSchemaPropertyValidator(properties).assertSuccess(),{CompositePartitionKey:cdk().listMapper(convertCfnTablePartitionKeyPropertyToCloudFormation)(properties.compositePartitionKey)}):properties}function CfnTableSchemaPropertyFromCloudFormation(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("compositePartitionKey","CompositePartitionKey",properties.CompositePartitionKey!=null?cfn_parse().FromCloudFormation.getArray(CfnTablePartitionKeyPropertyFromCloudFormation)(properties.CompositePartitionKey):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnTableS3ConfigurationPropertyValidator(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("bucketName",cdk().requiredValidator)(properties.bucketName)),errors.collect(cdk().propertyValidator("bucketName",cdk().validateString)(properties.bucketName)),errors.collect(cdk().propertyValidator("encryptionOption",cdk().requiredValidator)(properties.encryptionOption)),errors.collect(cdk().propertyValidator("encryptionOption",cdk().validateString)(properties.encryptionOption)),errors.collect(cdk().propertyValidator("kmsKeyId",cdk().validateString)(properties.kmsKeyId)),errors.collect(cdk().propertyValidator("objectKeyPrefix",cdk().validateString)(properties.objectKeyPrefix)),errors.wrap('supplied properties not correct for "S3ConfigurationProperty"')}function convertCfnTableS3ConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTableS3ConfigurationPropertyValidator(properties).assertSuccess(),{BucketName:cdk().stringToCloudFormation(properties.bucketName),EncryptionOption:cdk().stringToCloudFormation(properties.encryptionOption),KmsKeyId:cdk().stringToCloudFormation(properties.kmsKeyId),ObjectKeyPrefix:cdk().stringToCloudFormation(properties.objectKeyPrefix)}):properties}function CfnTableS3ConfigurationPropertyFromCloudFormation(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("bucketName","BucketName",properties.BucketName!=null?cfn_parse().FromCloudFormation.getString(properties.BucketName):void 0),ret.addPropertyResult("encryptionOption","EncryptionOption",properties.EncryptionOption!=null?cfn_parse().FromCloudFormation.getString(properties.EncryptionOption):void 0),ret.addPropertyResult("kmsKeyId","KmsKeyId",properties.KmsKeyId!=null?cfn_parse().FromCloudFormation.getString(properties.KmsKeyId):void 0),ret.addPropertyResult("objectKeyPrefix","ObjectKeyPrefix",properties.ObjectKeyPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.ObjectKeyPrefix):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnTableMagneticStoreRejectedDataLocationPropertyValidator(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("s3Configuration",CfnTableS3ConfigurationPropertyValidator)(properties.s3Configuration)),errors.wrap('supplied properties not correct for "MagneticStoreRejectedDataLocationProperty"')}function convertCfnTableMagneticStoreRejectedDataLocationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTableMagneticStoreRejectedDataLocationPropertyValidator(properties).assertSuccess(),{S3Configuration:convertCfnTableS3ConfigurationPropertyToCloudFormation(properties.s3Configuration)}):properties}function CfnTableMagneticStoreRejectedDataLocationPropertyFromCloudFormation(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("s3Configuration","S3Configuration",properties.S3Configuration!=null?CfnTableS3ConfigurationPropertyFromCloudFormation(properties.S3Configuration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnTableMagneticStoreWritePropertiesPropertyValidator(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("enableMagneticStoreWrites",cdk().requiredValidator)(properties.enableMagneticStoreWrites)),errors.collect(cdk().propertyValidator("enableMagneticStoreWrites",cdk().validateBoolean)(properties.enableMagneticStoreWrites)),errors.collect(cdk().propertyValidator("magneticStoreRejectedDataLocation",CfnTableMagneticStoreRejectedDataLocationPropertyValidator)(properties.magneticStoreRejectedDataLocation)),errors.wrap('supplied properties not correct for "MagneticStoreWritePropertiesProperty"')}function convertCfnTableMagneticStoreWritePropertiesPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTableMagneticStoreWritePropertiesPropertyValidator(properties).assertSuccess(),{EnableMagneticStoreWrites:cdk().booleanToCloudFormation(properties.enableMagneticStoreWrites),MagneticStoreRejectedDataLocation:convertCfnTableMagneticStoreRejectedDataLocationPropertyToCloudFormation(properties.magneticStoreRejectedDataLocation)}):properties}function CfnTableMagneticStoreWritePropertiesPropertyFromCloudFormation(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("enableMagneticStoreWrites","EnableMagneticStoreWrites",properties.EnableMagneticStoreWrites!=null?cfn_parse().FromCloudFormation.getBoolean(properties.EnableMagneticStoreWrites):void 0),ret.addPropertyResult("magneticStoreRejectedDataLocation","MagneticStoreRejectedDataLocation",properties.MagneticStoreRejectedDataLocation!=null?CfnTableMagneticStoreRejectedDataLocationPropertyFromCloudFormation(properties.MagneticStoreRejectedDataLocation):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnTablePropsValidator(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("databaseName",cdk().requiredValidator)(properties.databaseName)),errors.collect(cdk().propertyValidator("databaseName",cdk().validateString)(properties.databaseName)),errors.collect(cdk().propertyValidator("magneticStoreWriteProperties",cdk().validateObject)(properties.magneticStoreWriteProperties)),errors.collect(cdk().propertyValidator("retentionProperties",cdk().validateObject)(properties.retentionProperties)),errors.collect(cdk().propertyValidator("schema",CfnTableSchemaPropertyValidator)(properties.schema)),errors.collect(cdk().propertyValidator("tableName",cdk().validateString)(properties.tableName)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnTableProps"')}function convertCfnTablePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnTablePropsValidator(properties).assertSuccess(),{DatabaseName:cdk().stringToCloudFormation(properties.databaseName),MagneticStoreWriteProperties:cdk().objectToCloudFormation(properties.magneticStoreWriteProperties),RetentionProperties:cdk().objectToCloudFormation(properties.retentionProperties),Schema:convertCfnTableSchemaPropertyToCloudFormation(properties.schema),TableName:cdk().stringToCloudFormation(properties.tableName),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags)}):properties}function CfnTablePropsFromCloudFormation(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("databaseName","DatabaseName",properties.DatabaseName!=null?cfn_parse().FromCloudFormation.getString(properties.DatabaseName):void 0),ret.addPropertyResult("magneticStoreWriteProperties","MagneticStoreWriteProperties",properties.MagneticStoreWriteProperties!=null?cfn_parse().FromCloudFormation.getAny(properties.MagneticStoreWriteProperties):void 0),ret.addPropertyResult("retentionProperties","RetentionProperties",properties.RetentionProperties!=null?cfn_parse().FromCloudFormation.getAny(properties.RetentionProperties):void 0),ret.addPropertyResult("schema","Schema",properties.Schema!=null?CfnTableSchemaPropertyFromCloudFormation(properties.Schema):void 0),ret.addPropertyResult("tableName","TableName",properties.TableName!=null?cfn_parse().FromCloudFormation.getString(properties.TableName):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 CfnInfluxDBInstance extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnInfluxDBInstancePropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnInfluxDBInstance(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:CfnInfluxDBInstance.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_timestream_CfnInfluxDBInstanceProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnInfluxDBInstance),error}this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.attrAvailabilityZone=cdk().Token.asString(this.getAtt("AvailabilityZone",cdk().ResolutionTypeHint.STRING)),this.attrEndpoint=cdk().Token.asString(this.getAtt("Endpoint",cdk().ResolutionTypeHint.STRING)),this.attrId=cdk().Token.asString(this.getAtt("Id",cdk().ResolutionTypeHint.STRING)),this.attrInfluxAuthParametersSecretArn=cdk().Token.asString(this.getAtt("InfluxAuthParametersSecretArn",cdk().ResolutionTypeHint.STRING)),this.attrSecondaryAvailabilityZone=cdk().Token.asString(this.getAtt("SecondaryAvailabilityZone",cdk().ResolutionTypeHint.STRING)),this.attrStatus=cdk().Token.asString(this.getAtt("Status",cdk().ResolutionTypeHint.STRING)),this.allocatedStorage=props.allocatedStorage,this.bucket=props.bucket,this.cdkTagManager=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::Timestream::InfluxDBInstance",void 0,{tagPropertyName:"tags"}),this.dbInstanceType=props.dbInstanceType,this.dbParameterGroupIdentifier=props.dbParameterGroupIdentifier,this.dbStorageType=props.dbStorageType,this.deploymentType=props.deploymentType,this.logDeliveryConfiguration=props.logDeliveryConfiguration,this.name=props.name,this.networkType=props.networkType,this.organization=props.organization,this.password=props.password,this.port=props.port,this.publiclyAccessible=props.publiclyAccessible,this.tags=props.tags,this.username=props.username,this.vpcSecurityGroupIds=props.vpcSecurityGroupIds,this.vpcSubnetIds=props.vpcSubnetIds}get cfnProperties(){return{allocatedStorage:this.allocatedStorage,bucket:this.bucket,tags:this.cdkTagManager.renderTags(this.tags),dbInstanceType:this.dbInstanceType,dbParameterGroupIdentifier:this.dbParameterGroupIdentifier,dbStorageType:this.dbStorageType,deploymentType:this.deploymentType,logDeliveryConfiguration:this.logDeliveryConfiguration,name:this.name,networkType:this.networkType,organization:this.organization,password:this.password,port:this.port,publiclyAccessible:this.publiclyAccessible,username:this.username,vpcSecurityGroupIds:this.vpcSecurityGroupIds,vpcSubnetIds:this.vpcSubnetIds}}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",CfnInfluxDBInstance.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnInfluxDBInstancePropsToCloudFormation(props)}}exports.CfnInfluxDBInstance=CfnInfluxDBInstance,_d=JSII_RTTI_SYMBOL_1,CfnInfluxDBInstance[_d]={fqn:"aws-cdk-lib.aws_timestream.CfnInfluxDBInstance",version:"2.202.0"},CfnInfluxDBInstance.CFN_RESOURCE_TYPE_NAME="AWS::Timestream::InfluxDBInstance";function CfnInfluxDBInstanceS3ConfigurationPropertyValidator(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("bucketName",cdk().requiredValidator)(properties.bucketName)),errors.collect(cdk().propertyValidator("bucketName",cdk().validateString)(properties.bucketName)),errors.collect(cdk().propertyValidator("enabled",cdk().requiredValidator)(properties.enabled)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.wrap('supplied properties not correct for "S3ConfigurationProperty"')}function convertCfnInfluxDBInstanceS3ConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInfluxDBInstanceS3ConfigurationPropertyValidator(properties).assertSuccess(),{BucketName:cdk().stringToCloudFormation(properties.bucketName),Enabled:cdk().booleanToCloudFormation(properties.enabled)}):properties}function CfnInfluxDBInstanceS3ConfigurationPropertyFromCloudFormation(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("bucketName","BucketName",properties.BucketName!=null?cfn_parse().FromCloudFormation.getString(properties.BucketName):void 0),ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnInfluxDBInstanceLogDeliveryConfigurationPropertyValidator(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("s3Configuration",cdk().requiredValidator)(properties.s3Configuration)),errors.collect(cdk().propertyValidator("s3Configuration",CfnInfluxDBInstanceS3ConfigurationPropertyValidator)(properties.s3Configuration)),errors.wrap('supplied properties not correct for "LogDeliveryConfigurationProperty"')}function convertCfnInfluxDBInstanceLogDeliveryConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInfluxDBInstanceLogDeliveryConfigurationPropertyValidator(properties).assertSuccess(),{S3Configuration:convertCfnInfluxDBInstanceS3ConfigurationPropertyToCloudFormation(properties.s3Configuration)}):properties}function CfnInfluxDBInstanceLogDeliveryConfigurationPropertyFromCloudFormation(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("s3Configuration","S3Configuration",properties.S3Configuration!=null?CfnInfluxDBInstanceS3ConfigurationPropertyFromCloudFormation(properties.S3Configuration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnInfluxDBInstancePropsValidator(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("allocatedStorage",cdk().validateNumber)(properties.allocatedStorage)),errors.collect(cdk().propertyValidator("bucket",cdk().validateString)(properties.bucket)),errors.collect(cdk().propertyValidator("dbInstanceType",cdk().validateString)(properties.dbInstanceType)),errors.collect(cdk().propertyValidator("dbParameterGroupIdentifier",cdk().validateString)(properties.dbParameterGroupIdentifier)),errors.collect(cdk().propertyValidator("dbStorageType",cdk().validateString)(properties.dbStorageType)),errors.collect(cdk().propertyValidator("deploymentType",cdk().validateString)(properties.deploymentType)),errors.collect(cdk().propertyValidator("logDeliveryConfiguration",CfnInfluxDBInstanceLogDeliveryConfigurationPropertyValidator)(properties.logDeliveryConfiguration)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("networkType",cdk().validateString)(properties.networkType)),errors.collect(cdk().propertyValidator("organization",cdk().validateString)(properties.organization)),errors.collect(cdk().propertyValidator("password",cdk().validateString)(properties.password)),errors.collect(cdk().propertyValidator("port",cdk().validateNumber)(properties.port)),errors.collect(cdk().propertyValidator("publiclyAccessible",cdk().validateBoolean)(properties.publiclyAccessible)),errors.collect(cdk().propertyValidator("tags",cdk().listValidator(cdk().validateCfnTag))(properties.tags)),errors.collect(cdk().propertyValidator("username",cdk().validateString)(properties.username)),errors.collect(cdk().propertyValidator("vpcSecurityGroupIds",cdk().listValidator(cdk().validateString))(properties.vpcSecurityGroupIds)),errors.collect(cdk().propertyValidator("vpcSubnetIds",cdk().listValidator(cdk().validateString))(properties.vpcSubnetIds)),errors.wrap('supplied properties not correct for "CfnInfluxDBInstanceProps"')}function convertCfnInfluxDBInstancePropsToCloudFormation(properties){return cdk().canInspect(properties)?(CfnInfluxDBInstancePropsValidator(properties).assertSuccess(),{AllocatedStorage:cdk().numberToCloudFormation(properties.allocatedStorage),Bucket:cdk().stringToCloudFormation(properties.bucket),DbInstanceType:cdk().stringToCloudFormation(properties.dbInstanceType),DbParameterGroupIdentifier:cdk().stringToCloudFormation(properties.dbParameterGroupIdentifier),DbStorageType:cdk().stringToCloudFormation(properties.dbStorageType),DeploymentType:cdk().stringToCloudFormation(properties.deploymentType),LogDeliveryConfiguration:convertCfnInfluxDBInstanceLogDeliveryConfigurationPropertyToCloudFormation(properties.logDeliveryConfiguration),Name:cdk().stringToCloudFormation(properties.name),NetworkType:cdk().stringToCloudFormation(properties.networkType),Organization:cdk().stringToCloudFormation(properties.organization),Password:cdk().stringToCloudFormation(properties.password),Port:cdk().numberToCloudFormation(properties.port),PubliclyAccessible:cdk().booleanToCloudFormation(properties.publiclyAccessible),Tags:cdk().listMapper(cdk().cfnTagToCloudFormation)(properties.tags),Username:cdk().stringToCloudFormation(properties.username),VpcSecurityGroupIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.vpcSecurityGroupIds),VpcSubnetIds:cdk().listMapper(cdk().stringToCloudFormation)(properties.vpcSubnetIds)}):properties}function CfnInfluxDBInstancePropsFromCloudFormation(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("allocatedStorage","AllocatedStorage",properties.AllocatedStorage!=null?cfn_parse().FromCloudFormation.getNumber(properties.AllocatedStorage):void 0),ret.addPropertyResult("bucket","Bucket",properties.Bucket!=null?cfn_parse().FromCloudFormation.getString(properties.Bucket):void 0),ret.addPropertyResult("dbInstanceType","DbInstanceType",properties.DbInstanceType!=null?cfn_parse().FromCloudFormation.getString(properties.DbInstanceType):void 0),ret.addPropertyResult("dbParameterGroupIdentifier","DbParameterGroupIdentifier",properties.DbParameterGroupIdentifier!=null?cfn_parse().FromCloudFormation.getString(properties.DbParameterGroupIdentifier):void 0),ret.addPropertyResult("dbStorageType","DbStorageType",properties.DbStorageType!=null?cfn_parse().FromCloudFormation.getString(properties.DbStorageType):void 0),ret.addPropertyResult("deploymentType","DeploymentType",properties.DeploymentType!=null?cfn_parse().FromCloudFormation.getString(properties.DeploymentType):void 0),ret.addPropertyResult("logDeliveryConfiguration","LogDeliveryConfiguration",properties.LogDeliveryConfiguration!=null?CfnInfluxDBInstanceLogDeliveryConfigurationPropertyFromCloudFormation(properties.LogDeliveryConfiguration):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("networkType","NetworkType",properties.NetworkType!=null?cfn_parse().FromCloudFormation.getString(properties.NetworkType):void 0),ret.addPropertyResult("organization","Organization",properties.Organization!=null?cfn_parse().FromCloudFormation.getString(properties.Organization):void 0),ret.addPropertyResult("password","Password",properties.Password!=null?cfn_parse().FromCloudFormation.getString(properties.Password):void 0),ret.addPropertyResult("port","Port",properties.Port!=null?cfn_parse().FromCloudFormation.getNumber(properties.Port):void 0),ret.addPropertyResult("publiclyAccessible","PubliclyAccessible",properties.PubliclyAccessible!=null?cfn_parse().FromCloudFormation.getBoolean(properties.PubliclyAccessible):void 0),ret.addPropertyResult("tags","Tags",properties.Tags!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getCfnTag)(properties.Tags):void 0),ret.addPropertyResult("username","Username",properties.Username!=null?cfn_parse().FromCloudFormation.getString(properties.Username):void 0),ret.addPropertyResult("vpcSecurityGroupIds","VpcSecurityGroupIds",properties.VpcSecurityGroupIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.VpcSecurityGroupIds):void 0),ret.addPropertyResult("vpcSubnetIds","VpcSubnetIds",properties.VpcSubnetIds!=null?cfn_parse().FromCloudFormation.getArray(cfn_parse().FromCloudFormation.getString)(properties.VpcSubnetIds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}