datadog-cdk-constructs-v2 3.3.0__tar.gz → 3.5.0__tar.gz

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 (19) hide show
  1. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/PKG-INFO +45 -4
  2. datadog_cdk_constructs_v2-3.3.0/src/datadog_cdk_constructs_v2.egg-info/PKG-INFO → datadog_cdk_constructs_v2-3.5.0/README.md +41 -28
  3. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/setup.py +5 -5
  4. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/src/datadog_cdk_constructs_v2/__init__.py +78 -0
  5. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/src/datadog_cdk_constructs_v2/_jsii/__init__.py +2 -2
  6. datadog_cdk_constructs_v2-3.5.0/src/datadog_cdk_constructs_v2/_jsii/datadog-cdk-constructs-v2@3.5.0.jsii.tgz +0 -0
  7. datadog_cdk_constructs_v2-3.3.0/README.md → datadog_cdk_constructs_v2-3.5.0/src/datadog_cdk_constructs_v2.egg-info/PKG-INFO +69 -0
  8. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/src/datadog_cdk_constructs_v2.egg-info/SOURCES.txt +1 -1
  9. datadog_cdk_constructs_v2-3.5.0/src/datadog_cdk_constructs_v2.egg-info/requires.txt +5 -0
  10. datadog_cdk_constructs_v2-3.3.0/src/datadog_cdk_constructs_v2/_jsii/datadog-cdk-constructs-v2@3.3.0.jsii.tgz +0 -0
  11. datadog_cdk_constructs_v2-3.3.0/src/datadog_cdk_constructs_v2.egg-info/requires.txt +0 -5
  12. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/LICENSE +0 -0
  13. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/MANIFEST.in +0 -0
  14. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/NOTICE +0 -0
  15. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/pyproject.toml +0 -0
  16. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/setup.cfg +0 -0
  17. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/src/datadog_cdk_constructs_v2/py.typed +0 -0
  18. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/src/datadog_cdk_constructs_v2.egg-info/dependency_links.txt +0 -0
  19. {datadog_cdk_constructs_v2-3.3.0 → datadog_cdk_constructs_v2-3.5.0}/src/datadog_cdk_constructs_v2.egg-info/top_level.txt +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: datadog-cdk-constructs-v2
3
- Version: 3.3.0
3
+ Version: 3.5.0
4
4
  Summary: CDK Construct Library to automatically instrument Python and Node Lambda functions with Datadog using AWS CDK v2
5
5
  Home-page: https://github.com/DataDog/datadog-cdk-constructs
6
6
  Author: Datadog
@@ -20,11 +20,11 @@ Requires-Python: ~=3.9
20
20
  Description-Content-Type: text/markdown
21
21
  License-File: LICENSE
22
22
  License-File: NOTICE
23
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.214.1
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.223.0
24
24
  Requires-Dist: constructs<11.0.0,>=10.0.5
25
- Requires-Dist: jsii<2.0.0,>=1.118.0
25
+ Requires-Dist: jsii<2.0.0,>=1.120.0
26
26
  Requires-Dist: publication>=0.0.3
27
- Requires-Dist: typeguard<4.3.0,>=2.13.3
27
+ Requires-Dist: typeguard==2.13.3
28
28
 
29
29
  # Datadog CDK Constructs
30
30
 
@@ -33,6 +33,7 @@ Requires-Dist: typeguard<4.3.0,>=2.13.3
33
33
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs?color=blue&label=pypi+cdk+v1)](https://pypi.org/project/datadog-cdk-constructs/)
34
34
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs-v2?color=39a356&label=pypi+cdk+v2)](https://pypi.org/project/datadog-cdk-constructs-v2/)
35
35
  [![Go](https://img.shields.io/github/v/tag/datadog/datadog-cdk-constructs-go?color=39a356&label=go+cdk+v2)](https://pkg.go.dev/github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct)
36
+ [![Maven](https://img.shields.io/badge/maven-v3.3.0-39a356?label=maven+cdk+v2)](https://search.maven.org/artifact/com.datadoghq/datadog-cdk-constructs)
36
37
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/DataDog/datadog-cdk-constructs/blob/main/LICENSE)
37
38
 
38
39
  Use this Datadog CDK Construct Library to deploy serverless applications using AWS CDK .
@@ -105,6 +106,20 @@ go get github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct/v3
105
106
 
106
107
  AWS CDK v1 is not supported.
107
108
 
109
+ #### Maven (Java)
110
+
111
+ For use with AWS CDK v2, add to your `pom.xml`:
112
+
113
+ ```xml
114
+ <dependency>
115
+ <groupId>com.datadoghq</groupId>
116
+ <artifactId>datadog-cdk-constructs</artifactId>
117
+ <version>3.3.0</version>
118
+ </dependency>
119
+ ```
120
+
121
+ AWS CDK v1 is not supported.
122
+
108
123
  ### Usage
109
124
 
110
125
  #### AWS CDK
@@ -193,6 +208,32 @@ datadogLambda.AddLambdaFunctions(&[]interface{}{myFunction}, nil)
193
208
  datadogLambda.AddForwarderToNonLambdaLogGroups()
194
209
  ```
195
210
 
211
+ #### Java
212
+
213
+ ```java
214
+ import com.datadoghq.cdkconstructs.DatadogLambda;
215
+ import com.datadoghq.cdkconstructs.DatadogLambdaProps;
216
+
217
+ DatadogLambda datadogLambda = new DatadogLambda(this, "Datadog",
218
+ DatadogLambdaProps.builder()
219
+ .nodeLayerVersion(<LAYER_VERSION>)
220
+ .pythonLayerVersion(<LAYER_VERSION>)
221
+ .javaLayerVersion(<LAYER_VERSION>)
222
+ .dotnetLayerVersion(<LAYER_VERSION>)
223
+ .rubyLayerVersion(<LAYER_VERSION>)
224
+ .addLayers(<BOOLEAN>)
225
+ .extensionLayerVersion(<EXTENSION_VERSION>)
226
+ .flushMetricsToLogs(<BOOLEAN>)
227
+ .site("<SITE>")
228
+ .apiKey(System.getenv("DD_API_KEY"))
229
+ .enableDatadogTracing(<BOOLEAN>)
230
+ .enableDatadogLogs(<BOOLEAN>)
231
+ .build()
232
+ );
233
+ datadogLambda.addLambdaFunctions(new Object[]{myFunction});
234
+ datadogLambda.addForwarderToNonLambdaLogGroups(new Object[]{myLogGroup});
235
+ ```
236
+
196
237
  ### Source Code Integration
197
238
 
198
239
  [Source code integration](https://docs.datadoghq.com/integrations/guide/source-code-integration/) is enabled by default through automatic lambda tagging, and will work if:
@@ -1,31 +1,3 @@
1
- Metadata-Version: 2.1
2
- Name: datadog-cdk-constructs-v2
3
- Version: 3.3.0
4
- Summary: CDK Construct Library to automatically instrument Python and Node Lambda functions with Datadog using AWS CDK v2
5
- Home-page: https://github.com/DataDog/datadog-cdk-constructs
6
- Author: Datadog
7
- License: Apache-2.0
8
- Project-URL: Source, https://github.com/DataDog/datadog-cdk-constructs
9
- Classifier: Intended Audience :: Developers
10
- Classifier: Operating System :: OS Independent
11
- Classifier: Programming Language :: JavaScript
12
- Classifier: Programming Language :: Python :: 3 :: Only
13
- Classifier: Programming Language :: Python :: 3.9
14
- Classifier: Programming Language :: Python :: 3.10
15
- Classifier: Programming Language :: Python :: 3.11
16
- Classifier: Typing :: Typed
17
- Classifier: Development Status :: 5 - Production/Stable
18
- Classifier: License :: OSI Approved
19
- Requires-Python: ~=3.9
20
- Description-Content-Type: text/markdown
21
- License-File: LICENSE
22
- License-File: NOTICE
23
- Requires-Dist: aws-cdk-lib<3.0.0,>=2.214.1
24
- Requires-Dist: constructs<11.0.0,>=10.0.5
25
- Requires-Dist: jsii<2.0.0,>=1.118.0
26
- Requires-Dist: publication>=0.0.3
27
- Requires-Dist: typeguard<4.3.0,>=2.13.3
28
-
29
1
  # Datadog CDK Constructs
30
2
 
31
3
  [![NPM](https://img.shields.io/npm/v/datadog-cdk-constructs?color=blue&label=npm+cdk+v1)](https://www.npmjs.com/package/datadog-cdk-constructs)
@@ -33,6 +5,7 @@ Requires-Dist: typeguard<4.3.0,>=2.13.3
33
5
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs?color=blue&label=pypi+cdk+v1)](https://pypi.org/project/datadog-cdk-constructs/)
34
6
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs-v2?color=39a356&label=pypi+cdk+v2)](https://pypi.org/project/datadog-cdk-constructs-v2/)
35
7
  [![Go](https://img.shields.io/github/v/tag/datadog/datadog-cdk-constructs-go?color=39a356&label=go+cdk+v2)](https://pkg.go.dev/github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct)
8
+ [![Maven](https://img.shields.io/badge/maven-v3.3.0-39a356?label=maven+cdk+v2)](https://search.maven.org/artifact/com.datadoghq/datadog-cdk-constructs)
36
9
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/DataDog/datadog-cdk-constructs/blob/main/LICENSE)
37
10
 
38
11
  Use this Datadog CDK Construct Library to deploy serverless applications using AWS CDK .
@@ -105,6 +78,20 @@ go get github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct/v3
105
78
 
106
79
  AWS CDK v1 is not supported.
107
80
 
81
+ #### Maven (Java)
82
+
83
+ For use with AWS CDK v2, add to your `pom.xml`:
84
+
85
+ ```xml
86
+ <dependency>
87
+ <groupId>com.datadoghq</groupId>
88
+ <artifactId>datadog-cdk-constructs</artifactId>
89
+ <version>3.3.0</version>
90
+ </dependency>
91
+ ```
92
+
93
+ AWS CDK v1 is not supported.
94
+
108
95
  ### Usage
109
96
 
110
97
  #### AWS CDK
@@ -193,6 +180,32 @@ datadogLambda.AddLambdaFunctions(&[]interface{}{myFunction}, nil)
193
180
  datadogLambda.AddForwarderToNonLambdaLogGroups()
194
181
  ```
195
182
 
183
+ #### Java
184
+
185
+ ```java
186
+ import com.datadoghq.cdkconstructs.DatadogLambda;
187
+ import com.datadoghq.cdkconstructs.DatadogLambdaProps;
188
+
189
+ DatadogLambda datadogLambda = new DatadogLambda(this, "Datadog",
190
+ DatadogLambdaProps.builder()
191
+ .nodeLayerVersion(<LAYER_VERSION>)
192
+ .pythonLayerVersion(<LAYER_VERSION>)
193
+ .javaLayerVersion(<LAYER_VERSION>)
194
+ .dotnetLayerVersion(<LAYER_VERSION>)
195
+ .rubyLayerVersion(<LAYER_VERSION>)
196
+ .addLayers(<BOOLEAN>)
197
+ .extensionLayerVersion(<EXTENSION_VERSION>)
198
+ .flushMetricsToLogs(<BOOLEAN>)
199
+ .site("<SITE>")
200
+ .apiKey(System.getenv("DD_API_KEY"))
201
+ .enableDatadogTracing(<BOOLEAN>)
202
+ .enableDatadogLogs(<BOOLEAN>)
203
+ .build()
204
+ );
205
+ datadogLambda.addLambdaFunctions(new Object[]{myFunction});
206
+ datadogLambda.addForwarderToNonLambdaLogGroups(new Object[]{myLogGroup});
207
+ ```
208
+
196
209
  ### Source Code Integration
197
210
 
198
211
  [Source code integration](https://docs.datadoghq.com/integrations/guide/source-code-integration/) is enabled by default through automatic lambda tagging, and will work if:
@@ -5,7 +5,7 @@ kwargs = json.loads(
5
5
  """
6
6
  {
7
7
  "name": "datadog-cdk-constructs-v2",
8
- "version": "3.3.0",
8
+ "version": "3.5.0",
9
9
  "description": "CDK Construct Library to automatically instrument Python and Node Lambda functions with Datadog using AWS CDK v2",
10
10
  "license": "Apache-2.0",
11
11
  "url": "https://github.com/DataDog/datadog-cdk-constructs",
@@ -26,7 +26,7 @@ kwargs = json.loads(
26
26
  ],
27
27
  "package_data": {
28
28
  "datadog_cdk_constructs_v2._jsii": [
29
- "datadog-cdk-constructs-v2@3.3.0.jsii.tgz"
29
+ "datadog-cdk-constructs-v2@3.5.0.jsii.tgz"
30
30
  ],
31
31
  "datadog_cdk_constructs_v2": [
32
32
  "py.typed"
@@ -34,11 +34,11 @@ kwargs = json.loads(
34
34
  },
35
35
  "python_requires": "~=3.9",
36
36
  "install_requires": [
37
- "aws-cdk-lib>=2.214.1, <3.0.0",
37
+ "aws-cdk-lib>=2.223.0, <3.0.0",
38
38
  "constructs>=10.0.5, <11.0.0",
39
- "jsii>=1.118.0, <2.0.0",
39
+ "jsii>=1.120.0, <2.0.0",
40
40
  "publication>=0.0.3",
41
- "typeguard>=2.13.3,<4.3.0"
41
+ "typeguard==2.13.3"
42
42
  ],
43
43
  "classifiers": [
44
44
  "Intended Audience :: Developers",
@@ -6,6 +6,7 @@ r'''
6
6
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs?color=blue&label=pypi+cdk+v1)](https://pypi.org/project/datadog-cdk-constructs/)
7
7
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs-v2?color=39a356&label=pypi+cdk+v2)](https://pypi.org/project/datadog-cdk-constructs-v2/)
8
8
  [![Go](https://img.shields.io/github/v/tag/datadog/datadog-cdk-constructs-go?color=39a356&label=go+cdk+v2)](https://pkg.go.dev/github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct)
9
+ [![Maven](https://img.shields.io/badge/maven-v3.3.0-39a356?label=maven+cdk+v2)](https://search.maven.org/artifact/com.datadoghq/datadog-cdk-constructs)
9
10
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/DataDog/datadog-cdk-constructs/blob/main/LICENSE)
10
11
 
11
12
  Use this Datadog CDK Construct Library to deploy serverless applications using AWS CDK .
@@ -78,6 +79,20 @@ go get github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct/v3
78
79
 
79
80
  AWS CDK v1 is not supported.
80
81
 
82
+ #### Maven (Java)
83
+
84
+ For use with AWS CDK v2, add to your `pom.xml`:
85
+
86
+ ```xml
87
+ <dependency>
88
+ <groupId>com.datadoghq</groupId>
89
+ <artifactId>datadog-cdk-constructs</artifactId>
90
+ <version>3.3.0</version>
91
+ </dependency>
92
+ ```
93
+
94
+ AWS CDK v1 is not supported.
95
+
81
96
  ### Usage
82
97
 
83
98
  #### AWS CDK
@@ -166,6 +181,32 @@ datadogLambda.AddLambdaFunctions(&[]interface{}{myFunction}, nil)
166
181
  datadogLambda.AddForwarderToNonLambdaLogGroups()
167
182
  ```
168
183
 
184
+ #### Java
185
+
186
+ ```java
187
+ import com.datadoghq.cdkconstructs.DatadogLambda;
188
+ import com.datadoghq.cdkconstructs.DatadogLambdaProps;
189
+
190
+ DatadogLambda datadogLambda = new DatadogLambda(this, "Datadog",
191
+ DatadogLambdaProps.builder()
192
+ .nodeLayerVersion(<LAYER_VERSION>)
193
+ .pythonLayerVersion(<LAYER_VERSION>)
194
+ .javaLayerVersion(<LAYER_VERSION>)
195
+ .dotnetLayerVersion(<LAYER_VERSION>)
196
+ .rubyLayerVersion(<LAYER_VERSION>)
197
+ .addLayers(<BOOLEAN>)
198
+ .extensionLayerVersion(<EXTENSION_VERSION>)
199
+ .flushMetricsToLogs(<BOOLEAN>)
200
+ .site("<SITE>")
201
+ .apiKey(System.getenv("DD_API_KEY"))
202
+ .enableDatadogTracing(<BOOLEAN>)
203
+ .enableDatadogLogs(<BOOLEAN>)
204
+ .build()
205
+ );
206
+ datadogLambda.addLambdaFunctions(new Object[]{myFunction});
207
+ datadogLambda.addForwarderToNonLambdaLogGroups(new Object[]{myLogGroup});
208
+ ```
209
+
169
210
  ### Source Code Integration
170
211
 
171
212
  [Source code integration](https://docs.datadoghq.com/integrations/guide/source-code-integration/) is enabled by default through automatic lambda tagging, and will work if:
@@ -977,6 +1018,7 @@ class DatadogAppSecMode(enum.Enum):
977
1018
  "is_datadog_dependency_enabled": "isDatadogDependencyEnabled",
978
1019
  "is_datadog_essential": "isDatadogEssential",
979
1020
  "memory_limit_mib": "memoryLimitMiB",
1021
+ "read_only_root_filesystem": "readOnlyRootFilesystem",
980
1022
  "registry": "registry",
981
1023
  "service": "service",
982
1024
  "site": "site",
@@ -1003,6 +1045,7 @@ class DatadogECSBaseProps:
1003
1045
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
1004
1046
  is_datadog_essential: typing.Optional[builtins.bool] = None,
1005
1047
  memory_limit_mib: typing.Optional[jsii.Number] = None,
1048
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
1006
1049
  registry: typing.Optional[builtins.str] = None,
1007
1050
  service: typing.Optional[builtins.str] = None,
1008
1051
  site: typing.Optional[builtins.str] = None,
@@ -1025,6 +1068,7 @@ class DatadogECSBaseProps:
1025
1068
  :param is_datadog_dependency_enabled: Configure added containers to have container dependency on the Datadog Agent container.
1026
1069
  :param is_datadog_essential: Configure Datadog Agent container to be essential for the task.
1027
1070
  :param memory_limit_mib: The amount (in MiB) of memory to present to the Datadog Agent container.
1071
+ :param read_only_root_filesystem: Configure Datadog Agent container to run with read-only root filesystem enabled.
1028
1072
  :param registry: The registry to pull the Datadog Agent container image from.
1029
1073
  :param service: The task service name. Used for tagging (UST).
1030
1074
  :param site: The Datadog site to send data to.
@@ -1054,6 +1098,7 @@ class DatadogECSBaseProps:
1054
1098
  check_type(argname="argument is_datadog_dependency_enabled", value=is_datadog_dependency_enabled, expected_type=type_hints["is_datadog_dependency_enabled"])
1055
1099
  check_type(argname="argument is_datadog_essential", value=is_datadog_essential, expected_type=type_hints["is_datadog_essential"])
1056
1100
  check_type(argname="argument memory_limit_mib", value=memory_limit_mib, expected_type=type_hints["memory_limit_mib"])
1101
+ check_type(argname="argument read_only_root_filesystem", value=read_only_root_filesystem, expected_type=type_hints["read_only_root_filesystem"])
1057
1102
  check_type(argname="argument registry", value=registry, expected_type=type_hints["registry"])
1058
1103
  check_type(argname="argument service", value=service, expected_type=type_hints["service"])
1059
1104
  check_type(argname="argument site", value=site, expected_type=type_hints["site"])
@@ -1091,6 +1136,8 @@ class DatadogECSBaseProps:
1091
1136
  self._values["is_datadog_essential"] = is_datadog_essential
1092
1137
  if memory_limit_mib is not None:
1093
1138
  self._values["memory_limit_mib"] = memory_limit_mib
1139
+ if read_only_root_filesystem is not None:
1140
+ self._values["read_only_root_filesystem"] = read_only_root_filesystem
1094
1141
  if registry is not None:
1095
1142
  self._values["registry"] = registry
1096
1143
  if service is not None:
@@ -1217,6 +1264,12 @@ class DatadogECSBaseProps:
1217
1264
  result = self._values.get("memory_limit_mib")
1218
1265
  return typing.cast(typing.Optional[jsii.Number], result)
1219
1266
 
1267
+ @builtins.property
1268
+ def read_only_root_filesystem(self) -> typing.Optional[builtins.bool]:
1269
+ '''Configure Datadog Agent container to run with read-only root filesystem enabled.'''
1270
+ result = self._values.get("read_only_root_filesystem")
1271
+ return typing.cast(typing.Optional[builtins.bool], result)
1272
+
1220
1273
  @builtins.property
1221
1274
  def registry(self) -> typing.Optional[builtins.str]:
1222
1275
  '''The registry to pull the Datadog Agent container image from.'''
@@ -1286,6 +1339,7 @@ class DatadogECSFargate(
1286
1339
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
1287
1340
  is_datadog_essential: typing.Optional[builtins.bool] = None,
1288
1341
  memory_limit_mib: typing.Optional[jsii.Number] = None,
1342
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
1289
1343
  registry: typing.Optional[builtins.str] = None,
1290
1344
  service: typing.Optional[builtins.str] = None,
1291
1345
  site: typing.Optional[builtins.str] = None,
@@ -1310,6 +1364,7 @@ class DatadogECSFargate(
1310
1364
  :param is_datadog_dependency_enabled: Configure added containers to have container dependency on the Datadog Agent container.
1311
1365
  :param is_datadog_essential: Configure Datadog Agent container to be essential for the task.
1312
1366
  :param memory_limit_mib: The amount (in MiB) of memory to present to the Datadog Agent container.
1367
+ :param read_only_root_filesystem: Configure Datadog Agent container to run with read-only root filesystem enabled.
1313
1368
  :param registry: The registry to pull the Datadog Agent container image from.
1314
1369
  :param service: The task service name. Used for tagging (UST).
1315
1370
  :param site: The Datadog site to send data to.
@@ -1334,6 +1389,7 @@ class DatadogECSFargate(
1334
1389
  is_datadog_dependency_enabled=is_datadog_dependency_enabled,
1335
1390
  is_datadog_essential=is_datadog_essential,
1336
1391
  memory_limit_mib=memory_limit_mib,
1392
+ read_only_root_filesystem=read_only_root_filesystem,
1337
1393
  registry=registry,
1338
1394
  service=service,
1339
1395
  site=site,
@@ -1367,6 +1423,7 @@ class DatadogECSFargate(
1367
1423
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
1368
1424
  is_datadog_essential: typing.Optional[builtins.bool] = None,
1369
1425
  memory_limit_mib: typing.Optional[jsii.Number] = None,
1426
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
1370
1427
  registry: typing.Optional[builtins.str] = None,
1371
1428
  service: typing.Optional[builtins.str] = None,
1372
1429
  site: typing.Optional[builtins.str] = None,
@@ -1397,6 +1454,7 @@ class DatadogECSFargate(
1397
1454
  :param is_datadog_dependency_enabled: Configure added containers to have container dependency on the Datadog Agent container.
1398
1455
  :param is_datadog_essential: Configure Datadog Agent container to be essential for the task.
1399
1456
  :param memory_limit_mib: The amount (in MiB) of memory to present to the Datadog Agent container.
1457
+ :param read_only_root_filesystem: Configure Datadog Agent container to run with read-only root filesystem enabled.
1400
1458
  :param registry: The registry to pull the Datadog Agent container image from.
1401
1459
  :param service: The task service name. Used for tagging (UST).
1402
1460
  :param site: The Datadog site to send data to.
@@ -1426,6 +1484,7 @@ class DatadogECSFargate(
1426
1484
  is_datadog_dependency_enabled=is_datadog_dependency_enabled,
1427
1485
  is_datadog_essential=is_datadog_essential,
1428
1486
  memory_limit_mib=memory_limit_mib,
1487
+ read_only_root_filesystem=read_only_root_filesystem,
1429
1488
  registry=registry,
1430
1489
  service=service,
1431
1490
  site=site,
@@ -1455,6 +1514,7 @@ class DatadogECSFargate(
1455
1514
  "is_datadog_dependency_enabled": "isDatadogDependencyEnabled",
1456
1515
  "is_datadog_essential": "isDatadogEssential",
1457
1516
  "memory_limit_mib": "memoryLimitMiB",
1517
+ "read_only_root_filesystem": "readOnlyRootFilesystem",
1458
1518
  "registry": "registry",
1459
1519
  "service": "service",
1460
1520
  "site": "site",
@@ -1483,6 +1543,7 @@ class DatadogECSFargateProps(DatadogECSBaseProps):
1483
1543
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
1484
1544
  is_datadog_essential: typing.Optional[builtins.bool] = None,
1485
1545
  memory_limit_mib: typing.Optional[jsii.Number] = None,
1546
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
1486
1547
  registry: typing.Optional[builtins.str] = None,
1487
1548
  service: typing.Optional[builtins.str] = None,
1488
1549
  site: typing.Optional[builtins.str] = None,
@@ -1507,6 +1568,7 @@ class DatadogECSFargateProps(DatadogECSBaseProps):
1507
1568
  :param is_datadog_dependency_enabled: Configure added containers to have container dependency on the Datadog Agent container.
1508
1569
  :param is_datadog_essential: Configure Datadog Agent container to be essential for the task.
1509
1570
  :param memory_limit_mib: The amount (in MiB) of memory to present to the Datadog Agent container.
1571
+ :param read_only_root_filesystem: Configure Datadog Agent container to run with read-only root filesystem enabled.
1510
1572
  :param registry: The registry to pull the Datadog Agent container image from.
1511
1573
  :param service: The task service name. Used for tagging (UST).
1512
1574
  :param site: The Datadog site to send data to.
@@ -1542,6 +1604,7 @@ class DatadogECSFargateProps(DatadogECSBaseProps):
1542
1604
  check_type(argname="argument is_datadog_dependency_enabled", value=is_datadog_dependency_enabled, expected_type=type_hints["is_datadog_dependency_enabled"])
1543
1605
  check_type(argname="argument is_datadog_essential", value=is_datadog_essential, expected_type=type_hints["is_datadog_essential"])
1544
1606
  check_type(argname="argument memory_limit_mib", value=memory_limit_mib, expected_type=type_hints["memory_limit_mib"])
1607
+ check_type(argname="argument read_only_root_filesystem", value=read_only_root_filesystem, expected_type=type_hints["read_only_root_filesystem"])
1545
1608
  check_type(argname="argument registry", value=registry, expected_type=type_hints["registry"])
1546
1609
  check_type(argname="argument service", value=service, expected_type=type_hints["service"])
1547
1610
  check_type(argname="argument site", value=site, expected_type=type_hints["site"])
@@ -1581,6 +1644,8 @@ class DatadogECSFargateProps(DatadogECSBaseProps):
1581
1644
  self._values["is_datadog_essential"] = is_datadog_essential
1582
1645
  if memory_limit_mib is not None:
1583
1646
  self._values["memory_limit_mib"] = memory_limit_mib
1647
+ if read_only_root_filesystem is not None:
1648
+ self._values["read_only_root_filesystem"] = read_only_root_filesystem
1584
1649
  if registry is not None:
1585
1650
  self._values["registry"] = registry
1586
1651
  if service is not None:
@@ -1711,6 +1776,12 @@ class DatadogECSFargateProps(DatadogECSBaseProps):
1711
1776
  result = self._values.get("memory_limit_mib")
1712
1777
  return typing.cast(typing.Optional[jsii.Number], result)
1713
1778
 
1779
+ @builtins.property
1780
+ def read_only_root_filesystem(self) -> typing.Optional[builtins.bool]:
1781
+ '''Configure Datadog Agent container to run with read-only root filesystem enabled.'''
1782
+ result = self._values.get("read_only_root_filesystem")
1783
+ return typing.cast(typing.Optional[builtins.bool], result)
1784
+
1714
1785
  @builtins.property
1715
1786
  def registry(self) -> typing.Optional[builtins.str]:
1716
1787
  '''The registry to pull the Datadog Agent container image from.'''
@@ -1794,6 +1865,7 @@ class DatadogECSFargateTaskDefinition(
1794
1865
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
1795
1866
  is_datadog_essential: typing.Optional[builtins.bool] = None,
1796
1867
  memory_limit_mib: typing.Optional[jsii.Number] = None,
1868
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
1797
1869
  registry: typing.Optional[builtins.str] = None,
1798
1870
  service: typing.Optional[builtins.str] = None,
1799
1871
  site: typing.Optional[builtins.str] = None,
@@ -1821,6 +1893,7 @@ class DatadogECSFargateTaskDefinition(
1821
1893
  :param is_datadog_dependency_enabled: Configure added containers to have container dependency on the Datadog Agent container.
1822
1894
  :param is_datadog_essential: Configure Datadog Agent container to be essential for the task.
1823
1895
  :param memory_limit_mib: The amount (in MiB) of memory to present to the Datadog Agent container.
1896
+ :param read_only_root_filesystem: Configure Datadog Agent container to run with read-only root filesystem enabled.
1824
1897
  :param registry: The registry to pull the Datadog Agent container image from.
1825
1898
  :param service: The task service name. Used for tagging (UST).
1826
1899
  :param site: The Datadog site to send data to.
@@ -1850,6 +1923,7 @@ class DatadogECSFargateTaskDefinition(
1850
1923
  is_datadog_dependency_enabled=is_datadog_dependency_enabled,
1851
1924
  is_datadog_essential=is_datadog_essential,
1852
1925
  memory_limit_mib=memory_limit_mib,
1926
+ read_only_root_filesystem=read_only_root_filesystem,
1853
1927
  registry=registry,
1854
1928
  service=service,
1855
1929
  site=site,
@@ -4329,6 +4403,7 @@ def _typecheckingstub__d27d29c3a8198268022c64bd85cfc6542074c930488b7326c79b53336
4329
4403
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
4330
4404
  is_datadog_essential: typing.Optional[builtins.bool] = None,
4331
4405
  memory_limit_mib: typing.Optional[jsii.Number] = None,
4406
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
4332
4407
  registry: typing.Optional[builtins.str] = None,
4333
4408
  service: typing.Optional[builtins.str] = None,
4334
4409
  site: typing.Optional[builtins.str] = None,
@@ -4360,6 +4435,7 @@ def _typecheckingstub__7e36e6c3fc3a4574bfd3006ff2c205658f6beefccb62229aea1be683f
4360
4435
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
4361
4436
  is_datadog_essential: typing.Optional[builtins.bool] = None,
4362
4437
  memory_limit_mib: typing.Optional[jsii.Number] = None,
4438
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
4363
4439
  registry: typing.Optional[builtins.str] = None,
4364
4440
  service: typing.Optional[builtins.str] = None,
4365
4441
  site: typing.Optional[builtins.str] = None,
@@ -4386,6 +4462,7 @@ def _typecheckingstub__203f4e755dbe1abe14e7ebcd9aed8ad2720b707b756d8dd72acc9e252
4386
4462
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
4387
4463
  is_datadog_essential: typing.Optional[builtins.bool] = None,
4388
4464
  memory_limit_mib: typing.Optional[jsii.Number] = None,
4465
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
4389
4466
  registry: typing.Optional[builtins.str] = None,
4390
4467
  service: typing.Optional[builtins.str] = None,
4391
4468
  site: typing.Optional[builtins.str] = None,
@@ -4419,6 +4496,7 @@ def _typecheckingstub__1b705bc69b69e399d2d0fd2c5c39581aa92dc32dccf1793d2785f3b83
4419
4496
  is_datadog_dependency_enabled: typing.Optional[builtins.bool] = None,
4420
4497
  is_datadog_essential: typing.Optional[builtins.bool] = None,
4421
4498
  memory_limit_mib: typing.Optional[jsii.Number] = None,
4499
+ read_only_root_filesystem: typing.Optional[builtins.bool] = None,
4422
4500
  registry: typing.Optional[builtins.str] = None,
4423
4501
  service: typing.Optional[builtins.str] = None,
4424
4502
  site: typing.Optional[builtins.str] = None,
@@ -33,9 +33,9 @@ import constructs._jsii
33
33
 
34
34
  __jsii_assembly__ = jsii.JSIIAssembly.load(
35
35
  "datadog-cdk-constructs-v2",
36
- "3.3.0",
36
+ "3.5.0",
37
37
  __name__[0:-6],
38
- "datadog-cdk-constructs-v2@3.3.0.jsii.tgz",
38
+ "datadog-cdk-constructs-v2@3.5.0.jsii.tgz",
39
39
  )
40
40
 
41
41
  __all__ = [
@@ -1,3 +1,31 @@
1
+ Metadata-Version: 2.1
2
+ Name: datadog-cdk-constructs-v2
3
+ Version: 3.5.0
4
+ Summary: CDK Construct Library to automatically instrument Python and Node Lambda functions with Datadog using AWS CDK v2
5
+ Home-page: https://github.com/DataDog/datadog-cdk-constructs
6
+ Author: Datadog
7
+ License: Apache-2.0
8
+ Project-URL: Source, https://github.com/DataDog/datadog-cdk-constructs
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Operating System :: OS Independent
11
+ Classifier: Programming Language :: JavaScript
12
+ Classifier: Programming Language :: Python :: 3 :: Only
13
+ Classifier: Programming Language :: Python :: 3.9
14
+ Classifier: Programming Language :: Python :: 3.10
15
+ Classifier: Programming Language :: Python :: 3.11
16
+ Classifier: Typing :: Typed
17
+ Classifier: Development Status :: 5 - Production/Stable
18
+ Classifier: License :: OSI Approved
19
+ Requires-Python: ~=3.9
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ License-File: NOTICE
23
+ Requires-Dist: aws-cdk-lib<3.0.0,>=2.223.0
24
+ Requires-Dist: constructs<11.0.0,>=10.0.5
25
+ Requires-Dist: jsii<2.0.0,>=1.120.0
26
+ Requires-Dist: publication>=0.0.3
27
+ Requires-Dist: typeguard==2.13.3
28
+
1
29
  # Datadog CDK Constructs
2
30
 
3
31
  [![NPM](https://img.shields.io/npm/v/datadog-cdk-constructs?color=blue&label=npm+cdk+v1)](https://www.npmjs.com/package/datadog-cdk-constructs)
@@ -5,6 +33,7 @@
5
33
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs?color=blue&label=pypi+cdk+v1)](https://pypi.org/project/datadog-cdk-constructs/)
6
34
  [![PyPI](https://img.shields.io/pypi/v/datadog-cdk-constructs-v2?color=39a356&label=pypi+cdk+v2)](https://pypi.org/project/datadog-cdk-constructs-v2/)
7
35
  [![Go](https://img.shields.io/github/v/tag/datadog/datadog-cdk-constructs-go?color=39a356&label=go+cdk+v2)](https://pkg.go.dev/github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct)
36
+ [![Maven](https://img.shields.io/badge/maven-v3.3.0-39a356?label=maven+cdk+v2)](https://search.maven.org/artifact/com.datadoghq/datadog-cdk-constructs)
8
37
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](https://github.com/DataDog/datadog-cdk-constructs/blob/main/LICENSE)
9
38
 
10
39
  Use this Datadog CDK Construct Library to deploy serverless applications using AWS CDK .
@@ -77,6 +106,20 @@ go get github.com/DataDog/datadog-cdk-constructs-go/ddcdkconstruct/v3
77
106
 
78
107
  AWS CDK v1 is not supported.
79
108
 
109
+ #### Maven (Java)
110
+
111
+ For use with AWS CDK v2, add to your `pom.xml`:
112
+
113
+ ```xml
114
+ <dependency>
115
+ <groupId>com.datadoghq</groupId>
116
+ <artifactId>datadog-cdk-constructs</artifactId>
117
+ <version>3.3.0</version>
118
+ </dependency>
119
+ ```
120
+
121
+ AWS CDK v1 is not supported.
122
+
80
123
  ### Usage
81
124
 
82
125
  #### AWS CDK
@@ -165,6 +208,32 @@ datadogLambda.AddLambdaFunctions(&[]interface{}{myFunction}, nil)
165
208
  datadogLambda.AddForwarderToNonLambdaLogGroups()
166
209
  ```
167
210
 
211
+ #### Java
212
+
213
+ ```java
214
+ import com.datadoghq.cdkconstructs.DatadogLambda;
215
+ import com.datadoghq.cdkconstructs.DatadogLambdaProps;
216
+
217
+ DatadogLambda datadogLambda = new DatadogLambda(this, "Datadog",
218
+ DatadogLambdaProps.builder()
219
+ .nodeLayerVersion(<LAYER_VERSION>)
220
+ .pythonLayerVersion(<LAYER_VERSION>)
221
+ .javaLayerVersion(<LAYER_VERSION>)
222
+ .dotnetLayerVersion(<LAYER_VERSION>)
223
+ .rubyLayerVersion(<LAYER_VERSION>)
224
+ .addLayers(<BOOLEAN>)
225
+ .extensionLayerVersion(<EXTENSION_VERSION>)
226
+ .flushMetricsToLogs(<BOOLEAN>)
227
+ .site("<SITE>")
228
+ .apiKey(System.getenv("DD_API_KEY"))
229
+ .enableDatadogTracing(<BOOLEAN>)
230
+ .enableDatadogLogs(<BOOLEAN>)
231
+ .build()
232
+ );
233
+ datadogLambda.addLambdaFunctions(new Object[]{myFunction});
234
+ datadogLambda.addForwarderToNonLambdaLogGroups(new Object[]{myLogGroup});
235
+ ```
236
+
168
237
  ### Source Code Integration
169
238
 
170
239
  [Source code integration](https://docs.datadoghq.com/integrations/guide/source-code-integration/) is enabled by default through automatic lambda tagging, and will work if:
@@ -12,4 +12,4 @@ src/datadog_cdk_constructs_v2.egg-info/dependency_links.txt
12
12
  src/datadog_cdk_constructs_v2.egg-info/requires.txt
13
13
  src/datadog_cdk_constructs_v2.egg-info/top_level.txt
14
14
  src/datadog_cdk_constructs_v2/_jsii/__init__.py
15
- src/datadog_cdk_constructs_v2/_jsii/datadog-cdk-constructs-v2@3.3.0.jsii.tgz
15
+ src/datadog_cdk_constructs_v2/_jsii/datadog-cdk-constructs-v2@3.5.0.jsii.tgz
@@ -0,0 +1,5 @@
1
+ aws-cdk-lib<3.0.0,>=2.223.0
2
+ constructs<11.0.0,>=10.0.5
3
+ jsii<2.0.0,>=1.120.0
4
+ publication>=0.0.3
5
+ typeguard==2.13.3
@@ -1,5 +0,0 @@
1
- aws-cdk-lib<3.0.0,>=2.214.1
2
- constructs<11.0.0,>=10.0.5
3
- jsii<2.0.0,>=1.118.0
4
- publication>=0.0.3
5
- typeguard<4.3.0,>=2.13.3