Sidebar-AWS.js 56 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786
  1. (function()
  2. {
  3. // Adds mockup shapes
  4. Sidebar.prototype.addAWSPalette = function()
  5. {
  6. this.setCurrentSearchEntryLibrary('aws2', 'aws2Analytics');
  7. this.addAWSAnalyticsPalette();
  8. this.setCurrentSearchEntryLibrary('aws2', 'aws2Application Services');
  9. this.addAWSApplicationServicesPalette();
  10. this.setCurrentSearchEntryLibrary('aws2', 'aws2Compute');
  11. this.addAWSComputePalette();
  12. this.setCurrentSearchEntryLibrary('aws2', 'aws2Database');
  13. this.addAWSDatabasePalette();
  14. this.setCurrentSearchEntryLibrary('aws2', 'aws2Developer Tools');
  15. this.addAWSDeveloperToolsPalette();
  16. this.setCurrentSearchEntryLibrary('aws2', 'aws2Enterprise Applications');
  17. this.addAWSEnterpriseApplicationsPalette();
  18. this.setCurrentSearchEntryLibrary('aws2', 'aws2Game Development');
  19. this.addAWSGameDevelopmentPalette();
  20. this.setCurrentSearchEntryLibrary('aws2', 'aws2General');
  21. this.addAWSGeneralPalette();
  22. this.setCurrentSearchEntryLibrary('aws2', 'aws2Internet of Things');
  23. this.addAWSInternetOfThingsPalette();
  24. this.setCurrentSearchEntryLibrary('aws2', 'aws2Management Tools');
  25. this.addAWSManagementToolsPalette();
  26. this.setCurrentSearchEntryLibrary('aws2', 'aws2Mobile Services');
  27. this.addAWSMobileServicesPalette();
  28. this.setCurrentSearchEntryLibrary('aws2', 'aws2Networking');
  29. this.addAWSNetworkingPalette();
  30. this.setCurrentSearchEntryLibrary('aws2', 'aws2On-Demand Workforce');
  31. this.addAWSOnDemandWorkforcePalette();
  32. this.setCurrentSearchEntryLibrary('aws2', 'aws2SDKs');
  33. this.addAWSSDKPalette();
  34. this.setCurrentSearchEntryLibrary('aws2', 'aws2Security and Identity');
  35. this.addAWSSecurityAndIdentityPalette();
  36. this.setCurrentSearchEntryLibrary('aws2', 'aws2Storage and Content Delivery');
  37. this.addAWSStorageAndContentDeliveryPalette();
  38. this.setCurrentSearchEntryLibrary('aws2', 'aws2Groups');
  39. this.addAWSGroupPalette();
  40. this.setCurrentSearchEntryLibrary();
  41. };
  42. Sidebar.prototype.addAWSAnalyticsPalette = function()
  43. {
  44. var sb = this;
  45. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  46. var gn = 'mxgraph.aws.analytics';
  47. var dt = 'aws group amazon web service analytics';
  48. this.addPaletteFunctions('aws2Analytics', 'AWS / Analytics', false,
  49. [
  50. this.createVertexTemplateEntry(s + 'analytics.data_pipeline;strokeColor=none;',
  51. 60, 72, '', 'Data Pipeline', null, null, this.getTagsForStencil(gn, 'data pipeline', dt).join(' ')),
  52. this.createVertexTemplateEntry(s + 'analytics.elasticsearch;strokeColor=none;',
  53. 60, 72, '', 'ElasticSearch', null, null, this.getTagsForStencil(gn, 'elasticsearch', dt).join(' ')),
  54. this.createVertexTemplateEntry(s + 'analytics.emr;strokeColor=none;',
  55. 60, 72, '', 'EMR', null, null, this.getTagsForStencil(gn, 'emr', dt).join(' ')),
  56. this.createVertexTemplateEntry(s + 'compute_and_networking.emr_cluster;strokeColor=none;',
  57. 49, 55, '', 'EMR Cluster', null, null, this.getTagsForStencil(gn, 'emr cluster', dt).join(' ')),
  58. this.createVertexTemplateEntry(s + 'compute_and_networking.emr_engine;strokeColor=none;',
  59. 74, 53, '', 'EMR Engine', null, null, this.getTagsForStencil(gn, 'emr engine', dt).join(' ')),
  60. this.createVertexTemplateEntry(s + 'compute_and_networking.emr_hdfs_cluster;strokeColor=none;',
  61. 54, 56, '', 'EMR HDFS Cluster', null, null, this.getTagsForStencil(gn, 'emr hdfs cluster', dt).join(' ')),
  62. this.createVertexTemplateEntry(s + 'compute_and_networking.emr_mapr_m3_engine;strokeColor=none;',
  63. 74, 53, '', 'EMR MapR M3 Engine', null, null, this.getTagsForStencil(gn, 'emr mapr m3 engine', dt).join(' ')),
  64. this.createVertexTemplateEntry(s + 'compute_and_networking.emr_mapr_m5_engine;strokeColor=none;',
  65. 74, 53, '', 'EMR MapR M5 Engine', null, null, this.getTagsForStencil(gn, 'emr mapr m5 engine', dt).join(' ')),
  66. this.createVertexTemplateEntry(s + 'compute_and_networking.emr_mapr_m7_engine;strokeColor=none;',
  67. 74, 53, '', 'EMR MapR M7 Engine', null, null, this.getTagsForStencil(gn, 'emr mapr m7 engine', dt).join(' ')),
  68. this.createVertexTemplateEntry(s + 'analytics.kinesis;strokeColor=none;',
  69. 59, 72, '', 'Kinesis', null, null, this.getTagsForStencil(gn, 'kinesis', dt).join(' ')),
  70. this.createVertexTemplateEntry(s + 'analytics.kinesis_analytics;strokeColor=none;',
  71. 66, 67, '', 'Kinesis Analytics', null, null, this.getTagsForStencil(gn, 'kinesis analytics', dt).join(' ')),
  72. this.createVertexTemplateEntry(s + 'analytics.kinesis_enabledapp;strokeColor=none;',
  73. 58, 60, '', 'Kinesis EnabledApp', null, null, this.getTagsForStencil(gn, 'kinesis enabledapp enabled app', dt).join(' ')),
  74. this.createVertexTemplateEntry(s + 'analytics.kinesis_firehose;strokeColor=none;',
  75. 53, 56, '', 'Kinesis Firehose', null, null, this.getTagsForStencil(gn, 'kinesis firehose', dt).join(' ')),
  76. this.createVertexTemplateEntry(s + 'analytics.kinesis_streams;strokeColor=none;',
  77. 53, 56, '', 'Kinesis Streams', null, null, this.getTagsForStencil(gn, 'kinesis streams', dt).join(' ')),
  78. this.createVertexTemplateEntry(s + 'analytics.machine_learning;strokeColor=none;',
  79. 60, 72, '', 'Machine Learning', null, null, this.getTagsForStencil(gn, 'machine learning', dt).join(' ')),
  80. this.createVertexTemplateEntry(s + 'analytics.quicksight;strokeColor=none;',
  81. 60, 66, '', 'QuickSight', null, null, this.getTagsForStencil(gn, 'quicksight', dt).join(' '))
  82. ]);
  83. };
  84. Sidebar.prototype.addAWSApplicationServicesPalette = function()
  85. {
  86. var sb = this;
  87. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  88. var gn = 'mxgraph.aws.applicationServices';
  89. var dt = 'aws group amazon web service application services';
  90. this.addPaletteFunctions('aws2Application Services', 'AWS / Application Services', false,
  91. [
  92. this.createVertexTemplateEntry(s + 'app_services.api_gateway;strokeColor=none;',
  93. 60, 72, '', 'API Gateway', null, null, this.getTagsForStencil(gn, 'api gateway', dt).join(' ')),
  94. this.createVertexTemplateEntry(s + 'app_services.appstream;strokeColor=none;',
  95. 59, 72, '', 'AppStream', null, null, this.getTagsForStencil(gn, 'appstream', dt).join(' ')),
  96. this.createVertexTemplateEntry(s + 'app_services.cloudsearch;strokeColor=none;',
  97. 59, 72, '', 'CloudSearch', null, null, this.getTagsForStencil(gn, 'cloudsearch', dt).join(' ')),
  98. this.createVertexTemplateEntry(s + 'app_services.cloudsearch_sdf_metadata;strokeColor=none;',
  99. 52, 56, '', 'CloudSearch SDF Metadata', null, null, this.getTagsForStencil(gn, 'cloudsearch sdf metadata', dt).join(' ')),
  100. this.createVertexTemplateEntry(s + 'app_services.elastic_transcoder;strokeColor=none;',
  101. 59, 72, '', 'Elastic Transcoder', null, null, this.getTagsForStencil(gn, 'elastic transcoder', dt).join(' ')),
  102. this.createVertexTemplateEntry(s + 'app_services.ses;strokeColor=none;',
  103. 61, 72, '', 'SES', null, null, this.getTagsForStencil(gn, 'ses', dt).join(' ')),
  104. this.createVertexTemplateEntry(s + 'app_services.email;strokeColor=none;',
  105. 73, 54, '', 'SES Email', null, null, this.getTagsForStencil(gn, 'ses email', dt).join(' ')),
  106. this.createVertexTemplateEntry(s + 'app_services.sqs;strokeColor=none;',
  107. 59, 72, '', 'SQS', null, null, this.getTagsForStencil(gn, 'sqs', dt).join(' ')),
  108. this.createVertexTemplateEntry(s + 'app_services.sqs_message;strokeColor=none;',
  109. 37, 42, '', 'SQS Message', null, null, this.getTagsForStencil(gn, 'sqs message', dt).join(' ')),
  110. this.createVertexTemplateEntry(s + 'app_services.sqs_queue;strokeColor=none;',
  111. 65, 42, '', 'SQS Queue', null, null, this.getTagsForStencil(gn, 'sqs queue', dt).join(' ')),
  112. this.createVertexTemplateEntry(s + 'app_services.swf;strokeColor=none;',
  113. 59, 72, '', 'SWF', null, null, this.getTagsForStencil(gn, 'swf', dt).join(' ')),
  114. this.createVertexTemplateEntry(s + 'app_services.swf_decider;strokeColor=none;',
  115. 55, 57, '', 'SWF Decider', null, null, this.getTagsForStencil(gn, 'swf decider', dt).join(' ')),
  116. this.createVertexTemplateEntry(s + 'app_services.swf_worker;strokeColor=none;',
  117. 53, 56, '', 'SWF Worker', null, null, this.getTagsForStencil(gn, 'swf worker', dt).join(' '))
  118. ]);
  119. };
  120. Sidebar.prototype.addAWSComputePalette = function()
  121. {
  122. var sb = this;
  123. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.compute_and_networking.";
  124. var gn = 'mxgraph.aws.compute';
  125. var dt = 'aws group amazon web service compute';
  126. this.addPaletteFunctions('aws2Compute', 'AWS / Compute', false,
  127. [
  128. this.createVertexTemplateEntry(s + 'auto_scaling;strokeColor=none;',
  129. 59, 57, '', 'Auto Scaling', null, null, this.getTagsForStencil(gn, 'auto scaling', dt).join(' ')),
  130. this.createVertexTemplateEntry(s + 'ec2;strokeColor=none;',
  131. 59, 72, '', 'EC2', null, null, this.getTagsForStencil(gn, 'ec2', dt).join(' ')),
  132. this.createVertexTemplateEntry(s + 'ec2_ami;strokeColor=none;',
  133. 53, 56, '', 'EC2 AMI', null, null, this.getTagsForStencil(gn, 'ec2 ami', dt).join(' ')),
  134. this.createVertexTemplateEntry(s + 'ec2_cloudwatch;strokeColor=none;',
  135. 53, 56, '', 'EC2 CloudWatch', null, null, this.getTagsForStencil(gn, 'ec2 cloudwatch', dt).join(' ')),
  136. this.createVertexTemplateEntry(s + 'ec2_db_on_instance;strokeColor=none;',
  137. 52, 56, '', 'EC2 DB On Instance', null, null, this.getTagsForStencil(gn, 'ec2 db on instance database', dt).join(' ')),
  138. this.createVertexTemplateEntry(s + 'ec2_elastic_ip;strokeColor=none;',
  139. 67, 22, '', 'EC2 Elastic IP', null, null, this.getTagsForStencil(gn, 'ec2 elastic ip', dt).join(' ')),
  140. this.createVertexTemplateEntry(s + 'ec2_instance;strokeColor=none;',
  141. 52, 56, '', 'EC2 Instance', null, null, this.getTagsForStencil(gn, 'ec2 instance', dt).join(' ')),
  142. this.createVertexTemplateEntry(s + 'ec2_instances;strokeColor=none;',
  143. 50, 57, '', 'EC2 Instances', null, null, this.getTagsForStencil(gn, 'ec2 instances', dt).join(' ')),
  144. this.createVertexTemplateEntry(s + 'ec2_optimized_instance;strokeColor=none;',
  145. 53, 56, '', 'EC2 Optimized Instance', null, null, this.getTagsForStencil(gn, 'ec2 optimized instance', dt).join(' ')),
  146. this.createVertexTemplateEntry(s + 'ec2_spot_instance;strokeColor=none;',
  147. 53, 57, '', 'EC2 Spot Instance', null, null, this.getTagsForStencil(gn, 'ec2 spot instance', dt).join(' ')),
  148. this.createVertexTemplateEntry(s + 'ec2_container_registry;strokeColor=none;',
  149. 61, 63, '', 'EC2 Container Registry', null, null, this.getTagsForStencil(gn, 'ec2 container registry', dt).join(' ')),
  150. this.createVertexTemplateEntry(s + 'ec2_container_service;strokeColor=none;',
  151. 61, 63, '', 'EC2 Container Service', null, null, this.getTagsForStencil(gn, 'ec2 container service', dt).join(' ')),
  152. this.createVertexTemplateEntry(s + 'elastic_beanstalk;strokeColor=none;',
  153. 59, 82, '', 'Elastic Beanstalk', null, null, this.getTagsForStencil(gn, 'elastic beanstalk', dt).join(' ')),
  154. this.createVertexTemplateEntry(s + 'elastic_beanstalk_application;strokeColor=none;',
  155. 31, 57, '', 'Elastic Beanstalk Application', null, null, this.getTagsForStencil(gn, 'elastic beanstalk application', dt).join(' ')),
  156. this.createVertexTemplateEntry(s + 'elastic_beanstalk_deployment;strokeColor=none;',
  157. 50, 66, '', 'Elastic Beanstalk Deployment', null, null, this.getTagsForStencil(gn, 'elastic beanstalk deployment', dt).join(' ')),
  158. this.createVertexTemplateEntry(s + 'elastic_load_balancing_2;strokeColor=none;',
  159. 56, 58, '', 'Elastic Load Balancing', null, null, this.getTagsForStencil(gn, 'elastic load balancing', dt).join(' ')),
  160. this.createVertexTemplateEntry(s + 'lambda;strokeColor=none;',
  161. 59, 72, '', 'Lambda', null, null, this.getTagsForStencil(gn, 'lambda', dt).join(' '))
  162. ]);
  163. };
  164. Sidebar.prototype.addAWSDatabasePalette = function()
  165. {
  166. var sb = this;
  167. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  168. var gn = 'mxgraph.aws.database';
  169. var dt = 'aws group amazon web service database';
  170. this.addPaletteFunctions('aws2Database', 'AWS / Database', false,
  171. [
  172. this.createVertexTemplateEntry(s + 'database.database_migration_service;strokeColor=none;',
  173. 64, 72, '', 'Database Migration Service', null, null, this.getTagsForStencil(gn, 'database migration service', dt).join(' ')),
  174. this.createVertexTemplateEntry(s + 'database.dynamodb;strokeColor=none;',
  175. 59, 72, '', 'DynamoDB', null, null, this.getTagsForStencil(gn, 'dynamodb', dt).join(' ')),
  176. this.createVertexTemplateEntry(s + 'database.dynamodb_attribute;strokeColor=none;',
  177. 54, 56, '', 'DynamoDB Attribute', null, null, this.getTagsForStencil(gn, 'dynamodb attribute', dt).join(' ')),
  178. this.createVertexTemplateEntry(s + 'database.dynamodb_attributes;strokeColor=none;',
  179. 52, 56, '', 'DynamoDB Attributes', null, null, this.getTagsForStencil(gn, 'dynamodb attributes', dt).join(' ')),
  180. this.createVertexTemplateEntry(s + 'database.dynamodb_global_secondary_indexes;strokeColor=none;',
  181. 53, 56, '', 'DynamoDB Global Secondary Index', null, null, this.getTagsForStencil(gn, 'dynamodb global secondary indexes', dt).join(' ')),
  182. this.createVertexTemplateEntry(s + 'database.dynamodb_item;strokeColor=none;',
  183. 55, 56, '', 'DynamoDB Item', null, null, this.getTagsForStencil(gn, 'dynamodb item', dt).join(' ')),
  184. this.createVertexTemplateEntry(s + 'database.dynamodb_items;strokeColor=none;',
  185. 52, 57, '', 'DynamoDB Items', null, null, this.getTagsForStencil(gn, 'dynamodb items', dt).join(' ')),
  186. this.createVertexTemplateEntry(s + 'database.dynamodb_table;strokeColor=none;',
  187. 60, 56, '', 'DynamoDB Table', null, null, this.getTagsForStencil(gn, 'dynamodb table', dt).join(' ')),
  188. this.createVertexTemplateEntry(s + 'database.elasticcache_memcache;strokeColor=none;',
  189. 52, 55, '', 'ElasticCache MemCache', null, null, this.getTagsForStencil(gn, 'elasticcache memcache', dt).join(' ')),
  190. this.createVertexTemplateEntry(s + 'database.elasticcache;strokeColor=none;',
  191. 59, 72, '', 'ElasticCache', null, null, this.getTagsForStencil(gn, 'elasticcache', dt).join(' ')),
  192. this.createVertexTemplateEntry(s + 'database.elasticcache_node;strokeColor=none;',
  193. 52, 55, '', 'ElasticCache Node', null, null, this.getTagsForStencil(gn, 'elasticcache node', dt).join(' ')),
  194. this.createVertexTemplateEntry(s + 'database.elasticcache_redis;strokeColor=none;',
  195. 52, 55, '', 'ElasticCache Redis', null, null, this.getTagsForStencil(gn, 'elasticcache redis', dt).join(' ')),
  196. this.createVertexTemplateEntry(s + 'database.rds;strokeColor=none;',
  197. 63, 72, '', 'RDS', null, null, this.getTagsForStencil(gn, 'rds', dt).join(' ')),
  198. this.createVertexTemplateEntry(s + 'database.rds_db_instance;strokeColor=none;',
  199. 43, 56, '', 'RDS DB Instance', null, null, this.getTagsForStencil(gn, 'rds db instance', dt).join(' ')),
  200. this.createVertexTemplateEntry(s + 'database.rds_instance_read_replica;strokeColor=none;',
  201. 43, 56, '', 'RDS Instance Read Replica', null, null, this.getTagsForStencil(gn, 'rds instance read replica', dt).join(' ')),
  202. this.createVertexTemplateEntry(s + 'database.rds_instance_standby;strokeColor=none;',
  203. 43, 56, '', 'RDS Instance Standby', null, null, this.getTagsForStencil(gn, 'rds instance standby', dt).join(' ')),
  204. this.createVertexTemplateEntry(s + 'database.rds_ms_sql_instance;strokeColor=none;',
  205. 52, 55, '', 'RDS MS SQL Instance', null, null, this.getTagsForStencil(gn, 'rds ms sql instance', dt).join(' ')),
  206. this.createVertexTemplateEntry(s + 'database.rds_ms_sql_instance_2;strokeColor=none;',
  207. 52, 56, '', 'RDS MS SQL Instance', null, null, this.getTagsForStencil(gn, 'rds ms sql instance', dt).join(' ')),
  208. this.createVertexTemplateEntry(s + 'database.rds_mysql_db_instance;strokeColor=none;',
  209. 52, 55, '', 'RDS MySQL Instance', null, null, this.getTagsForStencil(gn, 'rds mysql db instance', dt).join(' ')),
  210. this.createVertexTemplateEntry(s + 'database.rds_mysql_db_instance_2;strokeColor=none;',
  211. 52, 56, '', 'RDS MySQL Instance', null, null, this.getTagsForStencil(gn, 'rds mysql db instance', dt).join(' ')),
  212. this.createVertexTemplateEntry(s + 'database.rds_oracle_db_instance;strokeColor=none;',
  213. 52, 55, '', 'RDS Oracle Instance', null, null, this.getTagsForStencil(gn, 'rds oracle db instance', dt).join(' ')),
  214. this.createVertexTemplateEntry(s + 'database.rds_oracle_db_instance_2;strokeColor=none;',
  215. 52, 56, '', 'RDS Oracle Instance', null, null, this.getTagsForStencil(gn, 'rds oracle db instance', dt).join(' ')),
  216. this.createVertexTemplateEntry(s + 'database.rds_replica_sets_with_piop;strokeColor=none;',
  217. 53, 55, '', 'RDS PIOP', null, null, this.getTagsForStencil(gn, 'rds piop', dt).join(' ')),
  218. this.createVertexTemplateEntry(s + 'database.rds_postgresql;strokeColor=none;',
  219. 52, 55, '', 'RDS PostgreSQL', null, null, this.getTagsForStencil(gn, 'rds postgresql', dt).join(' ')),
  220. this.createVertexTemplateEntry(s + 'database.rds_mastersql;strokeColor=none;',
  221. 52, 56, '', 'RDS SQL Master', null, null, this.getTagsForStencil(gn, 'rds sql master', dt).join(' ')),
  222. this.createVertexTemplateEntry(s + 'database.rds_slavesql;strokeColor=none;',
  223. 52, 56, '', 'RDS SQL Slave', null, null, this.getTagsForStencil(gn, 'rds sql slave', dt).join(' ')),
  224. this.createVertexTemplateEntry(s + 'database.redshift;strokeColor=none;',
  225. 60, 66, '', 'Redshift', null, null, this.getTagsForStencil(gn, 'redshift', dt).join(' ')),
  226. this.createVertexTemplateEntry(s + 'database.redshift_dense_compute_node;strokeColor=none;',
  227. 49, 55, '', 'Redshift Dense Compute Node', null, null, this.getTagsForStencil(gn, 'redshift dense compute node', dt).join(' ')),
  228. this.createVertexTemplateEntry(s + 'database.redshift_dense_storage_node;strokeColor=none;',
  229. 49, 55, '', 'Redshift Dense Storage Node', null, null, this.getTagsForStencil(gn, 'redshift dense storage node', dt).join(' '))
  230. ]);
  231. };
  232. Sidebar.prototype.addAWSDeveloperToolsPalette = function()
  233. {
  234. var sb = this;
  235. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  236. var gn = 'mxgraph.aws.developerTools';
  237. var dt = 'aws group amazon web service developer tools';
  238. this.addPaletteFunctions('aws2Developer Tools', 'AWS / Developer Tools', false,
  239. [
  240. this.createVertexTemplateEntry(s + 'developer_tools.code_commit;strokeColor=none;',
  241. 68, 82, '', 'Code Commit', null, null, this.getTagsForStencil(gn, 'code commit', dt).join(' ')),
  242. this.createVertexTemplateEntry(s + 'deployment_and_management.codedeploy;strokeColor=none;',
  243. 59, 72, '', 'Code Deploy', null, null, this.getTagsForStencil(gn, 'codedeploy', dt).join(' ')),
  244. this.createVertexTemplateEntry(s + 'developer_tools.code_pipeline;strokeColor=none;',
  245. 60, 72, '', 'Code Pipeline', null, null, this.getTagsForStencil(gn, 'code pipeline', dt).join(' '))
  246. ]);
  247. };
  248. Sidebar.prototype.addAWSEnterpriseApplicationsPalette = function()
  249. {
  250. var sb = this;
  251. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  252. var gn = 'mxgraph.aws.enterpriseApplications';
  253. var dt = 'aws group amazon web service enterprise applications';
  254. this.addPaletteFunctions('aws2Enterprise Applications', 'AWS / Enterprise Applications', false,
  255. [
  256. this.createVertexTemplateEntry(s + 'enterprise_applications.workdocs;strokeColor=none;',
  257. 74, 85, '', 'WorkDocs', null, null, this.getTagsForStencil(gn, 'workdocs', dt).join(' ')),
  258. this.createVertexTemplateEntry(s + 'enterprise_applications.workmail;strokeColor=none;',
  259. 74, 85, '', 'WorkMail', null, null, this.getTagsForStencil(gn, 'workmail', dt).join(' ')),
  260. this.createVertexTemplateEntry(s + 'enterprise_applications.workspaces;strokeColor=none;',
  261. 74, 85, '', 'WorkSpaces', null, null, this.getTagsForStencil(gn, 'workspaces', dt).join(' '))
  262. ]);
  263. };
  264. Sidebar.prototype.addAWSGameDevelopmentPalette = function()
  265. {
  266. var sb = this;
  267. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  268. var gn = 'mxgraph.aws.gameDevelopment';
  269. var dt = 'aws amazon web service game development';
  270. this.addPaletteFunctions('aws2Game Development', 'AWS / Game Development', false,
  271. [
  272. this.createVertexTemplateEntry(s + 'game_development.gamelift;strokeColor=none;',
  273. 62, 75, '', 'GameLift', null, null, this.getTagsForStencil(gn, 'game lift', dt).join(' '))
  274. ]);
  275. };
  276. Sidebar.prototype.addAWSGeneralPalette = function()
  277. {
  278. var sb = this;
  279. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  280. var gn = 'mxgraph.aws.general';
  281. var dt = 'aws amazon web service general';
  282. this.addPaletteFunctions('aws2General', 'AWS / General', false,
  283. [
  284. this.createVertexTemplateEntry(s + 'non-service_specific.client;strokeColor=none;',
  285. 57, 57, '', 'Client', null, null, this.getTagsForStencil(gn, 'client', dt).join(' ')),
  286. this.createVertexTemplateEntry(s + 'non-service_specific.cloud;strokeColor=none;',
  287. 70, 46, '', 'Cloud', null, null, this.getTagsForStencil(gn, 'cloud', dt).join(' ')),
  288. this.createVertexTemplateEntry(s + 'non-service_specific.corporate_data_center;strokeColor=none;',
  289. 42, 57, '', 'Corporate Data Center', null, null, this.getTagsForStencil(gn, 'corporate data center', dt).join(' ')),
  290. this.createVertexTemplateEntry(s + 'non-service_specific.disk;strokeColor=none;',
  291. 57, 57, '', 'Disk', null, null, this.getTagsForStencil(gn, 'disk', dt).join(' ')),
  292. this.createVertexTemplateEntry(s + 'non-service_specific.forums;strokeColor=none;',
  293. 76, 73, '', 'Forums', null, null, this.getTagsForStencil(gn, 'forums', dt).join(' ')),
  294. this.createVertexTemplateEntry(s + 'non-service_specific.generic_database;strokeColor=none;',
  295. 44, 57, '', 'Generic Database', null, null, this.getTagsForStencil(gn, 'generic database', dt).join(' ')),
  296. this.createVertexTemplateEntry(s + 'non-service_specific.internet;strokeColor=none;',
  297. 70, 46, '', 'Internet', null, null, this.getTagsForStencil(gn, 'internet', dt).join(' ')),
  298. this.createVertexTemplateEntry(s + 'non-service_specific.management_console;strokeColor=none;',
  299. 57, 57, '', 'Management Console', null, null, this.getTagsForStencil(gn, 'management console', dt).join(' ')),
  300. this.createVertexTemplateEntry(s + 'non-service_specific.mobile_client;strokeColor=none;',
  301. 37, 57, '', 'Mobile Client', null, null, this.getTagsForStencil(gn, 'mobile client', dt).join(' ')),
  302. this.createVertexTemplateEntry(s + 'non-service_specific.multimedia;strokeColor=none;',
  303. 59, 57, '', 'Multimedia', null, null, this.getTagsForStencil(gn, 'multimedia', dt).join(' ')),
  304. this.createVertexTemplateEntry(s + 'non-service_specific.tape_storage;strokeColor=none;',
  305. 68, 38, '', 'Tape Storage', null, null, this.getTagsForStencil(gn, 'tape storage', dt).join(' ')),
  306. this.createVertexTemplateEntry(s + 'non-service_specific.traditional_server;strokeColor=none;',
  307. 41, 56, '', 'Traditional Server', null, null, this.getTagsForStencil(gn, 'traditional server', dt).join(' ')),
  308. this.createVertexTemplateEntry(s + 'non-service_specific.user;strokeColor=none;',
  309. 41, 56, '', 'User', null, null, this.getTagsForStencil(gn, 'user', dt).join(' ')),
  310. this.createVertexTemplateEntry(s + 'non-service_specific.users;strokeColor=none;',
  311. 58, 56, '', 'Users', null, null, this.getTagsForStencil(gn, 'users', dt).join(' ')),
  312. this.createVertexTemplateEntry(s + 'non-service_specific.virtual_private_cloud;strokeColor=none;',
  313. 70, 46, '', 'Virtual Private Cloud', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud', dt).join(' '))
  314. ]);
  315. };
  316. Sidebar.prototype.addAWSInternetOfThingsPalette = function()
  317. {
  318. var sb = this;
  319. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.internet_of_things.";
  320. var gn = 'mxgraph.aws.internetOfThings';
  321. var dt = 'aws group amazon web service internet of things iot';
  322. this.addPaletteFunctions('aws2Internet of Things', 'AWS / Internet of Things', false,
  323. [
  324. this.createVertexTemplateEntry(s + 'action;strokeColor=none;',
  325. 55, 57, '', 'Action', null, null, this.getTagsForStencil(gn, 'action', dt).join(' ')),
  326. this.createVertexTemplateEntry(s + 'actuator;strokeColor=none;',
  327. 68, 80, '', 'Actuator', null, null, this.getTagsForStencil(gn, 'actuator', dt).join(' ')),
  328. this.createVertexTemplateEntry(s + 'aws-iot;strokeColor=none;',
  329. 60, 72, '', 'AWS IOT', null, null, this.getTagsForStencil(gn, 'aws iot', dt).join(' ')),
  330. this.createVertexTemplateEntry(s + 'bank;strokeColor=none;',
  331. 71, 71, '', 'Bank', null, null, this.getTagsForStencil(gn, 'bank', dt).join(' ')),
  332. this.createVertexTemplateEntry(s + 'bicycle;strokeColor=none;',
  333. 71, 71, '', 'Bicycle', null, null, this.getTagsForStencil(gn, 'bicycle', dt).join(' ')),
  334. this.createVertexTemplateEntry(s + 'camera;strokeColor=none;',
  335. 71, 71, '', 'Camera', null, null, this.getTagsForStencil(gn, 'camera', dt).join(' ')),
  336. this.createVertexTemplateEntry(s + 'car;strokeColor=none;',
  337. 71, 71, '', 'Car', null, null, this.getTagsForStencil(gn, 'car', dt).join(' ')),
  338. this.createVertexTemplateEntry(s + 'cart;strokeColor=none;',
  339. 71, 71, '', 'Cart', null, null, this.getTagsForStencil(gn, 'cart', dt).join(' ')),
  340. this.createVertexTemplateEntry(s + 'certificate;strokeColor=none;',
  341. 56, 77, '', 'Certificate', null, null, this.getTagsForStencil(gn, 'certificate', dt).join(' ')),
  342. this.createVertexTemplateEntry(s + 'coffee_pot;strokeColor=none;',
  343. 71, 71, '', 'Coffee Pot', null, null, this.getTagsForStencil(gn, 'coffee pot', dt).join(' ')),
  344. this.createVertexTemplateEntry(s + 'desired_state;strokeColor=none;',
  345. 53, 57, '', 'Desired State', null, null, this.getTagsForStencil(gn, 'desired_state', dt).join(' ')),
  346. this.createVertexTemplateEntry(s + 'door_lock;strokeColor=none;',
  347. 71, 71, '', 'Door Lock', null, null, this.getTagsForStencil(gn, 'door lock', dt).join(' ')),
  348. this.createVertexTemplateEntry(s + 'factory;strokeColor=none;',
  349. 71, 71, '', 'Factory', null, null, this.getTagsForStencil(gn, 'factory', dt).join(' ')),
  350. this.createVertexTemplateEntry(s + 'generic_iot_thing;strokeColor=none;',
  351. 71, 71, '', 'Generic IOT Thing', null, null, this.getTagsForStencil(gn, 'generic iot thing', dt).join(' ')),
  352. this.createVertexTemplateEntry(s + 'hardware_board;strokeColor=none;',
  353. 75, 87, '', 'Hardware Board', null, null, this.getTagsForStencil(gn, 'hardware_board', dt).join(' ')),
  354. this.createVertexTemplateEntry(s + 'house;strokeColor=none;',
  355. 71, 71, '', 'House', null, null, this.getTagsForStencil(gn, 'house', dt).join(' ')),
  356. this.createVertexTemplateEntry(s + 'http_protocol;strokeColor=none;',
  357. 56, 59, '', 'HTTP Protocol', null, null, this.getTagsForStencil(gn, 'http protocol', dt).join(' ')),
  358. this.createVertexTemplateEntry(s + 'http2_protocol;strokeColor=none;',
  359. 56, 59, '', 'HTTP2 Protocol', null, null, this.getTagsForStencil(gn, 'http2 protocol', dt).join(' ')),
  360. this.createVertexTemplateEntry(s + 'lightbulb;strokeColor=none;',
  361. 71, 71, '', 'Lightbulb', null, null, this.getTagsForStencil(gn, 'lightbulb', dt).join(' ')),
  362. this.createVertexTemplateEntry(s + 'medical_emergency;strokeColor=none;',
  363. 71, 71, '', 'Medical Emergency', null, null, this.getTagsForStencil(gn, 'medical_emergency', dt).join(' ')),
  364. this.createVertexTemplateEntry(s + 'mqtt_protocol;strokeColor=none;',
  365. 56, 59, '', 'MQTT Protocol', null, null, this.getTagsForStencil(gn, 'mqtt protocol', dt).join(' ')),
  366. this.createVertexTemplateEntry(s + 'police_emergency;strokeColor=none;',
  367. 71, 71, '', 'Police Emergency', null, null, this.getTagsForStencil(gn, 'police_emergency', dt).join(' ')),
  368. this.createVertexTemplateEntry(s + 'policy;strokeColor=none;',
  369. 49, 79, '', 'Policy', null, null, this.getTagsForStencil(gn, 'policy', dt).join(' ')),
  370. this.createVertexTemplateEntry(s + 'reported_state;strokeColor=none;',
  371. 53, 57, '', 'Reported State', null, null, this.getTagsForStencil(gn, 'reported_state', dt).join(' ')),
  372. this.createVertexTemplateEntry(s + 'rule;strokeColor=none;',
  373. 44, 87, '', 'Rule', null, null, this.getTagsForStencil(gn, 'rule', dt).join(' ')),
  374. this.createVertexTemplateEntry(s + 'sensor;strokeColor=none;',
  375. 68, 80, '', 'Sensor', null, null, this.getTagsForStencil(gn, 'sensor', dt).join(' ')),
  376. this.createVertexTemplateEntry(s + 'servo;strokeColor=none;',
  377. 75, 53, '', 'Servo', null, null, this.getTagsForStencil(gn, 'servo', dt).join(' ')),
  378. this.createVertexTemplateEntry(s + 'shadow;strokeColor=none;',
  379. 75, 80, '', 'Shadow', null, null, this.getTagsForStencil(gn, 'shadow', dt).join(' ')),
  380. this.createVertexTemplateEntry(s + 'simulator;strokeColor=none;',
  381. 67, 70, '', 'Simulator', null, null, this.getTagsForStencil(gn, 'simulator', dt).join(' ')),
  382. this.createVertexTemplateEntry(s + 'thermostat;strokeColor=none;',
  383. 71, 71, '', 'Thermostat', null, null, this.getTagsForStencil(gn, 'thermostat', dt).join(' ')),
  384. this.createVertexTemplateEntry(s + 'topic;strokeColor=none;',
  385. 44, 59, '', 'Topic', null, null, this.getTagsForStencil(gn, 'topic', dt).join(' ')),
  386. this.createVertexTemplateEntry(s + 'travel;strokeColor=none;',
  387. 71, 71, '', 'Travel', null, null, this.getTagsForStencil(gn, 'travel', dt).join(' ')),
  388. this.createVertexTemplateEntry(s + 'utility;strokeColor=none;',
  389. 71, 71, '', 'Utility', null, null, this.getTagsForStencil(gn, 'utility', dt).join(' ')),
  390. this.createVertexTemplateEntry(s + 'windfarm;strokeColor=none;',
  391. 71, 71, '', 'Windfarm', null, null, this.getTagsForStencil(gn, 'windfarm', dt).join(' '))
  392. ]);
  393. };
  394. Sidebar.prototype.addAWSManagementToolsPalette = function()
  395. {
  396. var sb = this;
  397. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  398. var gn = 'mxgraph.aws.managementTools';
  399. var dt = 'aws group amazon web service management tools';
  400. this.addPaletteFunctions('aws2Management Tools', 'AWS / Management Tools', false,
  401. [
  402. this.createVertexTemplateEntry(s + 'deployment_and_management.cloudformation;strokeColor=none;',
  403. 59, 72, '', 'CloudFormation', null, null, this.getTagsForStencil(gn, 'cloudformation', dt).join(' ')),
  404. this.createVertexTemplateEntry(s + 'deployment_and_management.cloudformation_stack;strokeColor=none;',
  405. 64, 49, '', 'CloudFormation Stack', null, null, this.getTagsForStencil(gn, 'cloudformation stack', dt).join(' ')),
  406. this.createVertexTemplateEntry(s + 'deployment_and_management.cloudformation_template;strokeColor=none;',
  407. 48, 56, '', 'CloudFormation Template', null, null, this.getTagsForStencil(gn, 'cloudformation template', dt).join(' ')),
  408. this.createVertexTemplateEntry(s + 'deployment_and_management.cloudtrail;strokeColor=none;',
  409. 59, 72, '', 'CloudTrail', null, null, this.getTagsForStencil(gn, 'cloudtrail', dt).join(' ')),
  410. this.createVertexTemplateEntry(s + 'deployment_and_management.cloudwatch;strokeColor=none;',
  411. 63, 72, '', 'CloudWatch', null, null, this.getTagsForStencil(gn, 'cloudwatch', dt).join(' ')),
  412. this.createVertexTemplateEntry(s + 'deployment_and_management.cloudwatch_alarm;strokeColor=none;',
  413. 48, 58, '', 'CloudWatch Alarm', null, null, this.getTagsForStencil(gn, 'cloudwatch alarm', dt).join(' ')),
  414. this.createVertexTemplateEntry(s + 'administration_and_security.config;strokeColor=none;',
  415. 59, 72, '', 'Config', null, null, this.getTagsForStencil(gn, 'config', dt).join(' ')),
  416. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks;strokeColor=none;',
  417. 59, 72, '', 'OpsWorks', null, null, this.getTagsForStencil(gn, 'opsworks', dt).join(' ')),
  418. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_apps;strokeColor=none;',
  419. 72, 72, '', 'OpsWorks Apps', null, null, this.getTagsForStencil(gn, 'opsworks apps', dt).join(' ')),
  420. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_deployments;strokeColor=none;',
  421. 72, 68, '', 'OpsWorks Deployments', null, null, this.getTagsForStencil(gn, 'opsworks deployments', dt).join(' ')),
  422. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_instances;strokeColor=none;',
  423. 72, 72, '', 'OpsWorks Instances', null, null, this.getTagsForStencil(gn, 'opsworks instances', dt).join(' ')),
  424. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_layers;strokeColor=none;',
  425. 72, 72, '', 'OpsWorks Layers', null, null, this.getTagsForStencil(gn, 'opsworks layers', dt).join(' ')),
  426. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_monitoring;strokeColor=none;',
  427. 72, 60, '', 'OpsWorks Monitoring', null, null, this.getTagsForStencil(gn, 'opsworks monitoring', dt).join(' ')),
  428. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_permissions;strokeColor=none;',
  429. 59, 72, '', 'OpsWorks Permissions', null, null, this.getTagsForStencil(gn, 'opsworks permissions', dt).join(' ')),
  430. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_resources;strokeColor=none;',
  431. 59, 72, '', 'OpsWorks Resources', null, null, this.getTagsForStencil(gn, 'opsworks resources', dt).join(' ')),
  432. this.createVertexTemplateEntry(s + 'deployment_and_management.opsworks_stack;strokeColor=none;',
  433. 60, 70, '', 'OpsWorks Stack', null, null, this.getTagsForStencil(gn, 'opsworks stack', dt).join(' ')),
  434. this.createVertexTemplateEntry(s + 'management_tools.service_catalog;strokeColor=none;',
  435. 60, 70, '', 'Service Catalog', null, null, this.getTagsForStencil(gn, 'service catalog', dt).join(' ')),
  436. this.createVertexTemplateEntry(s + 'administration_and_security.trusted_advisor;strokeColor=none;',
  437. 60, 72, '', 'Trusted Advisor', null, null, this.getTagsForStencil(gn, 'trusted advisor', dt).join(' '))
  438. ]);
  439. };
  440. Sidebar.prototype.addAWSMobileServicesPalette = function()
  441. {
  442. var sb = this;
  443. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  444. var gn = 'mxgraph.aws.mobileServices';
  445. var dt = 'aws group amazon web service mobile services';
  446. this.addPaletteFunctions('aws2Mobile Services', 'AWS / Mobile Services', false,
  447. [
  448. this.createVertexTemplateEntry(s + 'mobile_services.aws_mobile_hub;strokeColor=none;',
  449. 83, 86, '', 'AWS Mobile Hub', null, null, this.getTagsForStencil(gn, 'aws mobile hub', dt).join(' ')),
  450. this.createVertexTemplateEntry(s + 'mobile_services.cognito;strokeColor=none;',
  451. 59, 72, '', 'Cognito', null, null, this.getTagsForStencil(gn, 'cognito', dt).join(' ')),
  452. this.createVertexTemplateEntry(s + 'mobile_services.device_farm;strokeColor=none;',
  453. 68, 82, '', 'Device Farm', null, null, this.getTagsForStencil(gn, 'device farm', dt).join(' ')),
  454. this.createVertexTemplateEntry(s + 'mobile_services.mobile_analytics;strokeColor=none;',
  455. 70, 72, '', 'Mobile Analytics', null, null, this.getTagsForStencil(gn, 'mobile analytics', dt).join(' ')),
  456. this.createVertexTemplateEntry(s + 'mobile_services.sns;strokeColor=none;',
  457. 69, 69, '', 'SNS', null, null, this.getTagsForStencil(gn, 'sns', dt).join(' ')),
  458. this.createVertexTemplateEntry(s + 'mobile_services.sns_email_notification;strokeColor=none;',
  459. 90, 56, '', 'SNS Email Notification', null, null, this.getTagsForStencil(gn, 'sns email notification', dt).join(' ')),
  460. this.createVertexTemplateEntry(s + 'mobile_services.sns_http_notification;strokeColor=none;',
  461. 90, 56, '', 'SNS HTTP Notification', null, null, this.getTagsForStencil(gn, 'sns http notification', dt).join(' ')),
  462. this.createVertexTemplateEntry(s + 'mobile_services.sns_topic;strokeColor=none;',
  463. 90, 56, '', 'SNS Topic', null, null, this.getTagsForStencil(gn, 'sns topic', dt).join(' '))
  464. ]);
  465. };
  466. Sidebar.prototype.addAWSNetworkingPalette = function()
  467. {
  468. var sb = this;
  469. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  470. var gn = 'mxgraph.aws.networking';
  471. var dt = 'aws group amazon web service networking';
  472. this.addPaletteFunctions('aws2Networking', 'AWS / Networking', false,
  473. [
  474. this.createVertexTemplateEntry(s + 'compute_and_networking.aws_direct_connect;strokeColor=none;',
  475. 59, 72, '', 'Direct Connect', null, null, this.getTagsForStencil(gn, 'direct connect', dt).join(' ')),
  476. this.createVertexTemplateEntry(s + 'compute_and_networking.route_53;strokeColor=none;',
  477. 59, 72, '', 'Route 53', null, null, this.getTagsForStencil(gn, 'route 53', dt).join(' ')),
  478. this.createVertexTemplateEntry(s + 'compute_and_networking.route_53_hosted_zone;strokeColor=none;',
  479. 58, 56, '', 'Route 53 Hosted Zone', null, null, this.getTagsForStencil(gn, 'route 53 hosted zone', dt).join(' ')),
  480. this.createVertexTemplateEntry(s + 'compute_and_networking.route_53_route_table;strokeColor=none;',
  481. 66, 61, '', 'Route 53 Table', null, null, this.getTagsForStencil(gn, 'route 53 table', dt).join(' ')),
  482. this.createVertexTemplateEntry(s + 'compute_and_networking.vpc;strokeColor=none;',
  483. 59, 72, '', 'VPC', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud', dt).join(' ')),
  484. this.createVertexTemplateEntry(s + 'networking.vpc_customer_gateway;strokeColor=none;',
  485. 61, 64, '', 'VPC Customer Gateway', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud customer gateway', dt).join(' ')),
  486. this.createVertexTemplateEntry(s + 'networking.vpc_endpoints;strokeColor=none;',
  487. 61, 64, '', 'VPC Endpoints', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud endpoints', dt).join(' ')),
  488. this.createVertexTemplateEntry(s + 'networking.vpc_flowlogs;strokeColor=none;',
  489. 61, 64, '', 'VPC Flowlogs', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud flowlogs', dt).join(' ')),
  490. this.createVertexTemplateEntry(s + 'compute_and_networking.vpc_internet_gateway;strokeColor=none;',
  491. 55, 57, '', 'VPC Internet Gateway', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud internet gateway', dt).join(' ')),
  492. this.createVertexTemplateEntry(s + 'compute_and_networking.vpc_peering;strokeColor=none;',
  493. 55, 57, '', 'VPC Peering', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud peering', dt).join(' ')),
  494. this.createVertexTemplateEntry(s + 'networking.vpc_router;strokeColor=none;',
  495. 61, 64, '', 'VPC Router', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud router', dt).join(' ')),
  496. this.createVertexTemplateEntry(s + 'compute_and_networking.vpc_vpn_connection;strokeColor=none;',
  497. 52, 41, '', 'VPC VPN Connection', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud vpn connection', dt).join(' ')),
  498. this.createVertexTemplateEntry(s + 'compute_and_networking.vpc_vpn_gateway;strokeColor=none;',
  499. 55, 57, '', 'VPC VPN Gateway', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud vpn gateway', dt).join(' ')),
  500. this.createVertexTemplateEntry(s + 'networking.vpcnat_gateway;strokeColor=none;',
  501. 61, 64, '', 'VPCNAT Gateway', null, null, this.getTagsForStencil(gn, 'vpc virtual private cloud vpcnat gateway', dt).join(' '))
  502. ]);
  503. };
  504. Sidebar.prototype.addAWSOnDemandWorkforcePalette = function()
  505. {
  506. var sb = this;
  507. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  508. var gn = 'mxgraph.aws.on-demand_workforce';
  509. var dt = 'aws group amazon web service on demand workforce';
  510. this.addPaletteFunctions('aws2On-Demand Workforce', 'AWS / On-Demand Workforce', false,
  511. [
  512. this.createVertexTemplateEntry(s + 'on-demand_workforce.mechanical_turk;strokeColor=none;',
  513. 60, 72, '', 'Mechanical Turk', null, null, this.getTagsForStencil(gn, 'mechanical turk', dt).join(' ')),
  514. this.createVertexTemplateEntry(s + 'on-demand_workforce.mechanical_turk_assignment_task;strokeColor=none;',
  515. 41, 56, '', 'Mechanical Turk Assignment Task', null, null, this.getTagsForStencil(gn, 'mechanical turk assignment task', dt).join(' ')),
  516. this.createVertexTemplateEntry(s + 'on-demand_workforce.mechanical_turk_human_intelligence_tasks;strokeColor=none;',
  517. 46, 50, '', 'Mechanical Turk Human Intelligence Task (HIT)', null, null, this.getTagsForStencil(gn, 'mechanical turk human intelligence task hit', dt).join(' ')),
  518. this.createVertexTemplateEntry(s + 'on-demand_workforce.mechanical_turk_requester;strokeColor=none;',
  519. 49, 57, '', 'Mechanical Turk Requester', null, null, this.getTagsForStencil(gn, 'mechanical turk requester', dt).join(' ')),
  520. this.createVertexTemplateEntry(s + 'on-demand_workforce.mechanical_turk_workers;strokeColor=none;',
  521. 59, 57, '', 'Mechanical Turk Workers', null, null, this.getTagsForStencil(gn, 'mechanical turk workers', dt).join(' '))
  522. ]);
  523. };
  524. Sidebar.prototype.addAWSSDKPalette = function()
  525. {
  526. var sb = this;
  527. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  528. var gn = 'mxgraph.aws.sdks';
  529. var dt = 'aws group amazon web service sdk softvare development kit';
  530. this.addPaletteFunctions('aws2SDKs', 'AWS / SDKs', false,
  531. [
  532. this.createVertexTemplateEntry(s + 'sdks.android;strokeColor=none;',
  533. 62, 72, '', 'Android', null, null, this.getTagsForStencil(gn, 'android', dt).join(' ')),
  534. this.createVertexTemplateEntry(s + 'sdks.cli;strokeColor=none;',
  535. 62, 72, '', 'CLI', null, null, this.getTagsForStencil(gn, 'cli', dt).join(' ')),
  536. this.createVertexTemplateEntry(s + 'sdks.aws_toolkit_for_eclipse;strokeColor=none;',
  537. 62, 72, '', 'Toolkit for Eclipse', null, null, this.getTagsForStencil(gn, 'toolkit eclipse', dt).join(' ')),
  538. this.createVertexTemplateEntry(s + 'sdks.aws_toolkit_for_visual_studio;strokeColor=none;',
  539. 62, 72, '', 'Toolkit for Visual Studio', null, null, this.getTagsForStencil(gn, 'toolkit visual studio', dt).join(' ')),
  540. this.createVertexTemplateEntry(s + 'sdks.tools_for_windows_powershell;strokeColor=none;',
  541. 62, 72, '', 'Tools for Windows PowerShell', null, null, this.getTagsForStencil(gn, 'tools windows powershell', dt).join(' ')),
  542. this.createVertexTemplateEntry(s + 'sdks.ios;strokeColor=none;',
  543. 62, 72, '', 'iOS', null, null, this.getTagsForStencil(gn, 'ios', dt).join(' ')),
  544. this.createVertexTemplateEntry(s + 'sdks.java;strokeColor=none;',
  545. 62, 72, '', 'Java', null, null, this.getTagsForStencil(gn, 'java', dt).join(' ')),
  546. this.createVertexTemplateEntry(s + 'sdks.javascript;strokeColor=none;',
  547. 62, 72, '', 'JavaScript', null, null, this.getTagsForStencil(gn, 'javascript', dt).join(' ')),
  548. this.createVertexTemplateEntry(s + 'sdks.net;strokeColor=none;',
  549. 62, 72, '', 'Net', null, null, this.getTagsForStencil(gn, 'net', dt).join(' ')),
  550. this.createVertexTemplateEntry(s + 'sdks.nodejs;strokeColor=none;',
  551. 62, 72, '', 'NodeJS', null, null, this.getTagsForStencil(gn, 'nodejs', dt).join(' ')),
  552. this.createVertexTemplateEntry(s + 'sdks.php;strokeColor=none;',
  553. 62, 72, '', 'PHP', null, null, this.getTagsForStencil(gn, 'php', dt).join(' ')),
  554. this.createVertexTemplateEntry(s + 'sdks.python;strokeColor=none;',
  555. 62, 72, '', 'Python', null, null, this.getTagsForStencil(gn, 'python', dt).join(' ')),
  556. this.createVertexTemplateEntry(s + 'sdks.ruby;strokeColor=none;',
  557. 62, 72, '', 'Ruby', null, null, this.getTagsForStencil(gn, 'ruby', dt).join(' ')),
  558. this.createVertexTemplateEntry(s + 'sdks.xamarin;strokeColor=none;',
  559. 62, 72, '', 'Xamarin', null, null, this.getTagsForStencil(gn, 'xamarin', dt).join(' '))
  560. ]);
  561. };
  562. Sidebar.prototype.addAWSSecurityAndIdentityPalette = function()
  563. {
  564. var sb = this;
  565. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  566. var gn = 'mxgraph.aws.securityAndIdentity';
  567. var dt = 'aws group amazon web service security identity';
  568. this.addPaletteFunctions('aws2Security and Identity', 'AWS / Security and Identity', false,
  569. [
  570. this.createVertexTemplateEntry(s + 'security_and_identity.acm;strokeColor=none;',
  571. 68, 55, '', 'ACM', null, null, this.getTagsForStencil(gn, 'acm', dt).join(' ')),
  572. this.createVertexTemplateEntry(s + 'security_and_identity.acm_certificate_manager;strokeColor=none;',
  573. 65, 56, '', 'ACM Certificate Manager', null, null, this.getTagsForStencil(gn, 'acm certificate manager', dt).join(' ')),
  574. this.createVertexTemplateEntry(s + 'security_and_identity.service_catalog;strokeColor=none;',
  575. 68, 82, '', 'Inspector', null, null, this.getTagsForStencil(gn, 'service catalog', dt).join(' ')),
  576. this.createVertexTemplateEntry(s + 'security_and_identity.cloud_hsm;strokeColor=none;',
  577. 60, 72, '', 'Cloud HSM', null, null, this.getTagsForStencil(gn, 'cloud hsm', dt).join(' ')),
  578. this.createVertexTemplateEntry(s + 'security_and_identity.directory_service;strokeColor=none;',
  579. 60, 72, '', 'Directory Service', null, null, this.getTagsForStencil(gn, 'directory service', dt).join(' ')),
  580. this.createVertexTemplateEntry(s + 'deployment_and_management.iam;strokeColor=none;',
  581. 37, 72, '', 'IAM', null, null, this.getTagsForStencil(gn, 'iam', dt).join(' ')),
  582. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_add-on;strokeColor=none;',
  583. 44, 24, '', 'IAM Add-on', null, null, this.getTagsForStencil(gn, 'iam addon add on', dt).join(' ')),
  584. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_sts;strokeColor=none;',
  585. 54, 31, '', 'IAM Security Token Service', null, null, this.getTagsForStencil(gn, 'iam sts security token service', dt).join(' ')),
  586. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_security_token_service;strokeColor=none;',
  587. 40, 55, '', 'IAM Security Token Service', null, null, this.getTagsForStencil(gn, 'iam sts security token service', dt).join(' ')),
  588. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_data_encryption_key;strokeColor=none;',
  589. 40, 53, '', 'IAM Data Encryption Key', null, null, this.getTagsForStencil(gn, 'iam data encryption key', dt).join(' ')),
  590. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_encrypted_data;strokeColor=none;',
  591. 38, 49, '', 'IAM Encrypted Data', null, null, this.getTagsForStencil(gn, 'iam encrypted data', dt).join(' ')),
  592. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_credentials;strokeColor=none;',
  593. 53, 39, '', 'IAM Long Term Security Credential', null, null, this.getTagsForStencil(gn, 'iam long term security credential', dt).join(' ')),
  594. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_mfa_token;strokeColor=none;',
  595. 53, 53, '', 'IAM MFA Token', null, null, this.getTagsForStencil(gn, 'iam mfa token', dt).join(' ')),
  596. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_permissions;strokeColor=none;',
  597. 42, 57, '', 'IAM Permissions', null, null, this.getTagsForStencil(gn, 'iam permissions', dt).join(' ')),
  598. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_roles;strokeColor=none;',
  599. 84, 72, '', 'IAM Role', null, null, this.getTagsForStencil(gn, 'iam role', dt).join(' ')),
  600. this.createVertexTemplateEntry(s + 'deployment_and_management.iam_short_term_credentials;strokeColor=none;',
  601. 61, 49, '', 'IAM Temporary Security Credential', null, null, this.getTagsForStencil(gn, 'iam temporary security credential', dt).join(' ')),
  602. this.createVertexTemplateEntry(s + 'security_and_identity.key_management_service;strokeColor=none;',
  603. 68, 82, '', 'Key Management Service', null, null, this.getTagsForStencil(gn, 'key management service', dt).join(' ')),
  604. this.createVertexTemplateEntry(s + 'security_and_identity.webapp_firewall;strokeColor=none;',
  605. 68, 82, '', 'WebApp Firewall', null, null, this.getTagsForStencil(gn, 'webapp firewall', dt).join(' '))
  606. ]);
  607. };
  608. Sidebar.prototype.addAWSStorageAndContentDeliveryPalette = function()
  609. {
  610. var sb = this;
  611. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws2.";
  612. var gn = 'mxgraph.aws.storageAndContentDelivery';
  613. var dt = 'aws group amazon web service storage content delivery';
  614. this.addPaletteFunctions('aws2Storage and Content Delivery', 'AWS / Storage and Content Delivery', false,
  615. [
  616. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.cloudfront;strokeColor=none;',
  617. 59, 72, '', 'CloudFront', null, null, this.getTagsForStencil(gn, 'cloudfront', dt).join(' ')),
  618. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.cloudfront_download_distribution;strokeColor=none;',
  619. 55, 57, '', 'CloudFront Download Distribution', null, null, this.getTagsForStencil(gn, 'cloudfront download distribution', dt).join(' ')),
  620. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.cloudfront_edge_location;strokeColor=none;',
  621. 55, 57, '', 'CloudFront Edge Location', null, null, this.getTagsForStencil(gn, 'cloudfront edge location', dt).join(' ')),
  622. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.cloudfront_streaming_distribution;strokeColor=none;',
  623. 55, 57, '', 'CloudFront Streaming Distribution', null, null, this.getTagsForStencil(gn, 'cloudfront streaming distribution', dt).join(' ')),
  624. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.efs;strokeColor=none;',
  625. 60, 72, '', 'EFS', null, null, this.getTagsForStencil(gn, 'efs', dt).join(' ')),
  626. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.ebs;strokeColor=none;',
  627. 46, 66, '', 'Elastic Block Store', null, null, this.getTagsForStencil(gn, 'ebs elastic block store', dt).join(' ')),
  628. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.glacier;strokeColor=none;',
  629. 59, 71, '', 'Glacier', null, null, this.getTagsForStencil(gn, 'glacier', dt).join(' ')),
  630. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.glacier_archive;strokeColor=none;',
  631. 56, 66, '', 'Glacier Archive', null, null, this.getTagsForStencil(gn, 'glacier archive', dt).join(' ')),
  632. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.glacier_vault;strokeColor=none;',
  633. 46, 66, '', 'Glacier Vault', null, null, this.getTagsForStencil(gn, 'glacier vault', dt).join(' ')),
  634. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.aws_import_export;strokeColor=none;',
  635. 57, 56, '', 'Import Export', null, null, this.getTagsForStencil(gn, 'aws import export', dt).join(' ')),
  636. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.snowball;strokeColor=none;',
  637. 68, 82, '', 'Import Export Snowball', null, null, this.getTagsForStencil(gn, 'snowball', dt).join(' ')),
  638. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.s3;strokeColor=none;',
  639. 59, 72, '', 'S3', null, null, this.getTagsForStencil(gn, 's3', dt).join(' ')),
  640. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.s3_bucket;strokeColor=none;',
  641. 54, 56, '', 'S3 Bucket', null, null, this.getTagsForStencil(gn, 's3 bucket', dt).join(' ')),
  642. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.s3_bucket_with_objects;strokeColor=none;',
  643. 55, 56, '', 'S3 Bucket with Objects', null, null, this.getTagsForStencil(gn, 's3 bucket with objects', dt).join(' ')),
  644. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.s3_objects;strokeColor=none;',
  645. 37, 40, '', 'S3 Objects', null, null, this.getTagsForStencil(gn, 's3 objects', dt).join(' ')),
  646. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.ebs_snapshot;strokeColor=none;',
  647. 53, 65, '', 'Snapshot', null, null, this.getTagsForStencil(gn, 'snapshot', dt).join(' ')),
  648. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.aws_storage_gateway;strokeColor=none;',
  649. 59, 72, '', 'Storage Gateway', null, null, this.getTagsForStencil(gn, 'storage gateway', dt).join(' ')),
  650. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.storage_gateway_cached_volumn;strokeColor=none;',
  651. 52, 66, '', 'Storage Gateway Cached Volume', null, null, this.getTagsForStencil(gn, 'storage gateway cached volume', dt).join(' ')),
  652. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.storage_gateway_non-cached_volumn;strokeColor=none;',
  653. 52, 66, '', 'Storage Gateway Non-Cached Volume', null, null, this.getTagsForStencil(gn, 'storage gateway non cached volume', dt).join(' ')),
  654. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.storage_gateway_virtual_tape_library;strokeColor=none;',
  655. 52, 66, '', 'Storage Gateway Virtual Tape Library', null, null, this.getTagsForStencil(gn, 'storage gateway virtual tape library', dt).join(' ')),
  656. this.createVertexTemplateEntry(s + 'storage_and_content_delivery.ebs_volume;strokeColor=none;',
  657. 46, 66, '', 'Volume', null, null, this.getTagsForStencil(gn, 'volume', dt).join(' '))
  658. ]);
  659. };
  660. Sidebar.prototype.addAWSGroupPalette = function()
  661. {
  662. var sb = this;
  663. var s = 'dashed=0;html=1;' + mxConstants.STYLE_SHAPE + "=mxgraph.aws.groups.";
  664. var gn = 'mxgraph.aws.groups';
  665. var dt = 'aws group amazon web service ';
  666. this.addPaletteFunctions('aws2Groups', 'AWS / Groups', false,
  667. [
  668. this.createVertexTemplateEntry(s + 'auto_scaling_group;fillColor=none;gradientColor=none;',
  669. 200, 200, '', 'Auto Scaling Group', null, null, this.getTagsForStencil(gn, 'auto_scaling_group', dt).join(' ')),
  670. this.createVertexTemplateEntry(s + 'availability_zone;strokeColor=#f69721;fillColor=none;gradientColor=none;',
  671. 200, 200, '', 'Availability Zone', null, null, this.getTagsForStencil(gn, 'availability_zone', dt).join(' ')),
  672. this.addEntry(dt + 'cloud', function()
  673. {
  674. var bg1 = new mxCell('', new mxGeometry(0, 30, 200, 200), s + 'rrect;fillColor=none;gradientColor=none;');
  675. bg1.vertex = true;
  676. var bg2 = new mxCell('', new mxGeometry(10, 0, 70, 40), s + 'aws_cloud_icon;strokeColor=none;fillColor=#F69721;gradientColor=none;');
  677. bg2.vertex = true;
  678. return sb.createVertexTemplateFromCells([bg1, bg2], 200, 230, 'AWS Cloud');
  679. }),
  680. this.addEntry(dt + 'corporate data center', function()
  681. {
  682. var bg1 = new mxCell('', new mxGeometry(0, 20, 200, 200), s + 'rrect;fillColor=none;gradientColor=none;');
  683. bg1.vertex = true;
  684. var bg2 = new mxCell('', new mxGeometry(20, 0, 30, 40), s + 'corporate_data_center_icon;strokeColor=none;fillColor=#6D6F70;gradientColor=none;');
  685. bg2.vertex = true;
  686. return sb.createVertexTemplateFromCells([bg1, bg2], 200, 220, 'Corporate Data Center');
  687. }),
  688. this.addEntry(dt + 'ec2 instance content', function()
  689. {
  690. var bg1 = new mxCell('', new mxGeometry(0, 20, 200, 200), s + 'rrect;fillColor=none;gradientColor=none;');
  691. bg1.vertex = true;
  692. var bg2 = new mxCell('', new mxGeometry(20, 0, 40, 40), s + 'rrect;strokeColor=none;fillColor=#F69721;gradientColor=none;');
  693. bg2.vertex = true;
  694. return sb.createVertexTemplateFromCells([bg1, bg2], 200, 220, 'EC2 Instance Contents');
  695. }),
  696. this.addEntry(dt + 'EC2 Spot Fleet', function()
  697. {
  698. var bg1 = new mxCell('', new mxGeometry(0, 30, 200, 200), s + 'rrect;fillColor=none;gradientColor=none;');
  699. bg1.vertex = true;
  700. var bg2 = new mxCell('', new mxGeometry(20, 0, 43, 40), s + 'ec2_spot_instance;strokeColor=none;gradientColor=none;');
  701. bg2.vertex = true;
  702. return sb.createVertexTemplateFromCells([bg1, bg2], 200, 230, 'EC2 Spot Fleet');
  703. }),
  704. this.addEntry(dt + 'elastic beanstalk container', function()
  705. {
  706. var bg1 = new mxCell('', new mxGeometry(0, 20, 200, 200), s + 'rrect;fillColor=none;gradientColor=none;');
  707. bg1.vertex = true;
  708. var bg2 = new mxCell('', new mxGeometry(20, 0, 40, 40), s + 'elastic_beanstalk_container_icon;strokeColor=none;fillColor=#2A6A35;gradientColor=none;');
  709. bg2.vertex = true;
  710. return sb.createVertexTemplateFromCells([bg1, bg2], 200, 220, 'Elastic Beanstalk Container');
  711. }),
  712. this.createVertexTemplateEntry(s + 'region;fillColor=none;gradientColor=none;',
  713. 200, 200, '', 'Region', null, null, this.getTagsForStencil(gn, 'region', dt).join(' ')),
  714. this.createVertexTemplateEntry(s + 'rrect;fillColor=none;gradientColor=none;',
  715. 200, 200, '', 'Security Group', null, null, this.getTagsForStencil(gn, 'security', dt).join(' ')),
  716. this.createVertexTemplateEntry(s + 'rrect;fillColor=#F2F2F2;gradientColor=none;',
  717. 200, 200, '', 'Server Contents', null, null, this.getTagsForStencil(gn, 'server content', dt).join(' ')),
  718. this.addEntry(dt + 'virtual private cloud', function()
  719. {
  720. var bg1 = new mxCell('', new mxGeometry(0, 30, 200, 200), s + 'rrect;fillColor=none;gradientColor=none;');
  721. bg1.vertex = true;
  722. var bg2 = new mxCell('', new mxGeometry(10, 0, 70, 40), s + 'virtual_private_cloud_icon;strokeColor=none;fillColor=#282560;gradientColor=none;');
  723. bg2.vertex = true;
  724. return sb.createVertexTemplateFromCells([bg1, bg2], 200, 230, 'Virtual Private Cloud');
  725. }),
  726. this.addEntry(dt + 'virtual private cloud subnet vpc', function()
  727. {
  728. var bg1 = new mxCell('', new mxGeometry(0, 30, 200, 200), s + 'rrect;fillColor=none;gradientColor=none;');
  729. bg1.vertex = true;
  730. var bg2 = new mxCell('', new mxGeometry(20, 0, 40, 40), s + 'vpc_subnet_icon;strokeColor=none;fillColor=#282560;gradientColor=none;');
  731. bg2.vertex = true;
  732. return sb.createVertexTemplateFromCells([bg1, bg2], 200, 230, 'VPC Subnet');
  733. })
  734. ]);
  735. };
  736. })();