Created: 2024-07-01 | Updated: 2024-09-21
Event Bridge
New (v0.3.11)
Table of contents
Node Type: event_bridge
Rendering:
Code Snippet:
# given
mcd = MultiCloudDiagrams()
# when
event_bridge_arn = 'arn:aws:scheduler:eu-west-1:123456789012:schedule/group-1/schedule-rate'
metadata = {
"Creation Date": "2023-06-19 13:16:38",
"End Date": "2023-09-30 12:30:00",
"SubscriptionsPending": 0,
"Flexible Time Window": "{'Mode': 'OFF'}",
"Group Name": "group-1",
"input": '{"key1":"val1","key2":"val2"}',
"Modification Date": "2023-06-19 13:30:33",
"Retry Policy": "{'MaximumEventAgeInSeconds': 86400, 'MaximumRetryAttempts': 185}",
"Role ARN": "arn:aws:iam::123456789012:role/serverless/event_bridge_role",
"Schedule Expression": "rate(60 days)",
"Schedule Expression_timezone": "UTC",
"State": "ENABLED",
"Target": "arn:aws:lambda:eu-west-1:123456789012:function:target-lambda"
}
mcd.add_vertex(node_id=event_bridge_arn, node_name='schedule-rate', node_type='event_bridge', metadata=metadata)
drawio event_bridge vertex:
<mxCell id="vertex:event_bridge:arn:aws:scheduler:eu-west-1:123456789012:schedule/group-1/schedule-rate" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
Advanced for Geeks:
Style:
style="sketch=0;outlineConnect=0;gradientColor=#FF4F8B;gradientDirection=north;fillColor=#BC1356;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.eventbridge;"
attribute | value |
---|---|
align | left |
aspect | fixed |
dashed | 0 |
fillColor | #BC1356 |
fontSize | 12 |
fontStyle | 0 |
gradientColor | #FF4F8B |
gradientDirection | north |
html | 1 |
outlineConnect | 0 |
resIcon | mxgraph.aws4.eventbridge |
shape | mxgraph.aws4.resourceIcon |
sketch | 0 |
strokeColor | #ffffff |
verticalAlign | top |
verticalLabelPosition | bottom |
Vertex size:
attribute | value |
---|---|
width | 78 |
height | 78 |
Full XML dump:
<mxfile host="multicloud-diagrams" agent="PIP package multicloud-diagrams. Generate resources in draw.io compatible format for Cloud infrastructure. Copyrights @ Roman Tsypuk 2023. MIT license." type="MultiCloud">
<diagram id="diagram_1" name="AWS components">
<mxGraphModel dx="1015" dy="661" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1100" math="0" shadow="1">
<root>
<mxCell id="0"/>
<mxCell id="1" parent="0"/>
<mxCell id="vertex:event_bridge:arn:aws:scheduler:eu-west-1:123456789012:schedule/group-1/schedule-rate" value="<b>Name</b>: schedule-rate<BR><b>ARN</b>: arn:aws:scheduler:eu-west-1:123456789012:schedule/group-1/schedule-rate<BR>-----------<BR><b>Creation Date</b>: 2023-06-19 13:16:38<BR><b>End Date</b>: 2023-09-30 12:30:00<BR><b>SubscriptionsPending</b>: 0<BR><b>Flexible Time Window</b>: {'Mode': 'OFF'}<BR><b>Group Name</b>: group-1<BR><b>input</b>: {"key1":"val1","key2":"val2"}<BR><b>Modification Date</b>: 2023-06-19 13:30:33<BR><b>Retry Policy</b>: {'MaximumEventAgeInSeconds': 86400, 'MaximumRetryAttempts': 185}<BR><b>Role ARN</b>: arn:aws:iam::123456789012:role/serverless/event_bridge_role<BR><b>Schedule Expression</b>: rate(60 days)<BR><b>Schedule Expression_timezone</b>: UTC<BR><b>State</b>: ENABLED<BR><b>Target</b>: arn:aws:lambda:eu-west-1:123456789012:function:target-lambda" style="sketch=0;outlineConnect=0;gradientColor=#FF4F8B;gradientDirection=north;fillColor=#BC1356;strokeColor=#ffffff;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;fontSize=12;fontStyle=0;aspect=fixed;shape=mxgraph.aws4.resourceIcon;resIcon=mxgraph.aws4.eventbridge;" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
drawio file:
Download generated event_bridge.drawio
: