aws-cdk-lib 2.155.0__py3-none-any.whl → 2.157.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 (66) hide show
  1. aws_cdk/__init__.py +28 -24
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.155.0.jsii.tgz → aws-cdk-lib@2.157.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_acmpca/__init__.py +10 -75
  5. aws_cdk/aws_amplify/__init__.py +106 -0
  6. aws_cdk/aws_apigatewayv2/__init__.py +81 -13
  7. aws_cdk/aws_appintegrations/__init__.py +14 -14
  8. aws_cdk/aws_applicationsignals/__init__.py +750 -1
  9. aws_cdk/aws_appsync/__init__.py +50 -18
  10. aws_cdk/aws_autoscaling/__init__.py +6 -6
  11. aws_cdk/aws_backup/__init__.py +39 -0
  12. aws_cdk/aws_batch/__init__.py +41 -0
  13. aws_cdk/aws_bedrock/__init__.py +1528 -91
  14. aws_cdk/aws_chatbot/__init__.py +6 -6
  15. aws_cdk/aws_cloudformation/__init__.py +22 -22
  16. aws_cdk/aws_cloudfront/__init__.py +650 -57
  17. aws_cdk/aws_cloudfront/experimental/__init__.py +30 -3
  18. aws_cdk/aws_cloudfront_origins/__init__.py +2034 -91
  19. aws_cdk/aws_codebuild/__init__.py +1 -1
  20. aws_cdk/aws_datasync/__init__.py +40 -29
  21. aws_cdk/aws_docdb/__init__.py +78 -6
  22. aws_cdk/aws_ec2/__init__.py +397 -75
  23. aws_cdk/aws_ecs/__init__.py +271 -101
  24. aws_cdk/aws_ecs_patterns/__init__.py +129 -11
  25. aws_cdk/aws_eks/__init__.py +40 -4
  26. aws_cdk/aws_elasticloadbalancingv2/__init__.py +26 -50
  27. aws_cdk/aws_entityresolution/__init__.py +117 -4
  28. aws_cdk/aws_events/__init__.py +40 -14
  29. aws_cdk/aws_events_targets/__init__.py +357 -0
  30. aws_cdk/aws_glue/__init__.py +0 -8
  31. aws_cdk/aws_groundstation/__init__.py +27 -16
  32. aws_cdk/aws_guardduty/__init__.py +26 -14
  33. aws_cdk/aws_iam/__init__.py +7 -8
  34. aws_cdk/aws_iotfleetwise/__init__.py +108 -0
  35. aws_cdk/aws_kms/__init__.py +53 -10
  36. aws_cdk/aws_lambda/__init__.py +147 -17
  37. aws_cdk/aws_lambda_nodejs/__init__.py +30 -3
  38. aws_cdk/aws_macie/__init__.py +4 -4
  39. aws_cdk/aws_medialive/__init__.py +348 -0
  40. aws_cdk/aws_mediapackagev2/__init__.py +38 -38
  41. aws_cdk/aws_neptune/__init__.py +14 -8
  42. aws_cdk/aws_opensearchservice/__init__.py +194 -0
  43. aws_cdk/aws_pcaconnectorscep/__init__.py +884 -0
  44. aws_cdk/aws_personalize/__init__.py +2 -2
  45. aws_cdk/aws_pipes/__init__.py +22 -22
  46. aws_cdk/aws_qbusiness/__init__.py +675 -6
  47. aws_cdk/aws_quicksight/__init__.py +3285 -0
  48. aws_cdk/aws_rds/__init__.py +24 -0
  49. aws_cdk/aws_s3/__init__.py +13 -14
  50. aws_cdk/aws_sagemaker/__init__.py +1167 -0
  51. aws_cdk/aws_secretsmanager/__init__.py +2 -3
  52. aws_cdk/aws_securityhub/__init__.py +108 -103
  53. aws_cdk/aws_ses/__init__.py +31 -0
  54. aws_cdk/aws_sns/__init__.py +19 -13
  55. aws_cdk/aws_ssm/__init__.py +10 -6
  56. aws_cdk/aws_ssmquicksetup/__init__.py +967 -0
  57. aws_cdk/aws_stepfunctions_tasks/__init__.py +106 -45
  58. aws_cdk/aws_synthetics/__init__.py +13 -0
  59. aws_cdk/cx_api/__init__.py +16 -0
  60. aws_cdk/triggers/__init__.py +30 -3
  61. {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/METADATA +1 -1
  62. {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/RECORD +66 -64
  63. {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/LICENSE +0 -0
  64. {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/NOTICE +0 -0
  65. {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/WHEEL +0 -0
  66. {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/top_level.txt +0 -0
@@ -1758,7 +1758,7 @@ class CfnIdNamespace(
1758
1758
  These properties define how the ID namespace can be used in an ID mapping workflow.
1759
1759
 
1760
1760
  :param attribute_matching_model: The comparison type. You can either choose ``ONE_TO_ONE`` or ``MANY_TO_MANY`` as the ``attributeMatchingModel`` . If you choose ``MANY_TO_MANY`` , the system can match attributes across the sub-types of an attribute type. For example, if the value of the ``Email`` field of Profile A matches the value of ``BusinessEmail`` field of Profile B, the two profiles are matched on the ``Email`` attribute type. If you choose ``ONE_TO_ONE`` , the system can only match attributes if the sub-types are an exact match. For example, for the ``Email`` attribute type, the system will only consider it a match if the value of the ``Email`` field of Profile A matches the value of the ``Email`` field of Profile B.
1761
- :param record_matching_models: The comparison type. You can either choose ``ONE_TO_ONE`` or ``MANY_TO_MANY`` as the ``attributeMatchingModel`` . If you choose ``MANY_TO_MANY`` , the system can match attributes across the sub-types of an attribute type. For example, if the value of the ``Email`` field of Profile A matches the value of ``BusinessEmail`` field of Profile B, the two profiles are matched on the ``Email`` attribute type. If you choose ``ONE_TO_ONE`` , the system can only match attributes if the sub-types are an exact match. For example, for the ``Email`` attribute type, the system will only consider it a match if the value of the ``Email`` field of Profile A matches the value of the ``Email`` field of Profile B.
1761
+ :param record_matching_models: The type of matching record that is allowed to be used in an ID mapping workflow. If the value is set to ``ONE_SOURCE_TO_ONE_TARGET`` , only one record in the source is matched to one record in the target. If the value is set to ``MANY_SOURCE_TO_ONE_TARGET`` , all matching records in the source are matched to one record in the target.
1762
1762
  :param rule_definition_types: The sets of rules you can use in an ID mapping workflow. The limitations specified for the source and target must be compatible.
1763
1763
  :param rules: The rules for the ID namespace.
1764
1764
 
@@ -1812,11 +1812,11 @@ class CfnIdNamespace(
1812
1812
 
1813
1813
  @builtins.property
1814
1814
  def record_matching_models(self) -> typing.Optional[typing.List[builtins.str]]:
1815
- '''The comparison type. You can either choose ``ONE_TO_ONE`` or ``MANY_TO_MANY`` as the ``attributeMatchingModel`` .
1815
+ '''The type of matching record that is allowed to be used in an ID mapping workflow.
1816
1816
 
1817
- If you choose ``MANY_TO_MANY`` , the system can match attributes across the sub-types of an attribute type. For example, if the value of the ``Email`` field of Profile A matches the value of ``BusinessEmail`` field of Profile B, the two profiles are matched on the ``Email`` attribute type.
1817
+ If the value is set to ``ONE_SOURCE_TO_ONE_TARGET`` , only one record in the source is matched to one record in the target.
1818
1818
 
1819
- If you choose ``ONE_TO_ONE`` , the system can only match attributes if the sub-types are an exact match. For example, for the ``Email`` attribute type, the system will only consider it a match if the value of the ``Email`` field of Profile A matches the value of the ``Email`` field of Profile B.
1819
+ If the value is set to ``MANY_SOURCE_TO_ONE_TARGET`` , all matching records in the source are matched to one record in the target.
1820
1820
 
1821
1821
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-idnamespace-namespacerulebasedproperties.html#cfn-entityresolution-idnamespace-namespacerulebasedproperties-recordmatchingmodels
1822
1822
  '''
@@ -2196,6 +2196,9 @@ class CfnMatchingWorkflow(
2196
2196
 
2197
2197
  # the properties below are optional
2198
2198
  description="description",
2199
+ incremental_run_config=entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty(
2200
+ incremental_run_type="incrementalRunType"
2201
+ ),
2199
2202
  tags=[CfnTag(
2200
2203
  key="key",
2201
2204
  value="value"
@@ -2214,6 +2217,7 @@ class CfnMatchingWorkflow(
2214
2217
  role_arn: builtins.str,
2215
2218
  workflow_name: builtins.str,
2216
2219
  description: typing.Optional[builtins.str] = None,
2220
+ incremental_run_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnMatchingWorkflow.IncrementalRunConfigProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
2217
2221
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
2218
2222
  ) -> None:
2219
2223
  '''
@@ -2225,6 +2229,7 @@ class CfnMatchingWorkflow(
2225
2229
  :param role_arn: The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
2226
2230
  :param workflow_name: The name of the workflow. There can't be multiple ``MatchingWorkflows`` with the same name.
2227
2231
  :param description: A description of the workflow.
2232
+ :param incremental_run_config: An object which defines an incremental run type and has only ``incrementalRunType`` as a field.
2228
2233
  :param tags: The tags used to organize, track, or control access for this resource.
2229
2234
  '''
2230
2235
  if __debug__:
@@ -2238,6 +2243,7 @@ class CfnMatchingWorkflow(
2238
2243
  role_arn=role_arn,
2239
2244
  workflow_name=workflow_name,
2240
2245
  description=description,
2246
+ incremental_run_config=incremental_run_config,
2241
2247
  tags=tags,
2242
2248
  )
2243
2249
 
@@ -2404,6 +2410,24 @@ class CfnMatchingWorkflow(
2404
2410
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
2405
2411
  jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
2406
2412
 
2413
+ @builtins.property
2414
+ @jsii.member(jsii_name="incrementalRunConfig")
2415
+ def incremental_run_config(
2416
+ self,
2417
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMatchingWorkflow.IncrementalRunConfigProperty"]]:
2418
+ '''An object which defines an incremental run type and has only ``incrementalRunType`` as a field.'''
2419
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMatchingWorkflow.IncrementalRunConfigProperty"]], jsii.get(self, "incrementalRunConfig"))
2420
+
2421
+ @incremental_run_config.setter
2422
+ def incremental_run_config(
2423
+ self,
2424
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnMatchingWorkflow.IncrementalRunConfigProperty"]],
2425
+ ) -> None:
2426
+ if __debug__:
2427
+ type_hints = typing.get_type_hints(_typecheckingstub__fdee84f9bb03bc6201cd3324ee7101913cc3ab4894303fd18c5ddddd2246eac3)
2428
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
2429
+ jsii.set(self, "incrementalRunConfig", value) # pyright: ignore[reportArgumentType]
2430
+
2407
2431
  @builtins.property
2408
2432
  @jsii.member(jsii_name="tags")
2409
2433
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
@@ -2417,6 +2441,60 @@ class CfnMatchingWorkflow(
2417
2441
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
2418
2442
  jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
2419
2443
 
2444
+ @jsii.data_type(
2445
+ jsii_type="aws-cdk-lib.aws_entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty",
2446
+ jsii_struct_bases=[],
2447
+ name_mapping={"incremental_run_type": "incrementalRunType"},
2448
+ )
2449
+ class IncrementalRunConfigProperty:
2450
+ def __init__(self, *, incremental_run_type: builtins.str) -> None:
2451
+ '''An object which defines an incremental run type and has only ``incrementalRunType`` as a field.
2452
+
2453
+ :param incremental_run_type: The type of incremental run. It takes only one value: ``IMMEDIATE`` .
2454
+
2455
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-incrementalrunconfig.html
2456
+ :exampleMetadata: fixture=_generated
2457
+
2458
+ Example::
2459
+
2460
+ # The code below shows an example of how to instantiate this type.
2461
+ # The values are placeholders you should change.
2462
+ from aws_cdk import aws_entityresolution as entityresolution
2463
+
2464
+ incremental_run_config_property = entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty(
2465
+ incremental_run_type="incrementalRunType"
2466
+ )
2467
+ '''
2468
+ if __debug__:
2469
+ type_hints = typing.get_type_hints(_typecheckingstub__e88ed5ec9e5f2edc300dbdd925bb99b748b330b8e099b18f65b28da2cb124640)
2470
+ check_type(argname="argument incremental_run_type", value=incremental_run_type, expected_type=type_hints["incremental_run_type"])
2471
+ self._values: typing.Dict[builtins.str, typing.Any] = {
2472
+ "incremental_run_type": incremental_run_type,
2473
+ }
2474
+
2475
+ @builtins.property
2476
+ def incremental_run_type(self) -> builtins.str:
2477
+ '''The type of incremental run.
2478
+
2479
+ It takes only one value: ``IMMEDIATE`` .
2480
+
2481
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-entityresolution-matchingworkflow-incrementalrunconfig.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig-incrementalruntype
2482
+ '''
2483
+ result = self._values.get("incremental_run_type")
2484
+ assert result is not None, "Required property 'incremental_run_type' is missing"
2485
+ return typing.cast(builtins.str, result)
2486
+
2487
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
2488
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
2489
+
2490
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
2491
+ return not (rhs == self)
2492
+
2493
+ def __repr__(self) -> str:
2494
+ return "IncrementalRunConfigProperty(%s)" % ", ".join(
2495
+ k + "=" + repr(v) for k, v in self._values.items()
2496
+ )
2497
+
2420
2498
  @jsii.data_type(
2421
2499
  jsii_type="aws-cdk-lib.aws_entityresolution.CfnMatchingWorkflow.InputSourceProperty",
2422
2500
  jsii_struct_bases=[],
@@ -3180,6 +3258,7 @@ class CfnMatchingWorkflow(
3180
3258
  "role_arn": "roleArn",
3181
3259
  "workflow_name": "workflowName",
3182
3260
  "description": "description",
3261
+ "incremental_run_config": "incrementalRunConfig",
3183
3262
  "tags": "tags",
3184
3263
  },
3185
3264
  )
@@ -3193,6 +3272,7 @@ class CfnMatchingWorkflowProps:
3193
3272
  role_arn: builtins.str,
3194
3273
  workflow_name: builtins.str,
3195
3274
  description: typing.Optional[builtins.str] = None,
3275
+ incremental_run_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMatchingWorkflow.IncrementalRunConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
3196
3276
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
3197
3277
  ) -> None:
3198
3278
  '''Properties for defining a ``CfnMatchingWorkflow``.
@@ -3203,6 +3283,7 @@ class CfnMatchingWorkflowProps:
3203
3283
  :param role_arn: The Amazon Resource Name (ARN) of the IAM role. AWS Entity Resolution assumes this role to create resources on your behalf as part of workflow execution.
3204
3284
  :param workflow_name: The name of the workflow. There can't be multiple ``MatchingWorkflows`` with the same name.
3205
3285
  :param description: A description of the workflow.
3286
+ :param incremental_run_config: An object which defines an incremental run type and has only ``incrementalRunType`` as a field.
3206
3287
  :param tags: The tags used to organize, track, or control access for this resource.
3207
3288
 
3208
3289
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html
@@ -3264,6 +3345,9 @@ class CfnMatchingWorkflowProps:
3264
3345
 
3265
3346
  # the properties below are optional
3266
3347
  description="description",
3348
+ incremental_run_config=entityresolution.CfnMatchingWorkflow.IncrementalRunConfigProperty(
3349
+ incremental_run_type="incrementalRunType"
3350
+ ),
3267
3351
  tags=[CfnTag(
3268
3352
  key="key",
3269
3353
  value="value"
@@ -3278,6 +3362,7 @@ class CfnMatchingWorkflowProps:
3278
3362
  check_type(argname="argument role_arn", value=role_arn, expected_type=type_hints["role_arn"])
3279
3363
  check_type(argname="argument workflow_name", value=workflow_name, expected_type=type_hints["workflow_name"])
3280
3364
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
3365
+ check_type(argname="argument incremental_run_config", value=incremental_run_config, expected_type=type_hints["incremental_run_config"])
3281
3366
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
3282
3367
  self._values: typing.Dict[builtins.str, typing.Any] = {
3283
3368
  "input_source_config": input_source_config,
@@ -3288,6 +3373,8 @@ class CfnMatchingWorkflowProps:
3288
3373
  }
3289
3374
  if description is not None:
3290
3375
  self._values["description"] = description
3376
+ if incremental_run_config is not None:
3377
+ self._values["incremental_run_config"] = incremental_run_config
3291
3378
  if tags is not None:
3292
3379
  self._values["tags"] = tags
3293
3380
 
@@ -3360,6 +3447,17 @@ class CfnMatchingWorkflowProps:
3360
3447
  result = self._values.get("description")
3361
3448
  return typing.cast(typing.Optional[builtins.str], result)
3362
3449
 
3450
+ @builtins.property
3451
+ def incremental_run_config(
3452
+ self,
3453
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMatchingWorkflow.IncrementalRunConfigProperty]]:
3454
+ '''An object which defines an incremental run type and has only ``incrementalRunType`` as a field.
3455
+
3456
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-entityresolution-matchingworkflow.html#cfn-entityresolution-matchingworkflow-incrementalrunconfig
3457
+ '''
3458
+ result = self._values.get("incremental_run_config")
3459
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMatchingWorkflow.IncrementalRunConfigProperty]], result)
3460
+
3363
3461
  @builtins.property
3364
3462
  def tags(self) -> typing.Optional[typing.List[_CfnTag_f6864754]]:
3365
3463
  '''The tags used to organize, track, or control access for this resource.
@@ -4488,6 +4586,7 @@ def _typecheckingstub__8c9e9b620b89ac2aae774eb42384e0472b5a13eeb28983708b164b240
4488
4586
  role_arn: builtins.str,
4489
4587
  workflow_name: builtins.str,
4490
4588
  description: typing.Optional[builtins.str] = None,
4589
+ incremental_run_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMatchingWorkflow.IncrementalRunConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
4491
4590
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
4492
4591
  ) -> None:
4493
4592
  """Type checking stubs"""
@@ -4541,12 +4640,25 @@ def _typecheckingstub__146028c4441df7c65ea8aba2981fe23a6e2fda2af137f4c78d1c5c84d
4541
4640
  """Type checking stubs"""
4542
4641
  pass
4543
4642
 
4643
+ def _typecheckingstub__fdee84f9bb03bc6201cd3324ee7101913cc3ab4894303fd18c5ddddd2246eac3(
4644
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnMatchingWorkflow.IncrementalRunConfigProperty]],
4645
+ ) -> None:
4646
+ """Type checking stubs"""
4647
+ pass
4648
+
4544
4649
  def _typecheckingstub__a7a7896d7bea53a4e2ffc9445d9a42b8864f5ac9a6cf43c3b27fe3c77bd39a83(
4545
4650
  value: typing.Optional[typing.List[_CfnTag_f6864754]],
4546
4651
  ) -> None:
4547
4652
  """Type checking stubs"""
4548
4653
  pass
4549
4654
 
4655
+ def _typecheckingstub__e88ed5ec9e5f2edc300dbdd925bb99b748b330b8e099b18f65b28da2cb124640(
4656
+ *,
4657
+ incremental_run_type: builtins.str,
4658
+ ) -> None:
4659
+ """Type checking stubs"""
4660
+ pass
4661
+
4550
4662
  def _typecheckingstub__6a18bfef9ee8ade2fff3913e22cf37d98f5880893c2204caa684a7f3831327af(
4551
4663
  *,
4552
4664
  input_source_arn: builtins.str,
@@ -4624,6 +4736,7 @@ def _typecheckingstub__2be3b46399b509a45bb640cf4a70ab0714322917a6d3dc4c241cb16ab
4624
4736
  role_arn: builtins.str,
4625
4737
  workflow_name: builtins.str,
4626
4738
  description: typing.Optional[builtins.str] = None,
4739
+ incremental_run_config: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnMatchingWorkflow.IncrementalRunConfigProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
4627
4740
  tags: typing.Optional[typing.Sequence[typing.Union[_CfnTag_f6864754, typing.Dict[builtins.str, typing.Any]]]] = None,
4628
4741
  ) -> None:
4629
4742
  """Type checking stubs"""
@@ -10276,6 +10276,7 @@ class RuleProps(EventCommonOptions):
10276
10276
  "http_parameters": "httpParameters",
10277
10277
  "input": "input",
10278
10278
  "kinesis_parameters": "kinesisParameters",
10279
+ "redshift_data_parameters": "redshiftDataParameters",
10279
10280
  "retry_policy": "retryPolicy",
10280
10281
  "role": "role",
10281
10282
  "run_command_parameters": "runCommandParameters",
@@ -10295,6 +10296,7 @@ class RuleTargetConfig:
10295
10296
  http_parameters: typing.Optional[typing.Union[CfnRule.HttpParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
10296
10297
  input: typing.Optional["RuleTargetInput"] = None,
10297
10298
  kinesis_parameters: typing.Optional[typing.Union[CfnRule.KinesisParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
10299
+ redshift_data_parameters: typing.Optional[typing.Union[CfnRule.RedshiftDataParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
10298
10300
  retry_policy: typing.Optional[typing.Union[CfnRule.RetryPolicyProperty, typing.Dict[builtins.str, typing.Any]]] = None,
10299
10301
  role: typing.Optional[_IRole_235f5d8e] = None,
10300
10302
  run_command_parameters: typing.Optional[typing.Union[CfnRule.RunCommandParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
@@ -10311,6 +10313,7 @@ class RuleTargetConfig:
10311
10313
  :param http_parameters: Contains the HTTP parameters to use when the target is a API Gateway REST endpoint or EventBridge API destination. Default: - None
10312
10314
  :param input: What input to send to the event target. Default: the entire event
10313
10315
  :param kinesis_parameters: Settings that control shard assignment, when the target is a Kinesis stream. If you don't include this parameter, eventId is used as the partition key.
10316
+ :param redshift_data_parameters: Parameters used when the rule invokes Amazon Redshift Queries. Default: - no parameters set
10314
10317
  :param retry_policy: A RetryPolicy object that includes information about the retry policy settings. Default: EventBridge default retry policy
10315
10318
  :param role: Role to use to invoke this event target.
10316
10319
  :param run_command_parameters: Parameters used when the rule invokes Amazon EC2 Systems Manager Run Command.
@@ -10407,6 +10410,17 @@ class RuleTargetConfig:
10407
10410
  kinesis_parameters=events.CfnRule.KinesisParametersProperty(
10408
10411
  partition_key_path="partitionKeyPath"
10409
10412
  ),
10413
+ redshift_data_parameters=events.CfnRule.RedshiftDataParametersProperty(
10414
+ database="database",
10415
+
10416
+ # the properties below are optional
10417
+ db_user="dbUser",
10418
+ secret_manager_arn="secretManagerArn",
10419
+ sql="sql",
10420
+ sqls=["sqls"],
10421
+ statement_name="statementName",
10422
+ with_event=False
10423
+ ),
10410
10424
  retry_policy=events.CfnRule.RetryPolicyProperty(
10411
10425
  maximum_event_age_in_seconds=123,
10412
10426
  maximum_retry_attempts=123
@@ -10436,6 +10450,8 @@ class RuleTargetConfig:
10436
10450
  http_parameters = CfnRule.HttpParametersProperty(**http_parameters)
10437
10451
  if isinstance(kinesis_parameters, dict):
10438
10452
  kinesis_parameters = CfnRule.KinesisParametersProperty(**kinesis_parameters)
10453
+ if isinstance(redshift_data_parameters, dict):
10454
+ redshift_data_parameters = CfnRule.RedshiftDataParametersProperty(**redshift_data_parameters)
10439
10455
  if isinstance(retry_policy, dict):
10440
10456
  retry_policy = CfnRule.RetryPolicyProperty(**retry_policy)
10441
10457
  if isinstance(run_command_parameters, dict):
@@ -10452,6 +10468,7 @@ class RuleTargetConfig:
10452
10468
  check_type(argname="argument http_parameters", value=http_parameters, expected_type=type_hints["http_parameters"])
10453
10469
  check_type(argname="argument input", value=input, expected_type=type_hints["input"])
10454
10470
  check_type(argname="argument kinesis_parameters", value=kinesis_parameters, expected_type=type_hints["kinesis_parameters"])
10471
+ check_type(argname="argument redshift_data_parameters", value=redshift_data_parameters, expected_type=type_hints["redshift_data_parameters"])
10455
10472
  check_type(argname="argument retry_policy", value=retry_policy, expected_type=type_hints["retry_policy"])
10456
10473
  check_type(argname="argument role", value=role, expected_type=type_hints["role"])
10457
10474
  check_type(argname="argument run_command_parameters", value=run_command_parameters, expected_type=type_hints["run_command_parameters"])
@@ -10474,6 +10491,8 @@ class RuleTargetConfig:
10474
10491
  self._values["input"] = input
10475
10492
  if kinesis_parameters is not None:
10476
10493
  self._values["kinesis_parameters"] = kinesis_parameters
10494
+ if redshift_data_parameters is not None:
10495
+ self._values["redshift_data_parameters"] = redshift_data_parameters
10477
10496
  if retry_policy is not None:
10478
10497
  self._values["retry_policy"] = retry_policy
10479
10498
  if role is not None:
@@ -10553,6 +10572,17 @@ class RuleTargetConfig:
10553
10572
  result = self._values.get("kinesis_parameters")
10554
10573
  return typing.cast(typing.Optional[CfnRule.KinesisParametersProperty], result)
10555
10574
 
10575
+ @builtins.property
10576
+ def redshift_data_parameters(
10577
+ self,
10578
+ ) -> typing.Optional[CfnRule.RedshiftDataParametersProperty]:
10579
+ '''Parameters used when the rule invokes Amazon Redshift Queries.
10580
+
10581
+ :default: - no parameters set
10582
+ '''
10583
+ result = self._values.get("redshift_data_parameters")
10584
+ return typing.cast(typing.Optional[CfnRule.RedshiftDataParametersProperty], result)
10585
+
10556
10586
  @builtins.property
10557
10587
  def retry_policy(self) -> typing.Optional[CfnRule.RetryPolicyProperty]:
10558
10588
  '''A RetryPolicy object that includes information about the retry policy settings.
@@ -10862,27 +10892,22 @@ class Schedule(
10862
10892
 
10863
10893
  Example::
10864
10894
 
10865
- import aws_cdk.aws_ecs as ecs
10895
+ import aws_cdk.aws_redshiftserverless as redshiftserverless
10866
10896
 
10867
- # cluster: ecs.ICluster
10868
- # task_definition: ecs.TaskDefinition
10897
+ # workgroup: redshiftserverless.CfnWorkgroup
10869
10898
 
10870
10899
 
10871
10900
  rule = events.Rule(self, "Rule",
10872
10901
  schedule=events.Schedule.rate(cdk.Duration.hours(1))
10873
10902
  )
10874
10903
 
10875
- rule.add_target(
10876
- targets.EcsTask(
10877
- cluster=cluster,
10878
- task_definition=task_definition,
10879
- propagate_tags=ecs.PropagatedTagSource.TASK_DEFINITION,
10880
- tags=[targets.Tag(
10881
- key="my-tag",
10882
- value="my-tag-value"
10883
- )
10884
- ]
10885
- ))
10904
+ dlq = sqs.Queue(self, "DeadLetterQueue")
10905
+
10906
+ rule.add_target(targets.RedshiftQuery(workgroup.attr_workgroup_workgroup_arn,
10907
+ database="dev",
10908
+ dead_letter_queue=dlq,
10909
+ sql=["SELECT * FROM foo", "SELECT * FROM baz"]
10910
+ ))
10886
10911
  '''
10887
10912
 
10888
10913
  def __init__(self) -> None:
@@ -12891,6 +12916,7 @@ def _typecheckingstub__10b46a391417178d3d06a5360e56af2bf314e68a1662e39855324f124
12891
12916
  http_parameters: typing.Optional[typing.Union[CfnRule.HttpParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
12892
12917
  input: typing.Optional[RuleTargetInput] = None,
12893
12918
  kinesis_parameters: typing.Optional[typing.Union[CfnRule.KinesisParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
12919
+ redshift_data_parameters: typing.Optional[typing.Union[CfnRule.RedshiftDataParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,
12894
12920
  retry_policy: typing.Optional[typing.Union[CfnRule.RetryPolicyProperty, typing.Dict[builtins.str, typing.Any]]] = None,
12895
12921
  role: typing.Optional[_IRole_235f5d8e] = None,
12896
12922
  run_command_parameters: typing.Optional[typing.Union[CfnRule.RunCommandParametersProperty, typing.Dict[builtins.str, typing.Any]]] = None,