-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(msk): Cluster L2 Construct (#9908)
L2 Construct for a MSK Cluster. I wrote this for internal use and thought I'd share it. I tried to follow the [example resource](https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/example-construct-library/lib/example-resource.ts) and [design guidelines](https://github.com/aws/aws-cdk/blob/master/DESIGN_GUIDELINES.md) as much as I could. Default properties were chosen either based on defaults when creating a cluster in the console or defaults set from CloudFormation. Closes #9603 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
- Loading branch information
Curtis
authored
May 10, 2021
1 parent
063ddc7
commit ce119ba
Showing
11 changed files
with
2,537 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
/** | ||
* Kafka cluster version | ||
*/ | ||
export class KafkaVersion { | ||
/** | ||
* Kafka version 1.1.1 | ||
*/ | ||
public static readonly V1_1_1 = KafkaVersion.of('1.1.1'); | ||
|
||
/** | ||
* Kafka version 2.2.1 | ||
*/ | ||
public static readonly V2_2_1 = KafkaVersion.of('2.2.1'); | ||
|
||
/** | ||
* Kafka version 2.3.1 | ||
*/ | ||
public static readonly V2_3_1 = KafkaVersion.of('2.3.1'); | ||
|
||
/** | ||
* Kafka version 2.4.1 | ||
*/ | ||
public static readonly V2_4_1_1 = KafkaVersion.of('2.4.1.1'); | ||
|
||
/** | ||
* Kafka version 2.5.1 | ||
*/ | ||
public static readonly V2_5_1 = KafkaVersion.of('2.5.1'); | ||
|
||
/** | ||
* Kafka version 2.6.0 | ||
*/ | ||
public static readonly V2_6_0 = KafkaVersion.of('2.6.0'); | ||
|
||
/** | ||
* Kafka version 2.6.1 | ||
*/ | ||
public static readonly V2_6_1 = KafkaVersion.of('2.6.1'); | ||
|
||
/** | ||
* Kafka version 2.7.0 | ||
*/ | ||
public static readonly V2_7_0 = KafkaVersion.of('2.7.0'); | ||
|
||
/** | ||
* Kafka version 2.8.0 | ||
*/ | ||
public static readonly V2_8_0 = KafkaVersion.of('2.8.0'); | ||
|
||
/** | ||
* Custom cluster version | ||
* @param version custom version number | ||
*/ | ||
public static of(version: string) { | ||
return new KafkaVersion(version); | ||
} | ||
|
||
/** | ||
* | ||
* @param version cluster version number | ||
*/ | ||
private constructor(public readonly version: string) {} | ||
} |
Oops, something went wrong.