aws-cdk-lib 2.143.1__py3-none-any.whl → 2.145.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 (43) hide show
  1. aws_cdk/__init__.py +1 -1
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.143.1.jsii.tgz → aws-cdk-lib@2.145.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_apigatewayv2_authorizers/__init__.py +27 -0
  5. aws_cdk/aws_apigatewayv2_integrations/__init__.py +28 -0
  6. aws_cdk/aws_appconfig/__init__.py +132 -1
  7. aws_cdk/aws_autoscaling/__init__.py +4 -4
  8. aws_cdk/aws_bedrock/__init__.py +48 -0
  9. aws_cdk/aws_chatbot/__init__.py +149 -2
  10. aws_cdk/aws_cloudfront/experimental/__init__.py +65 -9
  11. aws_cdk/aws_codebuild/__init__.py +801 -16
  12. aws_cdk/aws_config/__init__.py +1305 -45
  13. aws_cdk/aws_dynamodb/__init__.py +309 -3
  14. aws_cdk/aws_ec2/__init__.py +112 -31
  15. aws_cdk/aws_ecs_patterns/__init__.py +89 -7
  16. aws_cdk/aws_eks/__init__.py +185 -41
  17. aws_cdk/aws_fsx/__init__.py +4 -4
  18. aws_cdk/aws_glue/__init__.py +39 -0
  19. aws_cdk/aws_iam/__init__.py +3 -3
  20. aws_cdk/aws_lambda/__init__.py +605 -42
  21. aws_cdk/aws_lambda_nodejs/__init__.py +160 -13
  22. aws_cdk/aws_logs/__init__.py +114 -8
  23. aws_cdk/aws_logs_destinations/__init__.py +11 -9
  24. aws_cdk/aws_mediaconnect/__init__.py +2 -6
  25. aws_cdk/aws_medialive/__init__.py +20 -2
  26. aws_cdk/aws_mediapackagev2/__init__.py +476 -0
  27. aws_cdk/aws_rds/__init__.py +27 -19
  28. aws_cdk/aws_route53/__init__.py +3 -3
  29. aws_cdk/aws_s3/__init__.py +21 -0
  30. aws_cdk/aws_s3_deployment/__init__.py +3 -2
  31. aws_cdk/aws_securityhub/__init__.py +2415 -374
  32. aws_cdk/aws_securitylake/__init__.py +179 -314
  33. aws_cdk/aws_sqs/__init__.py +2 -2
  34. aws_cdk/aws_stepfunctions/__init__.py +53 -24
  35. aws_cdk/aws_stepfunctions_tasks/__init__.py +763 -16
  36. aws_cdk/pipelines/__init__.py +2 -0
  37. aws_cdk/triggers/__init__.py +65 -9
  38. {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/METADATA +1 -1
  39. {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/RECORD +43 -43
  40. {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/WHEEL +1 -1
  41. {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/LICENSE +0 -0
  42. {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/NOTICE +0 -0
  43. {aws_cdk_lib-2.143.1.dist-info → aws_cdk_lib-2.145.0.dist-info}/top_level.txt +0 -0
@@ -477,6 +477,16 @@ fail = sfn.Fail(self, "Fail",
477
477
  )
478
478
  ```
479
479
 
480
+ You can also use an intrinsic function that returns a string to specify CausePath and ErrorPath.
481
+ The available functions include States.Format, States.JsonToString, States.ArrayGetItem, States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID.
482
+
483
+ ```python
484
+ fail = sfn.Fail(self, "Fail",
485
+ error_path=sfn.JsonPath.format("error: {}.", sfn.JsonPath.string_at("$.someError")),
486
+ cause_path="States.Format('cause: {}.', $.someCause)"
487
+ )
488
+ ```
489
+
480
490
  ### Map
481
491
 
482
492
  A `Map` state can be used to run a set of steps for each element of an input array.
@@ -5043,10 +5053,10 @@ class FailProps:
5043
5053
  '''Properties for defining a Fail state.
5044
5054
 
5045
5055
  :param cause: A description for the cause of the failure. Default: - No description
5046
- :param cause_path: JsonPath expression to select part of the state to be the cause to this state. Default: - No cause path
5056
+ :param cause_path: JsonPath expression to select part of the state to be the cause to this state. You can also use an intrinsic function that returns a string to specify this property. The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. Default: - No cause path
5047
5057
  :param comment: An optional description for this state. Default: - No comment
5048
5058
  :param error: Error code used to represent this failure. Default: - No error code
5049
- :param error_path: JsonPath expression to select part of the state to be the error to this state. Default: - No error path
5059
+ :param error_path: JsonPath expression to select part of the state to be the error to this state. You can also use an intrinsic function that returns a string to specify this property. The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. Default: - No error path
5050
5060
  :param state_name: Optional name for this state. Default: - The construct ID will be used as state name
5051
5061
 
5052
5062
  :exampleMetadata: infused
@@ -5054,8 +5064,8 @@ class FailProps:
5054
5064
  Example::
5055
5065
 
5056
5066
  fail = sfn.Fail(self, "Fail",
5057
- error_path=sfn.JsonPath.string_at("$.someError"),
5058
- cause_path=sfn.JsonPath.string_at("$.someCause")
5067
+ error_path=sfn.JsonPath.format("error: {}.", sfn.JsonPath.string_at("$.someError")),
5068
+ cause_path="States.Format('cause: {}.', $.someCause)"
5059
5069
  )
5060
5070
  '''
5061
5071
  if __debug__:
@@ -5093,6 +5103,9 @@ class FailProps:
5093
5103
  def cause_path(self) -> typing.Optional[builtins.str]:
5094
5104
  '''JsonPath expression to select part of the state to be the cause to this state.
5095
5105
 
5106
+ You can also use an intrinsic function that returns a string to specify this property.
5107
+ The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID.
5108
+
5096
5109
  :default: - No cause path
5097
5110
  '''
5098
5111
  result = self._values.get("cause_path")
@@ -5120,6 +5133,9 @@ class FailProps:
5120
5133
  def error_path(self) -> typing.Optional[builtins.str]:
5121
5134
  '''JsonPath expression to select part of the state to be the error to this state.
5122
5135
 
5136
+ You can also use an intrinsic function that returns a string to specify this property.
5137
+ The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID.
5138
+
5123
5139
  :default: - No error path
5124
5140
  '''
5125
5141
  result = self._values.get("error_path")
@@ -6318,25 +6334,33 @@ class IntegrationPattern(enum.Enum):
6318
6334
 
6319
6335
  Example::
6320
6336
 
6321
- # Define a state machine with one Pass state
6322
- child = sfn.StateMachine(self, "ChildStateMachine",
6323
- definition=sfn.Chain.start(sfn.Pass(self, "PassState"))
6324
- )
6337
+ import aws_cdk.aws_codebuild as codebuild
6325
6338
 
6326
- # Include the state machine in a Task state with callback pattern
6327
- task = tasks.StepFunctionsStartExecution(self, "ChildTask",
6328
- state_machine=child,
6329
- integration_pattern=sfn.IntegrationPattern.WAIT_FOR_TASK_TOKEN,
6330
- input=sfn.TaskInput.from_object({
6331
- "token": sfn.JsonPath.task_token,
6332
- "foo": "bar"
6333
- }),
6334
- name="MyExecutionName"
6339
+
6340
+ project = codebuild.Project(self, "Project",
6341
+ project_name="MyTestProject",
6342
+ build_spec=codebuild.BuildSpec.from_object_to_yaml({
6343
+ "version": 0.2,
6344
+ "batch": {
6345
+ "build-list": [{
6346
+ "identifier": "id",
6347
+ "buildspec": "version: 0.2\nphases:\n build:\n commands:\n - echo \"Hello, from small!\""
6348
+ }
6349
+ ]
6350
+ }
6351
+ })
6335
6352
  )
6353
+ project.enable_batch_builds()
6336
6354
 
6337
- # Define a second state machine with the Task state above
6338
- sfn.StateMachine(self, "ParentStateMachine",
6339
- definition=task
6355
+ task = tasks.CodeBuildStartBuildBatch(self, "buildBatchTask",
6356
+ project=project,
6357
+ integration_pattern=sfn.IntegrationPattern.REQUEST_RESPONSE,
6358
+ environment_variables_override={
6359
+ "test": codebuild.BuildEnvironmentVariable(
6360
+ type=codebuild.BuildEnvironmentVariableType.PLAINTEXT,
6361
+ value="testValue"
6362
+ )
6363
+ }
6340
6364
  )
6341
6365
  '''
6342
6366
 
@@ -14559,8 +14583,8 @@ class Fail(
14559
14583
  Example::
14560
14584
 
14561
14585
  fail = sfn.Fail(self, "Fail",
14562
- error_path=sfn.JsonPath.string_at("$.someError"),
14563
- cause_path=sfn.JsonPath.string_at("$.someCause")
14586
+ error_path=sfn.JsonPath.format("error: {}.", sfn.JsonPath.string_at("$.someError")),
14587
+ cause_path="States.Format('cause: {}.', $.someCause)"
14564
14588
  )
14565
14589
  '''
14566
14590
 
@@ -14580,10 +14604,10 @@ class Fail(
14580
14604
  :param scope: -
14581
14605
  :param id: Descriptive identifier for this chainable.
14582
14606
  :param cause: A description for the cause of the failure. Default: - No description
14583
- :param cause_path: JsonPath expression to select part of the state to be the cause to this state. Default: - No cause path
14607
+ :param cause_path: JsonPath expression to select part of the state to be the cause to this state. You can also use an intrinsic function that returns a string to specify this property. The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. Default: - No cause path
14584
14608
  :param comment: An optional description for this state. Default: - No comment
14585
14609
  :param error: Error code used to represent this failure. Default: - No error code
14586
- :param error_path: JsonPath expression to select part of the state to be the error to this state. Default: - No error path
14610
+ :param error_path: JsonPath expression to select part of the state to be the error to this state. You can also use an intrinsic function that returns a string to specify this property. The allowed functions include States.Format, States.JsonToString, States.ArrayGetItem, States.Base64Encode, States.Base64Decode, States.Hash, and States.UUID. Default: - No error path
14587
14611
  :param state_name: Optional name for this state. Default: - The construct ID will be used as state name
14588
14612
  '''
14589
14613
  if __debug__:
@@ -14606,6 +14630,11 @@ class Fail(
14606
14630
  '''Return the Amazon States Language object for this state.'''
14607
14631
  return typing.cast(typing.Mapping[typing.Any, typing.Any], jsii.invoke(self, "toStateJson", []))
14608
14632
 
14633
+ @jsii.member(jsii_name="validateState")
14634
+ def _validate_state(self) -> typing.List[builtins.str]:
14635
+ '''Validate this state.'''
14636
+ return typing.cast(typing.List[builtins.str], jsii.invoke(self, "validateState", []))
14637
+
14609
14638
  @builtins.property
14610
14639
  @jsii.member(jsii_name="endStates")
14611
14640
  def end_states(self) -> typing.List[INextable]: