File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
packages/@aws-cdk/aws-dynamodb/lib Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import * as perms from './perms';
1313import { ReplicaProvider } from './replica-provider' ;
1414import { EnableScalingProps , IScalableTableAttribute } from './scalable-attribute-api' ;
1515import { ScalableTableAttribute } from './scalable-table-attribute' ;
16- import { TableTimeToLiveProvider } from './table- time-to-live-provider' ;
16+ import { TimeToLiveProvider } from './time-to-live-provider' ;
1717
1818// keep this import separate from other imports to reduce chance for merge conflicts with v2-main
1919// eslint-disable-next-line no-duplicate-imports, import/order
@@ -1562,7 +1562,7 @@ export class Table extends TableBase {
15621562 }
15631563
15641564 private setTimeToLive ( timeToLiveAttribute ?: string ) {
1565- const provider = TableTimeToLiveProvider . getOrCreate ( this ) ;
1565+ const provider = TimeToLiveProvider . getOrCreate ( this ) ;
15661566
15671567 // Permissions
15681568 const permissions = [ 'dynamodb:DescribeTable' , 'dynamodb:DescribeTimeToLive' , 'dynamodb:UpdateTimeToLive' ] ;
Original file line number Diff line number Diff line change @@ -8,14 +8,14 @@ import { Construct } from 'constructs';
88// eslint-disable-next-line no-duplicate-imports, import/order
99import { Construct as CoreConstruct } from '@aws-cdk/core' ;
1010
11- export class TableTimeToLiveProvider extends CoreConstruct {
11+ export class TimeToLiveProvider extends CoreConstruct {
1212 /**
1313 * Creates a stack-singleton resource provider.
1414 */
15- public static getOrCreate ( scope : Construct ) : TableTimeToLiveProvider {
15+ public static getOrCreate ( scope : Construct ) : TimeToLiveProvider {
1616 const stack = Stack . of ( scope ) ;
1717 const logicalId = '@aws-cdk/aws-dynamodb.TimeToLiveProvider' ;
18- return stack . node . tryFindChild ( logicalId ) as TableTimeToLiveProvider ?? new TableTimeToLiveProvider ( stack , logicalId ) ;
18+ return stack . node . tryFindChild ( logicalId ) as TimeToLiveProvider ?? new TimeToLiveProvider ( stack , logicalId ) ;
1919 }
2020
2121 /**
You can’t perform that action at this time.
0 commit comments