-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: doc generated from tests with code snapshots, images and xml du…
…mps (lambda, sqs, sns, dynamo, apigw)
- Loading branch information
Showing
32 changed files
with
688 additions
and
92 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
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
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
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,86 @@ | ||
--- | ||
layout: default | ||
title: API Gateway | ||
parent: AWS Components | ||
nav_order: 1 | ||
date: 2023-08-06 | ||
--- | ||
|
||
# API Gateway | ||
{: .d-inline-block } | ||
|
||
New (v0.2.0) | ||
{: .label .label-green } | ||
|
||
## Node Type: ``api_gw`` | ||
|
||
## Code Snippet: | ||
|
||
```python | ||
{% root_include_snippet ../tests/aws/test_api_gw.py %} | ||
``` | ||
|
||
## Rendering: | ||
|
||
![lambda](output/jpg/api_gw.jpg) | ||
|
||
|
||
## drawio api_gw vertex: | ||
|
||
```xml | ||
<?xml version="1.0" ?> | ||
<mxCell id="vertex:api_gw:esf19s3pag" parent="1" vertex="1"> | ||
|
||
<mxGeometry width="76.5" height="93" as="geometry"/> | ||
|
||
</mxCell> | ||
|
||
``` | ||
|
||
## Advanced for Geeks: | ||
|
||
### Style: | ||
```html | ||
style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.api_gateway;fillColor=#D9A741;gradientColor=none;" | ||
``` | ||
### Vertex size: | ||
|
||
| width | height | | ||
|:----------|:---------| | ||
| 76.5 | 93| | ||
|
||
### 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:api_gw:esf19s3pag" parent="1" vertex="1"> | ||
|
||
<mxGeometry width="76.5" height="93" as="geometry"/> | ||
|
||
</mxCell> | ||
|
||
</root> | ||
|
||
</mxGraphModel> | ||
|
||
</diagram> | ||
</mxfile> | ||
|
||
``` | ||
|
||
### drawio file: | ||
|
||
Download generated ``api_gw.drawio``: | ||
|
||
[Download](output/drawio/api_gw.drawio){: .btn .btn-purple } |
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
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
This file was deleted.
Oops, something went wrong.
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,86 @@ | ||
--- | ||
layout: default | ||
title: Lambda Function | ||
parent: AWS Components | ||
nav_order: 1 | ||
date: 2023-08-06 | ||
--- | ||
|
||
# Lambda Function | ||
{: .d-inline-block } | ||
|
||
New (v0.2.0) | ||
{: .label .label-green } | ||
|
||
## Node Type: ``lambda_function`` | ||
|
||
## Code Snippet: | ||
|
||
```python | ||
{% root_include_snippet ../tests/aws/test_lambda_function.py %} | ||
``` | ||
|
||
## Rendering: | ||
|
||
![lambda](output/jpg/lambda_function.jpg) | ||
|
||
|
||
## drawio lambda_function vertex: | ||
|
||
```xml | ||
<?xml version="1.0" ?> | ||
<mxCell id="vertex:lambda_function:arn:aws:lambda:eu-west-1:123456789012:function:producer-lambda" parent="1" vertex="1"> | ||
|
||
<mxGeometry width="69" height="72" as="geometry"/> | ||
|
||
</mxCell> | ||
|
||
``` | ||
|
||
## Advanced for Geeks: | ||
|
||
### Style: | ||
```html | ||
style="verticalLabelPosition=bottom;html=1;verticalAlign=top;aspect=fixed;align=left;pointerEvents=1;shape=mxgraph.aws3.lambda_function;prIcon=server;fillColor=#F58534;gradientColor=none;html=1;" | ||
``` | ||
### Vertex size: | ||
|
||
| width | height | | ||
|:----------|:---------| | ||
| 69 | 72| | ||
|
||
### 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:lambda_function:arn:aws:lambda:eu-west-1:123456789012:function:producer-lambda" parent="1" vertex="1"> | ||
|
||
<mxGeometry width="69" height="72" as="geometry"/> | ||
|
||
</mxCell> | ||
|
||
</root> | ||
|
||
</mxGraphModel> | ||
|
||
</diagram> | ||
</mxfile> | ||
|
||
``` | ||
|
||
### drawio file: | ||
|
||
Download generated ``lambda_function.drawio``: | ||
|
||
[Download](output/drawio/lambda_function.drawio){: .btn .btn-purple } |
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,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:api_gw:esf19s3pag" value="<b>Name</b>: APIGW integration with DynamoDB<BR><b>ARN</b>: esf19s3pag<BR>-----------<BR><b>api_key_source</b>: HEADER<BR><b>endpoint_configuration</b>: {'types': ['EDGE']}" style="outlineConnect=0;dashed=0;verticalLabelPosition=bottom;verticalAlign=top;align=left;html=1;shape=mxgraph.aws3.api_gateway;fillColor=#D9A741;gradientColor=none;" parent="1" vertex="1"> | ||
<mxGeometry width="76.5" height="93" as="geometry" /> | ||
</mxCell> | ||
</root> | ||
</mxGraphModel> | ||
</diagram> | ||
</mxfile> |
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,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: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" 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> |
Oops, something went wrong.