"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.SubscriptionFilter=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),core_1=require("../../core"),logs_generated_1=require("./logs.generated");class SubscriptionFilter extends core_1.Resource{constructor(scope,id,props){super(scope,id);try{jsiiDeprecationWarnings.aws_cdk_lib_aws_logs_SubscriptionFilterProps(props)}catch(error){throw process.env.JSII_DEBUG!=="1"&&error.name==="DeprecationError"&&Error.captureStackTrace(error,this.constructor),error}const destProps=props.destination.bind(this,props.logGroup);new logs_generated_1.CfnSubscriptionFilter(this,"Resource",{logGroupName:props.logGroup.logGroupName,destinationArn:destProps.arn,roleArn:destProps.role&&destProps.role.roleArn,filterPattern:props.filterPattern.logPatternString})}}exports.SubscriptionFilter=SubscriptionFilter,_a=JSII_RTTI_SYMBOL_1,SubscriptionFilter[_a]={fqn:"aws-cdk-lib.aws_logs.SubscriptionFilter",version:"2.21.0"};
//# sourceMappingURL=subscription-filter.js.map
