UNPKG

aws-cdk-lib

Version:

Version 2 of the AWS Cloud Development Kit library

2 lines (1 loc) 616 B
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.toILogGroup=toILogGroup;var core_1=()=>{var tmp=require("../../../core");return core_1=()=>tmp,tmp},literal_string_1=()=>{var tmp=require("../../../core/lib/private/literal-string");return literal_string_1=()=>tmp,tmp};function toILogGroup(logGroup){if(typeof logGroup.addStream!="function"||typeof logGroup.grant!="function")throw new(core_1()).UnscopedValidationError((0,literal_string_1().lit)`LoggroupInstanceShouldImplement`,`'logGroup' instance should implement ILogGroup, but doesn't: ${logGroup.constructor.name}`);return logGroup}