terraform-cdk-serverless-github-actions-runner-controller 0.0.0 → 0.0.2

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/API.md CHANGED
@@ -2,6 +2,112 @@
2
2
 
3
3
  ## Constructs <a name="Constructs" id="Constructs"></a>
4
4
 
5
+ ### Aws <a name="Aws" id="terraform-cdk-serverless-github-actions-runner-controller.Aws"></a>
6
+
7
+ #### Initializers <a name="Initializers" id="terraform-cdk-serverless-github-actions-runner-controller.Aws.Initializer"></a>
8
+
9
+ ```typescript
10
+ import { Aws } from 'terraform-cdk-serverless-github-actions-runner-controller'
11
+
12
+ new Aws(scope: Construct, id: string)
13
+ ```
14
+
15
+ | **Name** | **Type** | **Description** |
16
+ | --- | --- | --- |
17
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Aws.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
18
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Aws.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
19
+
20
+ ---
21
+
22
+ ##### `scope`<sup>Required</sup> <a name="scope" id="terraform-cdk-serverless-github-actions-runner-controller.Aws.Initializer.parameter.scope"></a>
23
+
24
+ - *Type:* constructs.Construct
25
+
26
+ ---
27
+
28
+ ##### `id`<sup>Required</sup> <a name="id" id="terraform-cdk-serverless-github-actions-runner-controller.Aws.Initializer.parameter.id"></a>
29
+
30
+ - *Type:* string
31
+
32
+ ---
33
+
34
+ #### Methods <a name="Methods" id="Methods"></a>
35
+
36
+ | **Name** | **Description** |
37
+ | --- | --- |
38
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Aws.toString">toString</a></code> | Returns a string representation of this construct. |
39
+
40
+ ---
41
+
42
+ ##### `toString` <a name="toString" id="terraform-cdk-serverless-github-actions-runner-controller.Aws.toString"></a>
43
+
44
+ ```typescript
45
+ public toString(): string
46
+ ```
47
+
48
+ Returns a string representation of this construct.
49
+
50
+ #### Static Functions <a name="Static Functions" id="Static Functions"></a>
51
+
52
+ | **Name** | **Description** |
53
+ | --- | --- |
54
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Aws.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
55
+
56
+ ---
57
+
58
+ ##### `isConstruct` <a name="isConstruct" id="terraform-cdk-serverless-github-actions-runner-controller.Aws.isConstruct"></a>
59
+
60
+ ```typescript
61
+ import { Aws } from 'terraform-cdk-serverless-github-actions-runner-controller'
62
+
63
+ Aws.isConstruct(x: any)
64
+ ```
65
+
66
+ Checks if `x` is a construct.
67
+
68
+ Use this method instead of `instanceof` to properly detect `Construct`
69
+ instances, even when the construct library is symlinked.
70
+
71
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
72
+ disk are seen as independent, completely different libraries. As a
73
+ consequence, the class `Construct` in each copy of the `constructs` library
74
+ is seen as a different class, and an instance of one class will not test as
75
+ `instanceof` the other class. `npm install` will not create installations
76
+ like this, but users may manually symlink construct libraries together or
77
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
78
+ library can be accidentally installed, and `instanceof` will behave
79
+ unpredictably. It is safest to avoid using `instanceof`, and using
80
+ this type-testing method instead.
81
+
82
+ ###### `x`<sup>Required</sup> <a name="x" id="terraform-cdk-serverless-github-actions-runner-controller.Aws.isConstruct.parameter.x"></a>
83
+
84
+ - *Type:* any
85
+
86
+ Any object.
87
+
88
+ ---
89
+
90
+ #### Properties <a name="Properties" id="Properties"></a>
91
+
92
+ | **Name** | **Type** | **Description** |
93
+ | --- | --- | --- |
94
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Aws.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
95
+
96
+ ---
97
+
98
+ ##### `node`<sup>Required</sup> <a name="node" id="terraform-cdk-serverless-github-actions-runner-controller.Aws.property.node"></a>
99
+
100
+ ```typescript
101
+ public readonly node: Node;
102
+ ```
103
+
104
+ - *Type:* constructs.Node
105
+
106
+ The tree node.
107
+
108
+ ---
109
+
110
+
5
111
  ### Azure <a name="Azure" id="terraform-cdk-serverless-github-actions-runner-controller.Azure"></a>
6
112
 
7
113
  #### Initializers <a name="Initializers" id="terraform-cdk-serverless-github-actions-runner-controller.Azure.Initializer"></a>
@@ -108,6 +214,112 @@ The tree node.
108
214
  ---
109
215
 
110
216
 
217
+ ### Gcp <a name="Gcp" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp"></a>
218
+
219
+ #### Initializers <a name="Initializers" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp.Initializer"></a>
220
+
221
+ ```typescript
222
+ import { Gcp } from 'terraform-cdk-serverless-github-actions-runner-controller'
223
+
224
+ new Gcp(scope: Construct, id: string)
225
+ ```
226
+
227
+ | **Name** | **Type** | **Description** |
228
+ | --- | --- | --- |
229
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Gcp.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
230
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Gcp.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
231
+
232
+ ---
233
+
234
+ ##### `scope`<sup>Required</sup> <a name="scope" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp.Initializer.parameter.scope"></a>
235
+
236
+ - *Type:* constructs.Construct
237
+
238
+ ---
239
+
240
+ ##### `id`<sup>Required</sup> <a name="id" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp.Initializer.parameter.id"></a>
241
+
242
+ - *Type:* string
243
+
244
+ ---
245
+
246
+ #### Methods <a name="Methods" id="Methods"></a>
247
+
248
+ | **Name** | **Description** |
249
+ | --- | --- |
250
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Gcp.toString">toString</a></code> | Returns a string representation of this construct. |
251
+
252
+ ---
253
+
254
+ ##### `toString` <a name="toString" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp.toString"></a>
255
+
256
+ ```typescript
257
+ public toString(): string
258
+ ```
259
+
260
+ Returns a string representation of this construct.
261
+
262
+ #### Static Functions <a name="Static Functions" id="Static Functions"></a>
263
+
264
+ | **Name** | **Description** |
265
+ | --- | --- |
266
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Gcp.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
267
+
268
+ ---
269
+
270
+ ##### `isConstruct` <a name="isConstruct" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp.isConstruct"></a>
271
+
272
+ ```typescript
273
+ import { Gcp } from 'terraform-cdk-serverless-github-actions-runner-controller'
274
+
275
+ Gcp.isConstruct(x: any)
276
+ ```
277
+
278
+ Checks if `x` is a construct.
279
+
280
+ Use this method instead of `instanceof` to properly detect `Construct`
281
+ instances, even when the construct library is symlinked.
282
+
283
+ Explanation: in JavaScript, multiple copies of the `constructs` library on
284
+ disk are seen as independent, completely different libraries. As a
285
+ consequence, the class `Construct` in each copy of the `constructs` library
286
+ is seen as a different class, and an instance of one class will not test as
287
+ `instanceof` the other class. `npm install` will not create installations
288
+ like this, but users may manually symlink construct libraries together or
289
+ use a monorepo tool: in those cases, multiple copies of the `constructs`
290
+ library can be accidentally installed, and `instanceof` will behave
291
+ unpredictably. It is safest to avoid using `instanceof`, and using
292
+ this type-testing method instead.
293
+
294
+ ###### `x`<sup>Required</sup> <a name="x" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp.isConstruct.parameter.x"></a>
295
+
296
+ - *Type:* any
297
+
298
+ Any object.
299
+
300
+ ---
301
+
302
+ #### Properties <a name="Properties" id="Properties"></a>
303
+
304
+ | **Name** | **Type** | **Description** |
305
+ | --- | --- | --- |
306
+ | <code><a href="#terraform-cdk-serverless-github-actions-runner-controller.Gcp.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
307
+
308
+ ---
309
+
310
+ ##### `node`<sup>Required</sup> <a name="node" id="terraform-cdk-serverless-github-actions-runner-controller.Gcp.property.node"></a>
311
+
312
+ ```typescript
313
+ public readonly node: Node;
314
+ ```
315
+
316
+ - *Type:* constructs.Node
317
+
318
+ The tree node.
319
+
320
+ ---
321
+
322
+
111
323
 
112
324
 
113
325
 
@@ -3,12 +3,24 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const cdktf_1 = require("cdktf");
4
4
  require("cdktf/lib/testing/adapters/jest");
5
5
  const azure_1 = require("../lib/azure");
6
+ const gcp_1 = require("../lib/gcp");
7
+ const aws_1 = require("../lib/aws");
6
8
  // To learn more about testing see cdk.tf/testing
7
- describe("MyConstruct", () => {
8
- it("should synthesize", () => {
9
+ describe("Should synthesize snapshot for construct", () => {
10
+ it("Azure", () => {
9
11
  expect(cdktf_1.Testing.synthScope((scope) => {
10
- new azure_1.Azure(scope, "my-construct");
12
+ new azure_1.Azure(scope, "azure");
13
+ })).toMatchSnapshot();
14
+ });
15
+ it("Aws", () => {
16
+ expect(cdktf_1.Testing.synthScope((scope) => {
17
+ new aws_1.Aws(scope, "aws");
18
+ })).toMatchSnapshot();
19
+ });
20
+ it("Google", () => {
21
+ expect(cdktf_1.Testing.synthScope((scope) => {
22
+ new gcp_1.Gcp(scope, "google");
11
23
  })).toMatchSnapshot();
12
24
  });
13
25
  });
14
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXgtdGVzdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9fX3Rlc3RzX18vaW5kZXgtdGVzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGlDQUFnQztBQUNoQywyQ0FBeUM7QUFDekMsd0NBQXFDO0FBRXJDLGlEQUFpRDtBQUNqRCxRQUFRLENBQUMsYUFBYSxFQUFFLEdBQUcsRUFBRTtJQUMzQixFQUFFLENBQUMsbUJBQW1CLEVBQUUsR0FBRyxFQUFFO1FBQzNCLE1BQU0sQ0FDSixlQUFPLENBQUMsVUFBVSxDQUFDLENBQUMsS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3AgfSBmcm9tIFwiLi4vbGliL2djcFwiO1xuaW1wb3J0IHsgQXdzIH0gZnJvbSBcIi4uL2xpYi9hd3NcIjtcblxuLy8gVG8gbGVhcm4gbW9yZSBhYm91dCB0ZXN0aW5nIHNlZSBjZGsudGYvdGVzdGluZ1xuZGVzY3JpYmUoXCJTaG91bGQgc3ludGhlc2l6ZSBzbmFwc2hvdCBmb3IgY29uc3RydWN0XCIsICgpID0+IHtcbiAgaXQoXCJBenVyZVwiLCAoKSA9PiB7XG4gICAgZXhwZWN0KFxuICAgICAgVGVzdGluZy5zeW50aFNjb3BlKChzY29wZSkgPT4ge1xuICAgICAgICBuZXcgQXp1cmUoc2NvcGUsIFwiYXp1cmVcIik7XG4gICAgICB9KVxuICAgICkudG9NYXRjaFNuYXBzaG90KCk7XG4gIH0pO1xuXG4gIGl0KFwiQXdzXCIsICgpID0+IHtcbiAgICBleHBlY3QoXG4gICAgICBUZXN0aW5nLnN5bnRoU2NvcGUoKHNjb3BlKSA9PiB7XG4gICAgICAgIG5ldyBBd3Moc2NvcGUsIFwiYXdzXCIpO1xuICAgICAgfSlcbiAgICApLnRvTWF0Y2hTbmFwc2hvdCgpO1xuICB9KTtcblxuICBpdChcIkdvb2dsZVwiLCAoKSA9PiB7XG4gICAgZXhwZWN0KFxuICAgICAgVGVzdGluZy5zeW50aFNjb3BlKChzY29wZSkgPT4ge1xuICAgICAgICBuZXcgR2NwKHNjb3BlLCBcImdvb2dsZVwiKTtcbiAgICAgIH0pXG4gICAgKS50b01hdGNoU25hcHNob3QoKTtcbiAgfSk7XG59KTsiXX0=
package/lib/index.d.ts CHANGED
@@ -1 +1,3 @@
1
+ export * from './lib/aws';
1
2
  export * from './lib/azure';
3
+ export * from './lib/gcp';
package/lib/index.js CHANGED
@@ -14,5 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./lib/aws"), exports);
17
18
  __exportStar(require("./lib/azure"), exports);
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDhDQUEyQiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vbGliL2F6dXJlJ1xuIl19
19
+ __exportStar(require("./lib/gcp"), exports);
20
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztBQUFBLDRDQUF5QjtBQUN6Qiw4Q0FBMkI7QUFDM0IsNENBQXlCIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9saWIvYXdzJ1xuZXhwb3J0ICogZnJvbSAnLi9saWIvYXp1cmUnXG5leHBvcnQgKiBmcm9tICcuL2xpYi9nY3AnXG4iXX0=
@@ -0,0 +1,4 @@
1
+ import { Construct } from 'constructs';
2
+ export declare class Aws extends Construct {
3
+ constructor(scope: Construct, id: string);
4
+ }