aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 193 kB
JavaScript
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnDeliveryStream=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 CfnDeliveryStream extends cdk().CfnResource{static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeliveryStreamPropsFromCloudFormation(resourceProperties);if(cdk().isResolvableObject(propsResult.value))throw new(cdk_errors()).ValidationError("Unexpected IResolvable",scope);const ret=new CfnDeliveryStream(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:CfnDeliveryStream.CFN_RESOURCE_TYPE_NAME,properties:props});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_kinesisfirehose_CfnDeliveryStreamProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,CfnDeliveryStream),error}this.attrArn=cdk().Token.asString(this.getAtt("Arn",cdk().ResolutionTypeHint.STRING)),this.amazonOpenSearchServerlessDestinationConfiguration=props.amazonOpenSearchServerlessDestinationConfiguration,this.amazonopensearchserviceDestinationConfiguration=props.amazonopensearchserviceDestinationConfiguration,this.databaseSourceConfiguration=props.databaseSourceConfiguration,this.deliveryStreamEncryptionConfigurationInput=props.deliveryStreamEncryptionConfigurationInput,this.deliveryStreamName=props.deliveryStreamName,this.deliveryStreamType=props.deliveryStreamType,this.directPutSourceConfiguration=props.directPutSourceConfiguration,this.elasticsearchDestinationConfiguration=props.elasticsearchDestinationConfiguration,this.extendedS3DestinationConfiguration=props.extendedS3DestinationConfiguration,this.httpEndpointDestinationConfiguration=props.httpEndpointDestinationConfiguration,this.icebergDestinationConfiguration=props.icebergDestinationConfiguration,this.kinesisStreamSourceConfiguration=props.kinesisStreamSourceConfiguration,this.mskSourceConfiguration=props.mskSourceConfiguration,this.redshiftDestinationConfiguration=props.redshiftDestinationConfiguration,this.s3DestinationConfiguration=props.s3DestinationConfiguration,this.snowflakeDestinationConfiguration=props.snowflakeDestinationConfiguration,this.splunkDestinationConfiguration=props.splunkDestinationConfiguration,this.tags=new(cdk()).TagManager(cdk().TagType.STANDARD,"AWS::KinesisFirehose::DeliveryStream",props.tags,{tagPropertyName:"tags"}),this.tagsRaw=props.tags}get cfnProperties(){return{amazonOpenSearchServerlessDestinationConfiguration:this.amazonOpenSearchServerlessDestinationConfiguration,amazonopensearchserviceDestinationConfiguration:this.amazonopensearchserviceDestinationConfiguration,databaseSourceConfiguration:this.databaseSourceConfiguration,deliveryStreamEncryptionConfigurationInput:this.deliveryStreamEncryptionConfigurationInput,deliveryStreamName:this.deliveryStreamName,deliveryStreamType:this.deliveryStreamType,directPutSourceConfiguration:this.directPutSourceConfiguration,elasticsearchDestinationConfiguration:this.elasticsearchDestinationConfiguration,extendedS3DestinationConfiguration:this.extendedS3DestinationConfiguration,httpEndpointDestinationConfiguration:this.httpEndpointDestinationConfiguration,icebergDestinationConfiguration:this.icebergDestinationConfiguration,kinesisStreamSourceConfiguration:this.kinesisStreamSourceConfiguration,mskSourceConfiguration:this.mskSourceConfiguration,redshiftDestinationConfiguration:this.redshiftDestinationConfiguration,s3DestinationConfiguration:this.s3DestinationConfiguration,snowflakeDestinationConfiguration:this.snowflakeDestinationConfiguration,splunkDestinationConfiguration:this.splunkDestinationConfiguration,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",CfnDeliveryStream.CFN_RESOURCE_TYPE_NAME),inspector.addAttribute("aws:cdk:cloudformation:props",this.cfnProperties)}renderProperties(props){return convertCfnDeliveryStreamPropsToCloudFormation(props)}}exports.CfnDeliveryStream=CfnDeliveryStream,_a=JSII_RTTI_SYMBOL_1,CfnDeliveryStream[_a]={fqn:"aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream",version:"2.185.0"},CfnDeliveryStream.CFN_RESOURCE_TYPE_NAME="AWS::KinesisFirehose::DeliveryStream";function CfnDeliveryStreamDeliveryStreamEncryptionConfigurationInputPropertyValidator(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("keyArn",cdk().validateString)(properties.keyArn)),errors.collect(cdk().propertyValidator("keyType",cdk().requiredValidator)(properties.keyType)),errors.collect(cdk().propertyValidator("keyType",cdk().validateString)(properties.keyType)),errors.wrap('supplied properties not correct for "DeliveryStreamEncryptionConfigurationInputProperty"')}function convertCfnDeliveryStreamDeliveryStreamEncryptionConfigurationInputPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamDeliveryStreamEncryptionConfigurationInputPropertyValidator(properties).assertSuccess(),{KeyARN:cdk().stringToCloudFormation(properties.keyArn),KeyType:cdk().stringToCloudFormation(properties.keyType)}):properties}function CfnDeliveryStreamDeliveryStreamEncryptionConfigurationInputPropertyFromCloudFormation(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("keyArn","KeyARN",properties.KeyARN!=null?cfn_parse().FromCloudFormation.getString(properties.KeyARN):void 0),ret.addPropertyResult("keyType","KeyType",properties.KeyType!=null?cfn_parse().FromCloudFormation.getString(properties.KeyType):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamHttpEndpointCommonAttributePropertyValidator(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("attributeName",cdk().requiredValidator)(properties.attributeName)),errors.collect(cdk().propertyValidator("attributeName",cdk().validateString)(properties.attributeName)),errors.collect(cdk().propertyValidator("attributeValue",cdk().requiredValidator)(properties.attributeValue)),errors.collect(cdk().propertyValidator("attributeValue",cdk().validateString)(properties.attributeValue)),errors.wrap('supplied properties not correct for "HttpEndpointCommonAttributeProperty"')}function convertCfnDeliveryStreamHttpEndpointCommonAttributePropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamHttpEndpointCommonAttributePropertyValidator(properties).assertSuccess(),{AttributeName:cdk().stringToCloudFormation(properties.attributeName),AttributeValue:cdk().stringToCloudFormation(properties.attributeValue)}):properties}function CfnDeliveryStreamHttpEndpointCommonAttributePropertyFromCloudFormation(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("attributeName","AttributeName",properties.AttributeName!=null?cfn_parse().FromCloudFormation.getString(properties.AttributeName):void 0),ret.addPropertyResult("attributeValue","AttributeValue",properties.AttributeValue!=null?cfn_parse().FromCloudFormation.getString(properties.AttributeValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamHttpEndpointRequestConfigurationPropertyValidator(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("commonAttributes",cdk().listValidator(CfnDeliveryStreamHttpEndpointCommonAttributePropertyValidator))(properties.commonAttributes)),errors.collect(cdk().propertyValidator("contentEncoding",cdk().validateString)(properties.contentEncoding)),errors.wrap('supplied properties not correct for "HttpEndpointRequestConfigurationProperty"')}function convertCfnDeliveryStreamHttpEndpointRequestConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamHttpEndpointRequestConfigurationPropertyValidator(properties).assertSuccess(),{CommonAttributes:cdk().listMapper(convertCfnDeliveryStreamHttpEndpointCommonAttributePropertyToCloudFormation)(properties.commonAttributes),ContentEncoding:cdk().stringToCloudFormation(properties.contentEncoding)}):properties}function CfnDeliveryStreamHttpEndpointRequestConfigurationPropertyFromCloudFormation(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("commonAttributes","CommonAttributes",properties.CommonAttributes!=null?cfn_parse().FromCloudFormation.getArray(CfnDeliveryStreamHttpEndpointCommonAttributePropertyFromCloudFormation)(properties.CommonAttributes):void 0),ret.addPropertyResult("contentEncoding","ContentEncoding",properties.ContentEncoding!=null?cfn_parse().FromCloudFormation.getString(properties.ContentEncoding):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamBufferingHintsPropertyValidator(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("intervalInSeconds",cdk().validateNumber)(properties.intervalInSeconds)),errors.collect(cdk().propertyValidator("sizeInMBs",cdk().validateNumber)(properties.sizeInMBs)),errors.wrap('supplied properties not correct for "BufferingHintsProperty"')}function convertCfnDeliveryStreamBufferingHintsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamBufferingHintsPropertyValidator(properties).assertSuccess(),{IntervalInSeconds:cdk().numberToCloudFormation(properties.intervalInSeconds),SizeInMBs:cdk().numberToCloudFormation(properties.sizeInMBs)}):properties}function CfnDeliveryStreamBufferingHintsPropertyFromCloudFormation(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("intervalInSeconds","IntervalInSeconds",properties.IntervalInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.IntervalInSeconds):void 0),ret.addPropertyResult("sizeInMBs","SizeInMBs",properties.SizeInMBs!=null?cfn_parse().FromCloudFormation.getNumber(properties.SizeInMBs):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamKMSEncryptionConfigPropertyValidator(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("awskmsKeyArn",cdk().requiredValidator)(properties.awskmsKeyArn)),errors.collect(cdk().propertyValidator("awskmsKeyArn",cdk().validateString)(properties.awskmsKeyArn)),errors.wrap('supplied properties not correct for "KMSEncryptionConfigProperty"')}function convertCfnDeliveryStreamKMSEncryptionConfigPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamKMSEncryptionConfigPropertyValidator(properties).assertSuccess(),{AWSKMSKeyARN:cdk().stringToCloudFormation(properties.awskmsKeyArn)}):properties}function CfnDeliveryStreamKMSEncryptionConfigPropertyFromCloudFormation(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("awskmsKeyArn","AWSKMSKeyARN",properties.AWSKMSKeyARN!=null?cfn_parse().FromCloudFormation.getString(properties.AWSKMSKeyARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamEncryptionConfigurationPropertyValidator(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("kmsEncryptionConfig",CfnDeliveryStreamKMSEncryptionConfigPropertyValidator)(properties.kmsEncryptionConfig)),errors.collect(cdk().propertyValidator("noEncryptionConfig",cdk().validateString)(properties.noEncryptionConfig)),errors.wrap('supplied properties not correct for "EncryptionConfigurationProperty"')}function convertCfnDeliveryStreamEncryptionConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamEncryptionConfigurationPropertyValidator(properties).assertSuccess(),{KMSEncryptionConfig:convertCfnDeliveryStreamKMSEncryptionConfigPropertyToCloudFormation(properties.kmsEncryptionConfig),NoEncryptionConfig:cdk().stringToCloudFormation(properties.noEncryptionConfig)}):properties}function CfnDeliveryStreamEncryptionConfigurationPropertyFromCloudFormation(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("kmsEncryptionConfig","KMSEncryptionConfig",properties.KMSEncryptionConfig!=null?CfnDeliveryStreamKMSEncryptionConfigPropertyFromCloudFormation(properties.KMSEncryptionConfig):void 0),ret.addPropertyResult("noEncryptionConfig","NoEncryptionConfig",properties.NoEncryptionConfig!=null?cfn_parse().FromCloudFormation.getString(properties.NoEncryptionConfig):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamCloudWatchLoggingOptionsPropertyValidator(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("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("logGroupName",cdk().validateString)(properties.logGroupName)),errors.collect(cdk().propertyValidator("logStreamName",cdk().validateString)(properties.logStreamName)),errors.wrap('supplied properties not correct for "CloudWatchLoggingOptionsProperty"')}function convertCfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamCloudWatchLoggingOptionsPropertyValidator(properties).assertSuccess(),{Enabled:cdk().booleanToCloudFormation(properties.enabled),LogGroupName:cdk().stringToCloudFormation(properties.logGroupName),LogStreamName:cdk().stringToCloudFormation(properties.logStreamName)}):properties}function CfnDeliveryStreamCloudWatchLoggingOptionsPropertyFromCloudFormation(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("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("logGroupName","LogGroupName",properties.LogGroupName!=null?cfn_parse().FromCloudFormation.getString(properties.LogGroupName):void 0),ret.addPropertyResult("logStreamName","LogStreamName",properties.LogStreamName!=null?cfn_parse().FromCloudFormation.getString(properties.LogStreamName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamS3DestinationConfigurationPropertyValidator(properties){if(!cdk().canInspect(properties))return cdk().VALIDATION_SUCCESS;const errors=new(cdk()).ValidationResults;return properties&&typeof properties=="object"&&!Array.isArray(properties)||errors.collect(new(cdk()).ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk().propertyValidator("bucketArn",cdk().requiredValidator)(properties.bucketArn)),errors.collect(cdk().propertyValidator("bucketArn",cdk().validateString)(properties.bucketArn)),errors.collect(cdk().propertyValidator("bufferingHints",CfnDeliveryStreamBufferingHintsPropertyValidator)(properties.bufferingHints)),errors.collect(cdk().propertyValidator("cloudWatchLoggingOptions",CfnDeliveryStreamCloudWatchLoggingOptionsPropertyValidator)(properties.cloudWatchLoggingOptions)),errors.collect(cdk().propertyValidator("compressionFormat",cdk().validateString)(properties.compressionFormat)),errors.collect(cdk().propertyValidator("encryptionConfiguration",CfnDeliveryStreamEncryptionConfigurationPropertyValidator)(properties.encryptionConfiguration)),errors.collect(cdk().propertyValidator("errorOutputPrefix",cdk().validateString)(properties.errorOutputPrefix)),errors.collect(cdk().propertyValidator("prefix",cdk().validateString)(properties.prefix)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "S3DestinationConfigurationProperty"')}function convertCfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamS3DestinationConfigurationPropertyValidator(properties).assertSuccess(),{BucketARN:cdk().stringToCloudFormation(properties.bucketArn),BufferingHints:convertCfnDeliveryStreamBufferingHintsPropertyToCloudFormation(properties.bufferingHints),CloudWatchLoggingOptions:convertCfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties.cloudWatchLoggingOptions),CompressionFormat:cdk().stringToCloudFormation(properties.compressionFormat),EncryptionConfiguration:convertCfnDeliveryStreamEncryptionConfigurationPropertyToCloudFormation(properties.encryptionConfiguration),ErrorOutputPrefix:cdk().stringToCloudFormation(properties.errorOutputPrefix),Prefix:cdk().stringToCloudFormation(properties.prefix),RoleARN:cdk().stringToCloudFormation(properties.roleArn)}):properties}function CfnDeliveryStreamS3DestinationConfigurationPropertyFromCloudFormation(properties){if(cdk().isResolvableObject(properties))return new(cfn_parse()).FromCloudFormationResult(properties);if(properties=properties??{},!(properties&&typeof properties=="object"&&!Array.isArray(properties)))return new(cfn_parse()).FromCloudFormationResult(properties);const ret=new(cfn_parse()).FromCloudFormationPropertyObject;return ret.addPropertyResult("bucketArn","BucketARN",properties.BucketARN!=null?cfn_parse().FromCloudFormation.getString(properties.BucketARN):void 0),ret.addPropertyResult("bufferingHints","BufferingHints",properties.BufferingHints!=null?CfnDeliveryStreamBufferingHintsPropertyFromCloudFormation(properties.BufferingHints):void 0),ret.addPropertyResult("cloudWatchLoggingOptions","CloudWatchLoggingOptions",properties.CloudWatchLoggingOptions!=null?CfnDeliveryStreamCloudWatchLoggingOptionsPropertyFromCloudFormation(properties.CloudWatchLoggingOptions):void 0),ret.addPropertyResult("compressionFormat","CompressionFormat",properties.CompressionFormat!=null?cfn_parse().FromCloudFormation.getString(properties.CompressionFormat):void 0),ret.addPropertyResult("encryptionConfiguration","EncryptionConfiguration",properties.EncryptionConfiguration!=null?CfnDeliveryStreamEncryptionConfigurationPropertyFromCloudFormation(properties.EncryptionConfiguration):void 0),ret.addPropertyResult("errorOutputPrefix","ErrorOutputPrefix",properties.ErrorOutputPrefix!=null?cfn_parse().FromCloudFormation.getString(properties.ErrorOutputPrefix):void 0),ret.addPropertyResult("prefix","Prefix",properties.Prefix!=null?cfn_parse().FromCloudFormation.getString(properties.Prefix):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.RoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamRetryOptionsPropertyValidator(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("durationInSeconds",cdk().validateNumber)(properties.durationInSeconds)),errors.wrap('supplied properties not correct for "RetryOptionsProperty"')}function convertCfnDeliveryStreamRetryOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamRetryOptionsPropertyValidator(properties).assertSuccess(),{DurationInSeconds:cdk().numberToCloudFormation(properties.durationInSeconds)}):properties}function CfnDeliveryStreamRetryOptionsPropertyFromCloudFormation(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("durationInSeconds","DurationInSeconds",properties.DurationInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.DurationInSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamHttpEndpointConfigurationPropertyValidator(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("accessKey",cdk().validateString)(properties.accessKey)),errors.collect(cdk().propertyValidator("name",cdk().validateString)(properties.name)),errors.collect(cdk().propertyValidator("url",cdk().requiredValidator)(properties.url)),errors.collect(cdk().propertyValidator("url",cdk().validateString)(properties.url)),errors.wrap('supplied properties not correct for "HttpEndpointConfigurationProperty"')}function convertCfnDeliveryStreamHttpEndpointConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamHttpEndpointConfigurationPropertyValidator(properties).assertSuccess(),{AccessKey:cdk().stringToCloudFormation(properties.accessKey),Name:cdk().stringToCloudFormation(properties.name),Url:cdk().stringToCloudFormation(properties.url)}):properties}function CfnDeliveryStreamHttpEndpointConfigurationPropertyFromCloudFormation(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("accessKey","AccessKey",properties.AccessKey!=null?cfn_parse().FromCloudFormation.getString(properties.AccessKey):void 0),ret.addPropertyResult("name","Name",properties.Name!=null?cfn_parse().FromCloudFormation.getString(properties.Name):void 0),ret.addPropertyResult("url","Url",properties.Url!=null?cfn_parse().FromCloudFormation.getString(properties.Url):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamProcessorParameterPropertyValidator(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("parameterName",cdk().requiredValidator)(properties.parameterName)),errors.collect(cdk().propertyValidator("parameterName",cdk().validateString)(properties.parameterName)),errors.collect(cdk().propertyValidator("parameterValue",cdk().requiredValidator)(properties.parameterValue)),errors.collect(cdk().propertyValidator("parameterValue",cdk().validateString)(properties.parameterValue)),errors.wrap('supplied properties not correct for "ProcessorParameterProperty"')}function convertCfnDeliveryStreamProcessorParameterPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamProcessorParameterPropertyValidator(properties).assertSuccess(),{ParameterName:cdk().stringToCloudFormation(properties.parameterName),ParameterValue:cdk().stringToCloudFormation(properties.parameterValue)}):properties}function CfnDeliveryStreamProcessorParameterPropertyFromCloudFormation(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("parameterName","ParameterName",properties.ParameterName!=null?cfn_parse().FromCloudFormation.getString(properties.ParameterName):void 0),ret.addPropertyResult("parameterValue","ParameterValue",properties.ParameterValue!=null?cfn_parse().FromCloudFormation.getString(properties.ParameterValue):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamProcessorPropertyValidator(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("parameters",cdk().listValidator(CfnDeliveryStreamProcessorParameterPropertyValidator))(properties.parameters)),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 "ProcessorProperty"')}function convertCfnDeliveryStreamProcessorPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamProcessorPropertyValidator(properties).assertSuccess(),{Parameters:cdk().listMapper(convertCfnDeliveryStreamProcessorParameterPropertyToCloudFormation)(properties.parameters),Type:cdk().stringToCloudFormation(properties.type)}):properties}function CfnDeliveryStreamProcessorPropertyFromCloudFormation(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("parameters","Parameters",properties.Parameters!=null?cfn_parse().FromCloudFormation.getArray(CfnDeliveryStreamProcessorParameterPropertyFromCloudFormation)(properties.Parameters):void 0),ret.addPropertyResult("type","Type",properties.Type!=null?cfn_parse().FromCloudFormation.getString(properties.Type):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamProcessingConfigurationPropertyValidator(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("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("processors",cdk().listValidator(CfnDeliveryStreamProcessorPropertyValidator))(properties.processors)),errors.wrap('supplied properties not correct for "ProcessingConfigurationProperty"')}function convertCfnDeliveryStreamProcessingConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamProcessingConfigurationPropertyValidator(properties).assertSuccess(),{Enabled:cdk().booleanToCloudFormation(properties.enabled),Processors:cdk().listMapper(convertCfnDeliveryStreamProcessorPropertyToCloudFormation)(properties.processors)}):properties}function CfnDeliveryStreamProcessingConfigurationPropertyFromCloudFormation(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("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("processors","Processors",properties.Processors!=null?cfn_parse().FromCloudFormation.getArray(CfnDeliveryStreamProcessorPropertyFromCloudFormation)(properties.Processors):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamSecretsManagerConfigurationPropertyValidator(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("enabled",cdk().requiredValidator)(properties.enabled)),errors.collect(cdk().propertyValidator("enabled",cdk().validateBoolean)(properties.enabled)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("secretArn",cdk().validateString)(properties.secretArn)),errors.wrap('supplied properties not correct for "SecretsManagerConfigurationProperty"')}function convertCfnDeliveryStreamSecretsManagerConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamSecretsManagerConfigurationPropertyValidator(properties).assertSuccess(),{Enabled:cdk().booleanToCloudFormation(properties.enabled),RoleARN:cdk().stringToCloudFormation(properties.roleArn),SecretARN:cdk().stringToCloudFormation(properties.secretArn)}):properties}function CfnDeliveryStreamSecretsManagerConfigurationPropertyFromCloudFormation(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("enabled","Enabled",properties.Enabled!=null?cfn_parse().FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.RoleARN):void 0),ret.addPropertyResult("secretArn","SecretARN",properties.SecretARN!=null?cfn_parse().FromCloudFormation.getString(properties.SecretARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamHttpEndpointDestinationConfigurationPropertyValidator(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("bufferingHints",CfnDeliveryStreamBufferingHintsPropertyValidator)(properties.bufferingHints)),errors.collect(cdk().propertyValidator("cloudWatchLoggingOptions",CfnDeliveryStreamCloudWatchLoggingOptionsPropertyValidator)(properties.cloudWatchLoggingOptions)),errors.collect(cdk().propertyValidator("endpointConfiguration",cdk().requiredValidator)(properties.endpointConfiguration)),errors.collect(cdk().propertyValidator("endpointConfiguration",CfnDeliveryStreamHttpEndpointConfigurationPropertyValidator)(properties.endpointConfiguration)),errors.collect(cdk().propertyValidator("processingConfiguration",CfnDeliveryStreamProcessingConfigurationPropertyValidator)(properties.processingConfiguration)),errors.collect(cdk().propertyValidator("requestConfiguration",CfnDeliveryStreamHttpEndpointRequestConfigurationPropertyValidator)(properties.requestConfiguration)),errors.collect(cdk().propertyValidator("retryOptions",CfnDeliveryStreamRetryOptionsPropertyValidator)(properties.retryOptions)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("s3BackupMode",cdk().validateString)(properties.s3BackupMode)),errors.collect(cdk().propertyValidator("s3Configuration",cdk().requiredValidator)(properties.s3Configuration)),errors.collect(cdk().propertyValidator("s3Configuration",CfnDeliveryStreamS3DestinationConfigurationPropertyValidator)(properties.s3Configuration)),errors.collect(cdk().propertyValidator("secretsManagerConfiguration",CfnDeliveryStreamSecretsManagerConfigurationPropertyValidator)(properties.secretsManagerConfiguration)),errors.wrap('supplied properties not correct for "HttpEndpointDestinationConfigurationProperty"')}function convertCfnDeliveryStreamHttpEndpointDestinationConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamHttpEndpointDestinationConfigurationPropertyValidator(properties).assertSuccess(),{BufferingHints:convertCfnDeliveryStreamBufferingHintsPropertyToCloudFormation(properties.bufferingHints),CloudWatchLoggingOptions:convertCfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties.cloudWatchLoggingOptions),EndpointConfiguration:convertCfnDeliveryStreamHttpEndpointConfigurationPropertyToCloudFormation(properties.endpointConfiguration),ProcessingConfiguration:convertCfnDeliveryStreamProcessingConfigurationPropertyToCloudFormation(properties.processingConfiguration),RequestConfiguration:convertCfnDeliveryStreamHttpEndpointRequestConfigurationPropertyToCloudFormation(properties.requestConfiguration),RetryOptions:convertCfnDeliveryStreamRetryOptionsPropertyToCloudFormation(properties.retryOptions),RoleARN:cdk().stringToCloudFormation(properties.roleArn),S3BackupMode:cdk().stringToCloudFormation(properties.s3BackupMode),S3Configuration:convertCfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties.s3Configuration),SecretsManagerConfiguration:convertCfnDeliveryStreamSecretsManagerConfigurationPropertyToCloudFormation(properties.secretsManagerConfiguration)}):properties}function CfnDeliveryStreamHttpEndpointDestinationConfigurationPropertyFromCloudFormation(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("bufferingHints","BufferingHints",properties.BufferingHints!=null?CfnDeliveryStreamBufferingHintsPropertyFromCloudFormation(properties.BufferingHints):void 0),ret.addPropertyResult("cloudWatchLoggingOptions","CloudWatchLoggingOptions",properties.CloudWatchLoggingOptions!=null?CfnDeliveryStreamCloudWatchLoggingOptionsPropertyFromCloudFormation(properties.CloudWatchLoggingOptions):void 0),ret.addPropertyResult("endpointConfiguration","EndpointConfiguration",properties.EndpointConfiguration!=null?CfnDeliveryStreamHttpEndpointConfigurationPropertyFromCloudFormation(properties.EndpointConfiguration):void 0),ret.addPropertyResult("processingConfiguration","ProcessingConfiguration",properties.ProcessingConfiguration!=null?CfnDeliveryStreamProcessingConfigurationPropertyFromCloudFormation(properties.ProcessingConfiguration):void 0),ret.addPropertyResult("requestConfiguration","RequestConfiguration",properties.RequestConfiguration!=null?CfnDeliveryStreamHttpEndpointRequestConfigurationPropertyFromCloudFormation(properties.RequestConfiguration):void 0),ret.addPropertyResult("retryOptions","RetryOptions",properties.RetryOptions!=null?CfnDeliveryStreamRetryOptionsPropertyFromCloudFormation(properties.RetryOptions):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.RoleARN):void 0),ret.addPropertyResult("s3BackupMode","S3BackupMode",properties.S3BackupMode!=null?cfn_parse().FromCloudFormation.getString(properties.S3BackupMode):void 0),ret.addPropertyResult("s3Configuration","S3Configuration",properties.S3Configuration!=null?CfnDeliveryStreamS3DestinationConfigurationPropertyFromCloudFormation(properties.S3Configuration):void 0),ret.addPropertyResult("secretsManagerConfiguration","SecretsManagerConfiguration",properties.SecretsManagerConfiguration!=null?CfnDeliveryStreamSecretsManagerConfigurationPropertyFromCloudFormation(properties.SecretsManagerConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamKinesisStreamSourceConfigurationPropertyValidator(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("kinesisStreamArn",cdk().requiredValidator)(properties.kinesisStreamArn)),errors.collect(cdk().propertyValidator("kinesisStreamArn",cdk().validateString)(properties.kinesisStreamArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.wrap('supplied properties not correct for "KinesisStreamSourceConfigurationProperty"')}function convertCfnDeliveryStreamKinesisStreamSourceConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamKinesisStreamSourceConfigurationPropertyValidator(properties).assertSuccess(),{KinesisStreamARN:cdk().stringToCloudFormation(properties.kinesisStreamArn),RoleARN:cdk().stringToCloudFormation(properties.roleArn)}):properties}function CfnDeliveryStreamKinesisStreamSourceConfigurationPropertyFromCloudFormation(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("kinesisStreamArn","KinesisStreamARN",properties.KinesisStreamARN!=null?cfn_parse().FromCloudFormation.getString(properties.KinesisStreamARN):void 0),ret.addPropertyResult("roleArn","RoleARN",properties.RoleARN!=null?cfn_parse().FromCloudFormation.getString(properties.RoleARN):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamCopyCommandPropertyValidator(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("copyOptions",cdk().validateString)(properties.copyOptions)),errors.collect(cdk().propertyValidator("dataTableColumns",cdk().validateString)(properties.dataTableColumns)),errors.collect(cdk().propertyValidator("dataTableName",cdk().requiredValidator)(properties.dataTableName)),errors.collect(cdk().propertyValidator("dataTableName",cdk().validateString)(properties.dataTableName)),errors.wrap('supplied properties not correct for "CopyCommandProperty"')}function convertCfnDeliveryStreamCopyCommandPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamCopyCommandPropertyValidator(properties).assertSuccess(),{CopyOptions:cdk().stringToCloudFormation(properties.copyOptions),DataTableColumns:cdk().stringToCloudFormation(properties.dataTableColumns),DataTableName:cdk().stringToCloudFormation(properties.dataTableName)}):properties}function CfnDeliveryStreamCopyCommandPropertyFromCloudFormation(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("copyOptions","CopyOptions",properties.CopyOptions!=null?cfn_parse().FromCloudFormation.getString(properties.CopyOptions):void 0),ret.addPropertyResult("dataTableColumns","DataTableColumns",properties.DataTableColumns!=null?cfn_parse().FromCloudFormation.getString(properties.DataTableColumns):void 0),ret.addPropertyResult("dataTableName","DataTableName",properties.DataTableName!=null?cfn_parse().FromCloudFormation.getString(properties.DataTableName):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamRedshiftRetryOptionsPropertyValidator(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("durationInSeconds",cdk().validateNumber)(properties.durationInSeconds)),errors.wrap('supplied properties not correct for "RedshiftRetryOptionsProperty"')}function convertCfnDeliveryStreamRedshiftRetryOptionsPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamRedshiftRetryOptionsPropertyValidator(properties).assertSuccess(),{DurationInSeconds:cdk().numberToCloudFormation(properties.durationInSeconds)}):properties}function CfnDeliveryStreamRedshiftRetryOptionsPropertyFromCloudFormation(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("durationInSeconds","DurationInSeconds",properties.DurationInSeconds!=null?cfn_parse().FromCloudFormation.getNumber(properties.DurationInSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStreamRedshiftDestinationConfigurationPropertyValidator(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("cloudWatchLoggingOptions",CfnDeliveryStreamCloudWatchLoggingOptionsPropertyValidator)(properties.cloudWatchLoggingOptions)),errors.collect(cdk().propertyValidator("clusterJdbcurl",cdk().requiredValidator)(properties.clusterJdbcurl)),errors.collect(cdk().propertyValidator("clusterJdbcurl",cdk().validateString)(properties.clusterJdbcurl)),errors.collect(cdk().propertyValidator("copyCommand",cdk().requiredValidator)(properties.copyCommand)),errors.collect(cdk().propertyValidator("copyCommand",CfnDeliveryStreamCopyCommandPropertyValidator)(properties.copyCommand)),errors.collect(cdk().propertyValidator("password",cdk().validateString)(properties.password)),errors.collect(cdk().propertyValidator("processingConfiguration",CfnDeliveryStreamProcessingConfigurationPropertyValidator)(properties.processingConfiguration)),errors.collect(cdk().propertyValidator("retryOptions",CfnDeliveryStreamRedshiftRetryOptionsPropertyValidator)(properties.retryOptions)),errors.collect(cdk().propertyValidator("roleArn",cdk().requiredValidator)(properties.roleArn)),errors.collect(cdk().propertyValidator("roleArn",cdk().validateString)(properties.roleArn)),errors.collect(cdk().propertyValidator("s3BackupConfiguration",CfnDeliveryStreamS3DestinationConfigurationPropertyValidator)(properties.s3BackupConfiguration)),errors.collect(cdk().propertyValidator("s3BackupMode",cdk().validateString)(properties.s3BackupMode)),errors.collect(cdk().propertyValidator("s3Configuration",cdk().requiredValidator)(properties.s3Configuration)),errors.collect(cdk().propertyValidator("s3Configuration",CfnDeliveryStreamS3DestinationConfigurationPropertyValidator)(properties.s3Configuration)),errors.collect(cdk().propertyValidator("secretsManagerConfiguration",CfnDeliveryStreamSecretsManagerConfigurationPropertyValidator)(properties.secretsManagerConfiguration)),errors.collect(cdk().propertyValidator("username",cdk().validateString)(properties.username)),errors.wrap('supplied properties not correct for "RedshiftDestinationConfigurationProperty"')}function convertCfnDeliveryStreamRedshiftDestinationConfigurationPropertyToCloudFormation(properties){return cdk().canInspect(properties)?(CfnDeliveryStreamRedshiftDestinationConfigurationPropertyValidator(properties).assertSuccess(),{CloudWatchLoggingOptions:convertCfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties.cloudWatchLoggingOptions),ClusterJDBCURL:cdk().stringToCloudFormation(properties.clusterJdbcurl),CopyCommand:convertCfnDeliveryStreamCopyCommandPropertyToCloudFormation(properties.copyCommand),Password:cdk().stringToCloudFormation(properties.password),ProcessingConfiguration:convertCfnDeliveryStreamProcessingConfigurationPropertyToCloudFormation(properties.processingConfiguration),RetryOptions:convertCfnDeliveryStreamRedshiftRetryOptionsPropertyToCloudFormation(properties.retryOptions),RoleARN:cdk().stringToCloudFormation(properties.roleArn),S3BackupConfiguration:convertCfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties.s3BackupConfiguration),S3BackupMode:cdk().stringToCloudFormation(properties.s3BackupMode),S3Configuration:convertCfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties.s3Configuration),SecretsManagerConfiguration:convertCfnDelivery