Skip to content

Commit

Permalink
adjust rule condition (#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro authored Jan 30, 2024
1 parent d1e2ce7 commit f2daa33
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ Rules:
AssertDescription: Subnet ID and Security Group ID must be set when UsePrivateLink is set to true

ValidateKafkaIntegrationParams:
RuleCondition: !Condition IsKafkaIntegration
RuleCondition: !Equals [ !Ref IntegrationType, 'Kafka' ]
Assertions:
- Assert: !Not [ !Equals [ !Ref KafkaTopic, '' ] ]
AssertDescription: KafkaTopic must be set when IntegrationType is set to Kafka
Expand All @@ -520,7 +520,7 @@ Rules:
AssertDescription: KafkaSecurityGroups must be set when IntegrationType is set to Kafka

ValidateMSKIntegrationParams:
RuleCondition: !Condition IsMSKIntegration
RuleCondition: !Equals [ !Ref IntegrationType, 'MSK' ]
Assertions:
- Assert: !Not [ !Equals [ !Ref MSKClusterArn, '' ] ]
AssertDescription: MSKClusterArn must be set when IntegrationType is set to MSK
Expand Down

0 comments on commit f2daa33

Please sign in to comment.