@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.
- package/.gitattributes +15 -0
- package/.jsii +7832 -0
- package/.versionrc.json +14 -0
- package/API.md +8136 -0
- package/CHANGELOG.md +5 -0
- package/LICENSE +202 -0
- package/README.md +56 -0
- package/lib/datadog/datadogLogIndexMonitoring.d.ts +49 -0
- package/lib/datadog/datadogLogIndexMonitoring.js +116 -0
- package/lib/datadog/datadogMonitor.d.ts +13 -0
- package/lib/datadog/datadogMonitor.js +19 -0
- package/lib/datadog/index.d.ts +1 -0
- package/lib/datadog/index.js +19 -0
- package/lib/fargate/datadog.d.ts +18 -0
- package/lib/fargate/datadog.js +225 -0
- package/lib/fargate/rio-fargate-service.d.ts +276 -0
- package/lib/fargate/rio-fargate-service.js +147 -0
- package/lib/fargate/spring.d.ts +6 -0
- package/lib/fargate/spring.js +39 -0
- package/lib/index.d.ts +21 -0
- package/lib/index.js +34 -0
- package/lib/kafka/index.d.ts +2 -0
- package/lib/kafka/index.js +15 -0
- package/lib/kafka/kafka-event-spec.d.ts +43 -0
- package/lib/kafka/kafka-event-spec.js +106 -0
- package/lib/kafka/kafka-topic.d.ts +102 -0
- package/lib/kafka/kafka-topic.js +70 -0
- package/lib/pipeline/rio-backup-secrets-restore-stage.d.ts +40 -0
- package/lib/pipeline/rio-backup-secrets-restore-stage.js +104 -0
- package/lib/pipeline/rio-bitbucket-source-action.d.ts +25 -0
- package/lib/pipeline/rio-bitbucket-source-action.js +36 -0
- package/lib/rio-claidometer.d.ts +21 -0
- package/lib/rio-claidometer.js +39 -0
- package/lib/rio-landing-zone.d.ts +16 -0
- package/lib/rio-landing-zone.js +57 -0
- package/lib/rio-load-balancer.d.ts +26 -0
- package/lib/rio-load-balancer.js +42 -0
- package/lib/toggle.d.ts +21 -0
- package/lib/toggle.js +44 -0
- package/lib/watchful/alb.d.ts +47 -0
- package/lib/watchful/alb.js +52 -0
- package/lib/watchful/aspect.d.ts +16 -0
- package/lib/watchful/aspect.js +55 -0
- package/lib/watchful/cloudfront.d.ts +50 -0
- package/lib/watchful/cloudfront.js +65 -0
- package/lib/watchful/datadog-log-alarm.d.ts +37 -0
- package/lib/watchful/datadog-log-alarm.js +88 -0
- package/lib/watchful/datadog-metric-alarm.d.ts +32 -0
- package/lib/watchful/datadog-metric-alarm.js +158 -0
- package/lib/watchful/docdb.d.ts +62 -0
- package/lib/watchful/docdb.js +102 -0
- package/lib/watchful/dynamodb.d.ts +69 -0
- package/lib/watchful/dynamodb.js +87 -0
- package/lib/watchful/ecs.d.ts +50 -0
- package/lib/watchful/ecs.js +69 -0
- package/lib/watchful/lambda.d.ts +59 -0
- package/lib/watchful/lambda.js +65 -0
- package/lib/watchful/metric-alarm.d.ts +34 -0
- package/lib/watchful/metric-alarm.js +3 -0
- package/lib/watchful/rds.d.ts +47 -0
- package/lib/watchful/rds.js +47 -0
- package/lib/watchful/targetgroup.d.ts +47 -0
- package/lib/watchful/targetgroup.js +54 -0
- package/lib/watchful/upperToLower.d.ts +7 -0
- package/lib/watchful/upperToLower.js +35 -0
- package/lib/watchful/watchful.d.ts +119 -0
- package/lib/watchful/watchful.js +182 -0
- package/node_modules/argparse/CHANGELOG.md +216 -0
- package/node_modules/argparse/LICENSE +254 -0
- package/node_modules/argparse/README.md +84 -0
- package/node_modules/argparse/argparse.js +3707 -0
- package/node_modules/argparse/lib/sub.js +67 -0
- package/node_modules/argparse/lib/textwrap.js +440 -0
- package/node_modules/argparse/package.json +31 -0
- package/node_modules/js-yaml/CHANGELOG.md +616 -0
- package/node_modules/js-yaml/LICENSE +21 -0
- package/node_modules/js-yaml/README.md +246 -0
- package/node_modules/js-yaml/bin/js-yaml.js +126 -0
- package/node_modules/js-yaml/dist/js-yaml.js +3874 -0
- package/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
- package/node_modules/js-yaml/index.js +47 -0
- package/node_modules/js-yaml/lib/common.js +59 -0
- package/node_modules/js-yaml/lib/dumper.js +965 -0
- package/node_modules/js-yaml/lib/exception.js +55 -0
- package/node_modules/js-yaml/lib/loader.js +1727 -0
- package/node_modules/js-yaml/lib/schema/core.js +11 -0
- package/node_modules/js-yaml/lib/schema/default.js +22 -0
- package/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
- package/node_modules/js-yaml/lib/schema/json.js +19 -0
- package/node_modules/js-yaml/lib/schema.js +121 -0
- package/node_modules/js-yaml/lib/snippet.js +101 -0
- package/node_modules/js-yaml/lib/type/binary.js +125 -0
- package/node_modules/js-yaml/lib/type/bool.js +35 -0
- package/node_modules/js-yaml/lib/type/float.js +97 -0
- package/node_modules/js-yaml/lib/type/int.js +156 -0
- package/node_modules/js-yaml/lib/type/map.js +8 -0
- package/node_modules/js-yaml/lib/type/merge.js +12 -0
- package/node_modules/js-yaml/lib/type/null.js +35 -0
- package/node_modules/js-yaml/lib/type/omap.js +44 -0
- package/node_modules/js-yaml/lib/type/pairs.js +53 -0
- package/node_modules/js-yaml/lib/type/seq.js +8 -0
- package/node_modules/js-yaml/lib/type/set.js +29 -0
- package/node_modules/js-yaml/lib/type/str.js +8 -0
- package/node_modules/js-yaml/lib/type/timestamp.js +88 -0
- package/node_modules/js-yaml/lib/type.js +66 -0
- package/node_modules/js-yaml/package.json +66 -0
- package/package.json +126 -0
- package/release-commit-check.js +6 -0
- 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;
|