Skip to content

Commit

Permalink
feat: added integration; added s3 to docs; added list and snapshot
Browse files Browse the repository at this point in the history
  • Loading branch information
tsypuk committed Aug 10, 2023
1 parent e314fb5 commit f67e53e
Show file tree
Hide file tree
Showing 36 changed files with 940 additions and 241 deletions.
25 changes: 13 additions & 12 deletions docs/docs/aws-components/api_gw.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,22 @@ style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;

| attribute | value |
|:----------|:------|
|align| left |
|dashed| 0 |
|fillColor| #D9A741 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|shape| mxgraph.aws3.api_gateway |
|verticalAlign| top |
|verticalLabelPosition| bottom |
|align| left |
|dashed| 0 |
|fillColor| #D9A741 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|shape| mxgraph.aws3.api_gateway |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| width | 76.5 |
| attribute | value |
|:---------|:-----------|
| height | 93 |
| width | 76.5 |
| height |93|

### Full XML dump:
```xml
Expand Down
25 changes: 13 additions & 12 deletions docs/docs/aws-components/dynamo.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,22 @@ style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;

| attribute | value |
|:----------|:------|
|align| left |
|dashed| 0 |
|fillColor| #2E73B8 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|shape| mxgraph.aws3.dynamo_db |
|verticalAlign| top |
|verticalLabelPosition| bottom |
|align| left |
|dashed| 0 |
|fillColor| #2E73B8 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|shape| mxgraph.aws3.dynamo_db |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| width | 72 |
| attribute | value |
|:---------|:-----------|
| height | 81 |
| width | 72 |
| height |81|

### Full XML dump:
```xml
Expand Down
39 changes: 20 additions & 19 deletions docs/docs/aws-components/dynamo_stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,29 @@ style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=

| attribute | value |
|:----------|:------|
|align| left |
|aspect| fixed |
|dashed| 0 |
|fillColor| #2E27AD |
|fontColor| #232F3E |
|fontSize| 12 |
|fontStyle| 0 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|pointerEvents| 1 |
|shape| mxgraph.aws4.dynamodb_stream |
|sketch| 0 |
|strokeColor| none |
|verticalAlign| top |
|verticalLabelPosition| bottom |
|align| left |
|aspect| fixed |
|dashed| 0 |
|fillColor| #2E27AD |
|fontColor| #232F3E |
|fontSize| 12 |
|fontStyle| 0 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|pointerEvents| 1 |
|shape| mxgraph.aws4.dynamodb_stream |
|sketch| 0 |
|strokeColor| none |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| width | 78 |
| attribute | value |
|:---------|:-----------|
| height | 78 |
| width | 78 |
| height |78|

### Full XML dump:
```xml
Expand Down
41 changes: 21 additions & 20 deletions docs/docs/aws-components/event_bridge.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,30 @@ style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=#FF4F8B;gradien

| attribute | value |
|:----------|:------|
|align| left |
|aspect| fixed |
|dashed| 0 |
|fillColor| #BC1356 |
|fontColor| #232F3E |
|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 |
|align| left |
|aspect| fixed |
|dashed| 0 |
|fillColor| #BC1356 |
|fontColor| #232F3E |
|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:

| width | 78 |
| attribute | value |
|:---------|:-----------|
| height | 78 |
| width | 78 |
| height |78|

### Full XML dump:
```xml
Expand Down
39 changes: 20 additions & 19 deletions docs/docs/aws-components/iam_policy.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,28 +42,29 @@ style="sketch=0;outlineConnect=0;fontColor=#232F3E;gradientColor=none;fillColor=

| attribute | value |
|:----------|:------|
|align| left |
|aspect| fixed |
|dashed| 0 |
|fillColor| #3F8624 |
|fontColor| #232F3E |
|fontSize| 12 |
|fontStyle| 0 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|pointerEvents| 1 |
|shape| mxgraph.aws4.policy |
|sketch| 0 |
|strokeColor| none |
|verticalAlign| top |
|verticalLabelPosition| bottom |
|align| left |
|aspect| fixed |
|dashed| 0 |
|fillColor| #3F8624 |
|fontColor| #232F3E |
|fontSize| 12 |
|fontStyle| 0 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|pointerEvents| 1 |
|shape| mxgraph.aws4.policy |
|sketch| 0 |
|strokeColor| none |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| width | 78 |
| attribute | value |
|:---------|:-----------|
| height | 67 |
| width | 78 |
| height |67|

### Full XML dump:
```xml
Expand Down
25 changes: 13 additions & 12 deletions docs/docs/aws-components/iam_role.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,22 @@ style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;

| attribute | value |
|:----------|:------|
|align| left |
|dashed| 0 |
|fillColor| #759C3E |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|shape| mxgraph.aws3.role |
|verticalAlign| top |
|verticalLabelPosition| bottom |
|align| left |
|dashed| 0 |
|fillColor| #759C3E |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|shape| mxgraph.aws3.role |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| width | 94.5 |
| attribute | value |
|:---------|:-----------|
| height | 79.5 |
| width | 94.5 |
| height |79.5|

### Full XML dump:
```xml
Expand Down
27 changes: 14 additions & 13 deletions docs/docs/aws-components/lambda_function.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,23 @@ style="verticalLabelPosition=bottom;verticalAlign=top;aspect=fixed;align=left;po

| attribute | value |
|:----------|:------|
|align| left |
|aspect| fixed |
|fillColor| #F58534 |
|gradientColor| none |
|html| 1 |
|pointerEvents| 1 |
|prIcon| server |
|shape| mxgraph.aws3.lambda_function |
|verticalAlign| top |
|verticalLabelPosition| bottom |
|align| left |
|aspect| fixed |
|fillColor| #F58534 |
|gradientColor| none |
|html| 1 |
|pointerEvents| 1 |
|prIcon| server |
|shape| mxgraph.aws3.lambda_function |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| width | 69 |
| attribute | value |
|:---------|:-----------|
| height | 72 |
| width | 69 |
| height |72|

### Full XML dump:
```xml
Expand Down
13 changes: 13 additions & 0 deletions docs/docs/aws-components/output/drawio/s3.drawio
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<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:s3:arn:aws:s3:::content_bucket" value="&lt;b&gt;Name&lt;/b&gt;: content_bucket&lt;BR&gt;&lt;b&gt;ARN&lt;/b&gt;: arn:aws:s3:::content_bucket&lt;BR&gt;-----------&lt;BR&gt;&lt;b&gt;x-amz-bucket-region&lt;/b&gt;: eu-west-1&lt;BR&gt;&lt;b&gt;CreationDate&lt;/b&gt;: 2023-11-11&lt;BR&gt;&lt;b&gt;Transitions&lt;/b&gt;: [{'Days': 60, 'StorageClass': 'GLACIER'}]&lt;BR&gt;&lt;b&gt;AbortIncompleteMultipartUpload&lt;/b&gt;: {'DaysAfterInitiation': 5}&lt;BR&gt;&lt;b&gt;PublicAccessBlockConfiguration&lt;/b&gt;: {'BlockPublicAcls': True, 'IgnorePublicAcls': True, 'BlockPublicPolicy': True, 'RestrictPublicBuckets': True}&lt;BR&gt;&lt;b&gt;Expiration&lt;/b&gt;: {'Days': 90}&lt;BR&gt;&lt;b&gt;LifecycleConfiguration&lt;/b&gt;: NO&lt;BR&gt;&lt;b&gt;CORSConfiguration&lt;/b&gt;: NO&lt;BR&gt;&lt;b&gt;LoggingConfiguration&lt;/b&gt;: NO&lt;BR&gt;&lt;b&gt;Versioning&lt;/b&gt;: Enabled&lt;BR&gt;&lt;b&gt;MFADelete&lt;/b&gt;: Disabled" style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.bucket_with_objects;fillColor=#E05243;gradientColor=none;" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry" />
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
Binary file added docs/docs/aws-components/output/jpg/s3.jpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
84 changes: 84 additions & 0 deletions docs/docs/aws-components/s3.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
---
layout: default
title: S3
parent: AWS Components
nav_order: 1
date: 2023-08-06
---

# S3
{: .d-inline-block }

New (v0.2.0)
{: .label .label-green }

## Node Type: ``s3``

## Code Snippet:

```python
{% root_include_snippet ../tests/aws/test_s3.py %}
```

## Rendering:

![lambda](output/jpg/s3.jpg)

## drawio s3 vertex:

```xml
<?xml version="1.0" ?>
<mxCell id="vertex:s3:arn:aws:s3:::content_bucket" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
```

## Advanced for Geeks:

### Style:
```html
style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.bucket_with_objects;fillColor=#E05243;gradientColor=none;"
```

| attribute | value |
|:----------|:------|
|align| left |
|dashed| 0 |
|fillColor| #E05243 |
|gradientColor| none |
|html| 1 |
|outlineConnect| 0 |
|shape| mxgraph.aws3.bucket_with_objects |
|verticalAlign| top |
|verticalLabelPosition| bottom |

### Vertex size:

| attribute | value |
|:---------|:-----------|
| width | 78 |
| height |78|

### Full XML dump:
```xml
<?xml version="1.0" ?>
<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:s3:arn:aws:s3:::content_bucket" value="&lt;b&gt;Name&lt;/b&gt;: content_bucket&lt;BR&gt;&lt;b&gt;ARN&lt;/b&gt;: arn:aws:s3:::content_bucket&lt;BR&gt;-----------&lt;BR&gt;&lt;b&gt;x-amz-bucket-region&lt;/b&gt;: eu-west-1&lt;BR&gt;&lt;b&gt;CreationDate&lt;/b&gt;: 2023-11-11&lt;BR&gt;&lt;b&gt;Transitions&lt;/b&gt;: [{'Days': 60, 'StorageClass': 'GLACIER'}]&lt;BR&gt;&lt;b&gt;AbortIncompleteMultipartUpload&lt;/b&gt;: {'DaysAfterInitiation': 5}&lt;BR&gt;&lt;b&gt;PublicAccessBlockConfiguration&lt;/b&gt;: {'BlockPublicAcls': True, 'IgnorePublicAcls': True, 'BlockPublicPolicy': True, 'RestrictPublicBuckets': True}&lt;BR&gt;&lt;b&gt;Expiration&lt;/b&gt;: {'Days': 90}&lt;BR&gt;&lt;b&gt;LifecycleConfiguration&lt;/b&gt;: NO&lt;BR&gt;&lt;b&gt;CORSConfiguration&lt;/b&gt;: NO&lt;BR&gt;&lt;b&gt;LoggingConfiguration&lt;/b&gt;: NO&lt;BR&gt;&lt;b&gt;Versioning&lt;/b&gt;: Enabled&lt;BR&gt;&lt;b&gt;MFADelete&lt;/b&gt;: Disabled" style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.bucket_with_objects;fillColor=#E05243;gradientColor=none;" parent="1" vertex="1">
<mxGeometry width="78" height="78" as="geometry"/>
</mxCell>
</root>
</mxGraphModel>
</diagram>
</mxfile>
```

### drawio file:

Download generated ``s3.drawio``:

[Download](output/drawio/s3.drawio){: .btn .btn-purple }

0 comments on commit f67e53e

Please sign in to comment.