@rio-cloud/cdk-v2-constructs 6.20.0 → 6.21.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/.jsii +83 -3
- package/docs/API.md +154 -0
- package/docs/changelog.md +9 -0
- package/esbuild.mjs +4 -0
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.cjs +192802 -0
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.d.ts +4 -0
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource/handler.js +101 -0
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test.d.ts +29 -0
- package/lib/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test.js +81 -0
- package/lib/contributions/team-transport-two/datadog-synthetics/index.d.ts +1 -0
- package/lib/contributions/team-transport-two/datadog-synthetics/index.js +18 -0
- package/lib/index.d.ts +1 -0
- package/lib/index.js +2 -1
- package/package.json +1 -1
- package/version.json +1 -1
package/.jsii
CHANGED
|
@@ -3900,7 +3900,7 @@
|
|
|
3900
3900
|
"@rio-cloud/cdk-v2-constructs.backup": {
|
|
3901
3901
|
"locationInModule": {
|
|
3902
3902
|
"filename": "src/index.ts",
|
|
3903
|
-
"line":
|
|
3903
|
+
"line": 39
|
|
3904
3904
|
},
|
|
3905
3905
|
"symbolId": "src/backup/index:"
|
|
3906
3906
|
},
|
|
@@ -3921,7 +3921,7 @@
|
|
|
3921
3921
|
"@rio-cloud/cdk-v2-constructs.ecr": {
|
|
3922
3922
|
"locationInModule": {
|
|
3923
3923
|
"filename": "src/index.ts",
|
|
3924
|
-
"line":
|
|
3924
|
+
"line": 41
|
|
3925
3925
|
},
|
|
3926
3926
|
"symbolId": "src/ecr/index:"
|
|
3927
3927
|
},
|
|
@@ -6773,6 +6773,86 @@
|
|
|
6773
6773
|
],
|
|
6774
6774
|
"symbolId": "src/datadog/datadog-monitor:DatadogMonitorProps"
|
|
6775
6775
|
},
|
|
6776
|
+
"@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest": {
|
|
6777
|
+
"assembly": "@rio-cloud/cdk-v2-constructs",
|
|
6778
|
+
"base": "constructs.Construct",
|
|
6779
|
+
"docs": {
|
|
6780
|
+
"remarks": "See https://docs.datadoghq.com/api/latest/synthetics/ for more information (especially the typescript examples).\nCurrently, tests of type `api`, `browser` and `mobile` are supported.\n\nThe resource does the following modification to the passed `testConfig`:\n- Adds team name and service name to the test name.\n- Adds the usual tags (account_id, account_name, service, team, team_identifier) to the test tags.",
|
|
6781
|
+
"stability": "stable",
|
|
6782
|
+
"summary": "Creates a Datadog Synthetics test via Datadog API through a custom resource."
|
|
6783
|
+
},
|
|
6784
|
+
"fqn": "@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest",
|
|
6785
|
+
"initializer": {
|
|
6786
|
+
"docs": {
|
|
6787
|
+
"stability": "stable"
|
|
6788
|
+
},
|
|
6789
|
+
"locationInModule": {
|
|
6790
|
+
"filename": "src/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test.ts",
|
|
6791
|
+
"line": 41
|
|
6792
|
+
},
|
|
6793
|
+
"parameters": [
|
|
6794
|
+
{
|
|
6795
|
+
"name": "scope",
|
|
6796
|
+
"type": {
|
|
6797
|
+
"fqn": "constructs.Construct"
|
|
6798
|
+
}
|
|
6799
|
+
},
|
|
6800
|
+
{
|
|
6801
|
+
"name": "id",
|
|
6802
|
+
"type": {
|
|
6803
|
+
"primitive": "string"
|
|
6804
|
+
}
|
|
6805
|
+
},
|
|
6806
|
+
{
|
|
6807
|
+
"name": "props",
|
|
6808
|
+
"type": {
|
|
6809
|
+
"fqn": "@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps"
|
|
6810
|
+
}
|
|
6811
|
+
}
|
|
6812
|
+
]
|
|
6813
|
+
},
|
|
6814
|
+
"kind": "class",
|
|
6815
|
+
"locationInModule": {
|
|
6816
|
+
"filename": "src/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test.ts",
|
|
6817
|
+
"line": 40
|
|
6818
|
+
},
|
|
6819
|
+
"name": "DatadogSyntheticsTest",
|
|
6820
|
+
"symbolId": "src/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test:DatadogSyntheticsTest"
|
|
6821
|
+
},
|
|
6822
|
+
"@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps": {
|
|
6823
|
+
"assembly": "@rio-cloud/cdk-v2-constructs",
|
|
6824
|
+
"datatype": true,
|
|
6825
|
+
"docs": {
|
|
6826
|
+
"stability": "stable"
|
|
6827
|
+
},
|
|
6828
|
+
"fqn": "@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps",
|
|
6829
|
+
"kind": "interface",
|
|
6830
|
+
"locationInModule": {
|
|
6831
|
+
"filename": "src/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test.ts",
|
|
6832
|
+
"line": 16
|
|
6833
|
+
},
|
|
6834
|
+
"name": "DatadogSyntheticsTestProps",
|
|
6835
|
+
"properties": [
|
|
6836
|
+
{
|
|
6837
|
+
"abstract": true,
|
|
6838
|
+
"docs": {
|
|
6839
|
+
"remarks": "Used to enhance the test name and apply the `service` tag.",
|
|
6840
|
+
"stability": "stable",
|
|
6841
|
+
"summary": "The name of the service to which the test belongs."
|
|
6842
|
+
},
|
|
6843
|
+
"immutable": true,
|
|
6844
|
+
"locationInModule": {
|
|
6845
|
+
"filename": "src/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test.ts",
|
|
6846
|
+
"line": 23
|
|
6847
|
+
},
|
|
6848
|
+
"name": "serviceName",
|
|
6849
|
+
"type": {
|
|
6850
|
+
"primitive": "string"
|
|
6851
|
+
}
|
|
6852
|
+
}
|
|
6853
|
+
],
|
|
6854
|
+
"symbolId": "src/contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test:DatadogSyntheticsTestProps"
|
|
6855
|
+
},
|
|
6776
6856
|
"@rio-cloud/cdk-v2-constructs.DatadogUsageMonitoring": {
|
|
6777
6857
|
"assembly": "@rio-cloud/cdk-v2-constructs",
|
|
6778
6858
|
"base": "constructs.Construct",
|
|
@@ -20751,5 +20831,5 @@
|
|
|
20751
20831
|
}
|
|
20752
20832
|
},
|
|
20753
20833
|
"version": "0.0.0",
|
|
20754
|
-
"fingerprint": "
|
|
20834
|
+
"fingerprint": "ZZbMGyaaRkOHRGAeyAtT3C+C0XomITIFo8BljixrrYc="
|
|
20755
20835
|
}
|
package/docs/API.md
CHANGED
|
@@ -2467,6 +2467,128 @@ This is equal to `secretArn` in most cases, but is undefined when a full ARN is
|
|
|
2467
2467
|
---
|
|
2468
2468
|
|
|
2469
2469
|
|
|
2470
|
+
### DatadogSyntheticsTest <a name="DatadogSyntheticsTest" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest"></a>
|
|
2471
|
+
|
|
2472
|
+
Creates a Datadog Synthetics test via Datadog API through a custom resource.
|
|
2473
|
+
|
|
2474
|
+
See https://docs.datadoghq.com/api/latest/synthetics/ for more information (especially the typescript examples).
|
|
2475
|
+
Currently, tests of type `api`, `browser` and `mobile` are supported.
|
|
2476
|
+
|
|
2477
|
+
The resource does the following modification to the passed `testConfig`:
|
|
2478
|
+
- Adds team name and service name to the test name.
|
|
2479
|
+
- Adds the usual tags (account_id, account_name, service, team, team_identifier) to the test tags.
|
|
2480
|
+
|
|
2481
|
+
#### Initializers <a name="Initializers" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.Initializer"></a>
|
|
2482
|
+
|
|
2483
|
+
```typescript
|
|
2484
|
+
import { DatadogSyntheticsTest } from '@rio-cloud/cdk-v2-constructs'
|
|
2485
|
+
|
|
2486
|
+
new DatadogSyntheticsTest(scope: Construct, id: string, props: DatadogSyntheticsTestProps)
|
|
2487
|
+
```
|
|
2488
|
+
|
|
2489
|
+
| **Name** | **Type** | **Description** |
|
|
2490
|
+
| --- | --- | --- |
|
|
2491
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.Initializer.parameter.scope">scope</a></code> | <code>constructs.Construct</code> | *No description.* |
|
|
2492
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.Initializer.parameter.id">id</a></code> | <code>string</code> | *No description.* |
|
|
2493
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.Initializer.parameter.props">props</a></code> | <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps">DatadogSyntheticsTestProps</a></code> | *No description.* |
|
|
2494
|
+
|
|
2495
|
+
---
|
|
2496
|
+
|
|
2497
|
+
##### `scope`<sup>Required</sup> <a name="scope" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.Initializer.parameter.scope"></a>
|
|
2498
|
+
|
|
2499
|
+
- *Type:* constructs.Construct
|
|
2500
|
+
|
|
2501
|
+
---
|
|
2502
|
+
|
|
2503
|
+
##### `id`<sup>Required</sup> <a name="id" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.Initializer.parameter.id"></a>
|
|
2504
|
+
|
|
2505
|
+
- *Type:* string
|
|
2506
|
+
|
|
2507
|
+
---
|
|
2508
|
+
|
|
2509
|
+
##### `props`<sup>Required</sup> <a name="props" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.Initializer.parameter.props"></a>
|
|
2510
|
+
|
|
2511
|
+
- *Type:* <a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps">DatadogSyntheticsTestProps</a>
|
|
2512
|
+
|
|
2513
|
+
---
|
|
2514
|
+
|
|
2515
|
+
#### Methods <a name="Methods" id="Methods"></a>
|
|
2516
|
+
|
|
2517
|
+
| **Name** | **Description** |
|
|
2518
|
+
| --- | --- |
|
|
2519
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.toString">toString</a></code> | Returns a string representation of this construct. |
|
|
2520
|
+
|
|
2521
|
+
---
|
|
2522
|
+
|
|
2523
|
+
##### `toString` <a name="toString" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.toString"></a>
|
|
2524
|
+
|
|
2525
|
+
```typescript
|
|
2526
|
+
public toString(): string
|
|
2527
|
+
```
|
|
2528
|
+
|
|
2529
|
+
Returns a string representation of this construct.
|
|
2530
|
+
|
|
2531
|
+
#### Static Functions <a name="Static Functions" id="Static Functions"></a>
|
|
2532
|
+
|
|
2533
|
+
| **Name** | **Description** |
|
|
2534
|
+
| --- | --- |
|
|
2535
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.isConstruct">isConstruct</a></code> | Checks if `x` is a construct. |
|
|
2536
|
+
|
|
2537
|
+
---
|
|
2538
|
+
|
|
2539
|
+
##### `isConstruct` <a name="isConstruct" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.isConstruct"></a>
|
|
2540
|
+
|
|
2541
|
+
```typescript
|
|
2542
|
+
import { DatadogSyntheticsTest } from '@rio-cloud/cdk-v2-constructs'
|
|
2543
|
+
|
|
2544
|
+
DatadogSyntheticsTest.isConstruct(x: any)
|
|
2545
|
+
```
|
|
2546
|
+
|
|
2547
|
+
Checks if `x` is a construct.
|
|
2548
|
+
|
|
2549
|
+
Use this method instead of `instanceof` to properly detect `Construct`
|
|
2550
|
+
instances, even when the construct library is symlinked.
|
|
2551
|
+
|
|
2552
|
+
Explanation: in JavaScript, multiple copies of the `constructs` library on
|
|
2553
|
+
disk are seen as independent, completely different libraries. As a
|
|
2554
|
+
consequence, the class `Construct` in each copy of the `constructs` library
|
|
2555
|
+
is seen as a different class, and an instance of one class will not test as
|
|
2556
|
+
`instanceof` the other class. `npm install` will not create installations
|
|
2557
|
+
like this, but users may manually symlink construct libraries together or
|
|
2558
|
+
use a monorepo tool: in those cases, multiple copies of the `constructs`
|
|
2559
|
+
library can be accidentally installed, and `instanceof` will behave
|
|
2560
|
+
unpredictably. It is safest to avoid using `instanceof`, and using
|
|
2561
|
+
this type-testing method instead.
|
|
2562
|
+
|
|
2563
|
+
###### `x`<sup>Required</sup> <a name="x" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.isConstruct.parameter.x"></a>
|
|
2564
|
+
|
|
2565
|
+
- *Type:* any
|
|
2566
|
+
|
|
2567
|
+
Any object.
|
|
2568
|
+
|
|
2569
|
+
---
|
|
2570
|
+
|
|
2571
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
2572
|
+
|
|
2573
|
+
| **Name** | **Type** | **Description** |
|
|
2574
|
+
| --- | --- | --- |
|
|
2575
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.property.node">node</a></code> | <code>constructs.Node</code> | The tree node. |
|
|
2576
|
+
|
|
2577
|
+
---
|
|
2578
|
+
|
|
2579
|
+
##### `node`<sup>Required</sup> <a name="node" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTest.property.node"></a>
|
|
2580
|
+
|
|
2581
|
+
```typescript
|
|
2582
|
+
public readonly node: Node;
|
|
2583
|
+
```
|
|
2584
|
+
|
|
2585
|
+
- *Type:* constructs.Node
|
|
2586
|
+
|
|
2587
|
+
The tree node.
|
|
2588
|
+
|
|
2589
|
+
---
|
|
2590
|
+
|
|
2591
|
+
|
|
2470
2592
|
### DatadogUsageMonitoring <a name="DatadogUsageMonitoring" id="@rio-cloud/cdk-v2-constructs.DatadogUsageMonitoring"></a>
|
|
2471
2593
|
|
|
2472
2594
|
#### Initializers <a name="Initializers" id="@rio-cloud/cdk-v2-constructs.DatadogUsageMonitoring.Initializer"></a>
|
|
@@ -12299,6 +12421,38 @@ The type of the service.
|
|
|
12299
12421
|
|
|
12300
12422
|
---
|
|
12301
12423
|
|
|
12424
|
+
### DatadogSyntheticsTestProps <a name="DatadogSyntheticsTestProps" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps"></a>
|
|
12425
|
+
|
|
12426
|
+
#### Initializer <a name="Initializer" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps.Initializer"></a>
|
|
12427
|
+
|
|
12428
|
+
```typescript
|
|
12429
|
+
import { DatadogSyntheticsTestProps } from '@rio-cloud/cdk-v2-constructs'
|
|
12430
|
+
|
|
12431
|
+
const datadogSyntheticsTestProps: DatadogSyntheticsTestProps = { ... }
|
|
12432
|
+
```
|
|
12433
|
+
|
|
12434
|
+
#### Properties <a name="Properties" id="Properties"></a>
|
|
12435
|
+
|
|
12436
|
+
| **Name** | **Type** | **Description** |
|
|
12437
|
+
| --- | --- | --- |
|
|
12438
|
+
| <code><a href="#@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps.property.serviceName">serviceName</a></code> | <code>string</code> | The name of the service to which the test belongs. |
|
|
12439
|
+
|
|
12440
|
+
---
|
|
12441
|
+
|
|
12442
|
+
##### `serviceName`<sup>Required</sup> <a name="serviceName" id="@rio-cloud/cdk-v2-constructs.DatadogSyntheticsTestProps.property.serviceName"></a>
|
|
12443
|
+
|
|
12444
|
+
```typescript
|
|
12445
|
+
public readonly serviceName: string;
|
|
12446
|
+
```
|
|
12447
|
+
|
|
12448
|
+
- *Type:* string
|
|
12449
|
+
|
|
12450
|
+
The name of the service to which the test belongs.
|
|
12451
|
+
|
|
12452
|
+
Used to enhance the test name and apply the `service` tag.
|
|
12453
|
+
|
|
12454
|
+
---
|
|
12455
|
+
|
|
12302
12456
|
### DatadogUsageMonitoringProps <a name="DatadogUsageMonitoringProps" id="@rio-cloud/cdk-v2-constructs.DatadogUsageMonitoringProps"></a>
|
|
12303
12457
|
|
|
12304
12458
|
#### Initializer <a name="Initializer" id="@rio-cloud/cdk-v2-constructs.DatadogUsageMonitoringProps.Initializer"></a>
|
package/docs/changelog.md
CHANGED
|
@@ -2,6 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [6.21.1-alpha.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv6.21.0&sourceBranch=refs%2Ftags%2Fv6.21.1-alpha.0) (2025-03-06)
|
|
6
|
+
|
|
7
|
+
## [6.21.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv6.20.0&sourceBranch=refs%2Ftags%2Fv6.21.0) (2025-03-05)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Features
|
|
11
|
+
|
|
12
|
+
* **datadog-synthetics:** Add new custom resource to deploy datadog synthetics tests. ([8ef5ab8](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/commits/8ef5ab884cfc5da0fc0033dc0b02be2264f2b8e3))
|
|
13
|
+
|
|
5
14
|
## [6.20.0](https://bitbucket.collaboration-man.com/projects/RIODEV/repos/cdk-v2-constructs/compare/commits?targetBranch=refs%2Ftags%2Fv6.19.0&sourceBranch=refs%2Ftags%2Fv6.20.0) (2025-02-27)
|
|
6
15
|
|
|
7
16
|
|
package/esbuild.mjs
CHANGED
|
@@ -26,6 +26,10 @@ const entryPoints = [
|
|
|
26
26
|
basePath: 'ses/lambda',
|
|
27
27
|
fileName: 'ses-logger.ts',
|
|
28
28
|
},
|
|
29
|
+
{
|
|
30
|
+
basePath: 'contributions/team-transport-two/datadog-synthetics/datadog-synthetics-test-custom-resource',
|
|
31
|
+
fileName: 'handler.ts',
|
|
32
|
+
},
|
|
29
33
|
]
|
|
30
34
|
|
|
31
35
|
for (const handler of entryPoints) {
|