@rio-cloud/cdk-v2-constructs 1.0.1-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/.gitattributes +15 -0
  2. package/.jsii +7832 -0
  3. package/.versionrc.json +14 -0
  4. package/API.md +8136 -0
  5. package/CHANGELOG.md +5 -0
  6. package/LICENSE +202 -0
  7. package/README.md +56 -0
  8. package/lib/datadog/datadogLogIndexMonitoring.d.ts +49 -0
  9. package/lib/datadog/datadogLogIndexMonitoring.js +116 -0
  10. package/lib/datadog/datadogMonitor.d.ts +13 -0
  11. package/lib/datadog/datadogMonitor.js +19 -0
  12. package/lib/datadog/index.d.ts +1 -0
  13. package/lib/datadog/index.js +19 -0
  14. package/lib/fargate/datadog.d.ts +18 -0
  15. package/lib/fargate/datadog.js +225 -0
  16. package/lib/fargate/rio-fargate-service.d.ts +276 -0
  17. package/lib/fargate/rio-fargate-service.js +147 -0
  18. package/lib/fargate/spring.d.ts +6 -0
  19. package/lib/fargate/spring.js +39 -0
  20. package/lib/index.d.ts +21 -0
  21. package/lib/index.js +34 -0
  22. package/lib/kafka/index.d.ts +2 -0
  23. package/lib/kafka/index.js +15 -0
  24. package/lib/kafka/kafka-event-spec.d.ts +43 -0
  25. package/lib/kafka/kafka-event-spec.js +106 -0
  26. package/lib/kafka/kafka-topic.d.ts +102 -0
  27. package/lib/kafka/kafka-topic.js +70 -0
  28. package/lib/pipeline/rio-backup-secrets-restore-stage.d.ts +40 -0
  29. package/lib/pipeline/rio-backup-secrets-restore-stage.js +104 -0
  30. package/lib/pipeline/rio-bitbucket-source-action.d.ts +25 -0
  31. package/lib/pipeline/rio-bitbucket-source-action.js +36 -0
  32. package/lib/rio-claidometer.d.ts +21 -0
  33. package/lib/rio-claidometer.js +39 -0
  34. package/lib/rio-landing-zone.d.ts +16 -0
  35. package/lib/rio-landing-zone.js +57 -0
  36. package/lib/rio-load-balancer.d.ts +26 -0
  37. package/lib/rio-load-balancer.js +42 -0
  38. package/lib/toggle.d.ts +21 -0
  39. package/lib/toggle.js +44 -0
  40. package/lib/watchful/alb.d.ts +47 -0
  41. package/lib/watchful/alb.js +52 -0
  42. package/lib/watchful/aspect.d.ts +16 -0
  43. package/lib/watchful/aspect.js +55 -0
  44. package/lib/watchful/cloudfront.d.ts +50 -0
  45. package/lib/watchful/cloudfront.js +65 -0
  46. package/lib/watchful/datadog-log-alarm.d.ts +37 -0
  47. package/lib/watchful/datadog-log-alarm.js +88 -0
  48. package/lib/watchful/datadog-metric-alarm.d.ts +32 -0
  49. package/lib/watchful/datadog-metric-alarm.js +158 -0
  50. package/lib/watchful/docdb.d.ts +62 -0
  51. package/lib/watchful/docdb.js +102 -0
  52. package/lib/watchful/dynamodb.d.ts +69 -0
  53. package/lib/watchful/dynamodb.js +87 -0
  54. package/lib/watchful/ecs.d.ts +50 -0
  55. package/lib/watchful/ecs.js +69 -0
  56. package/lib/watchful/lambda.d.ts +59 -0
  57. package/lib/watchful/lambda.js +65 -0
  58. package/lib/watchful/metric-alarm.d.ts +34 -0
  59. package/lib/watchful/metric-alarm.js +3 -0
  60. package/lib/watchful/rds.d.ts +47 -0
  61. package/lib/watchful/rds.js +47 -0
  62. package/lib/watchful/targetgroup.d.ts +47 -0
  63. package/lib/watchful/targetgroup.js +54 -0
  64. package/lib/watchful/upperToLower.d.ts +7 -0
  65. package/lib/watchful/upperToLower.js +35 -0
  66. package/lib/watchful/watchful.d.ts +119 -0
  67. package/lib/watchful/watchful.js +182 -0
  68. package/node_modules/argparse/CHANGELOG.md +216 -0
  69. package/node_modules/argparse/LICENSE +254 -0
  70. package/node_modules/argparse/README.md +84 -0
  71. package/node_modules/argparse/argparse.js +3707 -0
  72. package/node_modules/argparse/lib/sub.js +67 -0
  73. package/node_modules/argparse/lib/textwrap.js +440 -0
  74. package/node_modules/argparse/package.json +31 -0
  75. package/node_modules/js-yaml/CHANGELOG.md +616 -0
  76. package/node_modules/js-yaml/LICENSE +21 -0
  77. package/node_modules/js-yaml/README.md +246 -0
  78. package/node_modules/js-yaml/bin/js-yaml.js +126 -0
  79. package/node_modules/js-yaml/dist/js-yaml.js +3874 -0
  80. package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
  81. package/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
  82. package/node_modules/js-yaml/index.js +47 -0
  83. package/node_modules/js-yaml/lib/common.js +59 -0
  84. package/node_modules/js-yaml/lib/dumper.js +965 -0
  85. package/node_modules/js-yaml/lib/exception.js +55 -0
  86. package/node_modules/js-yaml/lib/loader.js +1727 -0
  87. package/node_modules/js-yaml/lib/schema/core.js +11 -0
  88. package/node_modules/js-yaml/lib/schema/default.js +22 -0
  89. package/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
  90. package/node_modules/js-yaml/lib/schema/json.js +19 -0
  91. package/node_modules/js-yaml/lib/schema.js +121 -0
  92. package/node_modules/js-yaml/lib/snippet.js +101 -0
  93. package/node_modules/js-yaml/lib/type/binary.js +125 -0
  94. package/node_modules/js-yaml/lib/type/bool.js +35 -0
  95. package/node_modules/js-yaml/lib/type/float.js +97 -0
  96. package/node_modules/js-yaml/lib/type/int.js +156 -0
  97. package/node_modules/js-yaml/lib/type/map.js +8 -0
  98. package/node_modules/js-yaml/lib/type/merge.js +12 -0
  99. package/node_modules/js-yaml/lib/type/null.js +35 -0
  100. package/node_modules/js-yaml/lib/type/omap.js +44 -0
  101. package/node_modules/js-yaml/lib/type/pairs.js +53 -0
  102. package/node_modules/js-yaml/lib/type/seq.js +8 -0
  103. package/node_modules/js-yaml/lib/type/set.js +29 -0
  104. package/node_modules/js-yaml/lib/type/str.js +8 -0
  105. package/node_modules/js-yaml/lib/type/timestamp.js +88 -0
  106. package/node_modules/js-yaml/lib/type.js +66 -0
  107. package/node_modules/js-yaml/package.json +66 -0
  108. package/package.json +126 -0
  109. package/release-commit-check.js +6 -0
  110. package/version.json +3 -0
@@ -0,0 +1,47 @@
1
+ 'use strict';
2
+
3
+
4
+ var loader = require('./lib/loader');
5
+ var dumper = require('./lib/dumper');
6
+
7
+
8
+ function renamed(from, to) {
9
+ return function () {
10
+ throw new Error('Function yaml.' + from + ' is removed in js-yaml 4. ' +
11
+ 'Use yaml.' + to + ' instead, which is now safe by default.');
12
+ };
13
+ }
14
+
15
+
16
+ module.exports.Type = require('./lib/type');
17
+ module.exports.Schema = require('./lib/schema');
18
+ module.exports.FAILSAFE_SCHEMA = require('./lib/schema/failsafe');
19
+ module.exports.JSON_SCHEMA = require('./lib/schema/json');
20
+ module.exports.CORE_SCHEMA = require('./lib/schema/core');
21
+ module.exports.DEFAULT_SCHEMA = require('./lib/schema/default');
22
+ module.exports.load = loader.load;
23
+ module.exports.loadAll = loader.loadAll;
24
+ module.exports.dump = dumper.dump;
25
+ module.exports.YAMLException = require('./lib/exception');
26
+
27
+ // Re-export all types in case user wants to create custom schema
28
+ module.exports.types = {
29
+ binary: require('./lib/type/binary'),
30
+ float: require('./lib/type/float'),
31
+ map: require('./lib/type/map'),
32
+ null: require('./lib/type/null'),
33
+ pairs: require('./lib/type/pairs'),
34
+ set: require('./lib/type/set'),
35
+ timestamp: require('./lib/type/timestamp'),
36
+ bool: require('./lib/type/bool'),
37
+ int: require('./lib/type/int'),
38
+ merge: require('./lib/type/merge'),
39
+ omap: require('./lib/type/omap'),
40
+ seq: require('./lib/type/seq'),
41
+ str: require('./lib/type/str')
42
+ };
43
+
44
+ // Removed functions from JS-YAML 3.0.x
45
+ module.exports.safeLoad = renamed('safeLoad', 'load');
46
+ module.exports.safeLoadAll = renamed('safeLoadAll', 'loadAll');
47
+ module.exports.safeDump = renamed('safeDump', 'dump');
@@ -0,0 +1,59 @@
1
+ 'use strict';
2
+
3
+
4
+ function isNothing(subject) {
5
+ return (typeof subject === 'undefined') || (subject === null);
6
+ }
7
+
8
+
9
+ function isObject(subject) {
10
+ return (typeof subject === 'object') && (subject !== null);
11
+ }
12
+
13
+
14
+ function toArray(sequence) {
15
+ if (Array.isArray(sequence)) return sequence;
16
+ else if (isNothing(sequence)) return [];
17
+
18
+ return [ sequence ];
19
+ }
20
+
21
+
22
+ function extend(target, source) {
23
+ var index, length, key, sourceKeys;
24
+
25
+ if (source) {
26
+ sourceKeys = Object.keys(source);
27
+
28
+ for (index = 0, length = sourceKeys.length; index < length; index += 1) {
29
+ key = sourceKeys[index];
30
+ target[key] = source[key];
31
+ }
32
+ }
33
+
34
+ return target;
35
+ }
36
+
37
+
38
+ function repeat(string, count) {
39
+ var result = '', cycle;
40
+
41
+ for (cycle = 0; cycle < count; cycle += 1) {
42
+ result += string;
43
+ }
44
+
45
+ return result;
46
+ }
47
+
48
+
49
+ function isNegativeZero(number) {
50
+ return (number === 0) && (Number.NEGATIVE_INFINITY === 1 / number);
51
+ }
52
+
53
+
54
+ module.exports.isNothing = isNothing;
55
+ module.exports.isObject = isObject;
56
+ module.exports.toArray = toArray;
57
+ module.exports.repeat = repeat;
58
+ module.exports.isNegativeZero = isNegativeZero;
59
+ module.exports.extend = extend;