Skip to content

Commit

Permalink
remove clusterName validation
Browse files Browse the repository at this point in the history
  • Loading branch information
mazyu36 committed Jan 8, 2025
1 parent db345c5 commit 47e1654
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions packages/@aws-cdk/aws-msk-alpha/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,17 +485,6 @@ export class Cluster extends ClusterBase {
);
}

if (
!core.Token.isUnresolved(props.clusterName) &&
!/^[a-zA-Z0-9]+$/.test(props.clusterName) &&
props.clusterName.length > 64
) {
throw Error(
'The cluster name must only contain alphanumeric characters and have a maximum length of 64 characters.' +
`got: '${props.clusterName}. length: ${props.clusterName.length}'`,
);
}

if (
props.clientAuthentication?.saslProps?.iam &&
props.clientAuthentication?.saslProps?.scram
Expand Down

0 comments on commit 47e1654

Please sign in to comment.