aws-cdk-lib 2.136.1__py3-none-any.whl → 2.138.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.

Files changed (61) hide show
  1. aws_cdk/__init__.py +8 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.136.1.jsii.tgz → aws-cdk-lib@2.138.0.jsii.tgz} +0 -0
  4. aws_cdk/assertions/__init__.py +152 -5
  5. aws_cdk/aws_amplify/__init__.py +29 -113
  6. aws_cdk/aws_appconfig/__init__.py +26 -33
  7. aws_cdk/aws_apprunner/__init__.py +5 -2
  8. aws_cdk/aws_appsync/__init__.py +400 -13
  9. aws_cdk/aws_aps/__init__.py +64 -47
  10. aws_cdk/aws_b2bi/__init__.py +2 -6
  11. aws_cdk/aws_backup/__init__.py +27 -23
  12. aws_cdk/aws_batch/__init__.py +103 -0
  13. aws_cdk/aws_bcmdataexports/__init__.py +1114 -0
  14. aws_cdk/aws_chatbot/__init__.py +6 -4
  15. aws_cdk/aws_cleanrooms/__init__.py +526 -3
  16. aws_cdk/aws_cleanroomsml/__init__.py +960 -0
  17. aws_cdk/aws_cloudfront/__init__.py +196 -15
  18. aws_cdk/aws_cloudtrail/__init__.py +10 -10
  19. aws_cdk/aws_cloudwatch/__init__.py +124 -8
  20. aws_cdk/aws_codebuild/__init__.py +27 -22
  21. aws_cdk/aws_codeconnections/__init__.py +435 -0
  22. aws_cdk/aws_cognito/__init__.py +175 -79
  23. aws_cdk/aws_deadline/__init__.py +5394 -0
  24. aws_cdk/aws_ec2/__init__.py +379 -173
  25. aws_cdk/aws_ecr_assets/__init__.py +3 -4
  26. aws_cdk/aws_ecs/__init__.py +240 -1
  27. aws_cdk/aws_efs/__init__.py +2 -2
  28. aws_cdk/aws_elasticache/__init__.py +86 -32
  29. aws_cdk/aws_elasticloadbalancingv2/__init__.py +275 -5
  30. aws_cdk/aws_emr/__init__.py +2 -2
  31. aws_cdk/aws_entityresolution/__init__.py +1982 -773
  32. aws_cdk/aws_globalaccelerator/__init__.py +443 -0
  33. aws_cdk/aws_iam/__init__.py +24 -40
  34. aws_cdk/aws_internetmonitor/__init__.py +14 -6
  35. aws_cdk/aws_ivs/__init__.py +1273 -71
  36. aws_cdk/aws_kms/__init__.py +8 -13
  37. aws_cdk/aws_mediatailor/__init__.py +41 -0
  38. aws_cdk/aws_personalize/__init__.py +8 -6
  39. aws_cdk/aws_pinpoint/__init__.py +5 -3
  40. aws_cdk/aws_pipes/__init__.py +5 -1
  41. aws_cdk/aws_quicksight/__init__.py +12 -6
  42. aws_cdk/aws_rds/__init__.py +355 -85
  43. aws_cdk/aws_route53/__init__.py +591 -18
  44. aws_cdk/aws_s3_deployment/__init__.py +84 -7
  45. aws_cdk/aws_sagemaker/__init__.py +233 -2
  46. aws_cdk/aws_securityhub/__init__.py +4940 -102
  47. aws_cdk/aws_securitylake/__init__.py +1237 -55
  48. aws_cdk/aws_sns/__init__.py +183 -4
  49. aws_cdk/aws_ssmcontacts/__init__.py +11 -4
  50. aws_cdk/aws_stepfunctions/__init__.py +8 -16
  51. aws_cdk/aws_stepfunctions_tasks/__init__.py +676 -1
  52. aws_cdk/aws_transfer/__init__.py +4 -4
  53. aws_cdk/aws_verifiedpermissions/__init__.py +114 -37
  54. aws_cdk/aws_workspacesthinclient/__init__.py +8 -8
  55. aws_cdk/custom_resources/__init__.py +248 -26
  56. {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/METADATA +3 -3
  57. {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/RECORD +61 -57
  58. {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/LICENSE +0 -0
  59. {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/NOTICE +0 -0
  60. {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/WHEEL +0 -0
  61. {aws_cdk_lib-2.136.1.dist-info → aws_cdk_lib-2.138.0.dist-info}/top_level.txt +0 -0
@@ -959,6 +959,7 @@ from .. import (
959
959
  IResolvable as _IResolvable_da3f097b,
960
960
  IResource as _IResource_c80c4260,
961
961
  ITaggable as _ITaggable_36806126,
962
+ ITaggableV2 as _ITaggableV2_4e6798f8,
962
963
  Resource as _Resource_45bc6135,
963
964
  ResourceProps as _ResourceProps_15a65b4e,
964
965
  TagManager as _TagManager_0a598cb3,
@@ -1320,7 +1321,7 @@ class AlarmStatusWidgetSortBy(enum.Enum):
1320
1321
  '''
1321
1322
 
1322
1323
 
1323
- @jsii.implements(_IInspectable_c2943556)
1324
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
1324
1325
  class CfnAlarm(
1325
1326
  _CfnResource_9df397a6,
1326
1327
  metaclass=jsii.JSIIMeta,
@@ -1389,6 +1390,10 @@ class CfnAlarm(
1389
1390
  ok_actions=["okActions"],
1390
1391
  period=123,
1391
1392
  statistic="statistic",
1393
+ tags=[CfnTag(
1394
+ key="key",
1395
+ value="value"
1396
+ )],
1392
1397
  threshold=123,
1393
1398
  threshold_metric_id="thresholdMetricId",
1394
1399
  treat_missing_data="treatMissingData",
@@ -1418,6 +1423,7 @@ class CfnAlarm(
1418
1423
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
1419
1424
  period: typing.Optional[jsii.Number] = None,
1420
1425
  statistic: typing.Optional[builtins.str] = None,
1426
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
1421
1427
  threshold: typing.Optional[jsii.Number] = None,
1422
1428
  threshold_metric_id: typing.Optional[builtins.str] = None,
1423
1429
  treat_missing_data: typing.Optional[builtins.str] = None,
@@ -1443,6 +1449,7 @@ class CfnAlarm(
1443
1449
  :param ok_actions: The actions to execute when this alarm transitions to the ``OK`` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
1444
1450
  :param period: The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60. For an alarm based on a math expression, you can't specify ``Period`` , and instead you use the ``Metrics`` parameter. *Minimum:* 10
1445
1451
  :param statistic: The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ``ExtendedStatistic`` . For an alarm based on a metric, you must specify either ``Statistic`` or ``ExtendedStatistic`` but not both. For an alarm based on a math expression, you can't specify ``Statistic`` . Instead, you use ``Metrics`` .
1452
+ :param tags: A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
1446
1453
  :param threshold: The value to compare with the specified statistic.
1447
1454
  :param threshold_metric_id: In an alarm based on an anomaly detection model, this is the ID of the ``ANOMALY_DETECTION_BAND`` function used as the threshold for the alarm.
1448
1455
  :param treat_missing_data: Sets how this alarm is to handle missing data points. Valid values are ``breaching`` , ``notBreaching`` , ``ignore`` , and ``missing`` . For more information, see `Configuring How CloudWatch Alarms Treat Missing Data <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data>`_ in the *Amazon CloudWatch User Guide* . If you omit this parameter, the default behavior of ``missing`` is used.
@@ -1470,6 +1477,7 @@ class CfnAlarm(
1470
1477
  ok_actions=ok_actions,
1471
1478
  period=period,
1472
1479
  statistic=statistic,
1480
+ tags=tags,
1473
1481
  threshold=threshold,
1474
1482
  threshold_metric_id=threshold_metric_id,
1475
1483
  treat_missing_data=treat_missing_data,
@@ -1517,6 +1525,12 @@ class CfnAlarm(
1517
1525
  '''
1518
1526
  return typing.cast(builtins.str, jsii.get(self, "attrArn"))
1519
1527
 
1528
+ @builtins.property
1529
+ @jsii.member(jsii_name="cdkTagManager")
1530
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
1531
+ '''Tag Manager which manages the tags for this resource.'''
1532
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
1533
+
1520
1534
  @builtins.property
1521
1535
  @jsii.member(jsii_name="cfnProperties")
1522
1536
  def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
@@ -1770,6 +1784,19 @@ class CfnAlarm(
1770
1784
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1771
1785
  jsii.set(self, "statistic", value)
1772
1786
 
1787
+ @builtins.property
1788
+ @jsii.member(jsii_name="tags")
1789
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
1790
+ '''A list of key-value pairs to associate with the alarm.'''
1791
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
1792
+
1793
+ @tags.setter
1794
+ def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
1795
+ if __debug__:
1796
+ type_hints = typing.get_type_hints(_typecheckingstub__895712e62b896ed30b8848bddfdb970fd334934c19393e2eb8ad06392ecf8af9)
1797
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
1798
+ jsii.set(self, "tags", value)
1799
+
1773
1800
  @builtins.property
1774
1801
  @jsii.member(jsii_name="threshold")
1775
1802
  def threshold(self) -> typing.Optional[jsii.Number]:
@@ -2337,6 +2364,7 @@ class CfnAlarm(
2337
2364
  "ok_actions": "okActions",
2338
2365
  "period": "period",
2339
2366
  "statistic": "statistic",
2367
+ "tags": "tags",
2340
2368
  "threshold": "threshold",
2341
2369
  "threshold_metric_id": "thresholdMetricId",
2342
2370
  "treat_missing_data": "treatMissingData",
@@ -2364,6 +2392,7 @@ class CfnAlarmProps:
2364
2392
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
2365
2393
  period: typing.Optional[jsii.Number] = None,
2366
2394
  statistic: typing.Optional[builtins.str] = None,
2395
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
2367
2396
  threshold: typing.Optional[jsii.Number] = None,
2368
2397
  threshold_metric_id: typing.Optional[builtins.str] = None,
2369
2398
  treat_missing_data: typing.Optional[builtins.str] = None,
@@ -2388,6 +2417,7 @@ class CfnAlarmProps:
2388
2417
  :param ok_actions: The actions to execute when this alarm transitions to the ``OK`` state from any other state. Each action is specified as an Amazon Resource Name (ARN).
2389
2418
  :param period: The period, in seconds, over which the statistic is applied. This is required for an alarm based on a metric. Valid values are 10, 30, 60, and any multiple of 60. For an alarm based on a math expression, you can't specify ``Period`` , and instead you use the ``Metrics`` parameter. *Minimum:* 10
2390
2419
  :param statistic: The statistic for the metric associated with the alarm, other than percentile. For percentile statistics, use ``ExtendedStatistic`` . For an alarm based on a metric, you must specify either ``Statistic`` or ``ExtendedStatistic`` but not both. For an alarm based on a math expression, you can't specify ``Statistic`` . Instead, you use ``Metrics`` .
2420
+ :param tags: A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
2391
2421
  :param threshold: The value to compare with the specified statistic.
2392
2422
  :param threshold_metric_id: In an alarm based on an anomaly detection model, this is the ID of the ``ANOMALY_DETECTION_BAND`` function used as the threshold for the alarm.
2393
2423
  :param treat_missing_data: Sets how this alarm is to handle missing data points. Valid values are ``breaching`` , ``notBreaching`` , ``ignore`` , and ``missing`` . For more information, see `Configuring How CloudWatch Alarms Treat Missing Data <https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/AlarmThatSendsEmail.html#alarms-and-missing-data>`_ in the *Amazon CloudWatch User Guide* . If you omit this parameter, the default behavior of ``missing`` is used.
@@ -2449,6 +2479,10 @@ class CfnAlarmProps:
2449
2479
  ok_actions=["okActions"],
2450
2480
  period=123,
2451
2481
  statistic="statistic",
2482
+ tags=[CfnTag(
2483
+ key="key",
2484
+ value="value"
2485
+ )],
2452
2486
  threshold=123,
2453
2487
  threshold_metric_id="thresholdMetricId",
2454
2488
  treat_missing_data="treatMissingData",
@@ -2474,6 +2508,7 @@ class CfnAlarmProps:
2474
2508
  check_type(argname="argument ok_actions", value=ok_actions, expected_type=type_hints["ok_actions"])
2475
2509
  check_type(argname="argument period", value=period, expected_type=type_hints["period"])
2476
2510
  check_type(argname="argument statistic", value=statistic, expected_type=type_hints["statistic"])
2511
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
2477
2512
  check_type(argname="argument threshold", value=threshold, expected_type=type_hints["threshold"])
2478
2513
  check_type(argname="argument threshold_metric_id", value=threshold_metric_id, expected_type=type_hints["threshold_metric_id"])
2479
2514
  check_type(argname="argument treat_missing_data", value=treat_missing_data, expected_type=type_hints["treat_missing_data"])
@@ -2512,6 +2547,8 @@ class CfnAlarmProps:
2512
2547
  self._values["period"] = period
2513
2548
  if statistic is not None:
2514
2549
  self._values["statistic"] = statistic
2550
+ if tags is not None:
2551
+ self._values["tags"] = tags
2515
2552
  if threshold is not None:
2516
2553
  self._values["threshold"] = threshold
2517
2554
  if threshold_metric_id is not None:
@@ -2735,6 +2772,19 @@ class CfnAlarmProps:
2735
2772
  result = self._values.get("statistic")
2736
2773
  return typing.cast(typing.Optional[builtins.str], result)
2737
2774
 
2775
+ @builtins.property
2776
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
2777
+ '''A list of key-value pairs to associate with the alarm.
2778
+
2779
+ You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission.
2780
+
2781
+ Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
2782
+
2783
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-alarm.html#cfn-cloudwatch-alarm-tags
2784
+ '''
2785
+ result = self._values.get("tags")
2786
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
2787
+
2738
2788
  @builtins.property
2739
2789
  def threshold(self) -> typing.Optional[jsii.Number]:
2740
2790
  '''The value to compare with the specified statistic.
@@ -3846,7 +3896,7 @@ class CfnAnomalyDetector(
3846
3896
 
3847
3897
  If you have enabled unified cross-account observability, and this account is a monitoring account, the metric can be in the same account or a source account.
3848
3898
 
3849
- :param account_id:
3899
+ :param account_id: If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here. If you omit this parameter, the current account is used.
3850
3900
  :param dimensions: The metric dimensions to create the anomaly detection model for.
3851
3901
  :param metric_name: The name of the metric to create the anomaly detection model for.
3852
3902
  :param namespace: The namespace of the metric to create the anomaly detection model for.
@@ -3893,7 +3943,10 @@ class CfnAnomalyDetector(
3893
3943
 
3894
3944
  @builtins.property
3895
3945
  def account_id(self) -> typing.Optional[builtins.str]:
3896
- '''
3946
+ '''If the CloudWatch metric that provides the time series that the anomaly detector uses as input is in another account, specify that account ID here.
3947
+
3948
+ If you omit this parameter, the current account is used.
3949
+
3897
3950
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudwatch-anomalydetector-singlemetricanomalydetector.html#cfn-cloudwatch-anomalydetector-singlemetricanomalydetector-accountid
3898
3951
  '''
3899
3952
  result = self._values.get("account_id")
@@ -4159,7 +4212,7 @@ class CfnAnomalyDetectorProps:
4159
4212
  )
4160
4213
 
4161
4214
 
4162
- @jsii.implements(_IInspectable_c2943556)
4215
+ @jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
4163
4216
  class CfnCompositeAlarm(
4164
4217
  _CfnResource_9df397a6,
4165
4218
  metaclass=jsii.JSIIMeta,
@@ -4173,8 +4226,6 @@ class CfnCompositeAlarm(
4173
4226
 
4174
4227
  Using composite alarms can reduce alarm noise. You can create multiple metric alarms, and also create a composite alarm and set up alerts only for the composite alarm. For example, you could create a composite alarm that goes into ALARM state only when more than one of the underlying metric alarms are in ALARM state.
4175
4228
 
4176
- Currently, the only alarm actions that can be taken by composite alarms are notifying SNS topics.
4177
-
4178
4229
  When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is then evaluated and its state is set appropriately. Any actions associated with the new state are then executed. For a composite alarm, this initial time after creation is the only time that the alarm can be in INSUFFICIENT_DATA state.
4179
4230
 
4180
4231
  When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.
@@ -4201,7 +4252,11 @@ class CfnCompositeAlarm(
4201
4252
  alarm_description="alarmDescription",
4202
4253
  alarm_name="alarmName",
4203
4254
  insufficient_data_actions=["insufficientDataActions"],
4204
- ok_actions=["okActions"]
4255
+ ok_actions=["okActions"],
4256
+ tags=[CfnTag(
4257
+ key="key",
4258
+ value="value"
4259
+ )]
4205
4260
  )
4206
4261
  '''
4207
4262
 
@@ -4220,6 +4275,7 @@ class CfnCompositeAlarm(
4220
4275
  alarm_name: typing.Optional[builtins.str] = None,
4221
4276
  insufficient_data_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
4222
4277
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
4278
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
4223
4279
  ) -> None:
4224
4280
  '''
4225
4281
  :param scope: Scope in which this resource is defined.
@@ -4234,6 +4290,7 @@ class CfnCompositeAlarm(
4234
4290
  :param alarm_name: The name for the composite alarm. This name must be unique within your AWS account.
4235
4291
  :param insufficient_data_actions: The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see `PutCompositeAlarm <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html>`_ in the *Amazon CloudWatch API Reference* .
4236
4292
  :param ok_actions: The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see `PutCompositeAlarm <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html>`_ in the *Amazon CloudWatch API Reference* .
4293
+ :param tags: A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
4237
4294
  '''
4238
4295
  if __debug__:
4239
4296
  type_hints = typing.get_type_hints(_typecheckingstub__5c24d10326e3cd470724ecbde5d50ff23fdf44dc88f809d9a181a5cd867e5cf3)
@@ -4250,6 +4307,7 @@ class CfnCompositeAlarm(
4250
4307
  alarm_name=alarm_name,
4251
4308
  insufficient_data_actions=insufficient_data_actions,
4252
4309
  ok_actions=ok_actions,
4310
+ tags=tags,
4253
4311
  )
4254
4312
 
4255
4313
  jsii.create(self.__class__, self, [scope, id, props])
@@ -4293,6 +4351,12 @@ class CfnCompositeAlarm(
4293
4351
  '''
4294
4352
  return typing.cast(builtins.str, jsii.get(self, "attrArn"))
4295
4353
 
4354
+ @builtins.property
4355
+ @jsii.member(jsii_name="cdkTagManager")
4356
+ def cdk_tag_manager(self) -> _TagManager_0a598cb3:
4357
+ '''Tag Manager which manages the tags for this resource.'''
4358
+ return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
4359
+
4296
4360
  @builtins.property
4297
4361
  @jsii.member(jsii_name="cfnProperties")
4298
4362
  def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
@@ -4442,6 +4506,19 @@ class CfnCompositeAlarm(
4442
4506
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4443
4507
  jsii.set(self, "okActions", value)
4444
4508
 
4509
+ @builtins.property
4510
+ @jsii.member(jsii_name="tags")
4511
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
4512
+ '''A list of key-value pairs to associate with the alarm.'''
4513
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], jsii.get(self, "tags"))
4514
+
4515
+ @tags.setter
4516
+ def tags(self, value: typing.Optional[typing.List[_CfnTag_f6864754]]) -> None:
4517
+ if __debug__:
4518
+ type_hints = typing.get_type_hints(_typecheckingstub__457680b612885bf2c4b88aebcb2510b437690fdf7d6235bf00d83846c1ee3452)
4519
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
4520
+ jsii.set(self, "tags", value)
4521
+
4445
4522
 
4446
4523
  @jsii.data_type(
4447
4524
  jsii_type="aws-cdk-lib.aws_cloudwatch.CfnCompositeAlarmProps",
@@ -4457,6 +4534,7 @@ class CfnCompositeAlarm(
4457
4534
  "alarm_name": "alarmName",
4458
4535
  "insufficient_data_actions": "insufficientDataActions",
4459
4536
  "ok_actions": "okActions",
4537
+ "tags": "tags",
4460
4538
  },
4461
4539
  )
4462
4540
  class CfnCompositeAlarmProps:
@@ -4473,6 +4551,7 @@ class CfnCompositeAlarmProps:
4473
4551
  alarm_name: typing.Optional[builtins.str] = None,
4474
4552
  insufficient_data_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
4475
4553
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
4554
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
4476
4555
  ) -> None:
4477
4556
  '''Properties for defining a ``CfnCompositeAlarm``.
4478
4557
 
@@ -4486,6 +4565,7 @@ class CfnCompositeAlarmProps:
4486
4565
  :param alarm_name: The name for the composite alarm. This name must be unique within your AWS account.
4487
4566
  :param insufficient_data_actions: The actions to execute when this alarm transitions to the INSUFFICIENT_DATA state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see `PutCompositeAlarm <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html>`_ in the *Amazon CloudWatch API Reference* .
4488
4567
  :param ok_actions: The actions to execute when this alarm transitions to the OK state from any other state. Each action is specified as an Amazon Resource Name (ARN). For more information about creating alarms and the actions that you can specify, see `PutCompositeAlarm <https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_PutCompositeAlarm.html>`_ in the *Amazon CloudWatch API Reference* .
4568
+ :param tags: A list of key-value pairs to associate with the alarm. You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission. Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
4489
4569
 
4490
4570
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html
4491
4571
  :exampleMetadata: fixture=_generated
@@ -4508,7 +4588,11 @@ class CfnCompositeAlarmProps:
4508
4588
  alarm_description="alarmDescription",
4509
4589
  alarm_name="alarmName",
4510
4590
  insufficient_data_actions=["insufficientDataActions"],
4511
- ok_actions=["okActions"]
4591
+ ok_actions=["okActions"],
4592
+ tags=[CfnTag(
4593
+ key="key",
4594
+ value="value"
4595
+ )]
4512
4596
  )
4513
4597
  '''
4514
4598
  if __debug__:
@@ -4523,6 +4607,7 @@ class CfnCompositeAlarmProps:
4523
4607
  check_type(argname="argument alarm_name", value=alarm_name, expected_type=type_hints["alarm_name"])
4524
4608
  check_type(argname="argument insufficient_data_actions", value=insufficient_data_actions, expected_type=type_hints["insufficient_data_actions"])
4525
4609
  check_type(argname="argument ok_actions", value=ok_actions, expected_type=type_hints["ok_actions"])
4610
+ check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
4526
4611
  self._values: typing.Dict[builtins.str, typing.Any] = {
4527
4612
  "alarm_rule": alarm_rule,
4528
4613
  }
@@ -4544,6 +4629,8 @@ class CfnCompositeAlarmProps:
4544
4629
  self._values["insufficient_data_actions"] = insufficient_data_actions
4545
4630
  if ok_actions is not None:
4546
4631
  self._values["ok_actions"] = ok_actions
4632
+ if tags is not None:
4633
+ self._values["tags"] = tags
4547
4634
 
4548
4635
  @builtins.property
4549
4636
  def alarm_rule(self) -> builtins.str:
@@ -4676,6 +4763,19 @@ class CfnCompositeAlarmProps:
4676
4763
  result = self._values.get("ok_actions")
4677
4764
  return typing.cast(typing.Optional[typing.List[builtins.str]], result)
4678
4765
 
4766
+ @builtins.property
4767
+ def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
4768
+ '''A list of key-value pairs to associate with the alarm.
4769
+
4770
+ You can associate as many as 50 tags with an alarm. To be able to associate tags with the alarm when you create the alarm, you must have the ``cloudwatch:TagResource`` permission.
4771
+
4772
+ Tags can help you organize and categorize your resources. You can also use them to scope user permissions by granting a user permission to access or change only resources with certain tag values.
4773
+
4774
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-cloudwatch-compositealarm.html#cfn-cloudwatch-compositealarm-tags
4775
+ '''
4776
+ result = self._values.get("tags")
4777
+ return typing.cast(typing.Optional[typing.List[_CfnTag_f6864754]], result)
4778
+
4679
4779
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
4680
4780
  return isinstance(rhs, self.__class__) and rhs._values == self._values
4681
4781
 
@@ -14821,6 +14921,7 @@ def _typecheckingstub__5adc477b9cef758736625389f1a51dec08eb7b348be35f42b0e37d6d4
14821
14921
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
14822
14922
  period: typing.Optional[jsii.Number] = None,
14823
14923
  statistic: typing.Optional[builtins.str] = None,
14924
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
14824
14925
  threshold: typing.Optional[jsii.Number] = None,
14825
14926
  threshold_metric_id: typing.Optional[builtins.str] = None,
14826
14927
  treat_missing_data: typing.Optional[builtins.str] = None,
@@ -14943,6 +15044,12 @@ def _typecheckingstub__233ab7996f3717f1bae1d0b9c6063cfa83de67875ac91777906dbd686
14943
15044
  """Type checking stubs"""
14944
15045
  pass
14945
15046
 
15047
+ def _typecheckingstub__895712e62b896ed30b8848bddfdb970fd334934c19393e2eb8ad06392ecf8af9(
15048
+ value: typing.Optional[typing.List[_CfnTag_f6864754]],
15049
+ ) -> None:
15050
+ """Type checking stubs"""
15051
+ pass
15052
+
14946
15053
  def _typecheckingstub__5fbcb41a59e8a1cba566cf0b26b3129b32d1bb58de6d5fcb5045e9d2ddf908de(
14947
15054
  value: typing.Optional[jsii.Number],
14948
15055
  ) -> None:
@@ -15026,6 +15133,7 @@ def _typecheckingstub__bc643fb1b5f1f1f0e0d9896a5988171163c1f79adc28d1e921bdf85f1
15026
15133
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
15027
15134
  period: typing.Optional[jsii.Number] = None,
15028
15135
  statistic: typing.Optional[builtins.str] = None,
15136
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
15029
15137
  threshold: typing.Optional[jsii.Number] = None,
15030
15138
  threshold_metric_id: typing.Optional[builtins.str] = None,
15031
15139
  treat_missing_data: typing.Optional[builtins.str] = None,
@@ -15204,6 +15312,7 @@ def _typecheckingstub__5c24d10326e3cd470724ecbde5d50ff23fdf44dc88f809d9a181a5cd8
15204
15312
  alarm_name: typing.Optional[builtins.str] = None,
15205
15313
  insufficient_data_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
15206
15314
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
15315
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
15207
15316
  ) -> None:
15208
15317
  """Type checking stubs"""
15209
15318
  pass
@@ -15280,6 +15389,12 @@ def _typecheckingstub__f061adaf1332cbeeb6cedda66357d6a65aea2023583d23de2ed9b9c19
15280
15389
  """Type checking stubs"""
15281
15390
  pass
15282
15391
 
15392
+ def _typecheckingstub__457680b612885bf2c4b88aebcb2510b437690fdf7d6235bf00d83846c1ee3452(
15393
+ value: typing.Optional[typing.List[_CfnTag_f6864754]],
15394
+ ) -> None:
15395
+ """Type checking stubs"""
15396
+ pass
15397
+
15283
15398
  def _typecheckingstub__f61e2b790710dde8e1d3a57752c99da295b632afeb42e0870113583f0277be2c(
15284
15399
  *,
15285
15400
  alarm_rule: builtins.str,
@@ -15292,6 +15407,7 @@ def _typecheckingstub__f61e2b790710dde8e1d3a57752c99da295b632afeb42e0870113583f0
15292
15407
  alarm_name: typing.Optional[builtins.str] = None,
15293
15408
  insufficient_data_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
15294
15409
  ok_actions: typing.Optional[typing.Sequence[builtins.str]] = None,
15410
+ tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
15295
15411
  ) -> None:
15296
15412
  """Type checking stubs"""
15297
15413
  pass
@@ -3597,7 +3597,7 @@ class CfnProject(
3597
3597
  ) -> None:
3598
3598
  '''``Environment`` is a property of the `AWS::CodeBuild::Project <https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html>`_ resource that specifies the environment for an AWS CodeBuild project.
3599
3599
 
3600
- :param compute_type: The type of compute environment. This determines the number of CPU cores and memory the build environment uses. Available values include: - ``BUILD_GENERAL1_SMALL`` : Use up to 3 GB memory and 2 vCPUs for builds. - ``BUILD_GENERAL1_MEDIUM`` : Use up to 7 GB memory and 4 vCPUs for builds. - ``BUILD_GENERAL1_LARGE`` : Use up to 15 GB memory and 8 vCPUs for builds. For more information, see `Build Environment Compute Types <https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html>`_ in the *AWS CodeBuild User Guide.*
3600
+ :param compute_type: The type of compute environment. This determines the number of CPU cores and memory the build environment uses. Available values include: - ``BUILD_GENERAL1_SMALL`` : Use up to 3 GB memory and 2 vCPUs for builds. - ``BUILD_GENERAL1_MEDIUM`` : Use up to 7 GB memory and 4 vCPUs for builds. - ``BUILD_GENERAL1_LARGE`` : Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_XLARGE`` : Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type. - ``BUILD_GENERAL1_2XLARGE`` : Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed. - ``BUILD_LAMBDA_1GB`` : Use up to 1 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_2GB`` : Use up to 2 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_4GB`` : Use up to 4 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_8GB`` : Use up to 8 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . - ``BUILD_LAMBDA_10GB`` : Use up to 10 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` . For more information, see `Build Environment Compute Types <https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html>`_ in the *AWS CodeBuild User Guide.*
3601
3601
  :param image: The image tag or image digest that identifies the Docker image to use for this build project. Use the following formats: - For an image tag: ``<registry>/<repository>:<tag>`` . For example, in the Docker repository that CodeBuild uses to manage its Docker images, this would be ``aws/codebuild/standard:4.0`` . - For an image digest: ``<registry>/<repository>@<digest>`` . For example, to specify an image with the digest "sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf," use ``<registry>/<repository>@sha256:cbbf2f9a99b47fc460d422812b6a5adff7dfee951d8fa2e4a98caa0382cfbdbf`` . For more information, see `Docker images provided by CodeBuild <https://docs.aws.amazon.com//codebuild/latest/userguide/build-env-ref-available.html>`_ in the *AWS CodeBuild user guide* .
3602
3602
  :param type: The type of build environment to use for related builds. - The environment type ``ARM_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), EU (Ireland), Asia Pacific (Mumbai), Asia Pacific (Tokyo), Asia Pacific (Sydney), and EU (Frankfurt). - The environment type ``LINUX_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney), China (Beijing), and China (Ningxia). - The environment type ``LINUX_GPU_CONTAINER`` is available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Canada (Central), EU (Ireland), EU (London), EU (Frankfurt), Asia Pacific (Tokyo), Asia Pacific (Seoul), Asia Pacific (Singapore), Asia Pacific (Sydney) , China (Beijing), and China (Ningxia). - The environment types ``ARM_LAMBDA_CONTAINER`` and ``LINUX_LAMBDA_CONTAINER`` are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), Asia Pacific (Mumbai), Asia Pacific (Singapore), Asia Pacific (Sydney), Asia Pacific (Tokyo), EU (Frankfurt), EU (Ireland), and South America (São Paulo). - The environment types ``WINDOWS_CONTAINER`` and ``WINDOWS_SERVER_2019_CONTAINER`` are available only in regions US East (N. Virginia), US East (Ohio), US West (Oregon), and EU (Ireland). .. epigraph:: If you're using compute fleets during project creation, ``type`` will be ignored. For more information, see `Build environment compute types <https://docs.aws.amazon.com//codebuild/latest/userguide/build-env-ref-compute-types.html>`_ in the *AWS CodeBuild user guide* .
3603
3603
  :param certificate: The ARN of the Amazon S3 bucket, path prefix, and object key that contains the PEM-encoded certificate for the build project. For more information, see `certificate <https://docs.aws.amazon.com/codebuild/latest/userguide/create-project-cli.html#cli.environment.certificate>`_ in the *AWS CodeBuild User Guide* .
@@ -3678,7 +3678,14 @@ class CfnProject(
3678
3678
 
3679
3679
  - ``BUILD_GENERAL1_SMALL`` : Use up to 3 GB memory and 2 vCPUs for builds.
3680
3680
  - ``BUILD_GENERAL1_MEDIUM`` : Use up to 7 GB memory and 4 vCPUs for builds.
3681
- - ``BUILD_GENERAL1_LARGE`` : Use up to 15 GB memory and 8 vCPUs for builds.
3681
+ - ``BUILD_GENERAL1_LARGE`` : Use up to 16 GB memory and 8 vCPUs for builds, depending on your environment type.
3682
+ - ``BUILD_GENERAL1_XLARGE`` : Use up to 70 GB memory and 36 vCPUs for builds, depending on your environment type.
3683
+ - ``BUILD_GENERAL1_2XLARGE`` : Use up to 145 GB memory, 72 vCPUs, and 824 GB of SSD storage for builds. This compute type supports Docker images up to 100 GB uncompressed.
3684
+ - ``BUILD_LAMBDA_1GB`` : Use up to 1 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3685
+ - ``BUILD_LAMBDA_2GB`` : Use up to 2 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3686
+ - ``BUILD_LAMBDA_4GB`` : Use up to 4 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3687
+ - ``BUILD_LAMBDA_8GB`` : Use up to 8 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3688
+ - ``BUILD_LAMBDA_10GB`` : Use up to 10 GB memory for builds. Only available for environment type ``LINUX_LAMBDA_CONTAINER`` and ``ARM_LAMBDA_CONTAINER`` .
3682
3689
 
3683
3690
  For more information, see `Build Environment Compute Types <https://docs.aws.amazon.com/codebuild/latest/userguide/build-env-ref-compute-types.html>`_ in the *AWS CodeBuild User Guide.*
3684
3691
 
@@ -5008,7 +5015,7 @@ class CfnProject(
5008
5015
  :param git_clone_depth: The depth of history to download. Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build project. If your source type is Amazon S3, this value is not supported.
5009
5016
  :param git_submodules_config: Information about the Git submodules configuration for the build project.
5010
5017
  :param insecure_ssl: This is used with GitHub Enterprise only. Set to true to ignore SSL warnings while connecting to your GitHub Enterprise project repository. The default value is ``false`` . ``InsecureSsl`` should be used for testing purposes only. It should not be used in a production environment.
5011
- :param location: Information about the location of the source code to be built. Valid values include:. - For source code settings that are specified in the source action of a pipeline in CodePipeline, ``location`` should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value. - For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, ``https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>`` ). - For source code in an Amazon S3 input bucket, one of the following. - The path to the ZIP file that contains the source code (for example, ``<bucket-name>/<path>/<object-name>.zip`` ). - The path to the folder that contains the source code (for example, ``<bucket-name>/<path-to-source-code>/<folder>/`` ). - For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub *Authorize application* page, for *Organization access* , choose *Request access* next to each repository you want to allow AWS CodeBuild to have access to, and then choose *Authorize application* . (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeStar Connections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object. - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket *Confirm access to your account* page, choose *Grant access* . (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . If you specify ``CODEPIPELINE`` for the ``Type`` property, don't specify this property. For all of the other types, you must specify ``Location`` .
5018
+ :param location: Information about the location of the source code to be built. Valid values include:. - For source code settings that are specified in the source action of a pipeline in CodePipeline, ``location`` should not be specified. If it is specified, CodePipeline ignores it. This is because CodePipeline uses the settings in a pipeline's source action instead of this value. - For source code in an CodeCommit repository, the HTTPS clone URL to the repository that contains the source code and the buildspec file (for example, ``https://git-codecommit.<region-ID>.amazonaws.com/v1/repos/<repo-name>`` ). - For source code in an Amazon S3 input bucket, one of the following. - The path to the ZIP file that contains the source code (for example, ``<bucket-name>/<path>/<object-name>.zip`` ). - The path to the folder that contains the source code (for example, ``<bucket-name>/<path-to-source-code>/<folder>/`` ). - For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub *Authorize application* page, for *Organization access* , choose *Request access* next to each repository you want to allow AWS CodeBuild to have access to, and then choose *Authorize application* . (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeConnections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object. - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket *Confirm access to your account* page, choose *Grant access* . (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` . If you specify ``CODEPIPELINE`` for the ``Type`` property, don't specify this property. For all of the other types, you must specify ``Location`` .
5012
5019
  :param report_build_status: Set to true to report the status of a build's start and finish to your source provider. This option is valid only when your source provider is GitHub, GitHub Enterprise, or Bitbucket. If this is set and you use a different source provider, an ``invalidInputException`` is thrown.
5013
5020
  :param source_identifier: An identifier for this project source. The identifier can only contain alphanumeric characters and underscores, and must be less than 128 characters in length.
5014
5021
 
@@ -5182,7 +5189,7 @@ class CfnProject(
5182
5189
  - The path to the ZIP file that contains the source code (for example, ``<bucket-name>/<path>/<object-name>.zip`` ).
5183
5190
  - The path to the folder that contains the source code (for example, ``<bucket-name>/<path-to-source-code>/<folder>/`` ).
5184
5191
  - For source code in a GitHub repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitHub account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitHub, on the GitHub *Authorize application* page, for *Organization access* , choose *Request access* next to each repository you want to allow AWS CodeBuild to have access to, and then choose *Authorize application* . (After you have connected to your GitHub account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` .
5185
- - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeStar Connections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object.
5192
+ - For source code in an GitLab or self-managed GitLab repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your GitLab account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with GitLab, on the Connections *Authorize application* page, choose *Authorize* . Then on the AWS CodeConnections *Create GitLab connection* page, choose *Connect to GitLab* . (After you have connected to your GitLab account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to override the default connection and use this connection instead, set the ``auth`` object's ``type`` value to ``CODECONNECTIONS`` in the ``source`` object.
5186
5193
  - For source code in a Bitbucket repository, the HTTPS clone URL to the repository that contains the source and the buildspec file. You must connect your AWS account to your Bitbucket account. Use the AWS CodeBuild console to start creating a build project. When you use the console to connect (or reconnect) with Bitbucket, on the Bitbucket *Confirm access to your account* page, choose *Grant access* . (After you have connected to your Bitbucket account, you do not need to finish creating the build project. You can leave the AWS CodeBuild console.) To instruct AWS CodeBuild to use this connection, in the ``source`` object, set the ``auth`` object's ``type`` value to ``OAUTH`` .
5187
5194
 
5188
5195
  If you specify ``CODEPIPELINE`` for the ``Type`` property, don't specify this property. For all of the other types, you must specify ``Location`` .
@@ -5344,7 +5351,7 @@ class CfnProject(
5344
5351
  The Webhook feature isn't available in AWS CloudFormation for GitHub Enterprise projects. Use the AWS CLI or AWS CodeBuild console to create the webhook.
5345
5352
 
5346
5353
  :param pattern: For a ``WebHookFilter`` that uses ``EVENT`` type, a comma-separated string that specifies one or more events. For example, the webhook filter ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` allows all push, pull request created, and pull request updated events to trigger a build. For a ``WebHookFilter`` that uses any of the other filter types, a regular expression pattern. For example, a ``WebHookFilter`` that uses ``HEAD_REF`` for its ``type`` and the pattern ``^refs/heads/`` triggers a build when the head reference is a branch with a reference name ``refs/heads/branch-name`` .
5347
- :param type: The type of webhook filter. There are eight webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , and ``RELEASE_NAME`` . - EVENT - A webhook event triggers a build when the provided ``pattern`` matches one of eight event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , and ``PRERELEASED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events. .. epigraph:: The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` and ``PRERELEASED`` work with GitHub only. - ACTOR_ACCOUNT_ID - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` . - HEAD_REF - A webhook event triggers a build when the head reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` and ``refs/tags/tag-name`` . .. epigraph:: Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. - BASE_REF - A webhook event triggers a build when the base reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` . .. epigraph:: Works with pull request events only. - FILE_PATH - A webhook triggers a build when the path of a changed file matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - COMMIT_MESSAGE - A webhook triggers a build when the head commit message matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - TAG_NAME - A webhook triggers a build when the tag name of the release matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - RELEASE_NAME - A webhook triggers a build when the release name matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only.
5354
+ :param type: The type of webhook filter. There are nine webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , ``RELEASE_NAME`` , and ``WORKFLOW_NAME`` . - EVENT - A webhook event triggers a build when the provided ``pattern`` matches one of nine event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events. .. epigraph:: The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` work with GitHub only. - ACTOR_ACCOUNT_ID - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` . - HEAD_REF - A webhook event triggers a build when the head reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` and ``refs/tags/tag-name`` . .. epigraph:: Works with GitHub and GitHub Enterprise push, GitHub and GitHub Enterprise pull request, Bitbucket push, and Bitbucket pull request events. - BASE_REF - A webhook event triggers a build when the base reference matches the regular expression ``pattern`` . For example, ``refs/heads/branch-name`` . .. epigraph:: Works with pull request events only. - FILE_PATH - A webhook triggers a build when the path of a changed file matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - COMMIT_MESSAGE - A webhook triggers a build when the head commit message matches the regular expression ``pattern`` . .. epigraph:: Works with GitHub and Bitbucket events push and pull requests events. Also works with GitHub Enterprise push events, but does not work with GitHub Enterprise pull request events. - TAG_NAME - A webhook triggers a build when the tag name of the release matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - RELEASE_NAME - A webhook triggers a build when the release name matches the regular expression ``pattern`` . .. epigraph:: Works with ``RELEASED`` and ``PRERELEASED`` events only. - WORKFLOW_NAME - A webhook triggers a build when the workflow name matches the regular expression ``pattern`` . .. epigraph:: Works with ``WORKFLOW_JOB_QUEUED`` events only.
5348
5355
  :param exclude_matched_pattern: Used to indicate that the ``pattern`` determines which webhook events do not trigger a build. If true, then a webhook event that does not match the ``pattern`` triggers a build. If false, then a webhook event that matches the ``pattern`` triggers a build.
5349
5356
 
5350
5357
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html
@@ -5394,14 +5401,14 @@ class CfnProject(
5394
5401
  def type(self) -> builtins.str:
5395
5402
  '''The type of webhook filter.
5396
5403
 
5397
- There are eight webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , and ``RELEASE_NAME`` .
5404
+ There are nine webhook filter types: ``EVENT`` , ``ACTOR_ACCOUNT_ID`` , ``HEAD_REF`` , ``BASE_REF`` , ``FILE_PATH`` , ``COMMIT_MESSAGE`` , ``TAG_NAME`` , ``RELEASE_NAME`` , and ``WORKFLOW_NAME`` .
5398
5405
 
5399
5406
  - EVENT
5400
- - A webhook event triggers a build when the provided ``pattern`` matches one of eight event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , and ``PRERELEASED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events.
5407
+ - A webhook event triggers a build when the provided ``pattern`` matches one of nine event types: ``PUSH`` , ``PULL_REQUEST_CREATED`` , ``PULL_REQUEST_UPDATED`` , ``PULL_REQUEST_CLOSED`` , ``PULL_REQUEST_REOPENED`` , ``PULL_REQUEST_MERGED`` , ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` . The ``EVENT`` patterns are specified as a comma-separated string. For example, ``PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED`` filters all push, pull request created, and pull request updated events.
5401
5408
 
5402
5409
  .. epigraph::
5403
5410
 
5404
- The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` and ``PRERELEASED`` work with GitHub only.
5411
+ The ``PULL_REQUEST_REOPENED`` works with GitHub and GitHub Enterprise only. The ``RELEASED`` , ``PRERELEASED`` , and ``WORKFLOW_JOB_QUEUED`` work with GitHub only.
5405
5412
 
5406
5413
  - ACTOR_ACCOUNT_ID
5407
5414
  - A webhook event triggers a build when a GitHub, GitHub Enterprise, or Bitbucket account ID matches the regular expression ``pattern`` .
@@ -5447,6 +5454,13 @@ class CfnProject(
5447
5454
 
5448
5455
  Works with ``RELEASED`` and ``PRERELEASED`` events only.
5449
5456
 
5457
+ - WORKFLOW_NAME
5458
+ - A webhook triggers a build when the workflow name matches the regular expression ``pattern`` .
5459
+
5460
+ .. epigraph::
5461
+
5462
+ Works with ``WORKFLOW_JOB_QUEUED`` events only.
5463
+
5450
5464
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-codebuild-project-webhookfilter.html#cfn-codebuild-project-webhookfilter-type
5451
5465
  '''
5452
5466
  result = self._values.get("type")
@@ -6785,7 +6799,7 @@ class CfnSourceCredential(
6785
6799
  :param id: Construct identifier for this resource (unique in its scope).
6786
6800
  :param auth_type: The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
6787
6801
  :param server_type: The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
6788
- :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
6802
+ :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password.
6789
6803
  :param username: The Bitbucket username when the ``authType`` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
6790
6804
  '''
6791
6805
  if __debug__:
@@ -6920,7 +6934,7 @@ class CfnSourceCredentialProps:
6920
6934
 
6921
6935
  :param auth_type: The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
6922
6936
  :param server_type: The type of source provider. The valid options are GITHUB, GITHUB_ENTERPRISE, GITLAB, GITLAB_SELF_MANAGED, or BITBUCKET.
6923
- :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is the app password.
6937
+ :param token: For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password.
6924
6938
  :param username: The Bitbucket username when the ``authType`` is BASIC_AUTH. This parameter is not valid for other types of source providers or connections.
6925
6939
 
6926
6940
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html
@@ -6983,7 +6997,7 @@ class CfnSourceCredentialProps:
6983
6997
  def token(self) -> builtins.str:
6984
6998
  '''For GitHub or GitHub Enterprise, this is the personal access token.
6985
6999
 
6986
- For Bitbucket, this is the app password.
7000
+ For Bitbucket, this is either the access token or the app password.
6987
7001
 
6988
7002
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-sourcecredential.html#cfn-codebuild-sourcecredential-token
6989
7003
  '''
@@ -10545,22 +10559,13 @@ class LinuxBuildImage(
10545
10559
  @jsii.python.classproperty
10546
10560
  @jsii.member(jsii_name="AMAZON_LINUX_2_ARM_2")
10547
10561
  def AMAZON_LINUX_2_ARM_2(cls) -> IBuildImage:
10548
- '''(deprecated) Image "aws/codebuild/amazonlinux2-aarch64-standard:2.0".
10549
-
10550
- :deprecated: Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead.
10551
-
10552
- :stability: deprecated
10553
- '''
10562
+ '''The ``aws/codebuild/amazonlinux2-aarch64-standard:2.0`` build image.'''
10554
10563
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2_ARM_2"))
10555
10564
 
10556
10565
  @jsii.python.classproperty
10557
10566
  @jsii.member(jsii_name="AMAZON_LINUX_2_ARM_3")
10558
10567
  def AMAZON_LINUX_2_ARM_3(cls) -> IBuildImage:
10559
- '''
10560
- :deprecated: Use LinuxArmBuildImage.AMAZON_LINUX_2_STANDARD_3_0 instead.
10561
-
10562
- :stability: deprecated
10563
- '''
10568
+ '''The ``aws/codebuild/amazonlinux2-aarch64-standard:3.0`` build image.'''
10564
10569
  return typing.cast(IBuildImage, jsii.sget(cls, "AMAZON_LINUX_2_ARM_3"))
10565
10570
 
10566
10571
  @jsii.python.classproperty