Created: 2024-02-06 | Updated: 2024-09-21
S3 Glacier
New (v0.3.27)
Table of contents
Node Type: glacier
Rendering:
Code Snippet:
# given
mcd = MultiCloudDiagrams()
# when
glacier_arn = 'arn:aws:glacier:::content_bucket'
metadata = {
'x-amz-bucket-region': 'eu-west-1',
'CreationDate': '2023-11-11',
'AbortIncompleteMultipartUpload': "{'DaysAfterInitiation': 5}",
'Expiration': "{'Days': 90}",
'MFADelete': 'Disabled'
}
mcd.add_vertex(node_id=glacier_arn, node_name='content_bucket', node_type='glacier', metadata=metadata)
drawio glacier vertex:
<mxCell id="vertex:glacier:arn:aws:glacier:::content_bucket" parent="1" vertex="1">
<mxGeometry width="76.5" height="93" as="geometry"/>
</mxCell>
Advanced for Geeks:
Style:
style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.glacier;fillColor=#E05243;gradientColor=none;"
attribute | value |
---|---|
align | left |
dashed | 0 |
fillColor | #E05243 |
gradientColor | none |
html | 1 |
outlineConnect | 0 |
shape | mxgraph.aws3.glacier |
verticalAlign | top |
verticalLabelPosition | bottom |
Vertex size:
attribute | value |
---|---|
width | 76.5 |
height | 93 |
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:glacier:arn:aws:glacier:::content_bucket" value="<b>Name</b>: content_bucket<BR><b>ARN</b>: arn:aws:glacier:::content_bucket<BR>-----------<BR><b>x-amz-bucket-region</b>: eu-west-1<BR><b>CreationDate</b>: 2023-11-11<BR><b>AbortIncompleteMultipartUpload</b>: {'DaysAfterInitiation': 5}<BR><b>Expiration</b>: {'Days': 90}<BR><b>MFADelete</b>: Disabled" style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.glacier;fillColor=#E05243;gradientColor=none;" parent="1" vertex="1">
<mxGeometry width="76.5" height="93" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
drawio file:
Download generated glacier.drawio
: