"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.Archive=void 0;var jsiiDeprecationWarnings=()=>{var tmp=require("../../.warnings.jsii.js");return jsiiDeprecationWarnings=()=>tmp,tmp};const JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti");var events_generated_1=()=>{var tmp=require("./events.generated");return events_generated_1=()=>tmp,tmp},util_1=()=>{var tmp=require("./util");return util_1=()=>tmp,tmp},core_1=()=>{var tmp=require("../../core");return core_1=()=>tmp,tmp};class Archive extends core_1().Resource{constructor(scope,id,props){super(scope,id,{physicalName:props.archiveName});try{jsiiDeprecationWarnings().aws_cdk_lib_aws_events_ArchiveProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,Archive),error}let archive=new(events_generated_1()).CfnArchive(this,"Archive",{sourceArn:props.sourceEventBus.eventBusArn,description:props.description,eventPattern:(0,util_1().renderEventPattern)(props.eventPattern),retentionDays:props.retention?.toDays({integral:!0})||0,archiveName:this.physicalName});this.archiveArn=archive.attrArn,this.archiveName=archive.ref,this.node.defaultChild=archive}}exports.Archive=Archive,_a=JSII_RTTI_SYMBOL_1,Archive[_a]={fqn:"aws-cdk-lib.aws_events.Archive",version:"2.148.1"};
