Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(efs): support for new elastic throughputmode #23200

Merged
merged 13 commits into from
Dec 6, 2022
11 changes: 11 additions & 0 deletions packages/@aws-cdk/aws-efs/lib/efs-file-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ import { CfnFileSystem, CfnMountTarget } from './efs.generated';
* @see http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-efs-filesystem.html#cfn-elasticfilesystem-filesystem-lifecyclepolicies
*/
export enum LifecyclePolicy {

/**
* After 1 day of not being accessed.
*/
AFTER_1_DAY = 'AFTER_1_DAY',

/**
* After 7 days of not being accessed.
*/
Expand Down Expand Up @@ -90,6 +96,11 @@ export enum ThroughputMode {
* This mode can instantly provision the throughput of the file system (in MiB/s) independent of the amount of data stored.
*/
PROVISIONED = 'provisioned'

/**
* This mode scales the throughput automatically regardless of file system size.
*/
ELASTIC = 'elastic'
}

/**
Expand Down