aws-cdk-lib 2.190.0__py3-none-any.whl → 2.191.0__py3-none-any.whl

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.

Potentially problematic release.


This version of aws-cdk-lib might be problematic. Click here for more details.

aws_cdk/_jsii/__init__.py CHANGED
@@ -34,7 +34,7 @@ import aws_cdk.cloud_assembly_schema._jsii
34
34
  import constructs._jsii
35
35
 
36
36
  __jsii_assembly__ = jsii.JSIIAssembly.load(
37
- "aws-cdk-lib", "2.190.0", __name__[0:-6], "aws-cdk-lib@2.190.0.jsii.tgz"
37
+ "aws-cdk-lib", "2.191.0", __name__[0:-6], "aws-cdk-lib@2.191.0.jsii.tgz"
38
38
  )
39
39
 
40
40
  __all__ = [
@@ -8639,6 +8639,7 @@ class CfnDomainNameV2(
8639
8639
  certificate_arn="certificateArn",
8640
8640
  domain_name="domainName",
8641
8641
  endpoint_configuration=apigateway.CfnDomainNameV2.EndpointConfigurationProperty(
8642
+ ip_address_type="ipAddressType",
8642
8643
  types=["types"]
8643
8644
  ),
8644
8645
  policy=policy,
@@ -8832,16 +8833,18 @@ class CfnDomainNameV2(
8832
8833
  @jsii.data_type(
8833
8834
  jsii_type="aws-cdk-lib.aws_apigateway.CfnDomainNameV2.EndpointConfigurationProperty",
8834
8835
  jsii_struct_bases=[],
8835
- name_mapping={"types": "types"},
8836
+ name_mapping={"ip_address_type": "ipAddressType", "types": "types"},
8836
8837
  )
8837
8838
  class EndpointConfigurationProperty:
8838
8839
  def __init__(
8839
8840
  self,
8840
8841
  *,
8842
+ ip_address_type: typing.Optional[builtins.str] = None,
8841
8843
  types: typing.Optional[typing.Sequence[builtins.str]] = None,
8842
8844
  ) -> None:
8843
8845
  '''The endpoint configuration to indicate the types of endpoints an API (RestApi) or its custom domain name (DomainName) has and the IP address types that can invoke it.
8844
8846
 
8847
+ :param ip_address_type:
8845
8848
  :param types: A list of endpoint types of an API (RestApi) or its custom domain name (DomainName). For an edge-optimized API and its custom domain name, the endpoint type is ``"EDGE"`` . For a regional API and its custom domain name, the endpoint type is ``REGIONAL`` . For a private API, the endpoint type is ``PRIVATE`` .
8846
8849
 
8847
8850
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainnamev2-endpointconfiguration.html
@@ -8854,16 +8857,28 @@ class CfnDomainNameV2(
8854
8857
  from aws_cdk import aws_apigateway as apigateway
8855
8858
 
8856
8859
  endpoint_configuration_property = apigateway.CfnDomainNameV2.EndpointConfigurationProperty(
8860
+ ip_address_type="ipAddressType",
8857
8861
  types=["types"]
8858
8862
  )
8859
8863
  '''
8860
8864
  if __debug__:
8861
8865
  type_hints = typing.get_type_hints(_typecheckingstub__6b6f3002516ae2cfe5144f016260236185910ca3b84cc4dc018cc660b10716c4)
8866
+ check_type(argname="argument ip_address_type", value=ip_address_type, expected_type=type_hints["ip_address_type"])
8862
8867
  check_type(argname="argument types", value=types, expected_type=type_hints["types"])
8863
8868
  self._values: typing.Dict[builtins.str, typing.Any] = {}
8869
+ if ip_address_type is not None:
8870
+ self._values["ip_address_type"] = ip_address_type
8864
8871
  if types is not None:
8865
8872
  self._values["types"] = types
8866
8873
 
8874
+ @builtins.property
8875
+ def ip_address_type(self) -> typing.Optional[builtins.str]:
8876
+ '''
8877
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apigateway-domainnamev2-endpointconfiguration.html#cfn-apigateway-domainnamev2-endpointconfiguration-ipaddresstype
8878
+ '''
8879
+ result = self._values.get("ip_address_type")
8880
+ return typing.cast(typing.Optional[builtins.str], result)
8881
+
8867
8882
  @builtins.property
8868
8883
  def types(self) -> typing.Optional[typing.List[builtins.str]]:
8869
8884
  '''A list of endpoint types of an API (RestApi) or its custom domain name (DomainName).
@@ -8934,6 +8949,7 @@ class CfnDomainNameV2Props:
8934
8949
  certificate_arn="certificateArn",
8935
8950
  domain_name="domainName",
8936
8951
  endpoint_configuration=apigateway.CfnDomainNameV2.EndpointConfigurationProperty(
8952
+ ip_address_type="ipAddressType",
8937
8953
  types=["types"]
8938
8954
  ),
8939
8955
  policy=policy,
@@ -34347,6 +34363,7 @@ def _typecheckingstub__476074ac17a2d9034c89e6475b463dcb2b5ab63eb68064fdc492d43a9
34347
34363
 
34348
34364
  def _typecheckingstub__6b6f3002516ae2cfe5144f016260236185910ca3b84cc4dc018cc660b10716c4(
34349
34365
  *,
34366
+ ip_address_type: typing.Optional[builtins.str] = None,
34350
34367
  types: typing.Optional[typing.Sequence[builtins.str]] = None,
34351
34368
  ) -> None:
34352
34369
  """Type checking stubs"""
@@ -1209,7 +1209,19 @@ class CfnWorkspace(
1209
1209
  tags=[CfnTag(
1210
1210
  key="key",
1211
1211
  value="value"
1212
- )]
1212
+ )],
1213
+ workspace_configuration=aps.CfnWorkspace.WorkspaceConfigurationProperty(
1214
+ limits_per_label_sets=[aps.CfnWorkspace.LimitsPerLabelSetProperty(
1215
+ label_set=[aps.CfnWorkspace.LabelProperty(
1216
+ name="name",
1217
+ value="value"
1218
+ )],
1219
+ limits=aps.CfnWorkspace.LimitsPerLabelSetEntryProperty(
1220
+ max_series=123
1221
+ )
1222
+ )],
1223
+ retention_period_in_days=123
1224
+ )
1213
1225
  )
1214
1226
  '''
1215
1227
 
@@ -1223,6 +1235,7 @@ class CfnWorkspace(
1223
1235
  kms_key_arn: typing.Optional[builtins.str] = None,
1224
1236
  logging_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkspace.LoggingConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
1225
1237
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1238
+ workspace_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkspace.WorkspaceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
1226
1239
  ) -> None:
1227
1240
  '''
1228
1241
  :param scope: Scope in which this resource is defined.
@@ -1232,6 +1245,7 @@ class CfnWorkspace(
1232
1245
  :param kms_key_arn: (optional) The ARN for a customer managed AWS KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see `Encryption at rest <https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html>`_ in the *Amazon Managed Service for Prometheus User Guide* .
1233
1246
  :param logging_configuration: Contains information about the logging configuration for the workspace.
1234
1247
  :param tags: The list of tag keys and values that are associated with the workspace.
1248
+ :param workspace_configuration: Workspace configuration.
1235
1249
  '''
1236
1250
  if __debug__:
1237
1251
  type_hints = typing.get_type_hints(_typecheckingstub__0d7d4de6c2c3c0a6cc1f746f35f29f98344da5c5d59e48a9d1e788ab80e3ef9b)
@@ -1243,6 +1257,7 @@ class CfnWorkspace(
1243
1257
  kms_key_arn=kms_key_arn,
1244
1258
  logging_configuration=logging_configuration,
1245
1259
  tags=tags,
1260
+ workspace_configuration=workspace_configuration,
1246
1261
  )
1247
1262
 
1248
1263
  jsii.create(self.__class__, self, [scope, id, props])
@@ -1391,6 +1406,221 @@ class CfnWorkspace(
1391
1406
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1392
1407
  jsii.set(self, "tagsRaw", value) # pyright: ignore[reportArgumentType]
1393
1408
 
1409
+ @builtins.property
1410
+ @jsii.member(jsii_name="workspaceConfiguration")
1411
+ def workspace_configuration(
1412
+ self,
1413
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkspace.WorkspaceConfigurationProperty"]]:
1414
+ '''Workspace configuration.'''
1415
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkspace.WorkspaceConfigurationProperty"]], jsii.get(self, "workspaceConfiguration"))
1416
+
1417
+ @workspace_configuration.setter
1418
+ def workspace_configuration(
1419
+ self,
1420
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnWorkspace.WorkspaceConfigurationProperty"]],
1421
+ ) -> None:
1422
+ if __debug__:
1423
+ type_hints = typing.get_type_hints(_typecheckingstub__7dc44ff5af32b5cdcf5234cdf89709e32cf5a9217d64f6f2b6625191085cd191)
1424
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1425
+ jsii.set(self, "workspaceConfiguration", value) # pyright: ignore[reportArgumentType]
1426
+
1427
+ @jsii.data_type(
1428
+ jsii_type="aws-cdk-lib.aws_aps.CfnWorkspace.LabelProperty",
1429
+ jsii_struct_bases=[],
1430
+ name_mapping={"name": "name", "value": "value"},
1431
+ )
1432
+ class LabelProperty:
1433
+ def __init__(self, *, name: builtins.str, value: builtins.str) -> None:
1434
+ '''Series label.
1435
+
1436
+ :param name: Name of the label.
1437
+ :param value: Value of the label.
1438
+
1439
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-label.html
1440
+ :exampleMetadata: fixture=_generated
1441
+
1442
+ Example::
1443
+
1444
+ # The code below shows an example of how to instantiate this type.
1445
+ # The values are placeholders you should change.
1446
+ from aws_cdk import aws_aps as aps
1447
+
1448
+ label_property = aps.CfnWorkspace.LabelProperty(
1449
+ name="name",
1450
+ value="value"
1451
+ )
1452
+ '''
1453
+ if __debug__:
1454
+ type_hints = typing.get_type_hints(_typecheckingstub__b34eb56a3257d05ed157ec9252590ce797546e9e647035e7f3e639a6629c1cd3)
1455
+ check_type(argname="argument name", value=name, expected_type=type_hints["name"])
1456
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1457
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1458
+ "name": name,
1459
+ "value": value,
1460
+ }
1461
+
1462
+ @builtins.property
1463
+ def name(self) -> builtins.str:
1464
+ '''Name of the label.
1465
+
1466
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-label.html#cfn-aps-workspace-label-name
1467
+ '''
1468
+ result = self._values.get("name")
1469
+ assert result is not None, "Required property 'name' is missing"
1470
+ return typing.cast(builtins.str, result)
1471
+
1472
+ @builtins.property
1473
+ def value(self) -> builtins.str:
1474
+ '''Value of the label.
1475
+
1476
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-label.html#cfn-aps-workspace-label-value
1477
+ '''
1478
+ result = self._values.get("value")
1479
+ assert result is not None, "Required property 'value' is missing"
1480
+ return typing.cast(builtins.str, result)
1481
+
1482
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1483
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1484
+
1485
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1486
+ return not (rhs == self)
1487
+
1488
+ def __repr__(self) -> str:
1489
+ return "LabelProperty(%s)" % ", ".join(
1490
+ k + "=" + repr(v) for k, v in self._values.items()
1491
+ )
1492
+
1493
+ @jsii.data_type(
1494
+ jsii_type="aws-cdk-lib.aws_aps.CfnWorkspace.LimitsPerLabelSetEntryProperty",
1495
+ jsii_struct_bases=[],
1496
+ name_mapping={"max_series": "maxSeries"},
1497
+ )
1498
+ class LimitsPerLabelSetEntryProperty:
1499
+ def __init__(self, *, max_series: typing.Optional[jsii.Number] = None) -> None:
1500
+ '''Limits that can be applied to a label set.
1501
+
1502
+ :param max_series: The maximum number of active series that can be ingested for this label set.
1503
+
1504
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-limitsperlabelsetentry.html
1505
+ :exampleMetadata: fixture=_generated
1506
+
1507
+ Example::
1508
+
1509
+ # The code below shows an example of how to instantiate this type.
1510
+ # The values are placeholders you should change.
1511
+ from aws_cdk import aws_aps as aps
1512
+
1513
+ limits_per_label_set_entry_property = aps.CfnWorkspace.LimitsPerLabelSetEntryProperty(
1514
+ max_series=123
1515
+ )
1516
+ '''
1517
+ if __debug__:
1518
+ type_hints = typing.get_type_hints(_typecheckingstub__86191e69da536181f19aaae8e8a81e682e12b975b6edce1319b4d4a8b451cb95)
1519
+ check_type(argname="argument max_series", value=max_series, expected_type=type_hints["max_series"])
1520
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
1521
+ if max_series is not None:
1522
+ self._values["max_series"] = max_series
1523
+
1524
+ @builtins.property
1525
+ def max_series(self) -> typing.Optional[jsii.Number]:
1526
+ '''The maximum number of active series that can be ingested for this label set.
1527
+
1528
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-limitsperlabelsetentry.html#cfn-aps-workspace-limitsperlabelsetentry-maxseries
1529
+ '''
1530
+ result = self._values.get("max_series")
1531
+ return typing.cast(typing.Optional[jsii.Number], result)
1532
+
1533
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1534
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1535
+
1536
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1537
+ return not (rhs == self)
1538
+
1539
+ def __repr__(self) -> str:
1540
+ return "LimitsPerLabelSetEntryProperty(%s)" % ", ".join(
1541
+ k + "=" + repr(v) for k, v in self._values.items()
1542
+ )
1543
+
1544
+ @jsii.data_type(
1545
+ jsii_type="aws-cdk-lib.aws_aps.CfnWorkspace.LimitsPerLabelSetProperty",
1546
+ jsii_struct_bases=[],
1547
+ name_mapping={"label_set": "labelSet", "limits": "limits"},
1548
+ )
1549
+ class LimitsPerLabelSetProperty:
1550
+ def __init__(
1551
+ self,
1552
+ *,
1553
+ label_set: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkspace.LabelProperty", typing.Dict[builtins.str, typing.Any]]]]],
1554
+ limits: typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkspace.LimitsPerLabelSetEntryProperty", typing.Dict[builtins.str, typing.Any]]],
1555
+ ) -> None:
1556
+ '''Label set and its associated limits.
1557
+
1558
+ :param label_set: An array of series labels.
1559
+ :param limits: Limits that can be applied to a label set.
1560
+
1561
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-limitsperlabelset.html
1562
+ :exampleMetadata: fixture=_generated
1563
+
1564
+ Example::
1565
+
1566
+ # The code below shows an example of how to instantiate this type.
1567
+ # The values are placeholders you should change.
1568
+ from aws_cdk import aws_aps as aps
1569
+
1570
+ limits_per_label_set_property = aps.CfnWorkspace.LimitsPerLabelSetProperty(
1571
+ label_set=[aps.CfnWorkspace.LabelProperty(
1572
+ name="name",
1573
+ value="value"
1574
+ )],
1575
+ limits=aps.CfnWorkspace.LimitsPerLabelSetEntryProperty(
1576
+ max_series=123
1577
+ )
1578
+ )
1579
+ '''
1580
+ if __debug__:
1581
+ type_hints = typing.get_type_hints(_typecheckingstub__3d8045fc76bdfc4af5de994e0ebe3331fd81257f1ae53d90373a7ad960b0bca7)
1582
+ check_type(argname="argument label_set", value=label_set, expected_type=type_hints["label_set"])
1583
+ check_type(argname="argument limits", value=limits, expected_type=type_hints["limits"])
1584
+ self._values: typing.Dict[builtins.str, typing.Any] = {
1585
+ "label_set": label_set,
1586
+ "limits": limits,
1587
+ }
1588
+
1589
+ @builtins.property
1590
+ def label_set(
1591
+ self,
1592
+ ) -> typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnWorkspace.LabelProperty"]]]:
1593
+ '''An array of series labels.
1594
+
1595
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-limitsperlabelset.html#cfn-aps-workspace-limitsperlabelset-labelset
1596
+ '''
1597
+ result = self._values.get("label_set")
1598
+ assert result is not None, "Required property 'label_set' is missing"
1599
+ return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnWorkspace.LabelProperty"]]], result)
1600
+
1601
+ @builtins.property
1602
+ def limits(
1603
+ self,
1604
+ ) -> typing.Union[_IResolvable_da3f097b, "CfnWorkspace.LimitsPerLabelSetEntryProperty"]:
1605
+ '''Limits that can be applied to a label set.
1606
+
1607
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-limitsperlabelset.html#cfn-aps-workspace-limitsperlabelset-limits
1608
+ '''
1609
+ result = self._values.get("limits")
1610
+ assert result is not None, "Required property 'limits' is missing"
1611
+ return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnWorkspace.LimitsPerLabelSetEntryProperty"], result)
1612
+
1613
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1614
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1615
+
1616
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1617
+ return not (rhs == self)
1618
+
1619
+ def __repr__(self) -> str:
1620
+ return "LimitsPerLabelSetProperty(%s)" % ", ".join(
1621
+ k + "=" + repr(v) for k, v in self._values.items()
1622
+ )
1623
+
1394
1624
  @jsii.data_type(
1395
1625
  jsii_type="aws-cdk-lib.aws_aps.CfnWorkspace.LoggingConfigurationProperty",
1396
1626
  jsii_struct_bases=[],
@@ -1448,6 +1678,89 @@ class CfnWorkspace(
1448
1678
  k + "=" + repr(v) for k, v in self._values.items()
1449
1679
  )
1450
1680
 
1681
+ @jsii.data_type(
1682
+ jsii_type="aws-cdk-lib.aws_aps.CfnWorkspace.WorkspaceConfigurationProperty",
1683
+ jsii_struct_bases=[],
1684
+ name_mapping={
1685
+ "limits_per_label_sets": "limitsPerLabelSets",
1686
+ "retention_period_in_days": "retentionPeriodInDays",
1687
+ },
1688
+ )
1689
+ class WorkspaceConfigurationProperty:
1690
+ def __init__(
1691
+ self,
1692
+ *,
1693
+ limits_per_label_sets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnWorkspace.LimitsPerLabelSetProperty", typing.Dict[builtins.str, typing.Any]]]]]] = None,
1694
+ retention_period_in_days: typing.Optional[jsii.Number] = None,
1695
+ ) -> None:
1696
+ '''Workspace configuration.
1697
+
1698
+ :param limits_per_label_sets: An array of label set and associated limits.
1699
+ :param retention_period_in_days: How many days that metrics are retained in the workspace.
1700
+
1701
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-workspaceconfiguration.html
1702
+ :exampleMetadata: fixture=_generated
1703
+
1704
+ Example::
1705
+
1706
+ # The code below shows an example of how to instantiate this type.
1707
+ # The values are placeholders you should change.
1708
+ from aws_cdk import aws_aps as aps
1709
+
1710
+ workspace_configuration_property = aps.CfnWorkspace.WorkspaceConfigurationProperty(
1711
+ limits_per_label_sets=[aps.CfnWorkspace.LimitsPerLabelSetProperty(
1712
+ label_set=[aps.CfnWorkspace.LabelProperty(
1713
+ name="name",
1714
+ value="value"
1715
+ )],
1716
+ limits=aps.CfnWorkspace.LimitsPerLabelSetEntryProperty(
1717
+ max_series=123
1718
+ )
1719
+ )],
1720
+ retention_period_in_days=123
1721
+ )
1722
+ '''
1723
+ if __debug__:
1724
+ type_hints = typing.get_type_hints(_typecheckingstub__8d8bd4b9a39be1594ef4681992e92f89f24816c775c0e0c40e340be13e59392a)
1725
+ check_type(argname="argument limits_per_label_sets", value=limits_per_label_sets, expected_type=type_hints["limits_per_label_sets"])
1726
+ check_type(argname="argument retention_period_in_days", value=retention_period_in_days, expected_type=type_hints["retention_period_in_days"])
1727
+ self._values: typing.Dict[builtins.str, typing.Any] = {}
1728
+ if limits_per_label_sets is not None:
1729
+ self._values["limits_per_label_sets"] = limits_per_label_sets
1730
+ if retention_period_in_days is not None:
1731
+ self._values["retention_period_in_days"] = retention_period_in_days
1732
+
1733
+ @builtins.property
1734
+ def limits_per_label_sets(
1735
+ self,
1736
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnWorkspace.LimitsPerLabelSetProperty"]]]]:
1737
+ '''An array of label set and associated limits.
1738
+
1739
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-workspaceconfiguration.html#cfn-aps-workspace-workspaceconfiguration-limitsperlabelsets
1740
+ '''
1741
+ result = self._values.get("limits_per_label_sets")
1742
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, "CfnWorkspace.LimitsPerLabelSetProperty"]]]], result)
1743
+
1744
+ @builtins.property
1745
+ def retention_period_in_days(self) -> typing.Optional[jsii.Number]:
1746
+ '''How many days that metrics are retained in the workspace.
1747
+
1748
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-aps-workspace-workspaceconfiguration.html#cfn-aps-workspace-workspaceconfiguration-retentionperiodindays
1749
+ '''
1750
+ result = self._values.get("retention_period_in_days")
1751
+ return typing.cast(typing.Optional[jsii.Number], result)
1752
+
1753
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
1754
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
1755
+
1756
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
1757
+ return not (rhs == self)
1758
+
1759
+ def __repr__(self) -> str:
1760
+ return "WorkspaceConfigurationProperty(%s)" % ", ".join(
1761
+ k + "=" + repr(v) for k, v in self._values.items()
1762
+ )
1763
+
1451
1764
 
1452
1765
  @jsii.data_type(
1453
1766
  jsii_type="aws-cdk-lib.aws_aps.CfnWorkspaceProps",
@@ -1458,6 +1771,7 @@ class CfnWorkspace(
1458
1771
  "kms_key_arn": "kmsKeyArn",
1459
1772
  "logging_configuration": "loggingConfiguration",
1460
1773
  "tags": "tags",
1774
+ "workspace_configuration": "workspaceConfiguration",
1461
1775
  },
1462
1776
  )
1463
1777
  class CfnWorkspaceProps:
@@ -1469,6 +1783,7 @@ class CfnWorkspaceProps:
1469
1783
  kms_key_arn: typing.Optional[builtins.str] = None,
1470
1784
  logging_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.LoggingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1471
1785
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1786
+ workspace_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.WorkspaceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1472
1787
  ) -> None:
1473
1788
  '''Properties for defining a ``CfnWorkspace``.
1474
1789
 
@@ -1477,6 +1792,7 @@ class CfnWorkspaceProps:
1477
1792
  :param kms_key_arn: (optional) The ARN for a customer managed AWS KMS key to use for encrypting data within your workspace. For more information about using your own key in your workspace, see `Encryption at rest <https://docs.aws.amazon.com/prometheus/latest/userguide/encryption-at-rest-Amazon-Service-Prometheus.html>`_ in the *Amazon Managed Service for Prometheus User Guide* .
1478
1793
  :param logging_configuration: Contains information about the logging configuration for the workspace.
1479
1794
  :param tags: The list of tag keys and values that are associated with the workspace.
1795
+ :param workspace_configuration: Workspace configuration.
1480
1796
 
1481
1797
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-workspace.html
1482
1798
  :exampleMetadata: fixture=_generated
@@ -1497,7 +1813,19 @@ class CfnWorkspaceProps:
1497
1813
  tags=[CfnTag(
1498
1814
  key="key",
1499
1815
  value="value"
1500
- )]
1816
+ )],
1817
+ workspace_configuration=aps.CfnWorkspace.WorkspaceConfigurationProperty(
1818
+ limits_per_label_sets=[aps.CfnWorkspace.LimitsPerLabelSetProperty(
1819
+ label_set=[aps.CfnWorkspace.LabelProperty(
1820
+ name="name",
1821
+ value="value"
1822
+ )],
1823
+ limits=aps.CfnWorkspace.LimitsPerLabelSetEntryProperty(
1824
+ max_series=123
1825
+ )
1826
+ )],
1827
+ retention_period_in_days=123
1828
+ )
1501
1829
  )
1502
1830
  '''
1503
1831
  if __debug__:
@@ -1507,6 +1835,7 @@ class CfnWorkspaceProps:
1507
1835
  check_type(argname="argument kms_key_arn", value=kms_key_arn, expected_type=type_hints["kms_key_arn"])
1508
1836
  check_type(argname="argument logging_configuration", value=logging_configuration, expected_type=type_hints["logging_configuration"])
1509
1837
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
1838
+ check_type(argname="argument workspace_configuration", value=workspace_configuration, expected_type=type_hints["workspace_configuration"])
1510
1839
  self._values: typing.Dict[builtins.str, typing.Any] = {}
1511
1840
  if alert_manager_definition is not None:
1512
1841
  self._values["alert_manager_definition"] = alert_manager_definition
@@ -1518,6 +1847,8 @@ class CfnWorkspaceProps:
1518
1847
  self._values["logging_configuration"] = logging_configuration
1519
1848
  if tags is not None:
1520
1849
  self._values["tags"] = tags
1850
+ if workspace_configuration is not None:
1851
+ self._values["workspace_configuration"] = workspace_configuration
1521
1852
 
1522
1853
  @builtins.property
1523
1854
  def alert_manager_definition(self) -> typing.Optional[builtins.str]:
@@ -1576,6 +1907,17 @@ class CfnWorkspaceProps:
1576
1907
  result = self._values.get("tags")
1577
1908
  return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
1578
1909
 
1910
+ @builtins.property
1911
+ def workspace_configuration(
1912
+ self,
1913
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnWorkspace.WorkspaceConfigurationProperty]]:
1914
+ '''Workspace configuration.
1915
+
1916
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-aps-workspace.html#cfn-aps-workspace-workspaceconfiguration
1917
+ '''
1918
+ result = self._values.get("workspace_configuration")
1919
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnWorkspace.WorkspaceConfigurationProperty]], result)
1920
+
1579
1921
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
1580
1922
  return isinstance(rhs, self.__class__) and rhs._values == self._values
1581
1923
 
@@ -1785,6 +2127,7 @@ def _typecheckingstub__0d7d4de6c2c3c0a6cc1f746f35f29f98344da5c5d59e48a9d1e788ab8
1785
2127
  kms_key_arn: typing.Optional[builtins.str] = None,
1786
2128
  logging_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.LoggingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1787
2129
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
2130
+ workspace_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.WorkspaceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1788
2131
  ) -> None:
1789
2132
  """Type checking stubs"""
1790
2133
  pass
@@ -1831,6 +2174,35 @@ def _typecheckingstub__fb4e1977fb1f7aad47144a42af408e41c9d01794f3569a614a9ed54ef
1831
2174
  """Type checking stubs"""
1832
2175
  pass
1833
2176
 
2177
+ def _typecheckingstub__7dc44ff5af32b5cdcf5234cdf89709e32cf5a9217d64f6f2b6625191085cd191(
2178
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnWorkspace.WorkspaceConfigurationProperty]],
2179
+ ) -> None:
2180
+ """Type checking stubs"""
2181
+ pass
2182
+
2183
+ def _typecheckingstub__b34eb56a3257d05ed157ec9252590ce797546e9e647035e7f3e639a6629c1cd3(
2184
+ *,
2185
+ name: builtins.str,
2186
+ value: builtins.str,
2187
+ ) -> None:
2188
+ """Type checking stubs"""
2189
+ pass
2190
+
2191
+ def _typecheckingstub__86191e69da536181f19aaae8e8a81e682e12b975b6edce1319b4d4a8b451cb95(
2192
+ *,
2193
+ max_series: typing.Optional[jsii.Number] = None,
2194
+ ) -> None:
2195
+ """Type checking stubs"""
2196
+ pass
2197
+
2198
+ def _typecheckingstub__3d8045fc76bdfc4af5de994e0ebe3331fd81257f1ae53d90373a7ad960b0bca7(
2199
+ *,
2200
+ label_set: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.LabelProperty, typing.Dict[builtins.str, typing.Any]]]]],
2201
+ limits: typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.LimitsPerLabelSetEntryProperty, typing.Dict[builtins.str, typing.Any]]],
2202
+ ) -> None:
2203
+ """Type checking stubs"""
2204
+ pass
2205
+
1834
2206
  def _typecheckingstub__fa0678eca2188c6c3220d708f7d16298acecab165f03de8b400d1fada6a4b9d9(
1835
2207
  *,
1836
2208
  log_group_arn: typing.Optional[builtins.str] = None,
@@ -1838,6 +2210,14 @@ def _typecheckingstub__fa0678eca2188c6c3220d708f7d16298acecab165f03de8b400d1fada
1838
2210
  """Type checking stubs"""
1839
2211
  pass
1840
2212
 
2213
+ def _typecheckingstub__8d8bd4b9a39be1594ef4681992e92f89f24816c775c0e0c40e340be13e59392a(
2214
+ *,
2215
+ limits_per_label_sets: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.LimitsPerLabelSetProperty, typing.Dict[builtins.str, typing.Any]]]]]] = None,
2216
+ retention_period_in_days: typing.Optional[jsii.Number] = None,
2217
+ ) -> None:
2218
+ """Type checking stubs"""
2219
+ pass
2220
+
1841
2221
  def _typecheckingstub__98e95bd874171795b8c6f6104e5fee9fa1d8f50cb6e1edc6d2cc01a77eb0f50a(
1842
2222
  *,
1843
2223
  alert_manager_definition: typing.Optional[builtins.str] = None,
@@ -1845,6 +2225,7 @@ def _typecheckingstub__98e95bd874171795b8c6f6104e5fee9fa1d8f50cb6e1edc6d2cc01a77
1845
2225
  kms_key_arn: typing.Optional[builtins.str] = None,
1846
2226
  logging_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.LoggingConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1847
2227
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
2228
+ workspace_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnWorkspace.WorkspaceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
1848
2229
  ) -> None:
1849
2230
  """Type checking stubs"""
1850
2231
  pass