Skip to content

Commit

Permalink
add checking Token.isUnresolved for algorithmName
Browse files Browse the repository at this point in the history
  • Loading branch information
tmyoda committed Aug 28, 2023
1 parent 4ba442d commit 8258693
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { renderEnvironment, renderTags } from './private/utils';
import * as ec2 from '../../../aws-ec2';
import * as iam from '../../../aws-iam';
import * as sfn from '../../../aws-stepfunctions';
import { Duration, Lazy, Size, Stack } from '../../../core';
import { Duration, Lazy, Size, Stack, Token } from '../../../core';
import { integrationResourceArn, validatePatternSupported } from '../private/task-utils';

/**
Expand Down Expand Up @@ -333,7 +333,7 @@ export class SageMakerCreateTrainingJob extends sfn.TaskStateBase implements iam
}

private validateAlgorithmName(algorithmName?: string): void {
if (algorithmName === undefined) {
if (algorithmName === undefined || Token.isUnresolved(algorithmName)) {
return;
}

Expand Down

0 comments on commit 8258693

Please sign in to comment.