aws-cdk-lib
Version:
Version 2 of the AWS Cloud Development Kit library
1 lines • 122 kB
JavaScript
"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.CfnDeliveryStream=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),cdk=require("../../core"),cfn_parse=require("../../core/lib/helpers-internal");function CfnDeliveryStreamPropsValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("amazonOpenSearchServerlessDestinationConfiguration",CfnDeliveryStream_AmazonOpenSearchServerlessDestinationConfigurationPropertyValidator)(properties.amazonOpenSearchServerlessDestinationConfiguration)),errors.collect(cdk.propertyValidator("amazonopensearchserviceDestinationConfiguration",CfnDeliveryStream_AmazonopensearchserviceDestinationConfigurationPropertyValidator)(properties.amazonopensearchserviceDestinationConfiguration)),errors.collect(cdk.propertyValidator("deliveryStreamEncryptionConfigurationInput",CfnDeliveryStream_DeliveryStreamEncryptionConfigurationInputPropertyValidator)(properties.deliveryStreamEncryptionConfigurationInput)),errors.collect(cdk.propertyValidator("deliveryStreamName",cdk.validateString)(properties.deliveryStreamName)),errors.collect(cdk.propertyValidator("deliveryStreamType",cdk.validateString)(properties.deliveryStreamType)),errors.collect(cdk.propertyValidator("elasticsearchDestinationConfiguration",CfnDeliveryStream_ElasticsearchDestinationConfigurationPropertyValidator)(properties.elasticsearchDestinationConfiguration)),errors.collect(cdk.propertyValidator("extendedS3DestinationConfiguration",CfnDeliveryStream_ExtendedS3DestinationConfigurationPropertyValidator)(properties.extendedS3DestinationConfiguration)),errors.collect(cdk.propertyValidator("httpEndpointDestinationConfiguration",CfnDeliveryStream_HttpEndpointDestinationConfigurationPropertyValidator)(properties.httpEndpointDestinationConfiguration)),errors.collect(cdk.propertyValidator("kinesisStreamSourceConfiguration",CfnDeliveryStream_KinesisStreamSourceConfigurationPropertyValidator)(properties.kinesisStreamSourceConfiguration)),errors.collect(cdk.propertyValidator("redshiftDestinationConfiguration",CfnDeliveryStream_RedshiftDestinationConfigurationPropertyValidator)(properties.redshiftDestinationConfiguration)),errors.collect(cdk.propertyValidator("s3DestinationConfiguration",CfnDeliveryStream_S3DestinationConfigurationPropertyValidator)(properties.s3DestinationConfiguration)),errors.collect(cdk.propertyValidator("splunkDestinationConfiguration",CfnDeliveryStream_SplunkDestinationConfigurationPropertyValidator)(properties.splunkDestinationConfiguration)),errors.collect(cdk.propertyValidator("tags",cdk.listValidator(cdk.validateCfnTag))(properties.tags)),errors.wrap('supplied properties not correct for "CfnDeliveryStreamProps"')}function cfnDeliveryStreamPropsToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStreamPropsValidator(properties).assertSuccess(),{AmazonOpenSearchServerlessDestinationConfiguration:cfnDeliveryStreamAmazonOpenSearchServerlessDestinationConfigurationPropertyToCloudFormation(properties.amazonOpenSearchServerlessDestinationConfiguration),AmazonopensearchserviceDestinationConfiguration:cfnDeliveryStreamAmazonopensearchserviceDestinationConfigurationPropertyToCloudFormation(properties.amazonopensearchserviceDestinationConfiguration),DeliveryStreamEncryptionConfigurationInput:cfnDeliveryStreamDeliveryStreamEncryptionConfigurationInputPropertyToCloudFormation(properties.deliveryStreamEncryptionConfigurationInput),DeliveryStreamName:cdk.stringToCloudFormation(properties.deliveryStreamName),DeliveryStreamType:cdk.stringToCloudFormation(properties.deliveryStreamType),ElasticsearchDestinationConfiguration:cfnDeliveryStreamElasticsearchDestinationConfigurationPropertyToCloudFormation(properties.elasticsearchDestinationConfiguration),ExtendedS3DestinationConfiguration:cfnDeliveryStreamExtendedS3DestinationConfigurationPropertyToCloudFormation(properties.extendedS3DestinationConfiguration),HttpEndpointDestinationConfiguration:cfnDeliveryStreamHttpEndpointDestinationConfigurationPropertyToCloudFormation(properties.httpEndpointDestinationConfiguration),KinesisStreamSourceConfiguration:cfnDeliveryStreamKinesisStreamSourceConfigurationPropertyToCloudFormation(properties.kinesisStreamSourceConfiguration),RedshiftDestinationConfiguration:cfnDeliveryStreamRedshiftDestinationConfigurationPropertyToCloudFormation(properties.redshiftDestinationConfiguration),S3DestinationConfiguration:cfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties.s3DestinationConfiguration),SplunkDestinationConfiguration:cfnDeliveryStreamSplunkDestinationConfigurationPropertyToCloudFormation(properties.splunkDestinationConfiguration),Tags:cdk.listMapper(cdk.cfnTagToCloudFormation)(properties.tags)}):properties}function CfnDeliveryStreamPropsFromCloudFormation(properties){if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("amazonOpenSearchServerlessDestinationConfiguration","AmazonOpenSearchServerlessDestinationConfiguration",properties.AmazonOpenSearchServerlessDestinationConfiguration!=null?CfnDeliveryStreamAmazonOpenSearchServerlessDestinationConfigurationPropertyFromCloudFormation(properties.AmazonOpenSearchServerlessDestinationConfiguration):void 0),ret.addPropertyResult("amazonopensearchserviceDestinationConfiguration","AmazonopensearchserviceDestinationConfiguration",properties.AmazonopensearchserviceDestinationConfiguration!=null?CfnDeliveryStreamAmazonopensearchserviceDestinationConfigurationPropertyFromCloudFormation(properties.AmazonopensearchserviceDestinationConfiguration):void 0),ret.addPropertyResult("deliveryStreamEncryptionConfigurationInput","DeliveryStreamEncryptionConfigurationInput",properties.DeliveryStreamEncryptionConfigurationInput!=null?CfnDeliveryStreamDeliveryStreamEncryptionConfigurationInputPropertyFromCloudFormation(properties.DeliveryStreamEncryptionConfigurationInput):void 0),ret.addPropertyResult("deliveryStreamName","DeliveryStreamName",properties.DeliveryStreamName!=null?cfn_parse.FromCloudFormation.getString(properties.DeliveryStreamName):void 0),ret.addPropertyResult("deliveryStreamType","DeliveryStreamType",properties.DeliveryStreamType!=null?cfn_parse.FromCloudFormation.getString(properties.DeliveryStreamType):void 0),ret.addPropertyResult("elasticsearchDestinationConfiguration","ElasticsearchDestinationConfiguration",properties.ElasticsearchDestinationConfiguration!=null?CfnDeliveryStreamElasticsearchDestinationConfigurationPropertyFromCloudFormation(properties.ElasticsearchDestinationConfiguration):void 0),ret.addPropertyResult("extendedS3DestinationConfiguration","ExtendedS3DestinationConfiguration",properties.ExtendedS3DestinationConfiguration!=null?CfnDeliveryStreamExtendedS3DestinationConfigurationPropertyFromCloudFormation(properties.ExtendedS3DestinationConfiguration):void 0),ret.addPropertyResult("httpEndpointDestinationConfiguration","HttpEndpointDestinationConfiguration",properties.HttpEndpointDestinationConfiguration!=null?CfnDeliveryStreamHttpEndpointDestinationConfigurationPropertyFromCloudFormation(properties.HttpEndpointDestinationConfiguration):void 0),ret.addPropertyResult("kinesisStreamSourceConfiguration","KinesisStreamSourceConfiguration",properties.KinesisStreamSourceConfiguration!=null?CfnDeliveryStreamKinesisStreamSourceConfigurationPropertyFromCloudFormation(properties.KinesisStreamSourceConfiguration):void 0),ret.addPropertyResult("redshiftDestinationConfiguration","RedshiftDestinationConfiguration",properties.RedshiftDestinationConfiguration!=null?CfnDeliveryStreamRedshiftDestinationConfigurationPropertyFromCloudFormation(properties.RedshiftDestinationConfiguration):void 0),ret.addPropertyResult("s3DestinationConfiguration","S3DestinationConfiguration",properties.S3DestinationConfiguration!=null?CfnDeliveryStreamS3DestinationConfigurationPropertyFromCloudFormation(properties.S3DestinationConfiguration):void 0),ret.addPropertyResult("splunkDestinationConfiguration","SplunkDestinationConfiguration",properties.SplunkDestinationConfiguration!=null?CfnDeliveryStreamSplunkDestinationConfigurationPropertyFromCloudFormation(properties.SplunkDestinationConfiguration):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 CfnDeliveryStream extends cdk.CfnResource{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.deliveryStreamEncryptionConfigurationInput=props.deliveryStreamEncryptionConfigurationInput,this.deliveryStreamName=props.deliveryStreamName,this.deliveryStreamType=props.deliveryStreamType,this.elasticsearchDestinationConfiguration=props.elasticsearchDestinationConfiguration,this.extendedS3DestinationConfiguration=props.extendedS3DestinationConfiguration,this.httpEndpointDestinationConfiguration=props.httpEndpointDestinationConfiguration,this.kinesisStreamSourceConfiguration=props.kinesisStreamSourceConfiguration,this.redshiftDestinationConfiguration=props.redshiftDestinationConfiguration,this.s3DestinationConfiguration=props.s3DestinationConfiguration,this.splunkDestinationConfiguration=props.splunkDestinationConfiguration,this.tags=new cdk.TagManager(cdk.TagType.STANDARD,"AWS::KinesisFirehose::DeliveryStream",props.tags,{tagPropertyName:"tags"})}static _fromCloudFormation(scope,id,resourceAttributes,options){resourceAttributes=resourceAttributes||{};const resourceProperties=options.parser.parseValue(resourceAttributes.Properties),propsResult=CfnDeliveryStreamPropsFromCloudFormation(resourceProperties),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}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)}get cfnProperties(){return{amazonOpenSearchServerlessDestinationConfiguration:this.amazonOpenSearchServerlessDestinationConfiguration,amazonopensearchserviceDestinationConfiguration:this.amazonopensearchserviceDestinationConfiguration,deliveryStreamEncryptionConfigurationInput:this.deliveryStreamEncryptionConfigurationInput,deliveryStreamName:this.deliveryStreamName,deliveryStreamType:this.deliveryStreamType,elasticsearchDestinationConfiguration:this.elasticsearchDestinationConfiguration,extendedS3DestinationConfiguration:this.extendedS3DestinationConfiguration,httpEndpointDestinationConfiguration:this.httpEndpointDestinationConfiguration,kinesisStreamSourceConfiguration:this.kinesisStreamSourceConfiguration,redshiftDestinationConfiguration:this.redshiftDestinationConfiguration,s3DestinationConfiguration:this.s3DestinationConfiguration,splunkDestinationConfiguration:this.splunkDestinationConfiguration,tags:this.tags.renderTags()}}renderProperties(props){return cfnDeliveryStreamPropsToCloudFormation(props)}}exports.CfnDeliveryStream=CfnDeliveryStream,_a=JSII_RTTI_SYMBOL_1,CfnDeliveryStream[_a]={fqn:"aws-cdk-lib.aws_kinesisfirehose.CfnDeliveryStream",version:"2.70.0"},CfnDeliveryStream.CFN_RESOURCE_TYPE_NAME="AWS::KinesisFirehose::DeliveryStream";function CfnDeliveryStream_AmazonOpenSearchServerlessBufferingHintsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("intervalInSeconds",cdk.validateNumber)(properties.intervalInSeconds)),errors.collect(cdk.propertyValidator("sizeInMBs",cdk.validateNumber)(properties.sizeInMBs)),errors.wrap('supplied properties not correct for "AmazonOpenSearchServerlessBufferingHintsProperty"')}function cfnDeliveryStreamAmazonOpenSearchServerlessBufferingHintsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_AmazonOpenSearchServerlessBufferingHintsPropertyValidator(properties).assertSuccess(),{IntervalInSeconds:cdk.numberToCloudFormation(properties.intervalInSeconds),SizeInMBs:cdk.numberToCloudFormation(properties.sizeInMBs)}):properties}function CfnDeliveryStreamAmazonOpenSearchServerlessBufferingHintsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("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 CfnDeliveryStream_AmazonOpenSearchServerlessDestinationConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("bufferingHints",CfnDeliveryStream_AmazonOpenSearchServerlessBufferingHintsPropertyValidator)(properties.bufferingHints)),errors.collect(cdk.propertyValidator("cloudWatchLoggingOptions",CfnDeliveryStream_CloudWatchLoggingOptionsPropertyValidator)(properties.cloudWatchLoggingOptions)),errors.collect(cdk.propertyValidator("collectionEndpoint",cdk.validateString)(properties.collectionEndpoint)),errors.collect(cdk.propertyValidator("indexName",cdk.requiredValidator)(properties.indexName)),errors.collect(cdk.propertyValidator("indexName",cdk.validateString)(properties.indexName)),errors.collect(cdk.propertyValidator("processingConfiguration",CfnDeliveryStream_ProcessingConfigurationPropertyValidator)(properties.processingConfiguration)),errors.collect(cdk.propertyValidator("retryOptions",CfnDeliveryStream_AmazonOpenSearchServerlessRetryOptionsPropertyValidator)(properties.retryOptions)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),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",CfnDeliveryStream_S3DestinationConfigurationPropertyValidator)(properties.s3Configuration)),errors.collect(cdk.propertyValidator("vpcConfiguration",CfnDeliveryStream_VpcConfigurationPropertyValidator)(properties.vpcConfiguration)),errors.wrap('supplied properties not correct for "AmazonOpenSearchServerlessDestinationConfigurationProperty"')}function cfnDeliveryStreamAmazonOpenSearchServerlessDestinationConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_AmazonOpenSearchServerlessDestinationConfigurationPropertyValidator(properties).assertSuccess(),{BufferingHints:cfnDeliveryStreamAmazonOpenSearchServerlessBufferingHintsPropertyToCloudFormation(properties.bufferingHints),CloudWatchLoggingOptions:cfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties.cloudWatchLoggingOptions),CollectionEndpoint:cdk.stringToCloudFormation(properties.collectionEndpoint),IndexName:cdk.stringToCloudFormation(properties.indexName),ProcessingConfiguration:cfnDeliveryStreamProcessingConfigurationPropertyToCloudFormation(properties.processingConfiguration),RetryOptions:cfnDeliveryStreamAmazonOpenSearchServerlessRetryOptionsPropertyToCloudFormation(properties.retryOptions),RoleARN:cdk.stringToCloudFormation(properties.roleArn),S3BackupMode:cdk.stringToCloudFormation(properties.s3BackupMode),S3Configuration:cfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties.s3Configuration),VpcConfiguration:cfnDeliveryStreamVpcConfigurationPropertyToCloudFormation(properties.vpcConfiguration)}):properties}function CfnDeliveryStreamAmazonOpenSearchServerlessDestinationConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bufferingHints","BufferingHints",properties.BufferingHints!=null?CfnDeliveryStreamAmazonOpenSearchServerlessBufferingHintsPropertyFromCloudFormation(properties.BufferingHints):void 0),ret.addPropertyResult("cloudWatchLoggingOptions","CloudWatchLoggingOptions",properties.CloudWatchLoggingOptions!=null?CfnDeliveryStreamCloudWatchLoggingOptionsPropertyFromCloudFormation(properties.CloudWatchLoggingOptions):void 0),ret.addPropertyResult("collectionEndpoint","CollectionEndpoint",properties.CollectionEndpoint!=null?cfn_parse.FromCloudFormation.getString(properties.CollectionEndpoint):void 0),ret.addPropertyResult("indexName","IndexName",cfn_parse.FromCloudFormation.getString(properties.IndexName)),ret.addPropertyResult("processingConfiguration","ProcessingConfiguration",properties.ProcessingConfiguration!=null?CfnDeliveryStreamProcessingConfigurationPropertyFromCloudFormation(properties.ProcessingConfiguration):void 0),ret.addPropertyResult("retryOptions","RetryOptions",properties.RetryOptions!=null?CfnDeliveryStreamAmazonOpenSearchServerlessRetryOptionsPropertyFromCloudFormation(properties.RetryOptions):void 0),ret.addPropertyResult("roleArn","RoleARN",cfn_parse.FromCloudFormation.getString(properties.RoleARN)),ret.addPropertyResult("s3BackupMode","S3BackupMode",properties.S3BackupMode!=null?cfn_parse.FromCloudFormation.getString(properties.S3BackupMode):void 0),ret.addPropertyResult("s3Configuration","S3Configuration",CfnDeliveryStreamS3DestinationConfigurationPropertyFromCloudFormation(properties.S3Configuration)),ret.addPropertyResult("vpcConfiguration","VpcConfiguration",properties.VpcConfiguration!=null?CfnDeliveryStreamVpcConfigurationPropertyFromCloudFormation(properties.VpcConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_AmazonOpenSearchServerlessRetryOptionsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("durationInSeconds",cdk.validateNumber)(properties.durationInSeconds)),errors.wrap('supplied properties not correct for "AmazonOpenSearchServerlessRetryOptionsProperty"')}function cfnDeliveryStreamAmazonOpenSearchServerlessRetryOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_AmazonOpenSearchServerlessRetryOptionsPropertyValidator(properties).assertSuccess(),{DurationInSeconds:cdk.numberToCloudFormation(properties.durationInSeconds)}):properties}function CfnDeliveryStreamAmazonOpenSearchServerlessRetryOptionsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("durationInSeconds","DurationInSeconds",properties.DurationInSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.DurationInSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_AmazonopensearchserviceBufferingHintsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("intervalInSeconds",cdk.validateNumber)(properties.intervalInSeconds)),errors.collect(cdk.propertyValidator("sizeInMBs",cdk.validateNumber)(properties.sizeInMBs)),errors.wrap('supplied properties not correct for "AmazonopensearchserviceBufferingHintsProperty"')}function cfnDeliveryStreamAmazonopensearchserviceBufferingHintsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_AmazonopensearchserviceBufferingHintsPropertyValidator(properties).assertSuccess(),{IntervalInSeconds:cdk.numberToCloudFormation(properties.intervalInSeconds),SizeInMBs:cdk.numberToCloudFormation(properties.sizeInMBs)}):properties}function CfnDeliveryStreamAmazonopensearchserviceBufferingHintsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("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 CfnDeliveryStream_AmazonopensearchserviceDestinationConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("bufferingHints",CfnDeliveryStream_AmazonopensearchserviceBufferingHintsPropertyValidator)(properties.bufferingHints)),errors.collect(cdk.propertyValidator("cloudWatchLoggingOptions",CfnDeliveryStream_CloudWatchLoggingOptionsPropertyValidator)(properties.cloudWatchLoggingOptions)),errors.collect(cdk.propertyValidator("clusterEndpoint",cdk.validateString)(properties.clusterEndpoint)),errors.collect(cdk.propertyValidator("domainArn",cdk.validateString)(properties.domainArn)),errors.collect(cdk.propertyValidator("indexName",cdk.requiredValidator)(properties.indexName)),errors.collect(cdk.propertyValidator("indexName",cdk.validateString)(properties.indexName)),errors.collect(cdk.propertyValidator("indexRotationPeriod",cdk.validateString)(properties.indexRotationPeriod)),errors.collect(cdk.propertyValidator("processingConfiguration",CfnDeliveryStream_ProcessingConfigurationPropertyValidator)(properties.processingConfiguration)),errors.collect(cdk.propertyValidator("retryOptions",CfnDeliveryStream_AmazonopensearchserviceRetryOptionsPropertyValidator)(properties.retryOptions)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),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",CfnDeliveryStream_S3DestinationConfigurationPropertyValidator)(properties.s3Configuration)),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.collect(cdk.propertyValidator("vpcConfiguration",CfnDeliveryStream_VpcConfigurationPropertyValidator)(properties.vpcConfiguration)),errors.wrap('supplied properties not correct for "AmazonopensearchserviceDestinationConfigurationProperty"')}function cfnDeliveryStreamAmazonopensearchserviceDestinationConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_AmazonopensearchserviceDestinationConfigurationPropertyValidator(properties).assertSuccess(),{BufferingHints:cfnDeliveryStreamAmazonopensearchserviceBufferingHintsPropertyToCloudFormation(properties.bufferingHints),CloudWatchLoggingOptions:cfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties.cloudWatchLoggingOptions),ClusterEndpoint:cdk.stringToCloudFormation(properties.clusterEndpoint),DomainARN:cdk.stringToCloudFormation(properties.domainArn),IndexName:cdk.stringToCloudFormation(properties.indexName),IndexRotationPeriod:cdk.stringToCloudFormation(properties.indexRotationPeriod),ProcessingConfiguration:cfnDeliveryStreamProcessingConfigurationPropertyToCloudFormation(properties.processingConfiguration),RetryOptions:cfnDeliveryStreamAmazonopensearchserviceRetryOptionsPropertyToCloudFormation(properties.retryOptions),RoleARN:cdk.stringToCloudFormation(properties.roleArn),S3BackupMode:cdk.stringToCloudFormation(properties.s3BackupMode),S3Configuration:cfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties.s3Configuration),TypeName:cdk.stringToCloudFormation(properties.typeName),VpcConfiguration:cfnDeliveryStreamVpcConfigurationPropertyToCloudFormation(properties.vpcConfiguration)}):properties}function CfnDeliveryStreamAmazonopensearchserviceDestinationConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("bufferingHints","BufferingHints",properties.BufferingHints!=null?CfnDeliveryStreamAmazonopensearchserviceBufferingHintsPropertyFromCloudFormation(properties.BufferingHints):void 0),ret.addPropertyResult("cloudWatchLoggingOptions","CloudWatchLoggingOptions",properties.CloudWatchLoggingOptions!=null?CfnDeliveryStreamCloudWatchLoggingOptionsPropertyFromCloudFormation(properties.CloudWatchLoggingOptions):void 0),ret.addPropertyResult("clusterEndpoint","ClusterEndpoint",properties.ClusterEndpoint!=null?cfn_parse.FromCloudFormation.getString(properties.ClusterEndpoint):void 0),ret.addPropertyResult("domainArn","DomainARN",properties.DomainARN!=null?cfn_parse.FromCloudFormation.getString(properties.DomainARN):void 0),ret.addPropertyResult("indexName","IndexName",cfn_parse.FromCloudFormation.getString(properties.IndexName)),ret.addPropertyResult("indexRotationPeriod","IndexRotationPeriod",properties.IndexRotationPeriod!=null?cfn_parse.FromCloudFormation.getString(properties.IndexRotationPeriod):void 0),ret.addPropertyResult("processingConfiguration","ProcessingConfiguration",properties.ProcessingConfiguration!=null?CfnDeliveryStreamProcessingConfigurationPropertyFromCloudFormation(properties.ProcessingConfiguration):void 0),ret.addPropertyResult("retryOptions","RetryOptions",properties.RetryOptions!=null?CfnDeliveryStreamAmazonopensearchserviceRetryOptionsPropertyFromCloudFormation(properties.RetryOptions):void 0),ret.addPropertyResult("roleArn","RoleARN",cfn_parse.FromCloudFormation.getString(properties.RoleARN)),ret.addPropertyResult("s3BackupMode","S3BackupMode",properties.S3BackupMode!=null?cfn_parse.FromCloudFormation.getString(properties.S3BackupMode):void 0),ret.addPropertyResult("s3Configuration","S3Configuration",CfnDeliveryStreamS3DestinationConfigurationPropertyFromCloudFormation(properties.S3Configuration)),ret.addPropertyResult("typeName","TypeName",properties.TypeName!=null?cfn_parse.FromCloudFormation.getString(properties.TypeName):void 0),ret.addPropertyResult("vpcConfiguration","VpcConfiguration",properties.VpcConfiguration!=null?CfnDeliveryStreamVpcConfigurationPropertyFromCloudFormation(properties.VpcConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_AmazonopensearchserviceRetryOptionsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("durationInSeconds",cdk.validateNumber)(properties.durationInSeconds)),errors.wrap('supplied properties not correct for "AmazonopensearchserviceRetryOptionsProperty"')}function cfnDeliveryStreamAmazonopensearchserviceRetryOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_AmazonopensearchserviceRetryOptionsPropertyValidator(properties).assertSuccess(),{DurationInSeconds:cdk.numberToCloudFormation(properties.durationInSeconds)}):properties}function CfnDeliveryStreamAmazonopensearchserviceRetryOptionsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("durationInSeconds","DurationInSeconds",properties.DurationInSeconds!=null?cfn_parse.FromCloudFormation.getNumber(properties.DurationInSeconds):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_BufferingHintsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("intervalInSeconds",cdk.validateNumber)(properties.intervalInSeconds)),errors.collect(cdk.propertyValidator("sizeInMBs",cdk.validateNumber)(properties.sizeInMBs)),errors.wrap('supplied properties not correct for "BufferingHintsProperty"')}function cfnDeliveryStreamBufferingHintsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_BufferingHintsPropertyValidator(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??{},typeof properties!="object")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 CfnDeliveryStream_CloudWatchLoggingOptionsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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 cfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_CloudWatchLoggingOptionsPropertyValidator(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??{},typeof properties!="object")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 CfnDeliveryStream_CopyCommandPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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 cfnDeliveryStreamCopyCommandPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_CopyCommandPropertyValidator(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??{},typeof properties!="object")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",cfn_parse.FromCloudFormation.getString(properties.DataTableName)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_DataFormatConversionConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("enabled",cdk.validateBoolean)(properties.enabled)),errors.collect(cdk.propertyValidator("inputFormatConfiguration",CfnDeliveryStream_InputFormatConfigurationPropertyValidator)(properties.inputFormatConfiguration)),errors.collect(cdk.propertyValidator("outputFormatConfiguration",CfnDeliveryStream_OutputFormatConfigurationPropertyValidator)(properties.outputFormatConfiguration)),errors.collect(cdk.propertyValidator("schemaConfiguration",CfnDeliveryStream_SchemaConfigurationPropertyValidator)(properties.schemaConfiguration)),errors.wrap('supplied properties not correct for "DataFormatConversionConfigurationProperty"')}function cfnDeliveryStreamDataFormatConversionConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_DataFormatConversionConfigurationPropertyValidator(properties).assertSuccess(),{Enabled:cdk.booleanToCloudFormation(properties.enabled),InputFormatConfiguration:cfnDeliveryStreamInputFormatConfigurationPropertyToCloudFormation(properties.inputFormatConfiguration),OutputFormatConfiguration:cfnDeliveryStreamOutputFormatConfigurationPropertyToCloudFormation(properties.outputFormatConfiguration),SchemaConfiguration:cfnDeliveryStreamSchemaConfigurationPropertyToCloudFormation(properties.schemaConfiguration)}):properties}function CfnDeliveryStreamDataFormatConversionConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("inputFormatConfiguration","InputFormatConfiguration",properties.InputFormatConfiguration!=null?CfnDeliveryStreamInputFormatConfigurationPropertyFromCloudFormation(properties.InputFormatConfiguration):void 0),ret.addPropertyResult("outputFormatConfiguration","OutputFormatConfiguration",properties.OutputFormatConfiguration!=null?CfnDeliveryStreamOutputFormatConfigurationPropertyFromCloudFormation(properties.OutputFormatConfiguration):void 0),ret.addPropertyResult("schemaConfiguration","SchemaConfiguration",properties.SchemaConfiguration!=null?CfnDeliveryStreamSchemaConfigurationPropertyFromCloudFormation(properties.SchemaConfiguration):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_DeliveryStreamEncryptionConfigurationInputPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("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 cfnDeliveryStreamDeliveryStreamEncryptionConfigurationInputPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_DeliveryStreamEncryptionConfigurationInputPropertyValidator(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??{},typeof properties!="object")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",cfn_parse.FromCloudFormation.getString(properties.KeyType)),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_DeserializerPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("hiveJsonSerDe",CfnDeliveryStream_HiveJsonSerDePropertyValidator)(properties.hiveJsonSerDe)),errors.collect(cdk.propertyValidator("openXJsonSerDe",CfnDeliveryStream_OpenXJsonSerDePropertyValidator)(properties.openXJsonSerDe)),errors.wrap('supplied properties not correct for "DeserializerProperty"')}function cfnDeliveryStreamDeserializerPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_DeserializerPropertyValidator(properties).assertSuccess(),{HiveJsonSerDe:cfnDeliveryStreamHiveJsonSerDePropertyToCloudFormation(properties.hiveJsonSerDe),OpenXJsonSerDe:cfnDeliveryStreamOpenXJsonSerDePropertyToCloudFormation(properties.openXJsonSerDe)}):properties}function CfnDeliveryStreamDeserializerPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("hiveJsonSerDe","HiveJsonSerDe",properties.HiveJsonSerDe!=null?CfnDeliveryStreamHiveJsonSerDePropertyFromCloudFormation(properties.HiveJsonSerDe):void 0),ret.addPropertyResult("openXJsonSerDe","OpenXJsonSerDe",properties.OpenXJsonSerDe!=null?CfnDeliveryStreamOpenXJsonSerDePropertyFromCloudFormation(properties.OpenXJsonSerDe):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_DynamicPartitioningConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("enabled",cdk.validateBoolean)(properties.enabled)),errors.collect(cdk.propertyValidator("retryOptions",CfnDeliveryStream_RetryOptionsPropertyValidator)(properties.retryOptions)),errors.wrap('supplied properties not correct for "DynamicPartitioningConfigurationProperty"')}function cfnDeliveryStreamDynamicPartitioningConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_DynamicPartitioningConfigurationPropertyValidator(properties).assertSuccess(),{Enabled:cdk.booleanToCloudFormation(properties.enabled),RetryOptions:cfnDeliveryStreamRetryOptionsPropertyToCloudFormation(properties.retryOptions)}):properties}function CfnDeliveryStreamDynamicPartitioningConfigurationPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("enabled","Enabled",properties.Enabled!=null?cfn_parse.FromCloudFormation.getBoolean(properties.Enabled):void 0),ret.addPropertyResult("retryOptions","RetryOptions",properties.RetryOptions!=null?CfnDeliveryStreamRetryOptionsPropertyFromCloudFormation(properties.RetryOptions):void 0),ret.addUnrecognizedPropertiesAsExtra(properties),ret}function CfnDeliveryStream_ElasticsearchBufferingHintsPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("intervalInSeconds",cdk.validateNumber)(properties.intervalInSeconds)),errors.collect(cdk.propertyValidator("sizeInMBs",cdk.validateNumber)(properties.sizeInMBs)),errors.wrap('supplied properties not correct for "ElasticsearchBufferingHintsProperty"')}function cfnDeliveryStreamElasticsearchBufferingHintsPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_ElasticsearchBufferingHintsPropertyValidator(properties).assertSuccess(),{IntervalInSeconds:cdk.numberToCloudFormation(properties.intervalInSeconds),SizeInMBs:cdk.numberToCloudFormation(properties.sizeInMBs)}):properties}function CfnDeliveryStreamElasticsearchBufferingHintsPropertyFromCloudFormation(properties){if(cdk.isResolvableObject(properties))return new cfn_parse.FromCloudFormationResult(properties);if(properties=properties??{},typeof properties!="object")return new cfn_parse.FromCloudFormationResult(properties);const ret=new cfn_parse.FromCloudFormationPropertyObject;return ret.addPropertyResult("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 CfnDeliveryStream_ElasticsearchDestinationConfigurationPropertyValidator(properties){if(!cdk.canInspect(properties))return cdk.VALIDATION_SUCCESS;const errors=new cdk.ValidationResults;return typeof properties!="object"&&errors.collect(new cdk.ValidationResult("Expected an object, but received: "+JSON.stringify(properties))),errors.collect(cdk.propertyValidator("bufferingHints",CfnDeliveryStream_ElasticsearchBufferingHintsPropertyValidator)(properties.bufferingHints)),errors.collect(cdk.propertyValidator("cloudWatchLoggingOptions",CfnDeliveryStream_CloudWatchLoggingOptionsPropertyValidator)(properties.cloudWatchLoggingOptions)),errors.collect(cdk.propertyValidator("clusterEndpoint",cdk.validateString)(properties.clusterEndpoint)),errors.collect(cdk.propertyValidator("domainArn",cdk.validateString)(properties.domainArn)),errors.collect(cdk.propertyValidator("indexName",cdk.requiredValidator)(properties.indexName)),errors.collect(cdk.propertyValidator("indexName",cdk.validateString)(properties.indexName)),errors.collect(cdk.propertyValidator("indexRotationPeriod",cdk.validateString)(properties.indexRotationPeriod)),errors.collect(cdk.propertyValidator("processingConfiguration",CfnDeliveryStream_ProcessingConfigurationPropertyValidator)(properties.processingConfiguration)),errors.collect(cdk.propertyValidator("retryOptions",CfnDeliveryStream_ElasticsearchRetryOptionsPropertyValidator)(properties.retryOptions)),errors.collect(cdk.propertyValidator("roleArn",cdk.requiredValidator)(properties.roleArn)),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",CfnDeliveryStream_S3DestinationConfigurationPropertyValidator)(properties.s3Configuration)),errors.collect(cdk.propertyValidator("typeName",cdk.validateString)(properties.typeName)),errors.collect(cdk.propertyValidator("vpcConfiguration",CfnDeliveryStream_VpcConfigurationPropertyValidator)(properties.vpcConfiguration)),errors.wrap('supplied properties not correct for "ElasticsearchDestinationConfigurationProperty"')}function cfnDeliveryStreamElasticsearchDestinationConfigurationPropertyToCloudFormation(properties){return cdk.canInspect(properties)?(CfnDeliveryStream_ElasticsearchDestinationConfigurationPropertyValidator(properties).assertSuccess(),{BufferingHints:cfnDeliveryStreamElasticsearchBufferingHintsPropertyToCloudFormation(properties.bufferingHints),CloudWatchLoggingOptions:cfnDeliveryStreamCloudWatchLoggingOptionsPropertyToCloudFormation(properties.cloudWatchLoggingOptions),ClusterEndpoint:cdk.stringToCloudFormation(properties.clusterEndpoint),DomainARN:cdk.stringToCloudFormation(properties.domainArn),IndexName:cdk.stringToCloudFormation(properties.indexName),IndexRotationPeriod:cdk.stringToCloudFormation(properties.indexRotationPeriod),ProcessingConfiguration:cfnDeliveryStreamProcessingConfigurationPropertyToCloudFormation(properties.processingConfiguration),RetryOptions:cfnDeliveryStreamElasticsearchRetryOptionsPropertyToCloudFormation(properties.retryOptions),RoleARN:cdk.stringToCloudFormation(properties.roleArn),S3BackupMode:cdk.stringToCloudFormation(properties.s3BackupMode),S3Configuration:cfnDeliveryStreamS3DestinationConfigurationPropertyToCloudFormation(properties.s3Configuration),TypeName:cdk.stringToCloudFormation(properties