aws-cdk-lib 2.172.0__py3-none-any.whl → 2.173.1__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 (69) hide show
  1. aws_cdk/__init__.py +57 -0
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.172.0.jsii.tgz → aws-cdk-lib@2.173.1.jsii.tgz} +0 -0
  4. aws_cdk/aws_amazonmq/__init__.py +40 -40
  5. aws_cdk/aws_apigateway/__init__.py +111 -64
  6. aws_cdk/aws_applicationautoscaling/__init__.py +141 -66
  7. aws_cdk/aws_appsync/__init__.py +4 -3
  8. aws_cdk/aws_autoscaling/__init__.py +15 -6
  9. aws_cdk/aws_bedrock/__init__.py +32 -44
  10. aws_cdk/aws_chatbot/__init__.py +72 -46
  11. aws_cdk/aws_cleanrooms/__init__.py +4 -6
  12. aws_cdk/aws_cloudfront/__init__.py +4 -2
  13. aws_cdk/aws_cloudtrail/__init__.py +104 -68
  14. aws_cdk/aws_cloudwatch/__init__.py +51 -14
  15. aws_cdk/aws_codebuild/__init__.py +39 -0
  16. aws_cdk/aws_codepipeline/__init__.py +4 -4
  17. aws_cdk/aws_cognito/__init__.py +221 -53
  18. aws_cdk/aws_config/__init__.py +13 -10
  19. aws_cdk/aws_connect/__init__.py +25 -23
  20. aws_cdk/aws_connectcampaignsv2/__init__.py +187 -176
  21. aws_cdk/aws_docdb/__init__.py +128 -0
  22. aws_cdk/aws_dynamodb/__init__.py +256 -0
  23. aws_cdk/aws_ec2/__init__.py +130 -48
  24. aws_cdk/aws_ecs/__init__.py +25 -13
  25. aws_cdk/aws_eks/__init__.py +86 -24
  26. aws_cdk/aws_elasticache/__init__.py +22 -22
  27. aws_cdk/aws_elasticloadbalancingv2/__init__.py +138 -128
  28. aws_cdk/aws_events/__init__.py +39 -26
  29. aws_cdk/aws_fsx/__init__.py +134 -10
  30. aws_cdk/aws_imagebuilder/__init__.py +8 -8
  31. aws_cdk/aws_invoicing/__init__.py +651 -0
  32. aws_cdk/aws_iot/__init__.py +28 -22
  33. aws_cdk/aws_iotfleetwise/__init__.py +473 -332
  34. aws_cdk/aws_iotsitewise/__init__.py +6 -4
  35. aws_cdk/aws_ivs/__init__.py +43 -31
  36. aws_cdk/aws_kendra/__init__.py +4 -0
  37. aws_cdk/aws_lakeformation/__init__.py +2 -1
  38. aws_cdk/aws_lambda/__init__.py +258 -156
  39. aws_cdk/aws_logs/__init__.py +532 -0
  40. aws_cdk/aws_m2/__init__.py +15 -15
  41. aws_cdk/aws_mediaconnect/__init__.py +24 -14
  42. aws_cdk/aws_medialive/__init__.py +2359 -5
  43. aws_cdk/aws_mediapackage/__init__.py +3 -9
  44. aws_cdk/aws_mediapackagev2/__init__.py +19 -17
  45. aws_cdk/aws_memorydb/__init__.py +664 -4
  46. aws_cdk/aws_qbusiness/__init__.py +2018 -66
  47. aws_cdk/aws_rds/__init__.py +30 -0
  48. aws_cdk/aws_resourcegroups/__init__.py +26 -17
  49. aws_cdk/aws_route53/__init__.py +1177 -10
  50. aws_cdk/aws_route53_targets/__init__.py +224 -100
  51. aws_cdk/aws_route53resolver/__init__.py +4 -2
  52. aws_cdk/aws_s3/__init__.py +4 -4
  53. aws_cdk/aws_s3express/__init__.py +30 -19
  54. aws_cdk/aws_sagemaker/__init__.py +783 -9
  55. aws_cdk/aws_secretsmanager/__init__.py +20 -6
  56. aws_cdk/aws_securityhub/__init__.py +64 -32
  57. aws_cdk/aws_servicediscovery/__init__.py +43 -0
  58. aws_cdk/aws_ses/__init__.py +109 -0
  59. aws_cdk/aws_stepfunctions_tasks/__init__.py +190 -35
  60. aws_cdk/aws_synthetics/__init__.py +7 -5
  61. aws_cdk/aws_vpclattice/__init__.py +1479 -122
  62. aws_cdk/aws_wisdom/__init__.py +2698 -232
  63. aws_cdk/aws_workspacesweb/__init__.py +118 -61
  64. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/METADATA +1 -1
  65. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/RECORD +69 -68
  66. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/LICENSE +0 -0
  67. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/NOTICE +0 -0
  68. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/WHEEL +0 -0
  69. {aws_cdk_lib-2.172.0.dist-info → aws_cdk_lib-2.173.1.dist-info}/top_level.txt +0 -0
@@ -1367,18 +1367,34 @@ tasks.GlueStartJobRun(self, "Task",
1367
1367
  )
1368
1368
  ```
1369
1369
 
1370
- You can configure workers by setting the `workerType` and `numberOfWorkers` properties.
1370
+ You can configure workers by setting the `workerTypeV2` and `numberOfWorkers` properties.
1371
+ `workerType` is deprecated and no longer recommended. Use `workerTypeV2` which is
1372
+ a ENUM-like class for more powerful worker configuration around using pre-defined values or
1373
+ dynamic values.
1371
1374
 
1372
1375
  ```python
1373
1376
  tasks.GlueStartJobRun(self, "Task",
1374
1377
  glue_job_name="my-glue-job",
1375
1378
  worker_configuration=tasks.WorkerConfigurationProperty(
1376
- worker_type=tasks.WorkerType.G_1X, # Worker type
1379
+ worker_type_v2=tasks.WorkerTypeV2.G_1X, # Worker type
1377
1380
  number_of_workers=2
1378
1381
  )
1379
1382
  )
1380
1383
  ```
1381
1384
 
1385
+ To configure the worker type or number of workers dynamically from StateMachine's input,
1386
+ you can configure it using JSON Path values using `workerTypeV2` like this:
1387
+
1388
+ ```python
1389
+ tasks.GlueStartJobRun(self, "Glue Job Task",
1390
+ glue_job_name="my-glue-job",
1391
+ worker_configuration=tasks.WorkerConfigurationProperty(
1392
+ worker_type_v2=tasks.WorkerTypeV2.of(sfn.JsonPath.string_at("$.glue_jobs_configs.executor_type")),
1393
+ number_of_workers=sfn.JsonPath.number_at("$.glue_jobs_configs.max_number_workers")
1394
+ )
1395
+ )
1396
+ ```
1397
+
1382
1398
  You can choose the execution class by setting the `executionClass` property.
1383
1399
 
1384
1400
  ```python
@@ -25316,7 +25332,7 @@ class GlueStartJobRun(
25316
25332
  tasks.GlueStartJobRun(self, "Task",
25317
25333
  glue_job_name="my-glue-job",
25318
25334
  worker_configuration=tasks.WorkerConfigurationProperty(
25319
- worker_type=tasks.WorkerType.G_1X, # Worker type
25335
+ worker_type_v2=tasks.WorkerTypeV2.G_1X, # Worker type
25320
25336
  number_of_workers=2
25321
25337
  )
25322
25338
  )
@@ -25481,7 +25497,7 @@ class GlueStartJobRunProps(_TaskStateBaseProps_3a62b6d0):
25481
25497
  tasks.GlueStartJobRun(self, "Task",
25482
25498
  glue_job_name="my-glue-job",
25483
25499
  worker_configuration=tasks.WorkerConfigurationProperty(
25484
- worker_type=tasks.WorkerType.G_1X, # Worker type
25500
+ worker_type_v2=tasks.WorkerTypeV2.G_1X, # Worker type
25485
25501
  number_of_workers=2
25486
25502
  )
25487
25503
  )
@@ -35469,19 +35485,25 @@ class VpcConfig:
35469
35485
  @jsii.data_type(
35470
35486
  jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.WorkerConfigurationProperty",
35471
35487
  jsii_struct_bases=[],
35472
- name_mapping={"number_of_workers": "numberOfWorkers", "worker_type": "workerType"},
35488
+ name_mapping={
35489
+ "number_of_workers": "numberOfWorkers",
35490
+ "worker_type": "workerType",
35491
+ "worker_type_v2": "workerTypeV2",
35492
+ },
35473
35493
  )
35474
35494
  class WorkerConfigurationProperty:
35475
35495
  def __init__(
35476
35496
  self,
35477
35497
  *,
35478
35498
  number_of_workers: jsii.Number,
35479
- worker_type: "WorkerType",
35499
+ worker_type: typing.Optional["WorkerType"] = None,
35500
+ worker_type_v2: typing.Optional["WorkerTypeV2"] = None,
35480
35501
  ) -> None:
35481
35502
  '''Properties for the worker configuration.
35482
35503
 
35483
35504
  :param number_of_workers: The number of workers of a defined ``WorkerType`` that are allocated when a job runs.
35484
- :param worker_type: The type of predefined worker that is allocated when a job runs.
35505
+ :param worker_type: (deprecated) The type of predefined worker that is allocated when a job runs. Default: - must choose one of ``workerType`` or ``workerTypeV2``
35506
+ :param worker_type_v2: The type of predefined worker that is allocated when a job runs. Can be one of the predefined values or dynamic values using ``WorkerTypeV2.of(...)``. Default: - must choose one of ``workerType`` or ``workerTypeV2``
35485
35507
 
35486
35508
  :exampleMetadata: infused
35487
35509
 
@@ -35490,7 +35512,7 @@ class WorkerConfigurationProperty:
35490
35512
  tasks.GlueStartJobRun(self, "Task",
35491
35513
  glue_job_name="my-glue-job",
35492
35514
  worker_configuration=tasks.WorkerConfigurationProperty(
35493
- worker_type=tasks.WorkerType.G_1X, # Worker type
35515
+ worker_type_v2=tasks.WorkerTypeV2.G_1X, # Worker type
35494
35516
  number_of_workers=2
35495
35517
  )
35496
35518
  )
@@ -35499,10 +35521,14 @@ class WorkerConfigurationProperty:
35499
35521
  type_hints = typing.get_type_hints(_typecheckingstub__c763ebaff9b2187b4078dfe282a5c758a12f2af6fb159d07e51c1920e8b7c50f)
35500
35522
  check_type(argname="argument number_of_workers", value=number_of_workers, expected_type=type_hints["number_of_workers"])
35501
35523
  check_type(argname="argument worker_type", value=worker_type, expected_type=type_hints["worker_type"])
35524
+ check_type(argname="argument worker_type_v2", value=worker_type_v2, expected_type=type_hints["worker_type_v2"])
35502
35525
  self._values: typing.Dict[builtins.str, typing.Any] = {
35503
35526
  "number_of_workers": number_of_workers,
35504
- "worker_type": worker_type,
35505
35527
  }
35528
+ if worker_type is not None:
35529
+ self._values["worker_type"] = worker_type
35530
+ if worker_type_v2 is not None:
35531
+ self._values["worker_type_v2"] = worker_type_v2
35506
35532
 
35507
35533
  @builtins.property
35508
35534
  def number_of_workers(self) -> jsii.Number:
@@ -35512,11 +35538,29 @@ class WorkerConfigurationProperty:
35512
35538
  return typing.cast(jsii.Number, result)
35513
35539
 
35514
35540
  @builtins.property
35515
- def worker_type(self) -> "WorkerType":
35516
- '''The type of predefined worker that is allocated when a job runs.'''
35541
+ def worker_type(self) -> typing.Optional["WorkerType"]:
35542
+ '''(deprecated) The type of predefined worker that is allocated when a job runs.
35543
+
35544
+ :default: - must choose one of ``workerType`` or ``workerTypeV2``
35545
+
35546
+ :deprecated: Use ``workerTypeV2`` for more flexibility in defining worker types.
35547
+
35548
+ :stability: deprecated
35549
+ '''
35517
35550
  result = self._values.get("worker_type")
35518
- assert result is not None, "Required property 'worker_type' is missing"
35519
- return typing.cast("WorkerType", result)
35551
+ return typing.cast(typing.Optional["WorkerType"], result)
35552
+
35553
+ @builtins.property
35554
+ def worker_type_v2(self) -> typing.Optional["WorkerTypeV2"]:
35555
+ '''The type of predefined worker that is allocated when a job runs.
35556
+
35557
+ Can be one of the
35558
+ predefined values or dynamic values using ``WorkerTypeV2.of(...)``.
35559
+
35560
+ :default: - must choose one of ``workerType`` or ``workerTypeV2``
35561
+ '''
35562
+ result = self._values.get("worker_type_v2")
35563
+ return typing.cast(typing.Optional["WorkerTypeV2"], result)
35520
35564
 
35521
35565
  def __eq__(self, rhs: typing.Any) -> builtins.bool:
35522
35566
  return isinstance(rhs, self.__class__) and rhs._values == self._values
@@ -35532,54 +35576,157 @@ class WorkerConfigurationProperty:
35532
35576
 
35533
35577
  @jsii.enum(jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.WorkerType")
35534
35578
  class WorkerType(enum.Enum):
35535
- '''The type of predefined worker that is allocated when a job runs.
35536
-
35537
- If you need to use a WorkerType that doesn't exist as a static member, you
35538
- can instantiate a ``WorkerType`` object, e.g: ``WorkerType.of('other type')``.
35539
-
35540
- :exampleMetadata: infused
35579
+ '''(deprecated) The type of predefined worker that is allocated when a job runs.
35541
35580
 
35542
- Example::
35581
+ :deprecated: Use ``workerTypeV2`` property for ``WorkerConfigurationProperty``
35543
35582
 
35544
- tasks.GlueStartJobRun(self, "Task",
35545
- glue_job_name="my-glue-job",
35546
- worker_configuration=tasks.WorkerConfigurationProperty(
35547
- worker_type=tasks.WorkerType.G_1X, # Worker type
35548
- number_of_workers=2
35549
- )
35550
- )
35583
+ :stability: deprecated
35551
35584
  '''
35552
35585
 
35553
35586
  STANDARD = "STANDARD"
35554
- '''Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.'''
35587
+ '''(deprecated) Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.
35588
+
35589
+ :stability: deprecated
35590
+ '''
35555
35591
  G_025X = "G_025X"
35556
- '''Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs.'''
35592
+ '''(deprecated) Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs.
35593
+
35594
+ :stability: deprecated
35595
+ '''
35557
35596
  G_1X = "G_1X"
35558
- '''Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.
35597
+ '''(deprecated) Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.
35559
35598
 
35560
35599
  Suitable for memory-intensive jobs.
35600
+
35601
+ :stability: deprecated
35561
35602
  '''
35562
35603
  G_2X = "G_2X"
35563
- '''Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.
35604
+ '''(deprecated) Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.
35564
35605
 
35565
35606
  Suitable for memory-intensive jobs.
35607
+
35608
+ :stability: deprecated
35566
35609
  '''
35567
35610
  G_4X = "G_4X"
35568
- '''Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker.
35611
+ '''(deprecated) Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker.
35569
35612
 
35570
35613
  We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
35614
+
35615
+ :stability: deprecated
35571
35616
  '''
35572
35617
  G_8X = "G_8X"
35573
- '''Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker.
35618
+ '''(deprecated) Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker.
35574
35619
 
35575
35620
  We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
35621
+
35622
+ :stability: deprecated
35576
35623
  '''
35577
35624
  Z_2X = "Z_2X"
35578
- '''Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk).
35625
+ '''(deprecated) Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk).
35579
35626
 
35580
35627
  Supported in Ray jobs.
35628
+
35629
+ :stability: deprecated
35630
+ '''
35631
+
35632
+
35633
+ class WorkerTypeV2(
35634
+ metaclass=jsii.JSIIMeta,
35635
+ jsii_type="aws-cdk-lib.aws_stepfunctions_tasks.WorkerTypeV2",
35636
+ ):
35637
+ '''The type of predefined worker that is allocated when a job runs.
35638
+
35639
+ If you need to use a WorkerTypeV2 that doesn't exist as a static member, you
35640
+ can instantiate a ``WorkerTypeV2`` object, e.g: ``WorkerTypeV2.of('other type')``.
35641
+
35642
+ :exampleMetadata: infused
35643
+
35644
+ Example::
35645
+
35646
+ tasks.GlueStartJobRun(self, "Task",
35647
+ glue_job_name="my-glue-job",
35648
+ worker_configuration=tasks.WorkerConfigurationProperty(
35649
+ worker_type_v2=tasks.WorkerTypeV2.G_1X, # Worker type
35650
+ number_of_workers=2
35651
+ )
35652
+ )
35581
35653
  '''
35582
35654
 
35655
+ @jsii.member(jsii_name="of")
35656
+ @builtins.classmethod
35657
+ def of(cls, worker_type: builtins.str) -> "WorkerTypeV2":
35658
+ '''Custom worker type.
35659
+
35660
+ :param worker_type: custom worker type.
35661
+ '''
35662
+ if __debug__:
35663
+ type_hints = typing.get_type_hints(_typecheckingstub__c157d3b8646990517aed57ee3a35b7f7c6278bddb8cec4b54a9428f91ca2e0de)
35664
+ check_type(argname="argument worker_type", value=worker_type, expected_type=type_hints["worker_type"])
35665
+ return typing.cast("WorkerTypeV2", jsii.sinvoke(cls, "of", [worker_type]))
35666
+
35667
+ @jsii.python.classproperty
35668
+ @jsii.member(jsii_name="G_025X")
35669
+ def G_025_X(cls) -> "WorkerTypeV2":
35670
+ '''Each worker maps to 0.25 DPU (2 vCPU, 4 GB of memory, 64 GB disk), and provides 1 executor per worker. Suitable for low volume streaming jobs.'''
35671
+ return typing.cast("WorkerTypeV2", jsii.sget(cls, "G_025X"))
35672
+
35673
+ @jsii.python.classproperty
35674
+ @jsii.member(jsii_name="G_1X")
35675
+ def G_1_X(cls) -> "WorkerTypeV2":
35676
+ '''Each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker.
35677
+
35678
+ Suitable for memory-intensive jobs.
35679
+ '''
35680
+ return typing.cast("WorkerTypeV2", jsii.sget(cls, "G_1X"))
35681
+
35682
+ @jsii.python.classproperty
35683
+ @jsii.member(jsii_name="G_2X")
35684
+ def G_2_X(cls) -> "WorkerTypeV2":
35685
+ '''Each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker.
35686
+
35687
+ Suitable for memory-intensive jobs.
35688
+ '''
35689
+ return typing.cast("WorkerTypeV2", jsii.sget(cls, "G_2X"))
35690
+
35691
+ @jsii.python.classproperty
35692
+ @jsii.member(jsii_name="G_4X")
35693
+ def G_4_X(cls) -> "WorkerTypeV2":
35694
+ '''Each worker maps to 4 DPU (16 vCPU, 64 GB of memory, 256 GB disk), and provides 1 executor per worker.
35695
+
35696
+ We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
35697
+ '''
35698
+ return typing.cast("WorkerTypeV2", jsii.sget(cls, "G_4X"))
35699
+
35700
+ @jsii.python.classproperty
35701
+ @jsii.member(jsii_name="G_8X")
35702
+ def G_8_X(cls) -> "WorkerTypeV2":
35703
+ '''Each worker maps to 8 DPU (32 vCPU, 128 GB of memory, 512 GB disk), and provides 1 executor per worker.
35704
+
35705
+ We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for AWS Glue version 3.0 or later jobs.
35706
+ '''
35707
+ return typing.cast("WorkerTypeV2", jsii.sget(cls, "G_8X"))
35708
+
35709
+ @jsii.python.classproperty
35710
+ @jsii.member(jsii_name="STANDARD")
35711
+ def STANDARD(cls) -> "WorkerTypeV2":
35712
+ '''Each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.'''
35713
+ return typing.cast("WorkerTypeV2", jsii.sget(cls, "STANDARD"))
35714
+
35715
+ @jsii.python.classproperty
35716
+ @jsii.member(jsii_name="Z_2X")
35717
+ def Z_2_X(cls) -> "WorkerTypeV2":
35718
+ '''Each worker maps to 2 high-memory DPU [M-DPU] (8 vCPU, 64 GB of memory, 128 GB disk).
35719
+
35720
+ Supported in Ray jobs.
35721
+ '''
35722
+ return typing.cast("WorkerTypeV2", jsii.sget(cls, "Z_2X"))
35723
+
35724
+ @builtins.property
35725
+ @jsii.member(jsii_name="name")
35726
+ def name(self) -> builtins.str:
35727
+ '''The name of this WorkerType, as expected by Job resource.'''
35728
+ return typing.cast(builtins.str, jsii.get(self, "name"))
35729
+
35583
35730
 
35584
35731
  @jsii.implements(IContainerDefinition)
35585
35732
  class ContainerDefinition(
@@ -35995,6 +36142,7 @@ __all__ = [
35995
36142
  "VpcConfig",
35996
36143
  "WorkerConfigurationProperty",
35997
36144
  "WorkerType",
36145
+ "WorkerTypeV2",
35998
36146
  ]
35999
36147
 
36000
36148
  publication.publish()
@@ -39339,7 +39487,14 @@ def _typecheckingstub__1fbc90a211c2213a59cd0f58f282d9d8472f9b488d20c54956f06975b
39339
39487
  def _typecheckingstub__c763ebaff9b2187b4078dfe282a5c758a12f2af6fb159d07e51c1920e8b7c50f(
39340
39488
  *,
39341
39489
  number_of_workers: jsii.Number,
39342
- worker_type: WorkerType,
39490
+ worker_type: typing.Optional[WorkerType] = None,
39491
+ worker_type_v2: typing.Optional[WorkerTypeV2] = None,
39492
+ ) -> None:
39493
+ """Type checking stubs"""
39494
+ pass
39495
+
39496
+ def _typecheckingstub__c157d3b8646990517aed57ee3a35b7f7c6278bddb8cec4b54a9428f91ca2e0de(
39497
+ worker_type: builtins.str,
39343
39498
  ) -> None:
39344
39499
  """Type checking stubs"""
39345
39500
  pass
@@ -1358,7 +1358,7 @@ class CfnCanary(
1358
1358
  :param artifact_config: A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
1359
1359
  :param delete_lambda_resources_on_canary_deletion: (deprecated) Deletes associated lambda resources created by Synthetics if set to True. Default is False
1360
1360
  :param failure_retention_period: The number of days to retain data about failed runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
1361
- :param provisioned_resource_cleanup: Setting to control if provisioned resources created by Synthetics are deleted alongside the canary. Default is AUTOMATIC.
1361
+ :param provisioned_resource_cleanup: Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If it is ``AUTOMATIC`` , the Lambda functions and layers will be deleted when the canary is deleted. If the value of this parameter is ``OFF`` , then the value of the ``DeleteLambda`` parameter of the `DeleteCanary <https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html>`_ operation determines whether the Lambda functions and layers will be deleted.
1362
1362
  :param resources_to_replicate_tags: To have the tags that you apply to this canary also be applied to the Lambda function that the canary uses, specify this property with the value ``lambda-function`` . If you do this, CloudWatch Synthetics will keep the tags of the canary and the Lambda function synchronized. Any future changes you make to the canary's tags will also be applied to the function.
1363
1363
  :param run_config: A structure that contains input information for a canary run. If you omit this structure, the frequency of the canary is used as canary's timeout value, up to a maximum of 900 seconds.
1364
1364
  :param start_canary_after_creation: Specify TRUE to have the canary start making runs immediately after it is created. A canary that you create using CloudFormation can't be used to monitor the CloudFormation stack that creates the canary or to roll back that stack if there is a failure.
@@ -1606,7 +1606,7 @@ class CfnCanary(
1606
1606
  @builtins.property
1607
1607
  @jsii.member(jsii_name="provisionedResourceCleanup")
1608
1608
  def provisioned_resource_cleanup(self) -> typing.Optional[builtins.str]:
1609
- '''Setting to control if provisioned resources created by Synthetics are deleted alongside the canary.'''
1609
+ '''Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted.'''
1610
1610
  return typing.cast(typing.Optional[builtins.str], jsii.get(self, "provisionedResourceCleanup"))
1611
1611
 
1612
1612
  @provisioned_resource_cleanup.setter
@@ -2556,7 +2556,7 @@ class CfnCanaryProps:
2556
2556
  :param artifact_config: A structure that contains the configuration for canary artifacts, including the encryption-at-rest settings for artifacts that the canary uploads to Amazon S3.
2557
2557
  :param delete_lambda_resources_on_canary_deletion: (deprecated) Deletes associated lambda resources created by Synthetics if set to True. Default is False
2558
2558
  :param failure_retention_period: The number of days to retain data about failed runs of this canary. If you omit this field, the default of 31 days is used. The valid range is 1 to 455 days.
2559
- :param provisioned_resource_cleanup: Setting to control if provisioned resources created by Synthetics are deleted alongside the canary. Default is AUTOMATIC.
2559
+ :param provisioned_resource_cleanup: Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted. If it is ``AUTOMATIC`` , the Lambda functions and layers will be deleted when the canary is deleted. If the value of this parameter is ``OFF`` , then the value of the ``DeleteLambda`` parameter of the `DeleteCanary <https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html>`_ operation determines whether the Lambda functions and layers will be deleted.
2560
2560
  :param resources_to_replicate_tags: To have the tags that you apply to this canary also be applied to the Lambda function that the canary uses, specify this property with the value ``lambda-function`` . If you do this, CloudWatch Synthetics will keep the tags of the canary and the Lambda function synchronized. Any future changes you make to the canary's tags will also be applied to the function.
2561
2561
  :param run_config: A structure that contains input information for a canary run. If you omit this structure, the frequency of the canary is used as canary's timeout value, up to a maximum of 900 seconds.
2562
2562
  :param start_canary_after_creation: Specify TRUE to have the canary start making runs immediately after it is created. A canary that you create using CloudFormation can't be used to monitor the CloudFormation stack that creates the canary or to roll back that stack if there is a failure.
@@ -2813,9 +2813,11 @@ class CfnCanaryProps:
2813
2813
 
2814
2814
  @builtins.property
2815
2815
  def provisioned_resource_cleanup(self) -> typing.Optional[builtins.str]:
2816
- '''Setting to control if provisioned resources created by Synthetics are deleted alongside the canary.
2816
+ '''Specifies whether to also delete the Lambda functions and layers used by this canary when the canary is deleted.
2817
2817
 
2818
- Default is AUTOMATIC.
2818
+ If it is ``AUTOMATIC`` , the Lambda functions and layers will be deleted when the canary is deleted.
2819
+
2820
+ If the value of this parameter is ``OFF`` , then the value of the ``DeleteLambda`` parameter of the `DeleteCanary <https://docs.aws.amazon.com/AmazonSynthetics/latest/APIReference/API_DeleteCanary.html>`_ operation determines whether the Lambda functions and layers will be deleted.
2819
2821
 
2820
2822
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-synthetics-canary.html#cfn-synthetics-canary-provisionedresourcecleanup
2821
2823
  '''