Sidebar-AWS.js 55 KB

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