-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adding AwsMskTopic to AwsMskBroker relationship
- Loading branch information
1 parent
5e8be02
commit 3d07918
Showing
2 changed files
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
category: AWSMSKBROKER | ||
lookups: | ||
- entityTypes: | ||
- domain: INFRA | ||
type: AWSMSKBROKER | ||
tags: | ||
matchingMode: ALL | ||
predicates: | ||
- tagKeys: ["aws.accountId"] | ||
field: awsAccountId | ||
- tagKeys: ["aws.region"] | ||
field: awsRegion | ||
- tagKeys: ["aws.kafka.ClusterName"] | ||
field: awsMskClusterName | ||
- tagKeys: ["aws.kafka.BrokerID"] | ||
field: awsMskBrokerId | ||
onMatch: | ||
onMultipleMatches: RELATE_ALL | ||
onMiss: | ||
action: NO_OP |
30 changes: 30 additions & 0 deletions
30
relationships/synthesis/INFRA-AWSMSKBROKER-to-INFRA-AWSMSKTOPIC.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
relationships: | ||
- name: awsMskBrokerManagesAwsMskTopic | ||
version: "1" | ||
origins: | ||
- AWS Integration | ||
conditions: | ||
- attribute: eventType | ||
anyOf: [ "Metric" ] | ||
- attribute: entity.type | ||
anyOf: [ "AWSMSKTOPIC", "AWS_MSK_TOPIC" ] | ||
relationship: | ||
expires: P75M | ||
relationshipType: CONTAINS | ||
source: | ||
lookupGuid: | ||
candidateCategory: AWSMSKBROKER | ||
fields: | ||
- field: awsAccountId | ||
attribute: aws.accountId | ||
- field: awsRegion | ||
attribute: aws.region | ||
- field: awsMskClusterName | ||
attribute: aws.kafka.ClusterName | ||
- field: awsMskBrokerId | ||
attribute: aws.kafka.BrokerID | ||
target: | ||
extractGuid: | ||
attribute: entity.guid | ||
entityType: | ||
value: AWSMSKTOPIC |