From 7a7b842eed32005c9472f1eb12f3a75b73545e4f Mon Sep 17 00:00:00 2001 From: CaerusKaru Date: Thu, 9 May 2019 23:56:05 -0500 Subject: [PATCH] fix(codepipeline): set correct prop names for KMS key It seems like this might actually be a bug in the serialization generator, since the return object doesn't require this to generate the correct Cfn syntax Not sure where to look for that though. In the meantime, this fixes the issue where Cfn will spit out an error for `Encountered unsupported property type` --- packages/@aws-cdk/aws-codepipeline/lib/pipeline.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/@aws-cdk/aws-codepipeline/lib/pipeline.ts b/packages/@aws-cdk/aws-codepipeline/lib/pipeline.ts index 7f9af258c0dda..ed93d51aaff03 100644 --- a/packages/@aws-cdk/aws-codepipeline/lib/pipeline.ts +++ b/packages/@aws-cdk/aws-codepipeline/lib/pipeline.ts @@ -532,8 +532,8 @@ export class Pipeline extends PipelineBase { const bucketKey = this.artifactBucket.encryptionKey; if (bucketKey) { encryptionKey = { - type: 'KMS', - id: bucketKey.keyArn, + Type: 'KMS', + Id: bucketKey.keyArn, }; }