From db1c8f3d461687a5e11a97d8c63cb9de2b6fa9a8 Mon Sep 17 00:00:00 2001 From: aereal Date: Sun, 24 Mar 2019 23:48:50 +0900 Subject: [PATCH] fix(rds): removed `InstanceParameterGroupRef` we already introduced `ImportedInstanceParameterGroup` --- .../lib/instance-parameter-group-ref.ts | 44 ------------------- 1 file changed, 44 deletions(-) delete mode 100644 packages/@aws-cdk/aws-rds/lib/instance-parameter-group-ref.ts diff --git a/packages/@aws-cdk/aws-rds/lib/instance-parameter-group-ref.ts b/packages/@aws-cdk/aws-rds/lib/instance-parameter-group-ref.ts deleted file mode 100644 index 3854eeec81a1a..0000000000000 --- a/packages/@aws-cdk/aws-rds/lib/instance-parameter-group-ref.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { CfnOutput, Construct } from "@aws-cdk/cdk"; - -/** - * A instance parameter group - */ -export abstract class InstanceParameterGroupRef extends Construct { - /** - * Import a parameter group - */ - public static import(scope: Construct, id: string, props: InstanceParameterGroupRefProps): InstanceParameterGroupRef { - return new ImportedInstanceParameterGroup(scope, id, props); - } - - /** - * Name of this parameter group - */ - public abstract readonly parameterGroupName: string; - - /** - * Export this parameter group - */ - public export(): InstanceParameterGroupRefProps { - return { - parameterGroupName: new CfnOutput(this, 'ParameterGroupName', { value: this.parameterGroupName}).makeImportValue().toString(), - }; - } -} - -/** - * Properties to reference a instance parameter group - */ -export interface InstanceParameterGroupRefProps { - parameterGroupName: string -} - -class ImportedInstanceParameterGroup extends InstanceParameterGroupRef { - public readonly parameterGroupName: string; - - constructor(scope: Construct, id: string, props: InstanceParameterGroupRefProps) { - super(scope, id); - - this.parameterGroupName = props.parameterGroupName; - } -}