Skip to content

Commit

Permalink
Update integration test, add feedback from Jimmy
Browse files Browse the repository at this point in the history
  • Loading branch information
msambol committed Oct 14, 2024
1 parent 2a1fe8f commit 40cc995
Show file tree
Hide file tree
Showing 14 changed files with 1,176 additions and 208 deletions.
14 changes: 7 additions & 7 deletions packages/@aws-cdk/aws-msk-alpha/lib/cluster.ts
Original file line number Diff line number Diff line change
Expand Up @@ -654,16 +654,16 @@ export class Cluster extends ClusterBase {
}

let clientAuthentication;
const { saslProps, tlsProps } = props.clientAuthentication ?? {};

if (props.clientAuthentication) {
clientAuthentication = {
sasl: props.clientAuthentication.saslProps ? {
iam: props.clientAuthentication.saslProps.iam ? { enabled: true }: undefined,
scram: props.clientAuthentication.saslProps.scram ? { enabled: true }: undefined,
sasl: saslProps ? {
iam: saslProps.iam ? { enabled: true }: undefined,
scram: saslProps.scram ? { enabled: true }: undefined,
} : undefined,
tls: props.clientAuthentication.tlsProps?.certificateAuthorities ? {
certificateAuthorityArnList: props.clientAuthentication.tlsProps.certificateAuthorities?.map(
(ca) => ca.certificateAuthorityArn,
),
tls: tlsProps?.certificateAuthorities ? {
certificateAuthorityArnList: tlsProps.certificateAuthorities?.map((ca) => ca.certificateAuthorityArn),
enabled: true,
} : undefined,
};
Expand Down
Loading

0 comments on commit 40cc995

Please sign in to comment.