Skip to content

Commit 9fa6132

Browse files
committed
feat(dynamodb): rename TableTimeToLiveProvider
1 parent eb24d9a commit 9fa6132

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

packages/@aws-cdk/aws-dynamodb/lib/table.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as perms from './perms';
1313
import { ReplicaProvider } from './replica-provider';
1414
import { EnableScalingProps, IScalableTableAttribute } from './scalable-attribute-api';
1515
import { 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'];

packages/@aws-cdk/aws-dynamodb/lib/table-time-to-live-provider.ts renamed to packages/@aws-cdk/aws-dynamodb/lib/time-to-live-provider.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ import { Construct } from 'constructs';
88
// eslint-disable-next-line no-duplicate-imports, import/order
99
import { 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
/**

0 commit comments

Comments
 (0)