Skip to content

Commit

Permalink
fix: Token import
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed Jun 2, 2024
1 parent b1f3b7f commit 675b0e0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/aws-cdk-lib/aws-logs/lib/subscription-filter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ILogGroup, SubscriptionFilterOptions } from './log-group';
import { CfnSubscriptionFilter } from './logs.generated';
import * as iam from '../../aws-iam';
import { KinesisDestination } from '../../aws-logs-destinations';
import { Resource } from '../../core';
import { Resource, Token } from '../../core';

/**
* Interface for classes that can be the destination of a log Subscription
Expand Down Expand Up @@ -60,8 +60,8 @@ export class SubscriptionFilter extends Resource {

if (
props.distribution &&
!Token.isUnresolved(props.distribution) &&
!Token.isUnresolved(props.destination) &&
!Token.isUnresolved(props.distribution) &&
!Token.isUnresolved(props.destination) &&
!(props.destination instanceof KinesisDestination)
) {
throw new Error('distribution property can only be used with KinesisDestination.');
Expand Down

0 comments on commit 675b0e0

Please sign in to comment.