aws-cdk-lib 2.198.0__py3-none-any.whl → 2.200.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 (55) hide show
  1. aws_cdk/__init__.py +22 -24
  2. aws_cdk/_jsii/__init__.py +1 -1
  3. aws_cdk/_jsii/{aws-cdk-lib@2.198.0.jsii.tgz → aws-cdk-lib@2.200.0.jsii.tgz} +0 -0
  4. aws_cdk/aws_acmpca/__init__.py +1 -1
  5. aws_cdk/aws_apigateway/__init__.py +1 -1
  6. aws_cdk/aws_appconfig/__init__.py +296 -48
  7. aws_cdk/aws_applicationautoscaling/__init__.py +4 -4
  8. aws_cdk/aws_aps/__init__.py +365 -14
  9. aws_cdk/aws_autoscaling/__init__.py +4 -4
  10. aws_cdk/aws_bedrock/__init__.py +436 -28
  11. aws_cdk/aws_cloudformation/__init__.py +17 -23
  12. aws_cdk/aws_cloudfront_origins/__init__.py +1 -1
  13. aws_cdk/aws_cloudtrail/__init__.py +4 -4
  14. aws_cdk/aws_cloudwatch/__init__.py +50 -1
  15. aws_cdk/aws_codebuild/__init__.py +116 -0
  16. aws_cdk/aws_datazone/__init__.py +699 -9
  17. aws_cdk/aws_deadline/__init__.py +38 -10
  18. aws_cdk/aws_ec2/__init__.py +97 -28
  19. aws_cdk/aws_ecs_patterns/__init__.py +49 -3
  20. aws_cdk/aws_eks/__init__.py +40 -9
  21. aws_cdk/aws_elasticloadbalancingv2/__init__.py +7 -7
  22. aws_cdk/aws_emr/__init__.py +36 -2
  23. aws_cdk/aws_events_targets/__init__.py +78 -1
  24. aws_cdk/aws_fsx/__init__.py +122 -0
  25. aws_cdk/aws_glue/__init__.py +55 -26
  26. aws_cdk/aws_iam/__init__.py +376 -2
  27. aws_cdk/aws_iot/__init__.py +57 -5
  28. aws_cdk/aws_kinesisfirehose/__init__.py +5 -1
  29. aws_cdk/aws_lambda/__init__.py +65 -45
  30. aws_cdk/aws_lex/__init__.py +27 -13
  31. aws_cdk/aws_lightsail/__init__.py +452 -0
  32. aws_cdk/aws_medialive/__init__.py +699 -497
  33. aws_cdk/aws_msk/__init__.py +4 -4
  34. aws_cdk/aws_networkfirewall/__init__.py +9 -5
  35. aws_cdk/aws_nimblestudio/__init__.py +208 -400
  36. aws_cdk/aws_panorama/__init__.py +30 -3
  37. aws_cdk/aws_pcs/__init__.py +12 -5
  38. aws_cdk/aws_rds/__init__.py +28 -16
  39. aws_cdk/aws_s3/__init__.py +367 -6
  40. aws_cdk/aws_s3express/__init__.py +789 -0
  41. aws_cdk/aws_ses/__init__.py +549 -32
  42. aws_cdk/aws_sns_subscriptions/__init__.py +256 -1
  43. aws_cdk/aws_stepfunctions/__init__.py +55 -17
  44. aws_cdk/aws_stepfunctions_tasks/__init__.py +1502 -2
  45. aws_cdk/aws_synthetics/__init__.py +26 -16
  46. aws_cdk/aws_voiceid/__init__.py +13 -3
  47. aws_cdk/aws_vpclattice/__init__.py +219 -209
  48. aws_cdk/cloud_assembly_schema/__init__.py +137 -42
  49. aws_cdk/cx_api/__init__.py +7 -7
  50. {aws_cdk_lib-2.198.0.dist-info → aws_cdk_lib-2.200.0.dist-info}/METADATA +2 -2
  51. {aws_cdk_lib-2.198.0.dist-info → aws_cdk_lib-2.200.0.dist-info}/RECORD +55 -55
  52. {aws_cdk_lib-2.198.0.dist-info → aws_cdk_lib-2.200.0.dist-info}/LICENSE +0 -0
  53. {aws_cdk_lib-2.198.0.dist-info → aws_cdk_lib-2.200.0.dist-info}/NOTICE +0 -0
  54. {aws_cdk_lib-2.198.0.dist-info → aws_cdk_lib-2.200.0.dist-info}/WHEEL +0 -0
  55. {aws_cdk_lib-2.198.0.dist-info → aws_cdk_lib-2.200.0.dist-info}/top_level.txt +0 -0
@@ -12114,6 +12114,10 @@ class CfnFlow(
12114
12114
  expression="expression"
12115
12115
  )]
12116
12116
  ),
12117
+ inline_code=bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
12118
+ code="code",
12119
+ language="language"
12120
+ ),
12117
12121
  input=input,
12118
12122
  iterator=iterator,
12119
12123
  knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -12541,7 +12545,7 @@ class CfnFlow(
12541
12545
  def __init__(self, *, agent_alias_arn: builtins.str) -> None:
12542
12546
  '''Defines an agent node in your flow.
12543
12547
 
12544
- You specify the agent to invoke at this point in the flow. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
12548
+ You specify the agent to invoke at this point in the flow. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
12545
12549
 
12546
12550
  :param agent_alias_arn: The Amazon Resource Name (ARN) of the alias of the agent to invoke.
12547
12551
 
@@ -12599,7 +12603,7 @@ class CfnFlow(
12599
12603
  ) -> None:
12600
12604
  '''Defines a condition node in your flow.
12601
12605
 
12602
- You can specify conditions that determine which node comes next in the flow. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
12606
+ You can specify conditions that determine which node comes next in the flow. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
12603
12607
 
12604
12608
  :param conditions: An array of conditions. Each member contains the name of a condition and an expression that defines the condition.
12605
12609
 
@@ -13133,6 +13137,10 @@ class CfnFlow(
13133
13137
  expression="expression"
13134
13138
  )]
13135
13139
  ),
13140
+ inline_code=bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
13141
+ code="code",
13142
+ language="language"
13143
+ ),
13136
13144
  input=input,
13137
13145
  iterator=iterator,
13138
13146
  knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -13267,6 +13275,7 @@ class CfnFlow(
13267
13275
  "agent": "agent",
13268
13276
  "collector": "collector",
13269
13277
  "condition": "condition",
13278
+ "inline_code": "inlineCode",
13270
13279
  "input": "input",
13271
13280
  "iterator": "iterator",
13272
13281
  "knowledge_base": "knowledgeBase",
@@ -13285,6 +13294,7 @@ class CfnFlow(
13285
13294
  agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.AgentFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
13286
13295
  collector: typing.Any = None,
13287
13296
  condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.ConditionFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
13297
+ inline_code: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.InlineCodeFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
13288
13298
  input: typing.Any = None,
13289
13299
  iterator: typing.Any = None,
13290
13300
  knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -13297,11 +13307,12 @@ class CfnFlow(
13297
13307
  ) -> None:
13298
13308
  '''Contains configurations for a node in your flow.
13299
13309
 
13300
- For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
13310
+ For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
13301
13311
 
13302
13312
  :param agent: Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
13303
13313
  :param collector: Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
13304
13314
  :param condition: Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
13315
+ :param inline_code: Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
13305
13316
  :param input: Contains configurations for an input flow node in your flow. The first node in the flow. ``inputs`` can't be specified for this node.
13306
13317
  :param iterator: Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
13307
13318
  :param knowledge_base: Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
@@ -13339,6 +13350,10 @@ class CfnFlow(
13339
13350
  expression="expression"
13340
13351
  )]
13341
13352
  ),
13353
+ inline_code=bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
13354
+ code="code",
13355
+ language="language"
13356
+ ),
13342
13357
  input=input,
13343
13358
  iterator=iterator,
13344
13359
  knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -13417,6 +13432,7 @@ class CfnFlow(
13417
13432
  check_type(argname="argument agent", value=agent, expected_type=type_hints["agent"])
13418
13433
  check_type(argname="argument collector", value=collector, expected_type=type_hints["collector"])
13419
13434
  check_type(argname="argument condition", value=condition, expected_type=type_hints["condition"])
13435
+ check_type(argname="argument inline_code", value=inline_code, expected_type=type_hints["inline_code"])
13420
13436
  check_type(argname="argument input", value=input, expected_type=type_hints["input"])
13421
13437
  check_type(argname="argument iterator", value=iterator, expected_type=type_hints["iterator"])
13422
13438
  check_type(argname="argument knowledge_base", value=knowledge_base, expected_type=type_hints["knowledge_base"])
@@ -13433,6 +13449,8 @@ class CfnFlow(
13433
13449
  self._values["collector"] = collector
13434
13450
  if condition is not None:
13435
13451
  self._values["condition"] = condition
13452
+ if inline_code is not None:
13453
+ self._values["inline_code"] = inline_code
13436
13454
  if input is not None:
13437
13455
  self._values["input"] = input
13438
13456
  if iterator is not None:
@@ -13489,6 +13507,19 @@ class CfnFlow(
13489
13507
  result = self._values.get("condition")
13490
13508
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.ConditionFlowNodeConfigurationProperty"]], result)
13491
13509
 
13510
+ @builtins.property
13511
+ def inline_code(
13512
+ self,
13513
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.InlineCodeFlowNodeConfigurationProperty"]]:
13514
+ '''Contains configurations for an inline code node in your flow.
13515
+
13516
+ Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
13517
+
13518
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-inlinecode
13519
+ '''
13520
+ result = self._values.get("inline_code")
13521
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.InlineCodeFlowNodeConfigurationProperty"]], result)
13522
+
13492
13523
  @builtins.property
13493
13524
  def input(self) -> typing.Any:
13494
13525
  '''Contains configurations for an input flow node in your flow.
@@ -13626,11 +13657,11 @@ class CfnFlow(
13626
13657
  name: builtins.str,
13627
13658
  type: builtins.str,
13628
13659
  ) -> None:
13629
- '''Contains configurations for an input to a node.
13660
+ '''Contains configurations for an input in an Amazon Bedrock Flows node.
13630
13661
 
13631
13662
  :param expression: An expression that formats the input for the node. For an explanation of how to create expressions, see `Expressions in Prompt flows in Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html>`_ .
13632
- :param name: A name for the input that you can reference.
13633
- :param type: The data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown.
13663
+ :param name: Specifies a name for the input that you can reference.
13664
+ :param type: Specifies the data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown.
13634
13665
 
13635
13666
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html
13636
13667
  :exampleMetadata: fixture=_generated
@@ -13672,7 +13703,7 @@ class CfnFlow(
13672
13703
 
13673
13704
  @builtins.property
13674
13705
  def name(self) -> builtins.str:
13675
- '''A name for the input that you can reference.
13706
+ '''Specifies a name for the input that you can reference.
13676
13707
 
13677
13708
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeinput.html#cfn-bedrock-flow-flownodeinput-name
13678
13709
  '''
@@ -13682,7 +13713,7 @@ class CfnFlow(
13682
13713
 
13683
13714
  @builtins.property
13684
13715
  def type(self) -> builtins.str:
13685
- '''The data type of the input.
13716
+ '''Specifies the data type of the input.
13686
13717
 
13687
13718
  If the input doesn't match this type at runtime, a validation error will be thrown.
13688
13719
 
@@ -13832,6 +13863,10 @@ class CfnFlow(
13832
13863
  expression="expression"
13833
13864
  )]
13834
13865
  ),
13866
+ inline_code=bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
13867
+ code="code",
13868
+ language="language"
13869
+ ),
13835
13870
  input=input,
13836
13871
  iterator=iterator,
13837
13872
  knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -14129,6 +14164,80 @@ class CfnFlow(
14129
14164
  k + "=" + repr(v) for k, v in self._values.items()
14130
14165
  )
14131
14166
 
14167
+ @jsii.data_type(
14168
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty",
14169
+ jsii_struct_bases=[],
14170
+ name_mapping={"code": "code", "language": "language"},
14171
+ )
14172
+ class InlineCodeFlowNodeConfigurationProperty:
14173
+ def __init__(self, *, code: builtins.str, language: builtins.str) -> None:
14174
+ '''Contains configurations for an inline code node in your flow.
14175
+
14176
+ Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
14177
+
14178
+ :param code: The code that's executed in your inline code node. The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow. The code must be valid in the programming ``language`` that you specify.
14179
+ :param language: The programming language used by your inline code node. The code must be valid in the programming ``language`` that you specify. Currently, only Python 3 ( ``Python_3`` ) is supported.
14180
+
14181
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-inlinecodeflownodeconfiguration.html
14182
+ :exampleMetadata: fixture=_generated
14183
+
14184
+ Example::
14185
+
14186
+ # The code below shows an example of how to instantiate this type.
14187
+ # The values are placeholders you should change.
14188
+ from aws_cdk import aws_bedrock as bedrock
14189
+
14190
+ inline_code_flow_node_configuration_property = bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
14191
+ code="code",
14192
+ language="language"
14193
+ )
14194
+ '''
14195
+ if __debug__:
14196
+ type_hints = typing.get_type_hints(_typecheckingstub__c79951af89e6cdc5aa2c9078976ad1291e6f2aafa2ae383e4a0b36da718d38dc)
14197
+ check_type(argname="argument code", value=code, expected_type=type_hints["code"])
14198
+ check_type(argname="argument language", value=language, expected_type=type_hints["language"])
14199
+ self._values: typing.Dict[builtins.str, typing.Any] = {
14200
+ "code": code,
14201
+ "language": language,
14202
+ }
14203
+
14204
+ @builtins.property
14205
+ def code(self) -> builtins.str:
14206
+ '''The code that's executed in your inline code node.
14207
+
14208
+ The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow.
14209
+
14210
+ The code must be valid in the programming ``language`` that you specify.
14211
+
14212
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-inlinecodeflownodeconfiguration.html#cfn-bedrock-flow-inlinecodeflownodeconfiguration-code
14213
+ '''
14214
+ result = self._values.get("code")
14215
+ assert result is not None, "Required property 'code' is missing"
14216
+ return typing.cast(builtins.str, result)
14217
+
14218
+ @builtins.property
14219
+ def language(self) -> builtins.str:
14220
+ '''The programming language used by your inline code node.
14221
+
14222
+ The code must be valid in the programming ``language`` that you specify. Currently, only Python 3 ( ``Python_3`` ) is supported.
14223
+
14224
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-inlinecodeflownodeconfiguration.html#cfn-bedrock-flow-inlinecodeflownodeconfiguration-language
14225
+ '''
14226
+ result = self._values.get("language")
14227
+ assert result is not None, "Required property 'language' is missing"
14228
+ return typing.cast(builtins.str, result)
14229
+
14230
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
14231
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
14232
+
14233
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
14234
+ return not (rhs == self)
14235
+
14236
+ def __repr__(self) -> str:
14237
+ return "InlineCodeFlowNodeConfigurationProperty(%s)" % ", ".join(
14238
+ k + "=" + repr(v) for k, v in self._values.items()
14239
+ )
14240
+
14132
14241
  @jsii.data_type(
14133
14242
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty",
14134
14243
  jsii_struct_bases=[],
@@ -14148,7 +14257,7 @@ class CfnFlow(
14148
14257
  ) -> None:
14149
14258
  '''Contains configurations for a knowledge base node in a flow.
14150
14259
 
14151
- This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14260
+ This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14152
14261
 
14153
14262
  :param knowledge_base_id: The unique identifier of the knowledge base to query.
14154
14263
  :param guardrail_configuration: Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
@@ -14237,7 +14346,7 @@ class CfnFlow(
14237
14346
  def __init__(self, *, lambda_arn: builtins.str) -> None:
14238
14347
  '''Contains configurations for a Lambda function node in the flow.
14239
14348
 
14240
- You specify the Lambda function to invoke and the inputs into the function. The output is the response that is defined in the Lambda function. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14349
+ You specify the Lambda function to invoke and the inputs into the function. The output is the response that is defined in the Lambda function. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14241
14350
 
14242
14351
  :param lambda_arn: The Amazon Resource Name (ARN) of the Lambda function to invoke.
14243
14352
 
@@ -14296,7 +14405,7 @@ class CfnFlow(
14296
14405
  ) -> None:
14297
14406
  '''Contains configurations for a Lex node in the flow.
14298
14407
 
14299
- You specify a Amazon Lex bot to invoke. This node takes an utterance as the input and returns as the output the intent identified by the Amazon Lex bot. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14408
+ You specify a Amazon Lex bot to invoke. This node takes an utterance as the input and returns as the output the intent identified by the Amazon Lex bot. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14300
14409
 
14301
14410
  :param bot_alias_arn: The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
14302
14411
  :param locale_id: The Region to invoke the Amazon Lex bot in.
@@ -14372,7 +14481,7 @@ class CfnFlow(
14372
14481
  ) -> None:
14373
14482
  '''Contains configurations for a prompt node in the flow.
14374
14483
 
14375
- You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14484
+ You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
14376
14485
 
14377
14486
  :param source_configuration: Specifies whether the prompt is from Prompt management or defined inline.
14378
14487
  :param guardrail_configuration: Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.
@@ -15583,6 +15692,12 @@ class CfnFlowAlias(
15583
15692
  )],
15584
15693
 
15585
15694
  # the properties below are optional
15695
+ concurrency_configuration=bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty(
15696
+ type="type",
15697
+
15698
+ # the properties below are optional
15699
+ max_concurrency=123
15700
+ ),
15586
15701
  description="description",
15587
15702
  tags={
15588
15703
  "tags_key": "tags"
@@ -15598,6 +15713,7 @@ class CfnFlowAlias(
15598
15713
  flow_arn: builtins.str,
15599
15714
  name: builtins.str,
15600
15715
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty", typing.Dict[builtins.str, typing.Any]]]]],
15716
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
15601
15717
  description: typing.Optional[builtins.str] = None,
15602
15718
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
15603
15719
  ) -> None:
@@ -15607,6 +15723,7 @@ class CfnFlowAlias(
15607
15723
  :param flow_arn: The Amazon Resource Name (ARN) of the alias.
15608
15724
  :param name: The name of the alias.
15609
15725
  :param routing_configuration: A list of configurations about the versions that the alias maps to. Currently, you can only specify one.
15726
+ :param concurrency_configuration: The configuration that specifies how nodes in the flow are executed concurrently.
15610
15727
  :param description: A description of the alias.
15611
15728
  :param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
15612
15729
  '''
@@ -15618,6 +15735,7 @@ class CfnFlowAlias(
15618
15735
  flow_arn=flow_arn,
15619
15736
  name=name,
15620
15737
  routing_configuration=routing_configuration,
15738
+ concurrency_configuration=concurrency_configuration,
15621
15739
  description=description,
15622
15740
  tags=tags,
15623
15741
  )
@@ -15754,6 +15872,24 @@ class CfnFlowAlias(
15754
15872
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
15755
15873
  jsii.set(self, "routingConfiguration", value) # pyright: ignore[reportArgumentType]
15756
15874
 
15875
+ @builtins.property
15876
+ @jsii.member(jsii_name="concurrencyConfiguration")
15877
+ def concurrency_configuration(
15878
+ self,
15879
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty"]]:
15880
+ '''The configuration that specifies how nodes in the flow are executed concurrently.'''
15881
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty"]], jsii.get(self, "concurrencyConfiguration"))
15882
+
15883
+ @concurrency_configuration.setter
15884
+ def concurrency_configuration(
15885
+ self,
15886
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty"]],
15887
+ ) -> None:
15888
+ if __debug__:
15889
+ type_hints = typing.get_type_hints(_typecheckingstub__1393cd9413cb4ef94a25c11eb3585c147e33097b8e29294d9317dbd1d69de9ec)
15890
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
15891
+ jsii.set(self, "concurrencyConfiguration", value) # pyright: ignore[reportArgumentType]
15892
+
15757
15893
  @builtins.property
15758
15894
  @jsii.member(jsii_name="description")
15759
15895
  def description(self) -> typing.Optional[builtins.str]:
@@ -15786,6 +15922,84 @@ class CfnFlowAlias(
15786
15922
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
15787
15923
  jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
15788
15924
 
15925
+ @jsii.data_type(
15926
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty",
15927
+ jsii_struct_bases=[],
15928
+ name_mapping={"type": "type", "max_concurrency": "maxConcurrency"},
15929
+ )
15930
+ class FlowAliasConcurrencyConfigurationProperty:
15931
+ def __init__(
15932
+ self,
15933
+ *,
15934
+ type: builtins.str,
15935
+ max_concurrency: typing.Optional[jsii.Number] = None,
15936
+ ) -> None:
15937
+ '''Determines how multiple nodes in a flow can run in parallel.
15938
+
15939
+ Running nodes concurrently can improve your flow's performance.
15940
+
15941
+ :param type: The type of concurrency to use for parallel node execution. Specify one of the following options:. - ``Automatic`` - Amazon Bedrock determines which nodes can be executed in parallel based on the flow definition and its dependencies. - ``Manual`` - You specify which nodes can be executed in parallel.
15942
+ :param max_concurrency: The maximum number of nodes that can be executed concurrently in the flow.
15943
+
15944
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasconcurrencyconfiguration.html
15945
+ :exampleMetadata: fixture=_generated
15946
+
15947
+ Example::
15948
+
15949
+ # The code below shows an example of how to instantiate this type.
15950
+ # The values are placeholders you should change.
15951
+ from aws_cdk import aws_bedrock as bedrock
15952
+
15953
+ flow_alias_concurrency_configuration_property = bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty(
15954
+ type="type",
15955
+
15956
+ # the properties below are optional
15957
+ max_concurrency=123
15958
+ )
15959
+ '''
15960
+ if __debug__:
15961
+ type_hints = typing.get_type_hints(_typecheckingstub__072543ea393d94d65d2abab118549d637d93da4acfb3a4809b6955e92f927347)
15962
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
15963
+ check_type(argname="argument max_concurrency", value=max_concurrency, expected_type=type_hints["max_concurrency"])
15964
+ self._values: typing.Dict[builtins.str, typing.Any] = {
15965
+ "type": type,
15966
+ }
15967
+ if max_concurrency is not None:
15968
+ self._values["max_concurrency"] = max_concurrency
15969
+
15970
+ @builtins.property
15971
+ def type(self) -> builtins.str:
15972
+ '''The type of concurrency to use for parallel node execution. Specify one of the following options:.
15973
+
15974
+ - ``Automatic`` - Amazon Bedrock determines which nodes can be executed in parallel based on the flow definition and its dependencies.
15975
+ - ``Manual`` - You specify which nodes can be executed in parallel.
15976
+
15977
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasconcurrencyconfiguration.html#cfn-bedrock-flowalias-flowaliasconcurrencyconfiguration-type
15978
+ '''
15979
+ result = self._values.get("type")
15980
+ assert result is not None, "Required property 'type' is missing"
15981
+ return typing.cast(builtins.str, result)
15982
+
15983
+ @builtins.property
15984
+ def max_concurrency(self) -> typing.Optional[jsii.Number]:
15985
+ '''The maximum number of nodes that can be executed concurrently in the flow.
15986
+
15987
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasconcurrencyconfiguration.html#cfn-bedrock-flowalias-flowaliasconcurrencyconfiguration-maxconcurrency
15988
+ '''
15989
+ result = self._values.get("max_concurrency")
15990
+ return typing.cast(typing.Optional[jsii.Number], result)
15991
+
15992
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
15993
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
15994
+
15995
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
15996
+ return not (rhs == self)
15997
+
15998
+ def __repr__(self) -> str:
15999
+ return "FlowAliasConcurrencyConfigurationProperty(%s)" % ", ".join(
16000
+ k + "=" + repr(v) for k, v in self._values.items()
16001
+ )
16002
+
15789
16003
  @jsii.data_type(
15790
16004
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty",
15791
16005
  jsii_struct_bases=[],
@@ -15849,6 +16063,7 @@ class CfnFlowAlias(
15849
16063
  "flow_arn": "flowArn",
15850
16064
  "name": "name",
15851
16065
  "routing_configuration": "routingConfiguration",
16066
+ "concurrency_configuration": "concurrencyConfiguration",
15852
16067
  "description": "description",
15853
16068
  "tags": "tags",
15854
16069
  },
@@ -15860,6 +16075,7 @@ class CfnFlowAliasProps:
15860
16075
  flow_arn: builtins.str,
15861
16076
  name: builtins.str,
15862
16077
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty, typing.Dict[builtins.str, typing.Any]]]]],
16078
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
15863
16079
  description: typing.Optional[builtins.str] = None,
15864
16080
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
15865
16081
  ) -> None:
@@ -15868,6 +16084,7 @@ class CfnFlowAliasProps:
15868
16084
  :param flow_arn: The Amazon Resource Name (ARN) of the alias.
15869
16085
  :param name: The name of the alias.
15870
16086
  :param routing_configuration: A list of configurations about the versions that the alias maps to. Currently, you can only specify one.
16087
+ :param concurrency_configuration: The configuration that specifies how nodes in the flow are executed concurrently.
15871
16088
  :param description: A description of the alias.
15872
16089
  :param tags: Metadata that you can assign to a resource as key-value pairs. For more information, see the following resources:. - `Tag naming limits and requirements <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-conventions>`_ - `Tagging best practices <https://docs.aws.amazon.com/tag-editor/latest/userguide/tagging.html#tag-best-practices>`_
15873
16090
 
@@ -15888,6 +16105,12 @@ class CfnFlowAliasProps:
15888
16105
  )],
15889
16106
 
15890
16107
  # the properties below are optional
16108
+ concurrency_configuration=bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty(
16109
+ type="type",
16110
+
16111
+ # the properties below are optional
16112
+ max_concurrency=123
16113
+ ),
15891
16114
  description="description",
15892
16115
  tags={
15893
16116
  "tags_key": "tags"
@@ -15899,6 +16122,7 @@ class CfnFlowAliasProps:
15899
16122
  check_type(argname="argument flow_arn", value=flow_arn, expected_type=type_hints["flow_arn"])
15900
16123
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
15901
16124
  check_type(argname="argument routing_configuration", value=routing_configuration, expected_type=type_hints["routing_configuration"])
16125
+ check_type(argname="argument concurrency_configuration", value=concurrency_configuration, expected_type=type_hints["concurrency_configuration"])
15902
16126
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
15903
16127
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
15904
16128
  self._values: typing.Dict[builtins.str, typing.Any] = {
@@ -15906,6 +16130,8 @@ class CfnFlowAliasProps:
15906
16130
  "name": name,
15907
16131
  "routing_configuration": routing_configuration,
15908
16132
  }
16133
+ if concurrency_configuration is not None:
16134
+ self._values["concurrency_configuration"] = concurrency_configuration
15909
16135
  if description is not None:
15910
16136
  self._values["description"] = description
15911
16137
  if tags is not None:
@@ -15945,6 +16171,17 @@ class CfnFlowAliasProps:
15945
16171
  assert result is not None, "Required property 'routing_configuration' is missing"
15946
16172
  return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty]]], result)
15947
16173
 
16174
+ @builtins.property
16175
+ def concurrency_configuration(
16176
+ self,
16177
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty]]:
16178
+ '''The configuration that specifies how nodes in the flow are executed concurrently.
16179
+
16180
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-concurrencyconfiguration
16181
+ '''
16182
+ result = self._values.get("concurrency_configuration")
16183
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty]], result)
16184
+
15948
16185
  @builtins.property
15949
16186
  def description(self) -> typing.Optional[builtins.str]:
15950
16187
  '''A description of the alias.
@@ -16078,6 +16315,10 @@ class CfnFlowProps:
16078
16315
  expression="expression"
16079
16316
  )]
16080
16317
  ),
16318
+ inline_code=bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
16319
+ code="code",
16320
+ language="language"
16321
+ ),
16081
16322
  input=input,
16082
16323
  iterator=iterator,
16083
16324
  knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -16531,7 +16772,7 @@ class CfnFlowVersion(
16531
16772
  def __init__(self, *, agent_alias_arn: builtins.str) -> None:
16532
16773
  '''Defines an agent node in your flow.
16533
16774
 
16534
- You specify the agent to invoke at this point in the flow. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
16775
+ You specify the agent to invoke at this point in the flow. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
16535
16776
 
16536
16777
  :param agent_alias_arn: The Amazon Resource Name (ARN) of the alias of the agent to invoke.
16537
16778
 
@@ -16589,7 +16830,7 @@ class CfnFlowVersion(
16589
16830
  ) -> None:
16590
16831
  '''Defines a condition node in your flow.
16591
16832
 
16592
- You can specify conditions that determine which node comes next in the flow. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
16833
+ You can specify conditions that determine which node comes next in the flow. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
16593
16834
 
16594
16835
  :param conditions: An array of conditions. Each member contains the name of a condition and an expression that defines the condition.
16595
16836
 
@@ -17123,6 +17364,10 @@ class CfnFlowVersion(
17123
17364
  expression="expression"
17124
17365
  )]
17125
17366
  ),
17367
+ inline_code=bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
17368
+ code="code",
17369
+ language="language"
17370
+ ),
17126
17371
  input=input,
17127
17372
  iterator=iterator,
17128
17373
  knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -17257,6 +17502,7 @@ class CfnFlowVersion(
17257
17502
  "agent": "agent",
17258
17503
  "collector": "collector",
17259
17504
  "condition": "condition",
17505
+ "inline_code": "inlineCode",
17260
17506
  "input": "input",
17261
17507
  "iterator": "iterator",
17262
17508
  "knowledge_base": "knowledgeBase",
@@ -17275,6 +17521,7 @@ class CfnFlowVersion(
17275
17521
  agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.AgentFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
17276
17522
  collector: typing.Any = None,
17277
17523
  condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.ConditionFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
17524
+ inline_code: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
17278
17525
  input: typing.Any = None,
17279
17526
  iterator: typing.Any = None,
17280
17527
  knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -17287,11 +17534,12 @@ class CfnFlowVersion(
17287
17534
  ) -> None:
17288
17535
  '''Contains configurations for a node in your flow.
17289
17536
 
17290
- For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
17537
+ For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
17291
17538
 
17292
17539
  :param agent: Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
17293
17540
  :param collector: Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
17294
17541
  :param condition: Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
17542
+ :param inline_code: Contains configurations for an inline code node in your flow. Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
17295
17543
  :param input: Contains configurations for an input flow node in your flow. The first node in the flow. ``inputs`` can't be specified for this node.
17296
17544
  :param iterator: Contains configurations for an iterator node in your flow. Takes an input that is an array and iteratively sends each item of the array as an output to the following node. The size of the array is also returned in the output. The output flow node at the end of the flow iteration will return a response for each member of the array. To return only one response, you can include a collector node downstream from the iterator node.
17297
17545
  :param knowledge_base: Contains configurations for a knowledge base node in your flow. Queries a knowledge base and returns the retrieved results or generated response.
@@ -17329,6 +17577,10 @@ class CfnFlowVersion(
17329
17577
  expression="expression"
17330
17578
  )]
17331
17579
  ),
17580
+ inline_code=bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
17581
+ code="code",
17582
+ language="language"
17583
+ ),
17332
17584
  input=input,
17333
17585
  iterator=iterator,
17334
17586
  knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -17407,6 +17659,7 @@ class CfnFlowVersion(
17407
17659
  check_type(argname="argument agent", value=agent, expected_type=type_hints["agent"])
17408
17660
  check_type(argname="argument collector", value=collector, expected_type=type_hints["collector"])
17409
17661
  check_type(argname="argument condition", value=condition, expected_type=type_hints["condition"])
17662
+ check_type(argname="argument inline_code", value=inline_code, expected_type=type_hints["inline_code"])
17410
17663
  check_type(argname="argument input", value=input, expected_type=type_hints["input"])
17411
17664
  check_type(argname="argument iterator", value=iterator, expected_type=type_hints["iterator"])
17412
17665
  check_type(argname="argument knowledge_base", value=knowledge_base, expected_type=type_hints["knowledge_base"])
@@ -17423,6 +17676,8 @@ class CfnFlowVersion(
17423
17676
  self._values["collector"] = collector
17424
17677
  if condition is not None:
17425
17678
  self._values["condition"] = condition
17679
+ if inline_code is not None:
17680
+ self._values["inline_code"] = inline_code
17426
17681
  if input is not None:
17427
17682
  self._values["input"] = input
17428
17683
  if iterator is not None:
@@ -17479,6 +17734,19 @@ class CfnFlowVersion(
17479
17734
  result = self._values.get("condition")
17480
17735
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.ConditionFlowNodeConfigurationProperty"]], result)
17481
17736
 
17737
+ @builtins.property
17738
+ def inline_code(
17739
+ self,
17740
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty"]]:
17741
+ '''Contains configurations for an inline code node in your flow.
17742
+
17743
+ Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
17744
+
17745
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-inlinecode
17746
+ '''
17747
+ result = self._values.get("inline_code")
17748
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty"]], result)
17749
+
17482
17750
  @builtins.property
17483
17751
  def input(self) -> typing.Any:
17484
17752
  '''Contains configurations for an input flow node in your flow.
@@ -17616,11 +17884,11 @@ class CfnFlowVersion(
17616
17884
  name: builtins.str,
17617
17885
  type: builtins.str,
17618
17886
  ) -> None:
17619
- '''Contains configurations for an input to a node.
17887
+ '''Contains configurations for an input in an Amazon Bedrock Flows node.
17620
17888
 
17621
17889
  :param expression: An expression that formats the input for the node. For an explanation of how to create expressions, see `Expressions in Prompt flows in Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-expressions.html>`_ .
17622
- :param name: A name for the input that you can reference.
17623
- :param type: The data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown.
17890
+ :param name: Specifies a name for the input that you can reference.
17891
+ :param type: Specifies the data type of the input. If the input doesn't match this type at runtime, a validation error will be thrown.
17624
17892
 
17625
17893
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html
17626
17894
  :exampleMetadata: fixture=_generated
@@ -17662,7 +17930,7 @@ class CfnFlowVersion(
17662
17930
 
17663
17931
  @builtins.property
17664
17932
  def name(self) -> builtins.str:
17665
- '''A name for the input that you can reference.
17933
+ '''Specifies a name for the input that you can reference.
17666
17934
 
17667
17935
  :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeinput.html#cfn-bedrock-flowversion-flownodeinput-name
17668
17936
  '''
@@ -17672,7 +17940,7 @@ class CfnFlowVersion(
17672
17940
 
17673
17941
  @builtins.property
17674
17942
  def type(self) -> builtins.str:
17675
- '''The data type of the input.
17943
+ '''Specifies the data type of the input.
17676
17944
 
17677
17945
  If the input doesn't match this type at runtime, a validation error will be thrown.
17678
17946
 
@@ -17822,6 +18090,10 @@ class CfnFlowVersion(
17822
18090
  expression="expression"
17823
18091
  )]
17824
18092
  ),
18093
+ inline_code=bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
18094
+ code="code",
18095
+ language="language"
18096
+ ),
17825
18097
  input=input,
17826
18098
  iterator=iterator,
17827
18099
  knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -18062,6 +18334,80 @@ class CfnFlowVersion(
18062
18334
  k + "=" + repr(v) for k, v in self._values.items()
18063
18335
  )
18064
18336
 
18337
+ @jsii.data_type(
18338
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty",
18339
+ jsii_struct_bases=[],
18340
+ name_mapping={"code": "code", "language": "language"},
18341
+ )
18342
+ class InlineCodeFlowNodeConfigurationProperty:
18343
+ def __init__(self, *, code: builtins.str, language: builtins.str) -> None:
18344
+ '''Contains configurations for an inline code node in your flow.
18345
+
18346
+ Inline code nodes let you write and execute code directly within your flow, enabling data transformations, custom logic, and integrations without needing an external Lambda function.
18347
+
18348
+ :param code: The code that's executed in your inline code node. The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow. The code must be valid in the programming ``language`` that you specify.
18349
+ :param language: The programming language used by your inline code node. The code must be valid in the programming ``language`` that you specify. Currently, only Python 3 ( ``Python_3`` ) is supported.
18350
+
18351
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-inlinecodeflownodeconfiguration.html
18352
+ :exampleMetadata: fixture=_generated
18353
+
18354
+ Example::
18355
+
18356
+ # The code below shows an example of how to instantiate this type.
18357
+ # The values are placeholders you should change.
18358
+ from aws_cdk import aws_bedrock as bedrock
18359
+
18360
+ inline_code_flow_node_configuration_property = bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
18361
+ code="code",
18362
+ language="language"
18363
+ )
18364
+ '''
18365
+ if __debug__:
18366
+ type_hints = typing.get_type_hints(_typecheckingstub__665b1cf8ac6e3e764740251ba84f8a57d85b3c5dfee678f5893055f9ac09f98b)
18367
+ check_type(argname="argument code", value=code, expected_type=type_hints["code"])
18368
+ check_type(argname="argument language", value=language, expected_type=type_hints["language"])
18369
+ self._values: typing.Dict[builtins.str, typing.Any] = {
18370
+ "code": code,
18371
+ "language": language,
18372
+ }
18373
+
18374
+ @builtins.property
18375
+ def code(self) -> builtins.str:
18376
+ '''The code that's executed in your inline code node.
18377
+
18378
+ The code can access input data from previous nodes in the flow, perform operations on that data, and produce output that can be used by other nodes in your flow.
18379
+
18380
+ The code must be valid in the programming ``language`` that you specify.
18381
+
18382
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-inlinecodeflownodeconfiguration.html#cfn-bedrock-flowversion-inlinecodeflownodeconfiguration-code
18383
+ '''
18384
+ result = self._values.get("code")
18385
+ assert result is not None, "Required property 'code' is missing"
18386
+ return typing.cast(builtins.str, result)
18387
+
18388
+ @builtins.property
18389
+ def language(self) -> builtins.str:
18390
+ '''The programming language used by your inline code node.
18391
+
18392
+ The code must be valid in the programming ``language`` that you specify. Currently, only Python 3 ( ``Python_3`` ) is supported.
18393
+
18394
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-inlinecodeflownodeconfiguration.html#cfn-bedrock-flowversion-inlinecodeflownodeconfiguration-language
18395
+ '''
18396
+ result = self._values.get("language")
18397
+ assert result is not None, "Required property 'language' is missing"
18398
+ return typing.cast(builtins.str, result)
18399
+
18400
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
18401
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
18402
+
18403
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
18404
+ return not (rhs == self)
18405
+
18406
+ def __repr__(self) -> str:
18407
+ return "InlineCodeFlowNodeConfigurationProperty(%s)" % ", ".join(
18408
+ k + "=" + repr(v) for k, v in self._values.items()
18409
+ )
18410
+
18065
18411
  @jsii.data_type(
18066
18412
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty",
18067
18413
  jsii_struct_bases=[],
@@ -18081,7 +18427,7 @@ class CfnFlowVersion(
18081
18427
  ) -> None:
18082
18428
  '''Contains configurations for a knowledge base node in a flow.
18083
18429
 
18084
- This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18430
+ This node takes a query as the input and returns, as the output, the retrieved responses directly (as an array) or a response generated based on the retrieved responses. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18085
18431
 
18086
18432
  :param knowledge_base_id: The unique identifier of the knowledge base to query.
18087
18433
  :param guardrail_configuration: Contains configurations for a guardrail to apply during query and response generation for the knowledge base in this configuration.
@@ -18170,7 +18516,7 @@ class CfnFlowVersion(
18170
18516
  def __init__(self, *, lambda_arn: builtins.str) -> None:
18171
18517
  '''Contains configurations for a Lambda function node in the flow.
18172
18518
 
18173
- You specify the Lambda function to invoke and the inputs into the function. The output is the response that is defined in the Lambda function. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18519
+ You specify the Lambda function to invoke and the inputs into the function. The output is the response that is defined in the Lambda function. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18174
18520
 
18175
18521
  :param lambda_arn: The Amazon Resource Name (ARN) of the Lambda function to invoke.
18176
18522
 
@@ -18229,7 +18575,7 @@ class CfnFlowVersion(
18229
18575
  ) -> None:
18230
18576
  '''Contains configurations for a Lex node in the flow.
18231
18577
 
18232
- You specify a Amazon Lex bot to invoke. This node takes an utterance as the input and returns as the output the intent identified by the Amazon Lex bot. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18578
+ You specify a Amazon Lex bot to invoke. This node takes an utterance as the input and returns as the output the intent identified by the Amazon Lex bot. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18233
18579
 
18234
18580
  :param bot_alias_arn: The Amazon Resource Name (ARN) of the Amazon Lex bot alias to invoke.
18235
18581
  :param locale_id: The Region to invoke the Amazon Lex bot in.
@@ -18305,7 +18651,7 @@ class CfnFlowVersion(
18305
18651
  ) -> None:
18306
18652
  '''Contains configurations for a prompt node in the flow.
18307
18653
 
18308
- You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see `Node types in Amazon Bedrock works <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18654
+ You can use a prompt from Prompt management or you can define one in this node. If the prompt contains variables, the inputs into this node will fill in the variables. The output from this node is the response generated by the model. For more information, see `Node types in a flow <https://docs.aws.amazon.com/bedrock/latest/userguide/flows-nodes.html>`_ in the Amazon Bedrock User Guide.
18309
18655
 
18310
18656
  :param source_configuration: Specifies whether the prompt is from Prompt management or defined inline.
18311
18657
  :param guardrail_configuration: Contains configurations for a guardrail to apply to the prompt in this node and the response generated from it.
@@ -31697,8 +32043,16 @@ class FoundationModelIdentifier(
31697
32043
 
31698
32044
  task = tasks.BedrockInvokeModel(self, "Prompt Model",
31699
32045
  model=model,
31700
- input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
31701
- output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
32046
+ body=sfn.TaskInput.from_object({
32047
+ "input_text": "Generate a list of five first names.",
32048
+ "text_generation_config": {
32049
+ "max_token_count": 100,
32050
+ "temperature": 1
32051
+ }
32052
+ }),
32053
+ result_selector={
32054
+ "names": sfn.JsonPath.string_at("$.Body.results[0].outputText")
32055
+ }
31702
32056
  )
31703
32057
  '''
31704
32058
 
@@ -32141,6 +32495,18 @@ class FoundationModelIdentifier(
32141
32495
  '''
32142
32496
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_INSTANT_V1_2_100K"))
32143
32497
 
32498
+ @jsii.python.classproperty
32499
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_OPUS_4_20250514_V1_0")
32500
+ def ANTHROPIC_CLAUDE_OPUS_4_20250514_V1_0(cls) -> "FoundationModelIdentifier":
32501
+ '''Base model "anthropic.claude-opus-4-20250514-v1:0".'''
32502
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_OPUS_4_20250514_V1_0"))
32503
+
32504
+ @jsii.python.classproperty
32505
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_SONNET_4_20250514_V1_0")
32506
+ def ANTHROPIC_CLAUDE_SONNET_4_20250514_V1_0(cls) -> "FoundationModelIdentifier":
32507
+ '''Base model "anthropic.claude-sonnet-4-20250514-v1:0".'''
32508
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_SONNET_4_20250514_V1_0"))
32509
+
32144
32510
  @jsii.python.classproperty
32145
32511
  @jsii.member(jsii_name="ANTHROPIC_CLAUDE_V1")
32146
32512
  def ANTHROPIC_CLAUDE_V1(cls) -> "FoundationModelIdentifier":
@@ -32711,8 +33077,16 @@ class FoundationModel(
32711
33077
 
32712
33078
  task = tasks.BedrockInvokeModel(self, "Prompt Model",
32713
33079
  model=model,
32714
- input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
32715
- output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
33080
+ body=sfn.TaskInput.from_object({
33081
+ "input_text": "Generate a list of five first names.",
33082
+ "text_generation_config": {
33083
+ "max_token_count": 100,
33084
+ "temperature": 1
33085
+ }
33086
+ }),
33087
+ result_selector={
33088
+ "names": sfn.JsonPath.string_at("$.Body.results[0].outputText")
33089
+ }
32716
33090
  )
32717
33091
  '''
32718
33092
 
@@ -34291,6 +34665,7 @@ def _typecheckingstub__425c904db23b9629fe6a830be94d214d112c1a6206b762478fd9e04b5
34291
34665
  agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.AgentFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34292
34666
  collector: typing.Any = None,
34293
34667
  condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.ConditionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34668
+ inline_code: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.InlineCodeFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34294
34669
  input: typing.Any = None,
34295
34670
  iterator: typing.Any = None,
34296
34671
  knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -34347,6 +34722,14 @@ def _typecheckingstub__7a58b1756431d0127fbde4a9b98f71b8bd861fde50f58d8b27f662148
34347
34722
  """Type checking stubs"""
34348
34723
  pass
34349
34724
 
34725
+ def _typecheckingstub__c79951af89e6cdc5aa2c9078976ad1291e6f2aafa2ae383e4a0b36da718d38dc(
34726
+ *,
34727
+ code: builtins.str,
34728
+ language: builtins.str,
34729
+ ) -> None:
34730
+ """Type checking stubs"""
34731
+ pass
34732
+
34350
34733
  def _typecheckingstub__004ed148a98b01e41f3efd077553224d0e5ce97fd3842fc0c6be6c28accdc6cc(
34351
34734
  *,
34352
34735
  knowledge_base_id: builtins.str,
@@ -34501,6 +34884,7 @@ def _typecheckingstub__8b7067d1caa5036e605a7c1234a4af2231017746b6c462a8b7014db38
34501
34884
  flow_arn: builtins.str,
34502
34885
  name: builtins.str,
34503
34886
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty, typing.Dict[builtins.str, typing.Any]]]]],
34887
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34504
34888
  description: typing.Optional[builtins.str] = None,
34505
34889
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
34506
34890
  ) -> None:
@@ -34537,6 +34921,12 @@ def _typecheckingstub__25332829430f5e80beb4046dfc1518084a8e57996d1c7754f19340851
34537
34921
  """Type checking stubs"""
34538
34922
  pass
34539
34923
 
34924
+ def _typecheckingstub__1393cd9413cb4ef94a25c11eb3585c147e33097b8e29294d9317dbd1d69de9ec(
34925
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty]],
34926
+ ) -> None:
34927
+ """Type checking stubs"""
34928
+ pass
34929
+
34540
34930
  def _typecheckingstub__9669636b705c78a8d145d7a1d469c787fd21070582cc73345805622ba2f9ecc0(
34541
34931
  value: typing.Optional[builtins.str],
34542
34932
  ) -> None:
@@ -34549,6 +34939,14 @@ def _typecheckingstub__3c3491b1fef915af541cbc09b268c90d18ce0d02ff0917da6521a0093
34549
34939
  """Type checking stubs"""
34550
34940
  pass
34551
34941
 
34942
+ def _typecheckingstub__072543ea393d94d65d2abab118549d637d93da4acfb3a4809b6955e92f927347(
34943
+ *,
34944
+ type: builtins.str,
34945
+ max_concurrency: typing.Optional[jsii.Number] = None,
34946
+ ) -> None:
34947
+ """Type checking stubs"""
34948
+ pass
34949
+
34552
34950
  def _typecheckingstub__d9bd09906b076a991f07230b7803c936ed72845057c5587a1a1b04acf98e834b(
34553
34951
  *,
34554
34952
  flow_version: typing.Optional[builtins.str] = None,
@@ -34561,6 +34959,7 @@ def _typecheckingstub__dc38c23ad67fcb375dfaff403a32bd6897c077928003bee3845f452f8
34561
34959
  flow_arn: builtins.str,
34562
34960
  name: builtins.str,
34563
34961
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty, typing.Dict[builtins.str, typing.Any]]]]],
34962
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34564
34963
  description: typing.Optional[builtins.str] = None,
34565
34964
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
34566
34965
  ) -> None:
@@ -34686,6 +35085,7 @@ def _typecheckingstub__f9cd0cd05b1dd568a6031e23179baa28ec1045e1a40b1eda1f4240278
34686
35085
  agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.AgentFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34687
35086
  collector: typing.Any = None,
34688
35087
  condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.ConditionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
35088
+ inline_code: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34689
35089
  input: typing.Any = None,
34690
35090
  iterator: typing.Any = None,
34691
35091
  knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -34735,6 +35135,14 @@ def _typecheckingstub__e730caca77d30abef7bb7cb2c01702883c895d80378652c3f9f4bd886
34735
35135
  """Type checking stubs"""
34736
35136
  pass
34737
35137
 
35138
+ def _typecheckingstub__665b1cf8ac6e3e764740251ba84f8a57d85b3c5dfee678f5893055f9ac09f98b(
35139
+ *,
35140
+ code: builtins.str,
35141
+ language: builtins.str,
35142
+ ) -> None:
35143
+ """Type checking stubs"""
35144
+ pass
35145
+
34738
35146
  def _typecheckingstub__17b9fe30408d688aaf08f87e21950af81c63d804d7021f8f66de0b47e6aa51be(
34739
35147
  *,
34740
35148
  knowledge_base_id: builtins.str,