Skip to content

Commit

Permalink
Change ID generation
Browse files Browse the repository at this point in the history
  • Loading branch information
spg committed Jun 21, 2019
1 parent fb7d856 commit a0c71e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-sns-subscriptions/lib/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a0c71e6

Please sign in to comment.