You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(msk): throw ValidationError instead of untyped errors (#34214)
### Issue # (if applicable)
`aws-msk-alpha` for #32569
### Description of changes
ValidationErrors everywhere
<!--
What code changes did you make?
Have you made any important design decisions?
What AWS use cases does this change enable? To enable the use cases,
which AWS service features are utilized?
-->
### Describe any new or updated permissions being added
n/a
<!-- What new or updated IAM permissions are needed to support the
changes being introduced ? -->
### Description of how you validated changes
Existing tests. Exemptions granted as this is basically a refactor of
existing code.
<!--Have you added any unit tests and/or integration tests?-->
### Checklist
- [x] My code adheres to the [CONTRIBUTING
GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and
[DESIGN
GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md)
----
*By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache-2.0 license*
Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
throwError('To enable client authentication, you must enabled TLS-encrypted traffic between clients and brokers.');
484
+
thrownewcore.ValidationError('To enable client authentication, you must enabled TLS-encrypted traffic between clients and brokers.',this);
485
485
}elseif(
486
486
props.encryptionInTransit?.clientBroker===
487
487
ClientBrokerEncryption.TLS_PLAINTEXT&&
488
488
(props.clientAuthentication?.saslProps?.scram||
489
489
props.clientAuthentication?.saslProps?.iam)
490
490
){
491
-
throwError(
492
-
'To enable SASL/SCRAM or IAM authentication, you must only allow TLS-encrypted traffic between clients and brokers.',
493
-
);
491
+
thrownewcore.ValidationError('To enable SASL/SCRAM or IAM authentication, you must only allow TLS-encrypted traffic between clients and brokers.',this);
0 commit comments