Skip to content

Commit

Permalink
refactor: update based on review
Browse files Browse the repository at this point in the history
  • Loading branch information
KnisterPeter committed Jun 20, 2019
1 parent 5362305 commit 0171ac9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-cloudfront/lib/web_distribution.ts
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ export interface LambdaFunctionAssociation {
readonly eventType: LambdaEdgeEventType;

/**
* A version of the lambda to associate or a resolvable resource
* A version of the lambda to associate
*/
readonly lambdaFunction: lambda.IVersion;
}
Expand Down
4 changes: 2 additions & 2 deletions packages/@aws-cdk/aws-lambda/lib/lambda-version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ export interface VersionAttributes {
export class Version extends QualifiedFunctionBase implements IVersion {

/**
* Construct a Version object from a Version ARN.
*
* @param scope The cdk scope creating this resource
* @param id The cdk id of this resource
* @param versionArn The version ARN to create this version from
Expand Down Expand Up @@ -155,8 +157,6 @@ export class Version extends QualifiedFunctionBase implements IVersion {
*
* ..which means that in order to extract the `function arn` component from the ARN, we can
* split the ARN using ":" and join indices 0-6.
*
* @returns `FnSelect(7, FnSplit(':', arn))`
*/
function extractFunctionArnFromVersionArn(arn: string) {
return Fn.join(':', [
Expand Down

0 comments on commit 0171ac9

Please sign in to comment.