Created: 2023-08-11 | Updated: 2024-09-21
DynamoDB
New (v0.2.0)
Table of contents
Node Type: dynamo
Rendering:
Code Snippet:
# given
mcd = MultiCloudDiagrams()
# when
table_arn = 'arn:aws:dynamodb:eu-west-1:123456789012:table/prod-dynamo-table'
table_name = 'prod-dynamo-table'
metadata = {
'DeletionProtectionEnabled': True,
'ItemCount': 900,
'TableSizeBytes': 123,
'Replicas': 0,
'RCU': 1,
'WCU': 1
}
mcd.add_vertex(node_id=table_arn, node_name=table_name, node_type='dynamo', metadata=metadata)
drawio dynamo vertex:
<mxCell id="vertex:dynamo:arn:aws:dynamodb:eu-west-1:123456789012:table/prod-dynamo-table" parent="1" vertex="1">
<mxGeometry width="72" height="81" as="geometry"/>
</mxCell>
Advanced for Geeks:
Style:
style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.dynamo_db;fillColor=#2E73B8;gradientColor=none;"
attribute | value |
---|---|
align | left |
dashed | 0 |
fillColor | #2E73B8 |
gradientColor | none |
html | 1 |
outlineConnect | 0 |
shape | mxgraph.aws3.dynamo_db |
verticalAlign | top |
verticalLabelPosition | bottom |
Vertex size:
attribute | value |
---|---|
width | 72 |
height | 81 |
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:dynamo:arn:aws:dynamodb:eu-west-1:123456789012:table/prod-dynamo-table" value="<b>Name</b>: prod-dynamo-table<BR><b>ARN</b>: arn:aws:dynamodb:eu-west-1:123456789012:table/prod-dynamo-table<BR>-----------<BR><b>DeletionProtectionEnabled</b>: True<BR><b>ItemCount</b>: 900<BR><b>TableSizeBytes</b>: 123<BR><b>Replicas</b>: 0<BR><b>RCU</b>: 1<BR><b>WCU</b>: 1" style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.dynamo_db;fillColor=#2E73B8;gradientColor=none;" parent="1" vertex="1">
<mxGeometry width="72" height="81" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
drawio file:
Download generated dynamo.drawio
: