Skip to content

Commit

Permalink
Fix inheritance inconsistencies that aren't yet caught by jsii. (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpiroc authored and Elad Ben-Israel committed Aug 3, 2018
1 parent e7508a7 commit f5ca82b
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
8 changes: 4 additions & 4 deletions packages/@aws-cdk/aws-custom-resources/lib/singletonlambda.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ export interface SingletonLambdaProps extends lambda.LambdaProps {
* for every SingletonLambda you create.
*/
export class SingletonLambda extends lambda.LambdaRef {
public functionName: lambda.FunctionName;
public functionArn: lambda.FunctionArn;
public role?: iam.Role | undefined;
protected canCreatePermissions: boolean;
public readonly functionName: lambda.FunctionName;
public readonly functionArn: lambda.FunctionArn;
public readonly role?: iam.Role | undefined;
protected readonly canCreatePermissions: boolean;
private lambdaFunction: lambda.LambdaRef;

constructor(parent: cdk.Construct, name: string, props: SingletonLambdaProps) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class PipelineInvokeAction extends codepipeline.Action {
* Add an input artifact
* @param artifact
*/
public addInputArtifact(artifact: codepipeline.Artifact): PipelineInvokeAction {
protected addInputArtifact(artifact: codepipeline.Artifact): codepipeline.Action {
super.addInputArtifact(artifact);
return this;
}
Expand Down
5 changes: 0 additions & 5 deletions packages/aws-cdk-dotnet/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ echo $NUGET_CONFIG_CONTENT > ./src/NuGet.config
AWS_CDK=../@aws-cdk
echo "Searching $AWS_CDK for jsii packages..."
for i in $( ls $AWS_CDK ); do
# Generation of aws-custom-resources is blocked due to https://github.com/awslabs/aws-cdk/issues/383
if [ "$i" == "aws-custom-resources" ]; then
continue
fi

AWS_CDK_PACKAGE=$AWS_CDK/$i
AWS_CDK_ASSEMBLY=$AWS_CDK_PACKAGE/.jsii
if [ -e $AWS_CDK_ASSEMBLY ]; then
Expand Down

0 comments on commit f5ca82b

Please sign in to comment.