11import type { Resource , Service , SpecDatabase } from '@aws-cdk/service-spec-types' ;
22import { naming , util } from '@aws-cdk/spec2cdk' ;
3- import { CDK_CORE , CONSTRUCTS } from '@aws-cdk/spec2cdk/lib/cdk/cdk' ;
3+ import { CDK_CORE , CDK_INTERFACES , CONSTRUCTS } from '@aws-cdk/spec2cdk/lib/cdk/cdk' ;
44import type { Method } from '@cdklabs/typewriter' ;
55import { Module , ExternalModule , ClassType , Stability , Type , expr , stmt , ThingSymbol , $this , CallableProxy , NewExpression , $E } from '@cdklabs/typewriter' ;
6- import { CDK_AWS_LOGS , MIXINS_LOGS_DELIVERY , REF_INTERFACES } from './helpers' ;
7- import type { ServiceSubmoduleProps , SelectiveImport , LocatedModule } from '@aws-cdk/spec2cdk/lib/cdk/service-submodule' ;
6+ import { CDK_AWS_LOGS , MIXINS_LOGS_DELIVERY } from './helpers' ;
7+ import type { ServiceSubmoduleProps , LocatedModule } from '@aws-cdk/spec2cdk/lib/cdk/service-submodule' ;
88import { BaseServiceSubmodule , relativeImportPath } from '@aws-cdk/spec2cdk/lib/cdk/service-submodule' ;
99import type { AddServiceProps , LibraryBuilderProps } from '@aws-cdk/spec2cdk/lib/cdk/library-builder' ;
1010import { LibraryBuilder } from '@aws-cdk/spec2cdk/lib/cdk/library-builder' ;
@@ -48,8 +48,6 @@ export class LogsDeliveryBuilder extends LibraryBuilder<LogsDeliveryBuilderServi
4848 submodule . registerResource ( `${ resource . cloudFormationType } VendedLogs` , vendedLogsMixin . mixin ) ;
4949
5050 vendedLogsMixin . build ( ) ;
51-
52- submodule . registerSelectiveImports ( ...vendedLogsMixin . imports ) ;
5351 }
5452 }
5553
@@ -72,7 +70,7 @@ export class LogsDeliveryBuilder extends LibraryBuilder<LogsDeliveryBuilderServi
7270 submodule . registerModule ( { module, filePath } ) ;
7371
7472 CDK_CORE . import ( module , 'cdk' ) ;
75- REF_INTERFACES . import ( module , 'interfaces' ) ;
73+ CDK_INTERFACES . import ( module , 'interfaces' ) ;
7674 CONSTRUCTS . import ( module , 'constructs' ) ;
7775 CDK_AWS_LOGS . import ( module , 'logs' ) ;
7876 MIXINS_CORE . import ( module , 'core' , { fromLocation : relativeImportPath ( filePath , '../core' ) } ) ;
@@ -85,7 +83,6 @@ export class LogsDeliveryBuilder extends LibraryBuilder<LogsDeliveryBuilderServi
8583
8684class LogsDelivery {
8785 public scope : Module ;
88- public readonly imports = new Array < SelectiveImport > ( ) ;
8986 public readonly mixin : LogsMixin ;
9087 private readonly helpers : LogsHelper [ ] = [ ] ;
9188
@@ -157,7 +154,7 @@ class LogsHelper extends ClassType {
157154
158155 const paramS3 = toS3 . addParameter ( {
159156 name : 'bucket' ,
160- type : REF_INTERFACES . IBucketRef ,
157+ type : CDK_INTERFACES . IBucketRef ,
161158 } ) ;
162159
163160 const permissions = this . resource . vendedLogs ! . permissionsVersion === 'V2' ? MIXINS_LOGS_DELIVERY . S3LogsDeliveryPermissionsVersion . V2 : MIXINS_LOGS_DELIVERY . S3LogsDeliveryPermissionsVersion . V1 ;
@@ -179,7 +176,7 @@ class LogsHelper extends ClassType {
179176
180177 const paramCWL = toCWL . addParameter ( {
181178 name : 'logGroup' ,
182- type : REF_INTERFACES . ILogGroupRef ,
179+ type : CDK_INTERFACES . ILogGroupRef ,
183180 } ) ;
184181
185182 toCWL . addBody ( stmt . block (
@@ -199,7 +196,7 @@ class LogsHelper extends ClassType {
199196
200197 const paramFH = toFH . addParameter ( {
201198 name : 'deliveryStream' ,
202- type : REF_INTERFACES . IDeliveryStreamRef ,
199+ type : CDK_INTERFACES . IDeliveryStreamRef ,
203200 } ) ;
204201
205202 toFH . addBody ( stmt . block (
@@ -238,7 +235,6 @@ class LogsHelper extends ClassType {
238235}
239236
240237class LogsMixin extends ClassType {
241- public readonly imports = new Array < SelectiveImport > ( ) ;
242238 private readonly resourceType : Type ;
243239
244240 constructor (
0 commit comments