robhan-cdk-lib.aws-aps 0.0.72__tar.gz → 0.0.133__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.
- {robhan_cdk_lib_aws_aps-0.0.72/src/robhan_cdk_lib.aws_aps.egg-info → robhan_cdk_lib_aws_aps-0.0.133}/PKG-INFO +4 -4
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/setup.py +5 -5
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/src/robhan_cdk_lib/aws_aps/__init__.py +174 -162
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/src/robhan_cdk_lib/aws_aps/_jsii/__init__.py +1 -1
- robhan_cdk_lib_aws_aps-0.0.133/src/robhan_cdk_lib/aws_aps/_jsii/aws_aps@0.0.133.jsii.tgz +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133/src/robhan_cdk_lib.aws_aps.egg-info}/PKG-INFO +4 -4
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/src/robhan_cdk_lib.aws_aps.egg-info/SOURCES.txt +1 -1
- robhan_cdk_lib_aws_aps-0.0.133/src/robhan_cdk_lib.aws_aps.egg-info/requires.txt +6 -0
- robhan_cdk_lib_aws_aps-0.0.72/src/robhan_cdk_lib/aws_aps/_jsii/aws_aps@0.0.72.jsii.tgz +0 -0
- robhan_cdk_lib_aws_aps-0.0.72/src/robhan_cdk_lib.aws_aps.egg-info/requires.txt +0 -6
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/LICENSE +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/MANIFEST.in +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/README.md +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/pyproject.toml +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/setup.cfg +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/src/robhan_cdk_lib/aws_aps/py.typed +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/src/robhan_cdk_lib.aws_aps.egg-info/dependency_links.txt +0 -0
- {robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/src/robhan_cdk_lib.aws_aps.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robhan_cdk_lib.aws_aps
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.133
|
|
4
4
|
Summary: AWS CDK Construct Library for Amazon Managed Service for Prometheus
|
|
5
5
|
Home-page: https://github.com/robert-hanuschke/cdk-aws_aps
|
|
6
6
|
Author: Robert Hanuschke<robhan-cdk-lib@hanuschke.eu>
|
|
@@ -21,10 +21,10 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: aws-cdk-lib<3.0.0,>=2.201.0
|
|
23
23
|
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
24
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
24
|
+
Requires-Dist: jsii<2.0.0,>=1.121.0
|
|
25
25
|
Requires-Dist: publication>=0.0.3
|
|
26
|
-
Requires-Dist: robhan_cdk_lib.utils<0.0.
|
|
27
|
-
Requires-Dist: typeguard
|
|
26
|
+
Requires-Dist: robhan_cdk_lib.utils<0.0.126,>=0.0.125
|
|
27
|
+
Requires-Dist: typeguard==2.13.3
|
|
28
28
|
|
|
29
29
|
# @robhan-cdk-lib/aws_aps
|
|
30
30
|
|
|
@@ -5,7 +5,7 @@ kwargs = json.loads(
|
|
|
5
5
|
"""
|
|
6
6
|
{
|
|
7
7
|
"name": "robhan_cdk_lib.aws_aps",
|
|
8
|
-
"version": "0.0.
|
|
8
|
+
"version": "0.0.133",
|
|
9
9
|
"description": "AWS CDK Construct Library for Amazon Managed Service for Prometheus",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"url": "https://github.com/robert-hanuschke/cdk-aws_aps",
|
|
@@ -26,7 +26,7 @@ kwargs = json.loads(
|
|
|
26
26
|
],
|
|
27
27
|
"package_data": {
|
|
28
28
|
"robhan_cdk_lib.aws_aps._jsii": [
|
|
29
|
-
"aws_aps@0.0.
|
|
29
|
+
"aws_aps@0.0.133.jsii.tgz"
|
|
30
30
|
],
|
|
31
31
|
"robhan_cdk_lib.aws_aps": [
|
|
32
32
|
"py.typed"
|
|
@@ -36,10 +36,10 @@ kwargs = json.loads(
|
|
|
36
36
|
"install_requires": [
|
|
37
37
|
"aws-cdk-lib>=2.201.0, <3.0.0",
|
|
38
38
|
"constructs>=10.0.5, <11.0.0",
|
|
39
|
-
"jsii>=1.
|
|
39
|
+
"jsii>=1.121.0, <2.0.0",
|
|
40
40
|
"publication>=0.0.3",
|
|
41
|
-
"robhan_cdk_lib.utils>=0.0.
|
|
42
|
-
"typeguard
|
|
41
|
+
"robhan_cdk_lib.utils>=0.0.125, <0.0.126",
|
|
42
|
+
"typeguard==2.13.3"
|
|
43
43
|
],
|
|
44
44
|
"classifiers": [
|
|
45
45
|
"Intended Audience :: Developers",
|
|
@@ -148,7 +148,7 @@ class AmpConfiguration:
|
|
|
148
148
|
name_mapping={"log_group": "logGroup"},
|
|
149
149
|
)
|
|
150
150
|
class CloudWatchLogDestination:
|
|
151
|
-
def __init__(self, *, log_group: _aws_cdk_aws_logs_ceddda9d.ILogGroup) -> None:
|
|
151
|
+
def __init__(self, *, log_group: "_aws_cdk_aws_logs_ceddda9d.ILogGroup") -> None:
|
|
152
152
|
'''Configuration details for logging to CloudWatch Logs.
|
|
153
153
|
|
|
154
154
|
:param log_group: The CloudWatch log group.
|
|
@@ -161,11 +161,11 @@ class CloudWatchLogDestination:
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
@builtins.property
|
|
164
|
-
def log_group(self) -> _aws_cdk_aws_logs_ceddda9d.ILogGroup:
|
|
164
|
+
def log_group(self) -> "_aws_cdk_aws_logs_ceddda9d.ILogGroup":
|
|
165
165
|
'''The CloudWatch log group.'''
|
|
166
166
|
result = self._values.get("log_group")
|
|
167
167
|
assert result is not None, "Required property 'log_group' is missing"
|
|
168
|
-
return typing.cast(_aws_cdk_aws_logs_ceddda9d.ILogGroup, result)
|
|
168
|
+
return typing.cast("_aws_cdk_aws_logs_ceddda9d.ILogGroup", result)
|
|
169
169
|
|
|
170
170
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
171
171
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -188,7 +188,7 @@ class Destination:
|
|
|
188
188
|
def __init__(
|
|
189
189
|
self,
|
|
190
190
|
*,
|
|
191
|
-
amp_configuration: typing.Union[AmpConfiguration, typing.Dict[builtins.str, typing.Any]],
|
|
191
|
+
amp_configuration: typing.Union["AmpConfiguration", typing.Dict[builtins.str, typing.Any]],
|
|
192
192
|
) -> None:
|
|
193
193
|
'''Where to send the metrics from a scraper.
|
|
194
194
|
|
|
@@ -204,11 +204,11 @@ class Destination:
|
|
|
204
204
|
}
|
|
205
205
|
|
|
206
206
|
@builtins.property
|
|
207
|
-
def amp_configuration(self) -> AmpConfiguration:
|
|
207
|
+
def amp_configuration(self) -> "AmpConfiguration":
|
|
208
208
|
'''The Amazon Managed Service for Prometheus workspace to send metrics to.'''
|
|
209
209
|
result = self._values.get("amp_configuration")
|
|
210
210
|
assert result is not None, "Required property 'amp_configuration' is missing"
|
|
211
|
-
return typing.cast(AmpConfiguration, result)
|
|
211
|
+
return typing.cast("AmpConfiguration", result)
|
|
212
212
|
|
|
213
213
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
214
214
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -235,9 +235,9 @@ class EksConfiguration:
|
|
|
235
235
|
def __init__(
|
|
236
236
|
self,
|
|
237
237
|
*,
|
|
238
|
-
cluster: _aws_cdk_aws_eks_ceddda9d.ICluster,
|
|
239
|
-
subnets: typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISubnet],
|
|
240
|
-
security_groups: typing.Optional[typing.Sequence[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup]] = None,
|
|
238
|
+
cluster: "_aws_cdk_aws_eks_ceddda9d.ICluster",
|
|
239
|
+
subnets: typing.Sequence["_aws_cdk_aws_ec2_ceddda9d.ISubnet"],
|
|
240
|
+
security_groups: typing.Optional[typing.Sequence["_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup"]] = None,
|
|
241
241
|
) -> None:
|
|
242
242
|
'''The EksConfiguration structure describes the connection to the Amazon EKS cluster from which a scraper collects metrics.
|
|
243
243
|
|
|
@@ -258,32 +258,32 @@ class EksConfiguration:
|
|
|
258
258
|
self._values["security_groups"] = security_groups
|
|
259
259
|
|
|
260
260
|
@builtins.property
|
|
261
|
-
def cluster(self) -> _aws_cdk_aws_eks_ceddda9d.ICluster:
|
|
261
|
+
def cluster(self) -> "_aws_cdk_aws_eks_ceddda9d.ICluster":
|
|
262
262
|
'''The Amazon EKS cluster.'''
|
|
263
263
|
result = self._values.get("cluster")
|
|
264
264
|
assert result is not None, "Required property 'cluster' is missing"
|
|
265
|
-
return typing.cast(_aws_cdk_aws_eks_ceddda9d.ICluster, result)
|
|
265
|
+
return typing.cast("_aws_cdk_aws_eks_ceddda9d.ICluster", result)
|
|
266
266
|
|
|
267
267
|
@builtins.property
|
|
268
|
-
def subnets(self) -> typing.List[_aws_cdk_aws_ec2_ceddda9d.ISubnet]:
|
|
268
|
+
def subnets(self) -> typing.List["_aws_cdk_aws_ec2_ceddda9d.ISubnet"]:
|
|
269
269
|
'''A list of subnets for the Amazon EKS cluster VPC configuration.
|
|
270
270
|
|
|
271
271
|
Min 1, max 5.
|
|
272
272
|
'''
|
|
273
273
|
result = self._values.get("subnets")
|
|
274
274
|
assert result is not None, "Required property 'subnets' is missing"
|
|
275
|
-
return typing.cast(typing.List[_aws_cdk_aws_ec2_ceddda9d.ISubnet], result)
|
|
275
|
+
return typing.cast(typing.List["_aws_cdk_aws_ec2_ceddda9d.ISubnet"], result)
|
|
276
276
|
|
|
277
277
|
@builtins.property
|
|
278
278
|
def security_groups(
|
|
279
279
|
self,
|
|
280
|
-
) -> typing.Optional[typing.List[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup]]:
|
|
280
|
+
) -> typing.Optional[typing.List["_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup"]]:
|
|
281
281
|
'''A list of the security group IDs for the Amazon EKS cluster VPC configuration.
|
|
282
282
|
|
|
283
283
|
Min 1, max 5.
|
|
284
284
|
'''
|
|
285
285
|
result = self._values.get("security_groups")
|
|
286
|
-
return typing.cast(typing.Optional[typing.List[_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup]], result)
|
|
286
|
+
return typing.cast(typing.Optional[typing.List["_aws_cdk_aws_ec2_ceddda9d.ISecurityGroup"]], result)
|
|
287
287
|
|
|
288
288
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
289
289
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -367,7 +367,7 @@ typing.cast(typing.Any, IRuleGroupsNamespace).__jsii_proxy_class__ = lambda : _I
|
|
|
367
367
|
class IScraper(_aws_cdk_ceddda9d.IResource, typing_extensions.Protocol):
|
|
368
368
|
@builtins.property
|
|
369
369
|
@jsii.member(jsii_name="destination")
|
|
370
|
-
def destination(self) -> Destination:
|
|
370
|
+
def destination(self) -> "Destination":
|
|
371
371
|
'''The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.'''
|
|
372
372
|
...
|
|
373
373
|
|
|
@@ -426,9 +426,9 @@ class _IScraperProxy(
|
|
|
426
426
|
|
|
427
427
|
@builtins.property
|
|
428
428
|
@jsii.member(jsii_name="destination")
|
|
429
|
-
def destination(self) -> Destination:
|
|
429
|
+
def destination(self) -> "Destination":
|
|
430
430
|
'''The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.'''
|
|
431
|
-
return typing.cast(Destination, jsii.get(self, "destination"))
|
|
431
|
+
return typing.cast("Destination", jsii.get(self, "destination"))
|
|
432
432
|
|
|
433
433
|
@builtins.property
|
|
434
434
|
@jsii.member(jsii_name="scrapeConfiguration")
|
|
@@ -519,7 +519,7 @@ class IWorkspace(_aws_cdk_ceddda9d.IResource, typing_extensions.Protocol):
|
|
|
519
519
|
|
|
520
520
|
@builtins.property
|
|
521
521
|
@jsii.member(jsii_name="kmsKey")
|
|
522
|
-
def kms_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
|
522
|
+
def kms_key(self) -> typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"]:
|
|
523
523
|
'''The customer managed AWS KMS key to use for encrypting data within your workspace.'''
|
|
524
524
|
...
|
|
525
525
|
|
|
@@ -588,9 +588,9 @@ class _IWorkspaceProxy(
|
|
|
588
588
|
|
|
589
589
|
@builtins.property
|
|
590
590
|
@jsii.member(jsii_name="kmsKey")
|
|
591
|
-
def kms_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
|
591
|
+
def kms_key(self) -> typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"]:
|
|
592
592
|
'''The customer managed AWS KMS key to use for encrypting data within your workspace.'''
|
|
593
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey], jsii.get(self, "kmsKey"))
|
|
593
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"], jsii.get(self, "kmsKey"))
|
|
594
594
|
|
|
595
595
|
@builtins.property
|
|
596
596
|
@jsii.member(jsii_name="loggingConfiguration")
|
|
@@ -688,7 +688,7 @@ class LimitsPerLabelSet:
|
|
|
688
688
|
def __init__(
|
|
689
689
|
self,
|
|
690
690
|
*,
|
|
691
|
-
label_set: typing.Sequence[typing.Union[Label, typing.Dict[builtins.str, typing.Any]]],
|
|
691
|
+
label_set: typing.Sequence[typing.Union["Label", typing.Dict[builtins.str, typing.Any]]],
|
|
692
692
|
limits: typing.Union["LimitsPerLabelSetEntry", typing.Dict[builtins.str, typing.Any]],
|
|
693
693
|
) -> None:
|
|
694
694
|
'''This defines a label set for the workspace, and defines the ingestion limit for active time series that match that label set.
|
|
@@ -710,7 +710,7 @@ class LimitsPerLabelSet:
|
|
|
710
710
|
}
|
|
711
711
|
|
|
712
712
|
@builtins.property
|
|
713
|
-
def label_set(self) -> typing.List[Label]:
|
|
713
|
+
def label_set(self) -> typing.List["Label"]:
|
|
714
714
|
'''This defines one label set that will have an enforced ingestion limit.
|
|
715
715
|
|
|
716
716
|
You can set ingestion
|
|
@@ -725,7 +725,7 @@ class LimitsPerLabelSet:
|
|
|
725
725
|
'''
|
|
726
726
|
result = self._values.get("label_set")
|
|
727
727
|
assert result is not None, "Required property 'label_set' is missing"
|
|
728
|
-
return typing.cast(typing.List[Label], result)
|
|
728
|
+
return typing.cast(typing.List["Label"], result)
|
|
729
729
|
|
|
730
730
|
@builtins.property
|
|
731
731
|
def limits(self) -> "LimitsPerLabelSetEntry":
|
|
@@ -797,7 +797,7 @@ class LoggingConfiguration:
|
|
|
797
797
|
def __init__(
|
|
798
798
|
self,
|
|
799
799
|
*,
|
|
800
|
-
log_group: typing.Optional[_aws_cdk_aws_logs_ceddda9d.ILogGroup] = None,
|
|
800
|
+
log_group: typing.Optional["_aws_cdk_aws_logs_ceddda9d.ILogGroup"] = None,
|
|
801
801
|
) -> None:
|
|
802
802
|
'''Contains information about the rules and alerting logging configuration for the workspace.
|
|
803
803
|
|
|
@@ -811,10 +811,10 @@ class LoggingConfiguration:
|
|
|
811
811
|
self._values["log_group"] = log_group
|
|
812
812
|
|
|
813
813
|
@builtins.property
|
|
814
|
-
def log_group(self) -> typing.Optional[_aws_cdk_aws_logs_ceddda9d.ILogGroup]:
|
|
814
|
+
def log_group(self) -> typing.Optional["_aws_cdk_aws_logs_ceddda9d.ILogGroup"]:
|
|
815
815
|
'''The CloudWatch log group to which the vended log data will be published.'''
|
|
816
816
|
result = self._values.get("log_group")
|
|
817
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_logs_ceddda9d.ILogGroup], result)
|
|
817
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_logs_ceddda9d.ILogGroup"], result)
|
|
818
818
|
|
|
819
819
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
820
820
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -837,7 +837,7 @@ class LoggingDestination:
|
|
|
837
837
|
def __init__(
|
|
838
838
|
self,
|
|
839
839
|
*,
|
|
840
|
-
cloud_watch_logs: typing.Union[CloudWatchLogDestination, typing.Dict[builtins.str, typing.Any]],
|
|
840
|
+
cloud_watch_logs: typing.Union["CloudWatchLogDestination", typing.Dict[builtins.str, typing.Any]],
|
|
841
841
|
filters: typing.Union["LoggingFilter", typing.Dict[builtins.str, typing.Any]],
|
|
842
842
|
) -> None:
|
|
843
843
|
'''The logging destination in an Amazon Managed Service for Prometheus workspace.
|
|
@@ -859,11 +859,11 @@ class LoggingDestination:
|
|
|
859
859
|
}
|
|
860
860
|
|
|
861
861
|
@builtins.property
|
|
862
|
-
def cloud_watch_logs(self) -> CloudWatchLogDestination:
|
|
862
|
+
def cloud_watch_logs(self) -> "CloudWatchLogDestination":
|
|
863
863
|
'''Configuration details for logging to CloudWatch Logs.'''
|
|
864
864
|
result = self._values.get("cloud_watch_logs")
|
|
865
865
|
assert result is not None, "Required property 'cloud_watch_logs' is missing"
|
|
866
|
-
return typing.cast(CloudWatchLogDestination, result)
|
|
866
|
+
return typing.cast("CloudWatchLogDestination", result)
|
|
867
867
|
|
|
868
868
|
@builtins.property
|
|
869
869
|
def filters(self) -> "LoggingFilter":
|
|
@@ -933,7 +933,7 @@ class QueryLoggingConfiguration:
|
|
|
933
933
|
def __init__(
|
|
934
934
|
self,
|
|
935
935
|
*,
|
|
936
|
-
destinations: typing.Sequence[typing.Union[LoggingDestination, typing.Dict[builtins.str, typing.Any]]],
|
|
936
|
+
destinations: typing.Sequence[typing.Union["LoggingDestination", typing.Dict[builtins.str, typing.Any]]],
|
|
937
937
|
) -> None:
|
|
938
938
|
'''The query logging configuration in an Amazon Managed Service for Prometheus workspace.
|
|
939
939
|
|
|
@@ -947,14 +947,14 @@ class QueryLoggingConfiguration:
|
|
|
947
947
|
}
|
|
948
948
|
|
|
949
949
|
@builtins.property
|
|
950
|
-
def destinations(self) -> typing.List[LoggingDestination]:
|
|
950
|
+
def destinations(self) -> typing.List["LoggingDestination"]:
|
|
951
951
|
'''Defines a destination and its associated filtering criteria for query logging.
|
|
952
952
|
|
|
953
953
|
Minimum 1 and maximum 1 item in array.
|
|
954
954
|
'''
|
|
955
955
|
result = self._values.get("destinations")
|
|
956
956
|
assert result is not None, "Required property 'destinations' is missing"
|
|
957
|
-
return typing.cast(typing.List[LoggingDestination], result)
|
|
957
|
+
return typing.cast(typing.List["LoggingDestination"], result)
|
|
958
958
|
|
|
959
959
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
960
960
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -977,8 +977,8 @@ class RoleConfiguration:
|
|
|
977
977
|
def __init__(
|
|
978
978
|
self,
|
|
979
979
|
*,
|
|
980
|
-
source_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
981
|
-
target_role: typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole] = None,
|
|
980
|
+
source_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
981
|
+
target_role: typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"] = None,
|
|
982
982
|
) -> None:
|
|
983
983
|
'''The role configuration in an Amazon Managed Service for Prometheus scraper.
|
|
984
984
|
|
|
@@ -996,16 +996,16 @@ class RoleConfiguration:
|
|
|
996
996
|
self._values["target_role"] = target_role
|
|
997
997
|
|
|
998
998
|
@builtins.property
|
|
999
|
-
def source_role(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole]:
|
|
999
|
+
def source_role(self) -> typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"]:
|
|
1000
1000
|
'''The source role.'''
|
|
1001
1001
|
result = self._values.get("source_role")
|
|
1002
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole], result)
|
|
1002
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"], result)
|
|
1003
1003
|
|
|
1004
1004
|
@builtins.property
|
|
1005
|
-
def target_role(self) -> typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole]:
|
|
1005
|
+
def target_role(self) -> typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"]:
|
|
1006
1006
|
'''The target role.'''
|
|
1007
1007
|
result = self._values.get("target_role")
|
|
1008
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_iam_ceddda9d.IRole], result)
|
|
1008
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_iam_ceddda9d.IRole"], result)
|
|
1009
1009
|
|
|
1010
1010
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1011
1011
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1036,7 +1036,7 @@ class RuleGroupsNamespaceAttributes:
|
|
|
1036
1036
|
data: builtins.str,
|
|
1037
1037
|
name: builtins.str,
|
|
1038
1038
|
rule_groups_namespace_arn: builtins.str,
|
|
1039
|
-
workspace: IWorkspace,
|
|
1039
|
+
workspace: "IWorkspace",
|
|
1040
1040
|
) -> None:
|
|
1041
1041
|
'''Properties for importing a rule groups namespace in an Amazon Managed Service for Prometheus workspace from attributes.
|
|
1042
1042
|
|
|
@@ -1083,11 +1083,11 @@ class RuleGroupsNamespaceAttributes:
|
|
|
1083
1083
|
return typing.cast(builtins.str, result)
|
|
1084
1084
|
|
|
1085
1085
|
@builtins.property
|
|
1086
|
-
def workspace(self) -> IWorkspace:
|
|
1086
|
+
def workspace(self) -> "IWorkspace":
|
|
1087
1087
|
'''The workspace to add the rule groups namespace.'''
|
|
1088
1088
|
result = self._values.get("workspace")
|
|
1089
1089
|
assert result is not None, "Required property 'workspace' is missing"
|
|
1090
|
-
return typing.cast(IWorkspace, result)
|
|
1090
|
+
return typing.cast("IWorkspace", result)
|
|
1091
1091
|
|
|
1092
1092
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1093
1093
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1109,7 +1109,7 @@ class RuleGroupsNamespaceBase(
|
|
|
1109
1109
|
):
|
|
1110
1110
|
def __init__(
|
|
1111
1111
|
self,
|
|
1112
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
1112
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
1113
1113
|
id: builtins.str,
|
|
1114
1114
|
*,
|
|
1115
1115
|
account: typing.Optional[builtins.str] = None,
|
|
@@ -1162,7 +1162,7 @@ class RuleGroupsNamespaceBase(
|
|
|
1162
1162
|
@builtins.property
|
|
1163
1163
|
@jsii.member(jsii_name="workspace")
|
|
1164
1164
|
@abc.abstractmethod
|
|
1165
|
-
def workspace(self) -> IWorkspace:
|
|
1165
|
+
def workspace(self) -> "IWorkspace":
|
|
1166
1166
|
'''The workspace to add the rule groups namespace.'''
|
|
1167
1167
|
...
|
|
1168
1168
|
|
|
@@ -1191,9 +1191,9 @@ class _RuleGroupsNamespaceBaseProxy(
|
|
|
1191
1191
|
|
|
1192
1192
|
@builtins.property
|
|
1193
1193
|
@jsii.member(jsii_name="workspace")
|
|
1194
|
-
def workspace(self) -> IWorkspace:
|
|
1194
|
+
def workspace(self) -> "IWorkspace":
|
|
1195
1195
|
'''The workspace to add the rule groups namespace.'''
|
|
1196
|
-
return typing.cast(IWorkspace, jsii.get(self, "workspace"))
|
|
1196
|
+
return typing.cast("IWorkspace", jsii.get(self, "workspace"))
|
|
1197
1197
|
|
|
1198
1198
|
# Adding a "__jsii_proxy_class__(): typing.Type" function to the abstract class
|
|
1199
1199
|
typing.cast(typing.Any, RuleGroupsNamespaceBase).__jsii_proxy_class__ = lambda : _RuleGroupsNamespaceBaseProxy
|
|
@@ -1210,7 +1210,7 @@ class RuleGroupsNamespaceProps:
|
|
|
1210
1210
|
*,
|
|
1211
1211
|
data: builtins.str,
|
|
1212
1212
|
name: builtins.str,
|
|
1213
|
-
workspace: IWorkspace,
|
|
1213
|
+
workspace: "IWorkspace",
|
|
1214
1214
|
) -> None:
|
|
1215
1215
|
'''Properties for creating a rule groups namespace in an Amazon Managed Service for Prometheus workspace.
|
|
1216
1216
|
|
|
@@ -1247,11 +1247,11 @@ class RuleGroupsNamespaceProps:
|
|
|
1247
1247
|
return typing.cast(builtins.str, result)
|
|
1248
1248
|
|
|
1249
1249
|
@builtins.property
|
|
1250
|
-
def workspace(self) -> IWorkspace:
|
|
1250
|
+
def workspace(self) -> "IWorkspace":
|
|
1251
1251
|
'''The workspace to add the rule groups namespace.'''
|
|
1252
1252
|
result = self._values.get("workspace")
|
|
1253
1253
|
assert result is not None, "Required property 'workspace' is missing"
|
|
1254
|
-
return typing.cast(IWorkspace, result)
|
|
1254
|
+
return typing.cast("IWorkspace", result)
|
|
1255
1255
|
|
|
1256
1256
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1257
1257
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1318,12 +1318,12 @@ class ScraperAttributes:
|
|
|
1318
1318
|
def __init__(
|
|
1319
1319
|
self,
|
|
1320
1320
|
*,
|
|
1321
|
-
destination: typing.Union[Destination, typing.Dict[builtins.str, typing.Any]],
|
|
1322
|
-
scrape_configuration: typing.Union[ScrapeConfiguration, typing.Dict[builtins.str, typing.Any]],
|
|
1321
|
+
destination: typing.Union["Destination", typing.Dict[builtins.str, typing.Any]],
|
|
1322
|
+
scrape_configuration: typing.Union["ScrapeConfiguration", typing.Dict[builtins.str, typing.Any]],
|
|
1323
1323
|
scraper_arn: builtins.str,
|
|
1324
1324
|
source: typing.Union["Source", typing.Dict[builtins.str, typing.Any]],
|
|
1325
1325
|
alias: typing.Optional[builtins.str] = None,
|
|
1326
|
-
role_configuration: typing.Optional[typing.Union[RoleConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1326
|
+
role_configuration: typing.Optional[typing.Union["RoleConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1327
1327
|
) -> None:
|
|
1328
1328
|
'''Properties for importing an Amazon Managed Service for Prometheus Scraper from attributes.
|
|
1329
1329
|
|
|
@@ -1362,18 +1362,18 @@ class ScraperAttributes:
|
|
|
1362
1362
|
self._values["role_configuration"] = role_configuration
|
|
1363
1363
|
|
|
1364
1364
|
@builtins.property
|
|
1365
|
-
def destination(self) -> Destination:
|
|
1365
|
+
def destination(self) -> "Destination":
|
|
1366
1366
|
'''The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.'''
|
|
1367
1367
|
result = self._values.get("destination")
|
|
1368
1368
|
assert result is not None, "Required property 'destination' is missing"
|
|
1369
|
-
return typing.cast(Destination, result)
|
|
1369
|
+
return typing.cast("Destination", result)
|
|
1370
1370
|
|
|
1371
1371
|
@builtins.property
|
|
1372
|
-
def scrape_configuration(self) -> ScrapeConfiguration:
|
|
1372
|
+
def scrape_configuration(self) -> "ScrapeConfiguration":
|
|
1373
1373
|
'''The configuration in use by the scraper.'''
|
|
1374
1374
|
result = self._values.get("scrape_configuration")
|
|
1375
1375
|
assert result is not None, "Required property 'scrape_configuration' is missing"
|
|
1376
|
-
return typing.cast(ScrapeConfiguration, result)
|
|
1376
|
+
return typing.cast("ScrapeConfiguration", result)
|
|
1377
1377
|
|
|
1378
1378
|
@builtins.property
|
|
1379
1379
|
def scraper_arn(self) -> builtins.str:
|
|
@@ -1401,10 +1401,10 @@ class ScraperAttributes:
|
|
|
1401
1401
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1402
1402
|
|
|
1403
1403
|
@builtins.property
|
|
1404
|
-
def role_configuration(self) -> typing.Optional[RoleConfiguration]:
|
|
1404
|
+
def role_configuration(self) -> typing.Optional["RoleConfiguration"]:
|
|
1405
1405
|
'''The role configuration in an Amazon Managed Service for Prometheus scraper.'''
|
|
1406
1406
|
result = self._values.get("role_configuration")
|
|
1407
|
-
return typing.cast(typing.Optional[RoleConfiguration], result)
|
|
1407
|
+
return typing.cast(typing.Optional["RoleConfiguration"], result)
|
|
1408
1408
|
|
|
1409
1409
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1410
1410
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1426,7 +1426,7 @@ class ScraperBase(
|
|
|
1426
1426
|
):
|
|
1427
1427
|
def __init__(
|
|
1428
1428
|
self,
|
|
1429
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
1429
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
1430
1430
|
id: builtins.str,
|
|
1431
1431
|
*,
|
|
1432
1432
|
account: typing.Optional[builtins.str] = None,
|
|
@@ -1468,14 +1468,14 @@ class ScraperBase(
|
|
|
1468
1468
|
@builtins.property
|
|
1469
1469
|
@jsii.member(jsii_name="destination")
|
|
1470
1470
|
@abc.abstractmethod
|
|
1471
|
-
def destination(self) -> Destination:
|
|
1471
|
+
def destination(self) -> "Destination":
|
|
1472
1472
|
'''The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.'''
|
|
1473
1473
|
...
|
|
1474
1474
|
|
|
1475
1475
|
@builtins.property
|
|
1476
1476
|
@jsii.member(jsii_name="scrapeConfiguration")
|
|
1477
1477
|
@abc.abstractmethod
|
|
1478
|
-
def scrape_configuration(self) -> ScrapeConfiguration:
|
|
1478
|
+
def scrape_configuration(self) -> "ScrapeConfiguration":
|
|
1479
1479
|
'''The configuration in use by the scraper.'''
|
|
1480
1480
|
...
|
|
1481
1481
|
|
|
@@ -1515,7 +1515,7 @@ class ScraperBase(
|
|
|
1515
1515
|
@builtins.property
|
|
1516
1516
|
@jsii.member(jsii_name="roleConfiguration")
|
|
1517
1517
|
@abc.abstractmethod
|
|
1518
|
-
def role_configuration(self) -> typing.Optional[RoleConfiguration]:
|
|
1518
|
+
def role_configuration(self) -> typing.Optional["RoleConfiguration"]:
|
|
1519
1519
|
'''The role configuration in an Amazon Managed Service for Prometheus scraper.'''
|
|
1520
1520
|
...
|
|
1521
1521
|
|
|
@@ -1526,15 +1526,15 @@ class _ScraperBaseProxy(
|
|
|
1526
1526
|
):
|
|
1527
1527
|
@builtins.property
|
|
1528
1528
|
@jsii.member(jsii_name="destination")
|
|
1529
|
-
def destination(self) -> Destination:
|
|
1529
|
+
def destination(self) -> "Destination":
|
|
1530
1530
|
'''The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.'''
|
|
1531
|
-
return typing.cast(Destination, jsii.get(self, "destination"))
|
|
1531
|
+
return typing.cast("Destination", jsii.get(self, "destination"))
|
|
1532
1532
|
|
|
1533
1533
|
@builtins.property
|
|
1534
1534
|
@jsii.member(jsii_name="scrapeConfiguration")
|
|
1535
|
-
def scrape_configuration(self) -> ScrapeConfiguration:
|
|
1535
|
+
def scrape_configuration(self) -> "ScrapeConfiguration":
|
|
1536
1536
|
'''The configuration in use by the scraper.'''
|
|
1537
|
-
return typing.cast(ScrapeConfiguration, jsii.get(self, "scrapeConfiguration"))
|
|
1537
|
+
return typing.cast("ScrapeConfiguration", jsii.get(self, "scrapeConfiguration"))
|
|
1538
1538
|
|
|
1539
1539
|
@builtins.property
|
|
1540
1540
|
@jsii.member(jsii_name="scraperArn")
|
|
@@ -1567,9 +1567,9 @@ class _ScraperBaseProxy(
|
|
|
1567
1567
|
|
|
1568
1568
|
@builtins.property
|
|
1569
1569
|
@jsii.member(jsii_name="roleConfiguration")
|
|
1570
|
-
def role_configuration(self) -> typing.Optional[RoleConfiguration]:
|
|
1570
|
+
def role_configuration(self) -> typing.Optional["RoleConfiguration"]:
|
|
1571
1571
|
'''The role configuration in an Amazon Managed Service for Prometheus scraper.'''
|
|
1572
|
-
return typing.cast(typing.Optional[RoleConfiguration], jsii.get(self, "roleConfiguration"))
|
|
1572
|
+
return typing.cast(typing.Optional["RoleConfiguration"], jsii.get(self, "roleConfiguration"))
|
|
1573
1573
|
|
|
1574
1574
|
# Adding a "__jsii_proxy_class__(): typing.Type" function to the abstract class
|
|
1575
1575
|
typing.cast(typing.Any, ScraperBase).__jsii_proxy_class__ = lambda : _ScraperBaseProxy
|
|
@@ -1590,11 +1590,11 @@ class ScraperProps:
|
|
|
1590
1590
|
def __init__(
|
|
1591
1591
|
self,
|
|
1592
1592
|
*,
|
|
1593
|
-
destination: typing.Union[Destination, typing.Dict[builtins.str, typing.Any]],
|
|
1594
|
-
scrape_configuration: typing.Union[ScrapeConfiguration, typing.Dict[builtins.str, typing.Any]],
|
|
1593
|
+
destination: typing.Union["Destination", typing.Dict[builtins.str, typing.Any]],
|
|
1594
|
+
scrape_configuration: typing.Union["ScrapeConfiguration", typing.Dict[builtins.str, typing.Any]],
|
|
1595
1595
|
source: typing.Union["Source", typing.Dict[builtins.str, typing.Any]],
|
|
1596
1596
|
alias: typing.Optional[builtins.str] = None,
|
|
1597
|
-
role_configuration: typing.Optional[typing.Union[RoleConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1597
|
+
role_configuration: typing.Optional[typing.Union["RoleConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1598
1598
|
) -> None:
|
|
1599
1599
|
'''Properties for creating an Amazon Managed Service for Prometheus Scraper.
|
|
1600
1600
|
|
|
@@ -1630,18 +1630,18 @@ class ScraperProps:
|
|
|
1630
1630
|
self._values["role_configuration"] = role_configuration
|
|
1631
1631
|
|
|
1632
1632
|
@builtins.property
|
|
1633
|
-
def destination(self) -> Destination:
|
|
1633
|
+
def destination(self) -> "Destination":
|
|
1634
1634
|
'''The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.'''
|
|
1635
1635
|
result = self._values.get("destination")
|
|
1636
1636
|
assert result is not None, "Required property 'destination' is missing"
|
|
1637
|
-
return typing.cast(Destination, result)
|
|
1637
|
+
return typing.cast("Destination", result)
|
|
1638
1638
|
|
|
1639
1639
|
@builtins.property
|
|
1640
|
-
def scrape_configuration(self) -> ScrapeConfiguration:
|
|
1640
|
+
def scrape_configuration(self) -> "ScrapeConfiguration":
|
|
1641
1641
|
'''The configuration in use by the scraper.'''
|
|
1642
1642
|
result = self._values.get("scrape_configuration")
|
|
1643
1643
|
assert result is not None, "Required property 'scrape_configuration' is missing"
|
|
1644
|
-
return typing.cast(ScrapeConfiguration, result)
|
|
1644
|
+
return typing.cast("ScrapeConfiguration", result)
|
|
1645
1645
|
|
|
1646
1646
|
@builtins.property
|
|
1647
1647
|
def source(self) -> "Source":
|
|
@@ -1662,10 +1662,10 @@ class ScraperProps:
|
|
|
1662
1662
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1663
1663
|
|
|
1664
1664
|
@builtins.property
|
|
1665
|
-
def role_configuration(self) -> typing.Optional[RoleConfiguration]:
|
|
1665
|
+
def role_configuration(self) -> typing.Optional["RoleConfiguration"]:
|
|
1666
1666
|
'''The role configuration in an Amazon Managed Service for Prometheus scraper.'''
|
|
1667
1667
|
result = self._values.get("role_configuration")
|
|
1668
|
-
return typing.cast(typing.Optional[RoleConfiguration], result)
|
|
1668
|
+
return typing.cast(typing.Optional["RoleConfiguration"], result)
|
|
1669
1669
|
|
|
1670
1670
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1671
1671
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1688,7 +1688,7 @@ class Source:
|
|
|
1688
1688
|
def __init__(
|
|
1689
1689
|
self,
|
|
1690
1690
|
*,
|
|
1691
|
-
eks_configuration: typing.Union[EksConfiguration, typing.Dict[builtins.str, typing.Any]],
|
|
1691
|
+
eks_configuration: typing.Union["EksConfiguration", typing.Dict[builtins.str, typing.Any]],
|
|
1692
1692
|
) -> None:
|
|
1693
1693
|
'''The source of collected metrics for a scraper.
|
|
1694
1694
|
|
|
@@ -1704,11 +1704,11 @@ class Source:
|
|
|
1704
1704
|
}
|
|
1705
1705
|
|
|
1706
1706
|
@builtins.property
|
|
1707
|
-
def eks_configuration(self) -> EksConfiguration:
|
|
1707
|
+
def eks_configuration(self) -> "EksConfiguration":
|
|
1708
1708
|
'''The Amazon EKS cluster from which a scraper collects metrics.'''
|
|
1709
1709
|
result = self._values.get("eks_configuration")
|
|
1710
1710
|
assert result is not None, "Required property 'eks_configuration' is missing"
|
|
1711
|
-
return typing.cast(EksConfiguration, result)
|
|
1711
|
+
return typing.cast("EksConfiguration", result)
|
|
1712
1712
|
|
|
1713
1713
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
1714
1714
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -1742,9 +1742,9 @@ class WorkspaceAttributes:
|
|
|
1742
1742
|
workspace_arn: builtins.str,
|
|
1743
1743
|
alert_manager_definition: typing.Optional[builtins.str] = None,
|
|
1744
1744
|
alias: typing.Optional[builtins.str] = None,
|
|
1745
|
-
kms_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey] = None,
|
|
1746
|
-
logging_configuration: typing.Optional[typing.Union[LoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1747
|
-
query_logging_configuration: typing.Optional[typing.Union[QueryLoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1745
|
+
kms_key: typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"] = None,
|
|
1746
|
+
logging_configuration: typing.Optional[typing.Union["LoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1747
|
+
query_logging_configuration: typing.Optional[typing.Union["QueryLoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1748
1748
|
workspace_configuration: typing.Optional[typing.Union["WorkspaceConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
1749
1749
|
) -> None:
|
|
1750
1750
|
'''Properties for importing an Amazon Managed Service for Prometheus Workspace from attributes.
|
|
@@ -1812,25 +1812,27 @@ class WorkspaceAttributes:
|
|
|
1812
1812
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
1813
1813
|
|
|
1814
1814
|
@builtins.property
|
|
1815
|
-
def kms_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
|
1815
|
+
def kms_key(self) -> typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"]:
|
|
1816
1816
|
'''The customer managed AWS KMS key to use for encrypting data within your workspace.'''
|
|
1817
1817
|
result = self._values.get("kms_key")
|
|
1818
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey], result)
|
|
1818
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"], result)
|
|
1819
1819
|
|
|
1820
1820
|
@builtins.property
|
|
1821
|
-
def logging_configuration(self) -> typing.Optional[LoggingConfiguration]:
|
|
1821
|
+
def logging_configuration(self) -> typing.Optional["LoggingConfiguration"]:
|
|
1822
1822
|
'''Contains information about the current rules and alerting logging configuration for the workspace.
|
|
1823
1823
|
|
|
1824
1824
|
Note: These logging configurations are only for rules and alerting logs.
|
|
1825
1825
|
'''
|
|
1826
1826
|
result = self._values.get("logging_configuration")
|
|
1827
|
-
return typing.cast(typing.Optional[LoggingConfiguration], result)
|
|
1827
|
+
return typing.cast(typing.Optional["LoggingConfiguration"], result)
|
|
1828
1828
|
|
|
1829
1829
|
@builtins.property
|
|
1830
|
-
def query_logging_configuration(
|
|
1830
|
+
def query_logging_configuration(
|
|
1831
|
+
self,
|
|
1832
|
+
) -> typing.Optional["QueryLoggingConfiguration"]:
|
|
1831
1833
|
'''The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.'''
|
|
1832
1834
|
result = self._values.get("query_logging_configuration")
|
|
1833
|
-
return typing.cast(typing.Optional[QueryLoggingConfiguration], result)
|
|
1835
|
+
return typing.cast(typing.Optional["QueryLoggingConfiguration"], result)
|
|
1834
1836
|
|
|
1835
1837
|
@builtins.property
|
|
1836
1838
|
def workspace_configuration(self) -> typing.Optional["WorkspaceConfiguration"]:
|
|
@@ -1858,7 +1860,7 @@ class WorkspaceBase(
|
|
|
1858
1860
|
):
|
|
1859
1861
|
def __init__(
|
|
1860
1862
|
self,
|
|
1861
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
1863
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
1862
1864
|
id: builtins.str,
|
|
1863
1865
|
*,
|
|
1864
1866
|
account: typing.Optional[builtins.str] = None,
|
|
@@ -1932,14 +1934,14 @@ class WorkspaceBase(
|
|
|
1932
1934
|
@builtins.property
|
|
1933
1935
|
@jsii.member(jsii_name="kmsKey")
|
|
1934
1936
|
@abc.abstractmethod
|
|
1935
|
-
def kms_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
|
1937
|
+
def kms_key(self) -> typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"]:
|
|
1936
1938
|
'''The customer managed AWS KMS key to use for encrypting data within your workspace.'''
|
|
1937
1939
|
...
|
|
1938
1940
|
|
|
1939
1941
|
@builtins.property
|
|
1940
1942
|
@jsii.member(jsii_name="loggingConfiguration")
|
|
1941
1943
|
@abc.abstractmethod
|
|
1942
|
-
def logging_configuration(self) -> typing.Optional[LoggingConfiguration]:
|
|
1944
|
+
def logging_configuration(self) -> typing.Optional["LoggingConfiguration"]:
|
|
1943
1945
|
'''Contains information about the current rules and alerting logging configuration for the workspace.
|
|
1944
1946
|
|
|
1945
1947
|
Note: These logging configurations are only for rules and alerting logs.
|
|
@@ -1949,7 +1951,9 @@ class WorkspaceBase(
|
|
|
1949
1951
|
@builtins.property
|
|
1950
1952
|
@jsii.member(jsii_name="queryLoggingConfiguration")
|
|
1951
1953
|
@abc.abstractmethod
|
|
1952
|
-
def query_logging_configuration(
|
|
1954
|
+
def query_logging_configuration(
|
|
1955
|
+
self,
|
|
1956
|
+
) -> typing.Optional["QueryLoggingConfiguration"]:
|
|
1953
1957
|
'''The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.'''
|
|
1954
1958
|
...
|
|
1955
1959
|
|
|
@@ -1995,24 +1999,26 @@ class _WorkspaceBaseProxy(
|
|
|
1995
1999
|
|
|
1996
2000
|
@builtins.property
|
|
1997
2001
|
@jsii.member(jsii_name="kmsKey")
|
|
1998
|
-
def kms_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
|
2002
|
+
def kms_key(self) -> typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"]:
|
|
1999
2003
|
'''The customer managed AWS KMS key to use for encrypting data within your workspace.'''
|
|
2000
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey], jsii.get(self, "kmsKey"))
|
|
2004
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"], jsii.get(self, "kmsKey"))
|
|
2001
2005
|
|
|
2002
2006
|
@builtins.property
|
|
2003
2007
|
@jsii.member(jsii_name="loggingConfiguration")
|
|
2004
|
-
def logging_configuration(self) -> typing.Optional[LoggingConfiguration]:
|
|
2008
|
+
def logging_configuration(self) -> typing.Optional["LoggingConfiguration"]:
|
|
2005
2009
|
'''Contains information about the current rules and alerting logging configuration for the workspace.
|
|
2006
2010
|
|
|
2007
2011
|
Note: These logging configurations are only for rules and alerting logs.
|
|
2008
2012
|
'''
|
|
2009
|
-
return typing.cast(typing.Optional[LoggingConfiguration], jsii.get(self, "loggingConfiguration"))
|
|
2013
|
+
return typing.cast(typing.Optional["LoggingConfiguration"], jsii.get(self, "loggingConfiguration"))
|
|
2010
2014
|
|
|
2011
2015
|
@builtins.property
|
|
2012
2016
|
@jsii.member(jsii_name="queryLoggingConfiguration")
|
|
2013
|
-
def query_logging_configuration(
|
|
2017
|
+
def query_logging_configuration(
|
|
2018
|
+
self,
|
|
2019
|
+
) -> typing.Optional["QueryLoggingConfiguration"]:
|
|
2014
2020
|
'''The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.'''
|
|
2015
|
-
return typing.cast(typing.Optional[QueryLoggingConfiguration], jsii.get(self, "queryLoggingConfiguration"))
|
|
2021
|
+
return typing.cast(typing.Optional["QueryLoggingConfiguration"], jsii.get(self, "queryLoggingConfiguration"))
|
|
2016
2022
|
|
|
2017
2023
|
@builtins.property
|
|
2018
2024
|
@jsii.member(jsii_name="workspaceConfiguration")
|
|
@@ -2036,7 +2042,7 @@ class WorkspaceConfiguration:
|
|
|
2036
2042
|
def __init__(
|
|
2037
2043
|
self,
|
|
2038
2044
|
*,
|
|
2039
|
-
limits_per_label_sets: typing.Optional[typing.Sequence[typing.Union[LimitsPerLabelSet, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2045
|
+
limits_per_label_sets: typing.Optional[typing.Sequence[typing.Union["LimitsPerLabelSet", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
2040
2046
|
retention_period_in_days: typing.Optional[jsii.Number] = None,
|
|
2041
2047
|
) -> None:
|
|
2042
2048
|
'''Use this structure to define label sets and the ingestion limits for time series that match label sets, and to specify the retention period of the workspace.
|
|
@@ -2055,7 +2061,9 @@ class WorkspaceConfiguration:
|
|
|
2055
2061
|
self._values["retention_period_in_days"] = retention_period_in_days
|
|
2056
2062
|
|
|
2057
2063
|
@builtins.property
|
|
2058
|
-
def limits_per_label_sets(
|
|
2064
|
+
def limits_per_label_sets(
|
|
2065
|
+
self,
|
|
2066
|
+
) -> typing.Optional[typing.List["LimitsPerLabelSet"]]:
|
|
2059
2067
|
'''This is an array of structures, where each structure defines a label set for the workspace, and defines the ingestion limit for active time series for each of those label sets.
|
|
2060
2068
|
|
|
2061
2069
|
Each
|
|
@@ -2064,7 +2072,7 @@ class WorkspaceConfiguration:
|
|
|
2064
2072
|
Minimum 0
|
|
2065
2073
|
'''
|
|
2066
2074
|
result = self._values.get("limits_per_label_sets")
|
|
2067
|
-
return typing.cast(typing.Optional[typing.List[LimitsPerLabelSet]], result)
|
|
2075
|
+
return typing.cast(typing.Optional[typing.List["LimitsPerLabelSet"]], result)
|
|
2068
2076
|
|
|
2069
2077
|
@builtins.property
|
|
2070
2078
|
def retention_period_in_days(self) -> typing.Optional[jsii.Number]:
|
|
@@ -2105,10 +2113,10 @@ class WorkspaceProps:
|
|
|
2105
2113
|
*,
|
|
2106
2114
|
alert_manager_definition: typing.Optional[builtins.str] = None,
|
|
2107
2115
|
alias: typing.Optional[builtins.str] = None,
|
|
2108
|
-
kms_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey] = None,
|
|
2109
|
-
logging_configuration: typing.Optional[typing.Union[LoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2110
|
-
query_logging_configuration: typing.Optional[typing.Union[QueryLoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2111
|
-
workspace_configuration: typing.Optional[typing.Union[WorkspaceConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2116
|
+
kms_key: typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"] = None,
|
|
2117
|
+
logging_configuration: typing.Optional[typing.Union["LoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2118
|
+
query_logging_configuration: typing.Optional[typing.Union["QueryLoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2119
|
+
workspace_configuration: typing.Optional[typing.Union["WorkspaceConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2112
2120
|
) -> None:
|
|
2113
2121
|
'''Properties for creating an Amazon Managed Service for Prometheus Workspace.
|
|
2114
2122
|
|
|
@@ -2163,31 +2171,33 @@ class WorkspaceProps:
|
|
|
2163
2171
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
2164
2172
|
|
|
2165
2173
|
@builtins.property
|
|
2166
|
-
def kms_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
|
2174
|
+
def kms_key(self) -> typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"]:
|
|
2167
2175
|
'''The customer managed AWS KMS key to use for encrypting data within your workspace.'''
|
|
2168
2176
|
result = self._values.get("kms_key")
|
|
2169
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey], result)
|
|
2177
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"], result)
|
|
2170
2178
|
|
|
2171
2179
|
@builtins.property
|
|
2172
|
-
def logging_configuration(self) -> typing.Optional[LoggingConfiguration]:
|
|
2180
|
+
def logging_configuration(self) -> typing.Optional["LoggingConfiguration"]:
|
|
2173
2181
|
'''Contains information about the current rules and alerting logging configuration for the workspace.
|
|
2174
2182
|
|
|
2175
2183
|
Note: These logging configurations are only for rules and alerting logs.
|
|
2176
2184
|
'''
|
|
2177
2185
|
result = self._values.get("logging_configuration")
|
|
2178
|
-
return typing.cast(typing.Optional[LoggingConfiguration], result)
|
|
2186
|
+
return typing.cast(typing.Optional["LoggingConfiguration"], result)
|
|
2179
2187
|
|
|
2180
2188
|
@builtins.property
|
|
2181
|
-
def query_logging_configuration(
|
|
2189
|
+
def query_logging_configuration(
|
|
2190
|
+
self,
|
|
2191
|
+
) -> typing.Optional["QueryLoggingConfiguration"]:
|
|
2182
2192
|
'''The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.'''
|
|
2183
2193
|
result = self._values.get("query_logging_configuration")
|
|
2184
|
-
return typing.cast(typing.Optional[QueryLoggingConfiguration], result)
|
|
2194
|
+
return typing.cast(typing.Optional["QueryLoggingConfiguration"], result)
|
|
2185
2195
|
|
|
2186
2196
|
@builtins.property
|
|
2187
|
-
def workspace_configuration(self) -> typing.Optional[WorkspaceConfiguration]:
|
|
2197
|
+
def workspace_configuration(self) -> typing.Optional["WorkspaceConfiguration"]:
|
|
2188
2198
|
'''Use this structure to define label sets and the ingestion limits for time series that match label sets, and to specify the retention period of the workspace.'''
|
|
2189
2199
|
result = self._values.get("workspace_configuration")
|
|
2190
|
-
return typing.cast(typing.Optional[WorkspaceConfiguration], result)
|
|
2200
|
+
return typing.cast(typing.Optional["WorkspaceConfiguration"], result)
|
|
2191
2201
|
|
|
2192
2202
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
2193
2203
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -2214,12 +2224,12 @@ class RuleGroupsNamespace(
|
|
|
2214
2224
|
|
|
2215
2225
|
def __init__(
|
|
2216
2226
|
self,
|
|
2217
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
2227
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
2218
2228
|
id: builtins.str,
|
|
2219
2229
|
*,
|
|
2220
2230
|
data: builtins.str,
|
|
2221
2231
|
name: builtins.str,
|
|
2222
|
-
workspace: IWorkspace,
|
|
2232
|
+
workspace: "IWorkspace",
|
|
2223
2233
|
) -> None:
|
|
2224
2234
|
'''
|
|
2225
2235
|
:param scope: -
|
|
@@ -2240,14 +2250,14 @@ class RuleGroupsNamespace(
|
|
|
2240
2250
|
@builtins.classmethod
|
|
2241
2251
|
def from_rule_groups_namespace_attributes(
|
|
2242
2252
|
cls,
|
|
2243
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
2253
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
2244
2254
|
id: builtins.str,
|
|
2245
2255
|
*,
|
|
2246
2256
|
data: builtins.str,
|
|
2247
2257
|
name: builtins.str,
|
|
2248
2258
|
rule_groups_namespace_arn: builtins.str,
|
|
2249
|
-
workspace: IWorkspace,
|
|
2250
|
-
) -> IRuleGroupsNamespace:
|
|
2259
|
+
workspace: "IWorkspace",
|
|
2260
|
+
) -> "IRuleGroupsNamespace":
|
|
2251
2261
|
'''
|
|
2252
2262
|
:param scope: -
|
|
2253
2263
|
:param id: -
|
|
@@ -2267,7 +2277,7 @@ class RuleGroupsNamespace(
|
|
|
2267
2277
|
workspace=workspace,
|
|
2268
2278
|
)
|
|
2269
2279
|
|
|
2270
|
-
return typing.cast(IRuleGroupsNamespace, jsii.sinvoke(cls, "fromRuleGroupsNamespaceAttributes", [scope, id, attrs]))
|
|
2280
|
+
return typing.cast("IRuleGroupsNamespace", jsii.sinvoke(cls, "fromRuleGroupsNamespaceAttributes", [scope, id, attrs]))
|
|
2271
2281
|
|
|
2272
2282
|
@jsii.member(jsii_name="isRuleGroupsNamespace")
|
|
2273
2283
|
@builtins.classmethod
|
|
@@ -2300,9 +2310,9 @@ class RuleGroupsNamespace(
|
|
|
2300
2310
|
|
|
2301
2311
|
@builtins.property
|
|
2302
2312
|
@jsii.member(jsii_name="workspace")
|
|
2303
|
-
def workspace(self) -> IWorkspace:
|
|
2313
|
+
def workspace(self) -> "IWorkspace":
|
|
2304
2314
|
'''The workspace to add the rule groups namespace.'''
|
|
2305
|
-
return typing.cast(IWorkspace, jsii.get(self, "workspace"))
|
|
2315
|
+
return typing.cast("IWorkspace", jsii.get(self, "workspace"))
|
|
2306
2316
|
|
|
2307
2317
|
|
|
2308
2318
|
class Scraper(
|
|
@@ -2312,14 +2322,14 @@ class Scraper(
|
|
|
2312
2322
|
):
|
|
2313
2323
|
def __init__(
|
|
2314
2324
|
self,
|
|
2315
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
2325
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
2316
2326
|
id: builtins.str,
|
|
2317
2327
|
*,
|
|
2318
|
-
destination: typing.Union[Destination, typing.Dict[builtins.str, typing.Any]],
|
|
2319
|
-
scrape_configuration: typing.Union[ScrapeConfiguration, typing.Dict[builtins.str, typing.Any]],
|
|
2320
|
-
source: typing.Union[Source, typing.Dict[builtins.str, typing.Any]],
|
|
2328
|
+
destination: typing.Union["Destination", typing.Dict[builtins.str, typing.Any]],
|
|
2329
|
+
scrape_configuration: typing.Union["ScrapeConfiguration", typing.Dict[builtins.str, typing.Any]],
|
|
2330
|
+
source: typing.Union["Source", typing.Dict[builtins.str, typing.Any]],
|
|
2321
2331
|
alias: typing.Optional[builtins.str] = None,
|
|
2322
|
-
role_configuration: typing.Optional[typing.Union[RoleConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2332
|
+
role_configuration: typing.Optional[typing.Union["RoleConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2323
2333
|
) -> None:
|
|
2324
2334
|
'''
|
|
2325
2335
|
:param scope: -
|
|
@@ -2348,16 +2358,16 @@ class Scraper(
|
|
|
2348
2358
|
@builtins.classmethod
|
|
2349
2359
|
def from_scraper_attributes(
|
|
2350
2360
|
cls,
|
|
2351
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
2361
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
2352
2362
|
id: builtins.str,
|
|
2353
2363
|
*,
|
|
2354
|
-
destination: typing.Union[Destination, typing.Dict[builtins.str, typing.Any]],
|
|
2355
|
-
scrape_configuration: typing.Union[ScrapeConfiguration, typing.Dict[builtins.str, typing.Any]],
|
|
2364
|
+
destination: typing.Union["Destination", typing.Dict[builtins.str, typing.Any]],
|
|
2365
|
+
scrape_configuration: typing.Union["ScrapeConfiguration", typing.Dict[builtins.str, typing.Any]],
|
|
2356
2366
|
scraper_arn: builtins.str,
|
|
2357
|
-
source: typing.Union[Source, typing.Dict[builtins.str, typing.Any]],
|
|
2367
|
+
source: typing.Union["Source", typing.Dict[builtins.str, typing.Any]],
|
|
2358
2368
|
alias: typing.Optional[builtins.str] = None,
|
|
2359
|
-
role_configuration: typing.Optional[typing.Union[RoleConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2360
|
-
) -> IScraper:
|
|
2369
|
+
role_configuration: typing.Optional[typing.Union["RoleConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2370
|
+
) -> "IScraper":
|
|
2361
2371
|
'''
|
|
2362
2372
|
:param scope: -
|
|
2363
2373
|
:param id: -
|
|
@@ -2381,7 +2391,7 @@ class Scraper(
|
|
|
2381
2391
|
role_configuration=role_configuration,
|
|
2382
2392
|
)
|
|
2383
2393
|
|
|
2384
|
-
return typing.cast(IScraper, jsii.sinvoke(cls, "fromScraperAttributes", [scope, id, attrs]))
|
|
2394
|
+
return typing.cast("IScraper", jsii.sinvoke(cls, "fromScraperAttributes", [scope, id, attrs]))
|
|
2385
2395
|
|
|
2386
2396
|
@jsii.member(jsii_name="isScraper")
|
|
2387
2397
|
@builtins.classmethod
|
|
@@ -2396,15 +2406,15 @@ class Scraper(
|
|
|
2396
2406
|
|
|
2397
2407
|
@builtins.property
|
|
2398
2408
|
@jsii.member(jsii_name="destination")
|
|
2399
|
-
def destination(self) -> Destination:
|
|
2409
|
+
def destination(self) -> "Destination":
|
|
2400
2410
|
'''The Amazon Managed Service for Prometheus workspace the scraper sends metrics to.'''
|
|
2401
|
-
return typing.cast(Destination, jsii.get(self, "destination"))
|
|
2411
|
+
return typing.cast("Destination", jsii.get(self, "destination"))
|
|
2402
2412
|
|
|
2403
2413
|
@builtins.property
|
|
2404
2414
|
@jsii.member(jsii_name="scrapeConfiguration")
|
|
2405
|
-
def scrape_configuration(self) -> ScrapeConfiguration:
|
|
2415
|
+
def scrape_configuration(self) -> "ScrapeConfiguration":
|
|
2406
2416
|
'''The configuration in use by the scraper.'''
|
|
2407
|
-
return typing.cast(ScrapeConfiguration, jsii.get(self, "scrapeConfiguration"))
|
|
2417
|
+
return typing.cast("ScrapeConfiguration", jsii.get(self, "scrapeConfiguration"))
|
|
2408
2418
|
|
|
2409
2419
|
@builtins.property
|
|
2410
2420
|
@jsii.member(jsii_name="scraperArn")
|
|
@@ -2420,9 +2430,9 @@ class Scraper(
|
|
|
2420
2430
|
|
|
2421
2431
|
@builtins.property
|
|
2422
2432
|
@jsii.member(jsii_name="source")
|
|
2423
|
-
def source(self) -> Source:
|
|
2433
|
+
def source(self) -> "Source":
|
|
2424
2434
|
'''The Amazon EKS cluster from which the scraper collects metrics.'''
|
|
2425
|
-
return typing.cast(Source, jsii.get(self, "source"))
|
|
2435
|
+
return typing.cast("Source", jsii.get(self, "source"))
|
|
2426
2436
|
|
|
2427
2437
|
@builtins.property
|
|
2428
2438
|
@jsii.member(jsii_name="alias")
|
|
@@ -2432,9 +2442,9 @@ class Scraper(
|
|
|
2432
2442
|
|
|
2433
2443
|
@builtins.property
|
|
2434
2444
|
@jsii.member(jsii_name="roleConfiguration")
|
|
2435
|
-
def role_configuration(self) -> typing.Optional[RoleConfiguration]:
|
|
2445
|
+
def role_configuration(self) -> typing.Optional["RoleConfiguration"]:
|
|
2436
2446
|
'''The role configuration in an Amazon Managed Service for Prometheus scraper.'''
|
|
2437
|
-
return typing.cast(typing.Optional[RoleConfiguration], jsii.get(self, "roleConfiguration"))
|
|
2447
|
+
return typing.cast(typing.Optional["RoleConfiguration"], jsii.get(self, "roleConfiguration"))
|
|
2438
2448
|
|
|
2439
2449
|
|
|
2440
2450
|
class Workspace(
|
|
@@ -2444,15 +2454,15 @@ class Workspace(
|
|
|
2444
2454
|
):
|
|
2445
2455
|
def __init__(
|
|
2446
2456
|
self,
|
|
2447
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
2457
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
2448
2458
|
id: builtins.str,
|
|
2449
2459
|
*,
|
|
2450
2460
|
alert_manager_definition: typing.Optional[builtins.str] = None,
|
|
2451
2461
|
alias: typing.Optional[builtins.str] = None,
|
|
2452
|
-
kms_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey] = None,
|
|
2453
|
-
logging_configuration: typing.Optional[typing.Union[LoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2454
|
-
query_logging_configuration: typing.Optional[typing.Union[QueryLoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2455
|
-
workspace_configuration: typing.Optional[typing.Union[WorkspaceConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2462
|
+
kms_key: typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"] = None,
|
|
2463
|
+
logging_configuration: typing.Optional[typing.Union["LoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2464
|
+
query_logging_configuration: typing.Optional[typing.Union["QueryLoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2465
|
+
workspace_configuration: typing.Optional[typing.Union["WorkspaceConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2456
2466
|
) -> None:
|
|
2457
2467
|
'''
|
|
2458
2468
|
:param scope: -
|
|
@@ -2483,17 +2493,17 @@ class Workspace(
|
|
|
2483
2493
|
@builtins.classmethod
|
|
2484
2494
|
def from_workspace_attributes(
|
|
2485
2495
|
cls,
|
|
2486
|
-
scope: _constructs_77d1e7e8.Construct,
|
|
2496
|
+
scope: "_constructs_77d1e7e8.Construct",
|
|
2487
2497
|
id: builtins.str,
|
|
2488
2498
|
*,
|
|
2489
2499
|
workspace_arn: builtins.str,
|
|
2490
2500
|
alert_manager_definition: typing.Optional[builtins.str] = None,
|
|
2491
2501
|
alias: typing.Optional[builtins.str] = None,
|
|
2492
|
-
kms_key: typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey] = None,
|
|
2493
|
-
logging_configuration: typing.Optional[typing.Union[LoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2494
|
-
query_logging_configuration: typing.Optional[typing.Union[QueryLoggingConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2495
|
-
workspace_configuration: typing.Optional[typing.Union[WorkspaceConfiguration, typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2496
|
-
) -> IWorkspace:
|
|
2502
|
+
kms_key: typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"] = None,
|
|
2503
|
+
logging_configuration: typing.Optional[typing.Union["LoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2504
|
+
query_logging_configuration: typing.Optional[typing.Union["QueryLoggingConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2505
|
+
workspace_configuration: typing.Optional[typing.Union["WorkspaceConfiguration", typing.Dict[builtins.str, typing.Any]]] = None,
|
|
2506
|
+
) -> "IWorkspace":
|
|
2497
2507
|
'''
|
|
2498
2508
|
:param scope: -
|
|
2499
2509
|
:param id: -
|
|
@@ -2519,7 +2529,7 @@ class Workspace(
|
|
|
2519
2529
|
workspace_configuration=workspace_configuration,
|
|
2520
2530
|
)
|
|
2521
2531
|
|
|
2522
|
-
return typing.cast(IWorkspace, jsii.sinvoke(cls, "fromWorkspaceAttributes", [scope, id, attrs]))
|
|
2532
|
+
return typing.cast("IWorkspace", jsii.sinvoke(cls, "fromWorkspaceAttributes", [scope, id, attrs]))
|
|
2523
2533
|
|
|
2524
2534
|
@jsii.member(jsii_name="isWorkspace")
|
|
2525
2535
|
@builtins.classmethod
|
|
@@ -2568,30 +2578,32 @@ class Workspace(
|
|
|
2568
2578
|
|
|
2569
2579
|
@builtins.property
|
|
2570
2580
|
@jsii.member(jsii_name="kmsKey")
|
|
2571
|
-
def kms_key(self) -> typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey]:
|
|
2581
|
+
def kms_key(self) -> typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"]:
|
|
2572
2582
|
'''The customer managed AWS KMS key to use for encrypting data within your workspace.'''
|
|
2573
|
-
return typing.cast(typing.Optional[_aws_cdk_aws_kms_ceddda9d.IKey], jsii.get(self, "kmsKey"))
|
|
2583
|
+
return typing.cast(typing.Optional["_aws_cdk_aws_kms_ceddda9d.IKey"], jsii.get(self, "kmsKey"))
|
|
2574
2584
|
|
|
2575
2585
|
@builtins.property
|
|
2576
2586
|
@jsii.member(jsii_name="loggingConfiguration")
|
|
2577
|
-
def logging_configuration(self) -> typing.Optional[LoggingConfiguration]:
|
|
2587
|
+
def logging_configuration(self) -> typing.Optional["LoggingConfiguration"]:
|
|
2578
2588
|
'''Contains information about the current rules and alerting logging configuration for the workspace.
|
|
2579
2589
|
|
|
2580
2590
|
Note: These logging configurations are only for rules and alerting logs.
|
|
2581
2591
|
'''
|
|
2582
|
-
return typing.cast(typing.Optional[LoggingConfiguration], jsii.get(self, "loggingConfiguration"))
|
|
2592
|
+
return typing.cast(typing.Optional["LoggingConfiguration"], jsii.get(self, "loggingConfiguration"))
|
|
2583
2593
|
|
|
2584
2594
|
@builtins.property
|
|
2585
2595
|
@jsii.member(jsii_name="queryLoggingConfiguration")
|
|
2586
|
-
def query_logging_configuration(
|
|
2596
|
+
def query_logging_configuration(
|
|
2597
|
+
self,
|
|
2598
|
+
) -> typing.Optional["QueryLoggingConfiguration"]:
|
|
2587
2599
|
'''The definition of logging configuration in an Amazon Managed Service for Prometheus workspace.'''
|
|
2588
|
-
return typing.cast(typing.Optional[QueryLoggingConfiguration], jsii.get(self, "queryLoggingConfiguration"))
|
|
2600
|
+
return typing.cast(typing.Optional["QueryLoggingConfiguration"], jsii.get(self, "queryLoggingConfiguration"))
|
|
2589
2601
|
|
|
2590
2602
|
@builtins.property
|
|
2591
2603
|
@jsii.member(jsii_name="workspaceConfiguration")
|
|
2592
|
-
def workspace_configuration(self) -> typing.Optional[WorkspaceConfiguration]:
|
|
2604
|
+
def workspace_configuration(self) -> typing.Optional["WorkspaceConfiguration"]:
|
|
2593
2605
|
'''Use this structure to define label sets and the ingestion limits for time series that match label sets, and to specify the retention period of the workspace.'''
|
|
2594
|
-
return typing.cast(typing.Optional[WorkspaceConfiguration], jsii.get(self, "workspaceConfiguration"))
|
|
2606
|
+
return typing.cast(typing.Optional["WorkspaceConfiguration"], jsii.get(self, "workspaceConfiguration"))
|
|
2595
2607
|
|
|
2596
2608
|
|
|
2597
2609
|
__all__ = [
|
|
@@ -33,7 +33,7 @@ import constructs._jsii
|
|
|
33
33
|
import robhan_cdk_lib.utils._jsii
|
|
34
34
|
|
|
35
35
|
__jsii_assembly__ = jsii.JSIIAssembly.load(
|
|
36
|
-
"@robhan-cdk-lib/aws_aps", "0.0.
|
|
36
|
+
"@robhan-cdk-lib/aws_aps", "0.0.133", __name__[0:-6], "aws_aps@0.0.133.jsii.tgz"
|
|
37
37
|
)
|
|
38
38
|
|
|
39
39
|
__all__ = [
|
|
Binary file
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: robhan_cdk_lib.aws_aps
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.133
|
|
4
4
|
Summary: AWS CDK Construct Library for Amazon Managed Service for Prometheus
|
|
5
5
|
Home-page: https://github.com/robert-hanuschke/cdk-aws_aps
|
|
6
6
|
Author: Robert Hanuschke<robhan-cdk-lib@hanuschke.eu>
|
|
@@ -21,10 +21,10 @@ Description-Content-Type: text/markdown
|
|
|
21
21
|
License-File: LICENSE
|
|
22
22
|
Requires-Dist: aws-cdk-lib<3.0.0,>=2.201.0
|
|
23
23
|
Requires-Dist: constructs<11.0.0,>=10.0.5
|
|
24
|
-
Requires-Dist: jsii<2.0.0,>=1.
|
|
24
|
+
Requires-Dist: jsii<2.0.0,>=1.121.0
|
|
25
25
|
Requires-Dist: publication>=0.0.3
|
|
26
|
-
Requires-Dist: robhan_cdk_lib.utils<0.0.
|
|
27
|
-
Requires-Dist: typeguard
|
|
26
|
+
Requires-Dist: robhan_cdk_lib.utils<0.0.126,>=0.0.125
|
|
27
|
+
Requires-Dist: typeguard==2.13.3
|
|
28
28
|
|
|
29
29
|
# @robhan-cdk-lib/aws_aps
|
|
30
30
|
|
|
@@ -11,4 +11,4 @@ src/robhan_cdk_lib.aws_aps.egg-info/top_level.txt
|
|
|
11
11
|
src/robhan_cdk_lib/aws_aps/__init__.py
|
|
12
12
|
src/robhan_cdk_lib/aws_aps/py.typed
|
|
13
13
|
src/robhan_cdk_lib/aws_aps/_jsii/__init__.py
|
|
14
|
-
src/robhan_cdk_lib/aws_aps/_jsii/aws_aps@0.0.
|
|
14
|
+
src/robhan_cdk_lib/aws_aps/_jsii/aws_aps@0.0.133.jsii.tgz
|
|
Binary file
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{robhan_cdk_lib_aws_aps-0.0.72 → robhan_cdk_lib_aws_aps-0.0.133}/src/robhan_cdk_lib/aws_aps/py.typed
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|