Skip to content

Commit

Permalink
Add static method to create custom variants
Browse files Browse the repository at this point in the history
  • Loading branch information
bracki committed Feb 16, 2021
1 parent 48a500f commit 89a0dd8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/@aws-cdk/aws-lambda/lib/event-source-mapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ export class SourceAccessConfigurationType {
*/
public static readonly SASL_SCRAM_512_AUTH = new SourceAccessConfigurationType('SASL_SCRAM_512_AUTH');

/** A custom source access configuration property */
public static of(name: string): SourceAccessConfigurationType {
return new SourceAccessConfigurationType(name);
}

/** The key to use in `CfnEventSourceMapping.SourceAccessConfigurationProperty.Type` */
public readonly type: string;

Expand Down

0 comments on commit 89a0dd8

Please sign in to comment.