From a0c71e6d3d755be567dae2a39ee58cd78dff68de Mon Sep 17 00:00:00 2001 From: spg Date: Fri, 21 Jun 2019 06:14:16 -0700 Subject: [PATCH] Change ID generation --- packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts b/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts index ca423094f2f88..7bcdf82b38e08 100644 --- a/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts +++ b/packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts @@ -30,7 +30,7 @@ export class UrlSubscription implements sns.ITopicSubscription { } public bind(scope: Construct, topic: sns.ITopic): void { - new sns.Subscription(scope, topic.node.uniqueId + 'Url', { + new sns.Subscription(scope, Token.isUnresolved(this.url) ? 'UnresolvedUrl' : this.url, { topic, endpoint: this.url, protocol: this.protocol,