Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
duarten committed Feb 28, 2022
1 parent 0fed862 commit 006b146
Show file tree
Hide file tree
Showing 3 changed files with 116 additions and 446 deletions.
10 changes: 4 additions & 6 deletions packages/@aws-cdk/aws-s3objectlambda/lib/access-point.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,8 +184,6 @@ export class AccessPoint extends AccessPointBase {
return new Import(scope, id);
}

private readonly accessPoint: CfnAccessPoint

/**
* The ARN of the access point.
*/
Expand Down Expand Up @@ -224,7 +222,7 @@ export class AccessPoint extends AccessPointBase {
allowedFeatures.push('GetObject-Range');
}

this.accessPoint = new CfnAccessPoint(this, 'LambdaAccessPoint', {
const accessPoint = new CfnAccessPoint(this, id, {
name: this.physicalName,
objectLambdaConfiguration: {
allowedFeatures,
Expand All @@ -243,9 +241,9 @@ export class AccessPoint extends AccessPointBase {
],
},
});
this.accessPointName = this.accessPoint.ref;
this.accessPointArn = this.accessPoint.attrArn;
this.accessPointCreationDate = this.accessPoint.attrCreationDate;
this.accessPointName = accessPoint.ref;
this.accessPointArn = accessPoint.attrArn;
this.accessPointCreationDate = accessPoint.attrCreationDate;

props.handler.addToRolePolicy(
new iam.PolicyStatement({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@
}
}
},
"MyObjectLambda1LambdaAccessPoint73C4BD68": {
"MyObjectLambda17554FEF4": {
"Type": "AWS::S3ObjectLambda::AccessPoint",
"Properties": {
"Name": "obj-lambda-1",
Expand Down Expand Up @@ -200,7 +200,7 @@
}
}
},
"MyObjectLambda2LambdaAccessPoint1043EB83": {
"MyObjectLambda2CCBCAAF7": {
"Type": "AWS::S3ObjectLambda::AccessPoint",
"Properties": {
"Name": "obj-lambda-1",
Expand Down
Loading

0 comments on commit 006b146

Please sign in to comment.