Skip to content

Commit 21e602d

Browse files
committed
Added C4 diagrams for new SendToPrint architecture, including GuardDuty scanning
1 parent 2cc7618 commit 21e602d

File tree

6 files changed

+120
-32
lines changed

6 files changed

+120
-32
lines changed

docs/assets/aws-icons-mermaid.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,6 +1086,11 @@
10861086
"height": 64,
10871087
"width": 64
10881088
},
1089+
"arch-amazon-guardduty": {
1090+
"body": "<g id=\"Icon-Architecture/48/Arch_Amazon-GuardDuty_48\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"Icon-Architecture-BG/48/Security-Identity-Compliance\" fill=\"#DD344C\"><rect id=\"Rectangle\" x=\"0\" y=\"0\" width=\"64\" height=\"64\" /></g><path d=\"M36,34.3505534 C35.967,36.2315962 35.389,38.4306462 33,38.9036569 L33,25.8303598 L36,27.0763881 L36,34.3505534 Z M28,34.3395532 L28,27.0763881 L31,25.8303598 L31,38.8926567 C28.242,38.3076434 28,35.3245756 28,34.3395532 L28,34.3395532 Z M31.616,23.4083047 L26.616,25.4853519 C26.243,25.6403555 26,26.0043637 26,26.4083729 L26,34.3395532 C26,37.412623 27.571,41.0007046 32,41.0007046 C35.685,41.0007046 37.927,38.5276484 38,34.3685538 L38,26.4083729 C38,26.0043637 37.757,25.6403555 37.384,25.4853519 L32.384,23.4083047 C32.138,23.3063024 31.862,23.3063024 31.616,23.4083047 L31.616,23.4083047 Z M40,34.3685538 C40,34.7205618 39.909,43.00075 32,43.00075 C24.124,43.00075 24.001,34.6915612 24,34.3395532 L24,24.4063274 L32,21.0832519 L40,24.4063274 L40,34.3685538 Z M41.384,22.8152913 L32.384,19.0772063 C32.138,18.974204 31.862,18.974204 31.616,19.0772063 L22.616,22.8152913 C22.243,22.9702948 22,23.3343031 22,23.7383122 L22,34.3395532 C22,38.027637 24.09,45.0007955 32,45.0007955 C39.91,45.0007955 42,38.0456374 42,34.3685538 L42,23.7383122 C42,23.3343031 41.757,22.9702948 41.384,22.8152913 L41.384,22.8152913 Z M52,35.1155708 L49.572,34.9765676 C49.102,34.948567 48.647,35.2775745 48.54,35.7555854 C48.117,37.630628 47.381,39.4096684 46.352,41.0427055 C46.091,41.4557149 46.167,41.9967272 46.531,42.3227346 L48.345,43.9397714 L43.939,48.3458715 L42.327,46.5378304 C42,46.1708221 41.458,46.0968204 41.047,46.3578263 C39.416,47.3878497 37.636,48.1258665 35.754,48.5508762 C35.277,48.6588786 34.948,49.0958885 34.977,49.5838996 L35.115,51.9999545 L28.885,51.9999545 L29.023,49.5808996 C29.052,49.0938885 28.723,48.6568786 28.246,48.5488761 C26.37,48.1248665 24.59,47.3868497 22.956,46.3548262 C22.543,46.0928203 22.001,46.166822 21.676,46.5348303 L20.061,48.3458715 L15.655,43.9397714 L17.465,42.3267347 C17.83,42.0007273 17.906,41.458715 17.646,41.0457056 C16.617,39.4166686 15.881,37.6366281 15.457,35.7555854 C15.349,35.2775745 14.877,34.948567 14.425,34.9765676 L12,35.1155708 L12,28.8854292 L14.432,29.0234324 C14.877,29.0394327 15.355,28.7234255 15.464,28.2464147 C15.888,26.3733721 16.626,24.5973318 17.656,22.9662947 C17.917,22.5522853 17.841,22.011273 17.477,21.6852656 L15.655,20.0602286 L20.061,15.6551285 L21.685,17.4751699 C22.009,17.8401782 22.553,17.9141799 22.964,17.655174 C24.594,16.6281506 26.37,15.8921339 28.246,15.4691243 C28.723,15.3611218 29.052,14.9251119 29.023,14.4361008 L28.885,12.0000455 L35.115,12.0000455 L34.977,14.4381009 C34.948,14.927112 35.277,15.3631219 35.754,15.4711243 C37.628,15.895134 39.404,16.6311507 41.033,17.6591741 C41.444,17.91918 41.987,17.8431783 42.312,17.47917 L43.939,15.6551285 L48.345,20.0602286 L46.526,21.6822655 C46.162,22.0072729 46.086,22.5492852 46.347,22.9622946 C47.377,24.5923316 48.114,26.3703721 48.538,28.2464147 C48.645,28.7234255 49.102,29.0394327 49.57,29.0234324 L52,28.8854292 L52,35.1155708 Z M53.687,27.0993886 C53.487,26.9113843 53.212,26.8113821 52.943,26.8283825 L50.283,26.9793859 C49.866,25.4563513 49.261,23.9973181 48.477,22.6232869 L50.467,20.8482466 C50.672,20.6652424 50.793,20.4062365 50.801,20.1302302 C50.809,19.855224 50.702,19.5892179 50.508,19.3952135 L44.605,13.4930794 C44.411,13.298075 44.145,13.1850724 43.87,13.2000727 C43.595,13.2080729 43.336,13.3290757 43.152,13.5340803 L41.371,15.5301257 C39.999,14.7471079 38.541,14.1430942 37.021,13.7260847 L37.172,11.057024 C37.187,10.7820178 37.09,10.5130117 36.9,10.3130071 C36.712,10.1130026 36.449,10 36.174,10 L27.826,10 C27.551,10 27.288,10.1130026 27.1,10.3130071 C26.91,10.5130117 26.812,10.7820178 26.828,11.057024 L26.979,13.7240846 C25.458,14.1400941 23.999,14.7441078 22.626,15.5261256 L20.848,13.5340803 C20.664,13.3290757 20.405,13.2080729 20.13,13.2000727 C19.861,13.1870724 19.589,13.298075 19.395,13.4930794 L13.492,19.3952135 C13.298,19.5892179 13.191,19.855224 13.199,20.1302302 C13.207,20.4052365 13.328,20.6652424 13.533,20.8482466 L15.527,22.626287 C14.742,24.0003182 14.137,25.4583513 13.72,26.9793859 L11.057,26.8283825 C10.785,26.8103821 10.513,26.9113843 10.313,27.0993886 C10.113,27.2883929 10,27.5513989 10,27.8264051 L10,36.1735949 C10,36.4486011 10.113,36.7116071 10.313,36.9006114 C10.513,37.0896157 10.786,37.1876179 11.057,37.1726176 L13.712,37.0206141 C14.128,38.5476488 14.733,40.009682 15.517,41.3847133 L13.534,43.1517534 C13.328,43.3347576 13.207,43.5947635 13.199,43.8697698 C13.191,44.144776 13.298,44.4117821 13.492,44.6057865 L19.395,50.5079206 C19.589,50.7029251 19.858,50.8219278 20.13,50.8009273 C20.405,50.7929271 20.665,50.6719244 20.848,50.4669197 L22.617,48.4838746 C23.994,49.2698925 25.455,49.8759063 26.979,50.2939158 L26.828,52.942976 C26.812,53.2179822 26.91,53.4869883 27.099,53.6869929 C27.288,53.8869974 27.551,54 27.826,54 L36.174,54 C36.449,54 36.712,53.8869974 36.901,53.6869929 C37.09,53.4869883 37.187,53.2179822 37.172,52.942976 L37.021,50.2959158 C38.548,49.8779063 40.011,49.2718925 41.386,48.4868747 L43.152,50.4669197 C43.335,50.6719244 43.595,50.7929271 43.87,50.8009273 C44.147,50.8239278 44.411,50.7029251 44.605,50.5079206 L50.508,44.6057865 C50.702,44.4117821 50.809,44.144776 50.801,43.8707698 C50.793,43.5947635 50.672,43.3357576 50.467,43.1527535 L48.48,41.3807132 C49.265,40.0046819 49.869,38.5436487 50.285,37.0206141 L52.943,37.1726176 C53.211,37.1866179 53.487,37.0896157 53.687,36.9006114 C53.887,36.7116071 54,36.4486011 54,36.1735949 L54,27.8264051 C54,27.5513989 53.887,27.2883929 53.687,27.0993886 L53.687,27.0993886 Z\" id=\"Amazon-GuardDuty_Icon_48_Squid\" fill=\"#FFFFFF\" /></g>",
1091+
"height": 64,
1092+
"width": 64
1093+
},
10891094
"artifact": {
10901095
"body": "<g id=\"Icon-Architecture/48/Arch_AWS-Artifact_48\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"Icon-Architecture-BG/48/Security-Identity-Compliance\" fill=\"#DD344C\"><rect id=\"Rectangle\" x=\"0\" y=\"0\" width=\"64\" height=\"64\" /></g><path d=\"M32,10 C19.869,10 10,19.869 10,32 C10,41.802 16.888,50.424 26.75,52.968 L27.25,51.032 C18.271,48.715 12,40.889 12,32 C12,20.972 20.972,12 32,12 C43.028,12 52,20.972 52,32 C52,41.777 47.047,48.891 38.75,51.032 L39.25,52.968 C48.348,50.621 54,42.586 54,32 C54,19.869 44.131,10 32,10 L32,10 Z M26,24 L33,24 L33,22 L26,22 L26,24 Z M26,36 L35,36 L35,34 L26,34 L26,36 Z M26,32 L31,32 L31,30 L26,30 L26,32 Z M26,28 L40,28 L40,26 L26,26 L26,28 Z M37,24 C36.447,24 36,23.552 36,23 L36,17.958 L24,17.958 L24,40 L42,40 L42,24 L37,24 Z M38,22 L40.586,22 L38,19.414 L38,22 Z M37,15.958 L37,15.958 C37.26,15.959 37.516,16.102 37.707,16.293 L43.707,22.293 C43.898,22.484 43.99,22.74 43.991,23 L44,23 L44,41 C44,41.552 43.553,42 43,42 L23,42 C22.447,42 22,41.552 22,41 L22,16.958 C22,16.406 22.447,15.958 23,15.958 L37,15.958 Z M38.707,48.707 L33.707,53.707 C33.512,53.902 33.256,54 33,54 C32.744,54 32.488,53.902 32.293,53.707 L27.293,48.707 C27.007,48.421 26.921,47.991 27.076,47.617 C27.23,47.244 27.596,47 28,47 L30,47 L30,44 L32,44 L32,48 C32,48.552 31.553,49 31,49 L30.414,49 L33,51.586 L35.586,49 L35,49 C34.447,49 34,48.552 34,48 L34,44 L36,44 L36,47 L38,47 C38.404,47 38.77,47.244 38.924,47.617 C39.079,47.991 38.993,48.421 38.707,48.707 L38.707,48.707 Z\" id=\"AWS-Artifact_Icon_48_Squid\" fill=\"#FFFFFF\" /></g>",
10911096
"height": 64,
@@ -2486,11 +2491,6 @@
24862491
"height": 64,
24872492
"width": 64
24882493
},
2489-
"guardduty": {
2490-
"body": "<g id=\"Icon-Architecture/48/Arch_Amazon-GuardDuty_48\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"Icon-Architecture-BG/48/Security-Identity-Compliance\" fill=\"#DD344C\"><rect id=\"Rectangle\" x=\"0\" y=\"0\" width=\"64\" height=\"64\" /></g><path d=\"M36,34.3505534 C35.967,36.2315962 35.389,38.4306462 33,38.9036569 L33,25.8303598 L36,27.0763881 L36,34.3505534 Z M28,34.3395532 L28,27.0763881 L31,25.8303598 L31,38.8926567 C28.242,38.3076434 28,35.3245756 28,34.3395532 L28,34.3395532 Z M31.616,23.4083047 L26.616,25.4853519 C26.243,25.6403555 26,26.0043637 26,26.4083729 L26,34.3395532 C26,37.412623 27.571,41.0007046 32,41.0007046 C35.685,41.0007046 37.927,38.5276484 38,34.3685538 L38,26.4083729 C38,26.0043637 37.757,25.6403555 37.384,25.4853519 L32.384,23.4083047 C32.138,23.3063024 31.862,23.3063024 31.616,23.4083047 L31.616,23.4083047 Z M40,34.3685538 C40,34.7205618 39.909,43.00075 32,43.00075 C24.124,43.00075 24.001,34.6915612 24,34.3395532 L24,24.4063274 L32,21.0832519 L40,24.4063274 L40,34.3685538 Z M41.384,22.8152913 L32.384,19.0772063 C32.138,18.974204 31.862,18.974204 31.616,19.0772063 L22.616,22.8152913 C22.243,22.9702948 22,23.3343031 22,23.7383122 L22,34.3395532 C22,38.027637 24.09,45.0007955 32,45.0007955 C39.91,45.0007955 42,38.0456374 42,34.3685538 L42,23.7383122 C42,23.3343031 41.757,22.9702948 41.384,22.8152913 L41.384,22.8152913 Z M52,35.1155708 L49.572,34.9765676 C49.102,34.948567 48.647,35.2775745 48.54,35.7555854 C48.117,37.630628 47.381,39.4096684 46.352,41.0427055 C46.091,41.4557149 46.167,41.9967272 46.531,42.3227346 L48.345,43.9397714 L43.939,48.3458715 L42.327,46.5378304 C42,46.1708221 41.458,46.0968204 41.047,46.3578263 C39.416,47.3878497 37.636,48.1258665 35.754,48.5508762 C35.277,48.6588786 34.948,49.0958885 34.977,49.5838996 L35.115,51.9999545 L28.885,51.9999545 L29.023,49.5808996 C29.052,49.0938885 28.723,48.6568786 28.246,48.5488761 C26.37,48.1248665 24.59,47.3868497 22.956,46.3548262 C22.543,46.0928203 22.001,46.166822 21.676,46.5348303 L20.061,48.3458715 L15.655,43.9397714 L17.465,42.3267347 C17.83,42.0007273 17.906,41.458715 17.646,41.0457056 C16.617,39.4166686 15.881,37.6366281 15.457,35.7555854 C15.349,35.2775745 14.877,34.948567 14.425,34.9765676 L12,35.1155708 L12,28.8854292 L14.432,29.0234324 C14.877,29.0394327 15.355,28.7234255 15.464,28.2464147 C15.888,26.3733721 16.626,24.5973318 17.656,22.9662947 C17.917,22.5522853 17.841,22.011273 17.477,21.6852656 L15.655,20.0602286 L20.061,15.6551285 L21.685,17.4751699 C22.009,17.8401782 22.553,17.9141799 22.964,17.655174 C24.594,16.6281506 26.37,15.8921339 28.246,15.4691243 C28.723,15.3611218 29.052,14.9251119 29.023,14.4361008 L28.885,12.0000455 L35.115,12.0000455 L34.977,14.4381009 C34.948,14.927112 35.277,15.3631219 35.754,15.4711243 C37.628,15.895134 39.404,16.6311507 41.033,17.6591741 C41.444,17.91918 41.987,17.8431783 42.312,17.47917 L43.939,15.6551285 L48.345,20.0602286 L46.526,21.6822655 C46.162,22.0072729 46.086,22.5492852 46.347,22.9622946 C47.377,24.5923316 48.114,26.3703721 48.538,28.2464147 C48.645,28.7234255 49.102,29.0394327 49.57,29.0234324 L52,28.8854292 L52,35.1155708 Z M53.687,27.0993886 C53.487,26.9113843 53.212,26.8113821 52.943,26.8283825 L50.283,26.9793859 C49.866,25.4563513 49.261,23.9973181 48.477,22.6232869 L50.467,20.8482466 C50.672,20.6652424 50.793,20.4062365 50.801,20.1302302 C50.809,19.855224 50.702,19.5892179 50.508,19.3952135 L44.605,13.4930794 C44.411,13.298075 44.145,13.1850724 43.87,13.2000727 C43.595,13.2080729 43.336,13.3290757 43.152,13.5340803 L41.371,15.5301257 C39.999,14.7471079 38.541,14.1430942 37.021,13.7260847 L37.172,11.057024 C37.187,10.7820178 37.09,10.5130117 36.9,10.3130071 C36.712,10.1130026 36.449,10 36.174,10 L27.826,10 C27.551,10 27.288,10.1130026 27.1,10.3130071 C26.91,10.5130117 26.812,10.7820178 26.828,11.057024 L26.979,13.7240846 C25.458,14.1400941 23.999,14.7441078 22.626,15.5261256 L20.848,13.5340803 C20.664,13.3290757 20.405,13.2080729 20.13,13.2000727 C19.861,13.1870724 19.589,13.298075 19.395,13.4930794 L13.492,19.3952135 C13.298,19.5892179 13.191,19.855224 13.199,20.1302302 C13.207,20.4052365 13.328,20.6652424 13.533,20.8482466 L15.527,22.626287 C14.742,24.0003182 14.137,25.4583513 13.72,26.9793859 L11.057,26.8283825 C10.785,26.8103821 10.513,26.9113843 10.313,27.0993886 C10.113,27.2883929 10,27.5513989 10,27.8264051 L10,36.1735949 C10,36.4486011 10.113,36.7116071 10.313,36.9006114 C10.513,37.0896157 10.786,37.1876179 11.057,37.1726176 L13.712,37.0206141 C14.128,38.5476488 14.733,40.009682 15.517,41.3847133 L13.534,43.1517534 C13.328,43.3347576 13.207,43.5947635 13.199,43.8697698 C13.191,44.144776 13.298,44.4117821 13.492,44.6057865 L19.395,50.5079206 C19.589,50.7029251 19.858,50.8219278 20.13,50.8009273 C20.405,50.7929271 20.665,50.6719244 20.848,50.4669197 L22.617,48.4838746 C23.994,49.2698925 25.455,49.8759063 26.979,50.2939158 L26.828,52.942976 C26.812,53.2179822 26.91,53.4869883 27.099,53.6869929 C27.288,53.8869974 27.551,54 27.826,54 L36.174,54 C36.449,54 36.712,53.8869974 36.901,53.6869929 C37.09,53.4869883 37.187,53.2179822 37.172,52.942976 L37.021,50.2959158 C38.548,49.8779063 40.011,49.2718925 41.386,48.4868747 L43.152,50.4669197 C43.335,50.6719244 43.595,50.7929271 43.87,50.8009273 C44.147,50.8239278 44.411,50.7029251 44.605,50.5079206 L50.508,44.6057865 C50.702,44.4117821 50.809,44.144776 50.801,43.8707698 C50.793,43.5947635 50.672,43.3357576 50.467,43.1527535 L48.48,41.3807132 C49.265,40.0046819 49.869,38.5436487 50.285,37.0206141 L52.943,37.1726176 C53.211,37.1866179 53.487,37.0896157 53.687,36.9006114 C53.887,36.7116071 54,36.4486011 54,36.1735949 L54,27.8264051 C54,27.5513989 53.887,27.2883929 53.687,27.0993886 L53.687,27.0993886 Z\" id=\"Amazon-GuardDuty_Icon_48_Squid\" fill=\"#FFFFFF\" /></g>",
2491-
"height": 64,
2492-
"width": 64
2493-
},
24942494
"health-dashboard": {
24952495
"body": "<g id=\"Icon-Architecture/48/Arch_AWS-Health-Dashboard_48\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g id=\"Icon-Architecture-BG/48/Management-Governance\" fill=\"#E7157B\"><rect id=\"Rectangle\" x=\"0\" y=\"0\" width=\"64\" height=\"64\" /></g><path d=\"M11,36 L12.9896814,36 L12.9896814,34 L11,34 L11,36 Z M38.804803,22.684 C38.6695047,22.275 38.2884807,22 37.8606992,22 L37.8517456,22 C37.4199847,22.004 37.0399556,22.288 36.9116211,22.702 L32.6726049,36.335 L28.8026745,28.553 C28.6444948,28.234 28.3281355,28.024 27.974967,28.002 C27.6028966,27.975 27.2825579,28.149 27.0845846,28.446 L23.4006894,34 L14.9793628,34 L14.9793628,36 L23.9329292,36 C24.265206,36 24.5765912,35.833 24.7606367,35.555 L27.7889318,30.989 L31.997108,39.448 C32.1672258,39.788 32.5114407,40 32.8864956,40 C32.9133563,40 32.940217,39.999 32.9660829,39.997 C33.3719779,39.964 33.7151979,39.688 33.8355737,39.299 L37.8915392,26.255 L40.896953,35.317 C41.0322513,35.725 41.4122805,36 41.840062,36 L53.7781505,36 L53.7781505,34 L42.5573422,34 L38.804803,22.684 Z M32.8864956,50.4 L21.7263725,36.376 L20.1714365,37.625 L32.109525,52.625 C32.2995396,52.862 32.5850589,53 32.8864956,53 C33.1889272,53 33.4744465,52.862 33.6644611,52.625 L45.6025496,37.625 L44.0476135,36.376 L32.8864956,50.4 Z M15.80906,32.554 L13.1478611,28.531 C12.2206696,26.824 11.7739861,25.138 11.7739861,23.441 C11.7739861,17.347 16.9541216,12 22.8585013,12 C27.4268098,12 31.179349,14.272 32.8864956,17.703 C34.5946371,14.272 38.3471763,12 42.91449,12 C48.8198644,12 54,17.347 54,23.441 C54,25.104 53.5652546,26.768 52.7096916,28.388 C52.4570021,28.869 52.1545705,29.346 51.7844897,29.843 L51.0940703,30.665 L49.0655901,32.708 L47.6588853,31.293 L49.6316544,29.311 L50.2285589,28.599 C50.4971659,28.233 50.745876,27.842 50.9528029,27.451 C51.6551604,26.121 52.0103186,24.773 52.0103186,23.441 C52.0103186,18.412 47.7603591,14 42.91449,14 C37.680633,14 33.8813363,17.365 33.8813363,22 C33.8813363,22.553 33.4366425,23 32.8864956,23 C32.3373435,23 31.8916549,22.553 31.8916549,22 C31.8916549,17.365 28.0933531,14 22.8585013,14 C18.013627,14 13.7636675,18.412 13.7636675,23.441 C13.7636675,24.8 14.128774,26.165 14.8500335,27.499 L17.4664646,31.447 L15.80906,32.554 Z\" id=\"AWS-Personal-Health-Dashboard_Icon_48_Squid\" fill=\"#FFFFFF\" /></g>",
24962496
"height": 64,
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
3+
title: c4code-printer-analyser
4+
---
5+
6+
7+
```mermaid
8+
architecture-beta
9+
service letterSafe(aws:res-amazon-eventbridge-event)[PrintLetterSafe Event]
10+
service analyseQueue(logos:aws-sqs)[Analyse Queue] in printAnalyser
11+
service analyseLambda(logos:aws-lambda)[PrintAnalyser] in printAnalyser
12+
service digLtrsBucket(logos:aws-s3)[DigitalLetters] in printAnalyser
13+
service letterAnalysed(aws:res-amazon-eventbridge-event)[PrintLetterAnalysed Event]
14+
group printAnalyser(cloud)[PrintAnalyser]
15+
16+
letterSafe:R --> L:analyseQueue
17+
analyseQueue:R --> L:analyseLambda
18+
digLtrsBucket:B --> T:analyseLambda
19+
analyseLambda:R --> L:letterAnalysed
20+
21+
22+
```
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
3+
title: c4code-printer-scanner
4+
---
5+
6+
7+
```mermaid
8+
architecture-beta
9+
service itemDequeued(aws:res-amazon-eventbridge-event)[ItemDequeued Event]
10+
service analyseQueue(logos:aws-sqs)[Analyse Queue] in printScanner
11+
service analyseLambda(logos:aws-lambda)[PrintScanner] in printScanner
12+
service docRefBucket(logos:aws-s3)[DocumentReference] in printScanner
13+
service lettersBucket(logos:aws-s3)[DigitalLetters] in printScanner
14+
service quarantineBucket(logos:aws-s3)[QuarantinedLetters] in printScanner
15+
service safeBucket(logos:aws-s3)[SafeLetters] in printScanner
16+
service guardDuty(aws:arch-amazon-guardduty)[GuardDuty] in printScanner
17+
service safeLetter(aws:res-amazon-eventbridge-event)[PrintLetterSafe Event]
18+
service quarantinedLetter(aws:res-amazon-eventbridge-event)[PrintLetterQuarantined Event]
19+
group printScanner(cloud)[PrintScanner]
20+
junction j1 in printScanner
21+
junction j2 in printScanner
22+
junction j3 in printScanner
23+
24+
itemDequeued:R --> L:analyseQueue
25+
docRefBucket:T --> B:analyseLambda
26+
analyseQueue:R --> L:analyseLambda
27+
analyseLambda:T --> B:lettersBucket
28+
lettersBucket:R --> L:guardDuty
29+
guardDuty:R -- L:j1
30+
j1:T -- B:j2
31+
j1:B -- T:j3
32+
j2:R --> L:quarantineBucket
33+
quarantineBucket:R --> L:quarantinedLetter
34+
j3:R --> L:safeBucket
35+
safeBucket:R --> L:safeLetter
36+
37+
38+
```
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
3+
title: c4code-printer-sendtoprint
4+
5+
---
6+
7+
8+
```mermaid
9+
architecture-beta
10+
service letterAnalysed(aws:res-amazon-eventbridge-event)[PrintLetterAnalysed Event]
11+
service printQueue(logos:aws-sqs)[PrintSender Queue] in printSender
12+
service printLambda(logos:aws-lambda)[PrintSender] in printSender
13+
service letterPrepared(aws:res-amazon-eventbridge-event)[letterPREPARED Event]
14+
group printSender(cloud)[PrintSender]
15+
16+
letterAnalysed:R --> L:printQueue
17+
printQueue:R --> L:printLambda
18+
printLambda:R --> L:letterPrepared
19+
20+
21+
```

docs/collections/_diagrams/c4code-printer-sendtoprint.md

Lines changed: 0 additions & 27 deletions
This file was deleted.
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
---
2+
3+
title: sequence-expire-print-ttl
4+
5+
---
6+
7+
```mermaid
8+
sequenceDiagram
9+
participant dl as Digital Letters
10+
participant s3 as S3 Bucket
11+
participant eventBus as Event Bus
12+
participant printApi as Print API
13+
14+
activate dl
15+
dl ->> dl: Extract & Decode PDF
16+
dl -) s3: Store PDF
17+
deactivate dl
18+
s3 -) s3: GuardDuty
19+
s3 ->> eventBus: ScanResult event
20+
eventBus ->> dl: ScanResult event
21+
activate dl
22+
dl ->> s3: Get scanneed PDF
23+
activate s3
24+
s3 -->> dl: PDF
25+
deactivate s3
26+
dl ->> dl: Count pages
27+
dl ->> dl: SHA256
28+
dl ->> eventBus: LetterAvailable event
29+
deactivate dl
30+
eventBus ->> dl: LetterAvailable event
31+
activate dl
32+
dl -) printApi: letter.PREPARED event
33+
deactivate dl
34+
```

0 commit comments

Comments
 (0)