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

@@ -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(
@@ -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,
@@ -13302,6 +13312,7 @@ class CfnFlow(
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: Inline code config strucuture, contains code configs.
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,17 @@ 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
+ '''Inline code config strucuture, contains code configs.
13515
+
13516
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-inlinecode
13517
+ '''
13518
+ result = self._values.get("inline_code")
13519
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.InlineCodeFlowNodeConfigurationProperty"]], result)
13520
+
13492
13521
  @builtins.property
13493
13522
  def input(self) -> typing.Any:
13494
13523
  '''Contains configurations for an input flow node in your flow.
@@ -13832,6 +13861,10 @@ class CfnFlow(
13832
13861
  expression="expression"
13833
13862
  )]
13834
13863
  ),
13864
+ inline_code=bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
13865
+ code="code",
13866
+ language="language"
13867
+ ),
13835
13868
  input=input,
13836
13869
  iterator=iterator,
13837
13870
  knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -14129,6 +14162,74 @@ class CfnFlow(
14129
14162
  k + "=" + repr(v) for k, v in self._values.items()
14130
14163
  )
14131
14164
 
14165
+ @jsii.data_type(
14166
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty",
14167
+ jsii_struct_bases=[],
14168
+ name_mapping={"code": "code", "language": "language"},
14169
+ )
14170
+ class InlineCodeFlowNodeConfigurationProperty:
14171
+ def __init__(self, *, code: builtins.str, language: builtins.str) -> None:
14172
+ '''Inline code config strucuture, contains code configs.
14173
+
14174
+ :param code: The inline code entered by customers. max size is 5MB.
14175
+ :param language: Enum encodes the supported language type.
14176
+
14177
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-inlinecodeflownodeconfiguration.html
14178
+ :exampleMetadata: fixture=_generated
14179
+
14180
+ Example::
14181
+
14182
+ # The code below shows an example of how to instantiate this type.
14183
+ # The values are placeholders you should change.
14184
+ from aws_cdk import aws_bedrock as bedrock
14185
+
14186
+ inline_code_flow_node_configuration_property = bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
14187
+ code="code",
14188
+ language="language"
14189
+ )
14190
+ '''
14191
+ if __debug__:
14192
+ type_hints = typing.get_type_hints(_typecheckingstub__c79951af89e6cdc5aa2c9078976ad1291e6f2aafa2ae383e4a0b36da718d38dc)
14193
+ check_type(argname="argument code", value=code, expected_type=type_hints["code"])
14194
+ check_type(argname="argument language", value=language, expected_type=type_hints["language"])
14195
+ self._values: typing.Dict[builtins.str, typing.Any] = {
14196
+ "code": code,
14197
+ "language": language,
14198
+ }
14199
+
14200
+ @builtins.property
14201
+ def code(self) -> builtins.str:
14202
+ '''The inline code entered by customers.
14203
+
14204
+ max size is 5MB.
14205
+
14206
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-inlinecodeflownodeconfiguration.html#cfn-bedrock-flow-inlinecodeflownodeconfiguration-code
14207
+ '''
14208
+ result = self._values.get("code")
14209
+ assert result is not None, "Required property 'code' is missing"
14210
+ return typing.cast(builtins.str, result)
14211
+
14212
+ @builtins.property
14213
+ def language(self) -> builtins.str:
14214
+ '''Enum encodes the supported language type.
14215
+
14216
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-inlinecodeflownodeconfiguration.html#cfn-bedrock-flow-inlinecodeflownodeconfiguration-language
14217
+ '''
14218
+ result = self._values.get("language")
14219
+ assert result is not None, "Required property 'language' is missing"
14220
+ return typing.cast(builtins.str, result)
14221
+
14222
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
14223
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
14224
+
14225
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
14226
+ return not (rhs == self)
14227
+
14228
+ def __repr__(self) -> str:
14229
+ return "InlineCodeFlowNodeConfigurationProperty(%s)" % ", ".join(
14230
+ k + "=" + repr(v) for k, v in self._values.items()
14231
+ )
14232
+
14132
14233
  @jsii.data_type(
14133
14234
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty",
14134
14235
  jsii_struct_bases=[],
@@ -15583,6 +15684,12 @@ class CfnFlowAlias(
15583
15684
  )],
15584
15685
 
15585
15686
  # the properties below are optional
15687
+ concurrency_configuration=bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty(
15688
+ type="type",
15689
+
15690
+ # the properties below are optional
15691
+ max_concurrency=123
15692
+ ),
15586
15693
  description="description",
15587
15694
  tags={
15588
15695
  "tags_key": "tags"
@@ -15598,6 +15705,7 @@ class CfnFlowAlias(
15598
15705
  flow_arn: builtins.str,
15599
15706
  name: builtins.str,
15600
15707
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty", typing.Dict[builtins.str, typing.Any]]]]],
15708
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
15601
15709
  description: typing.Optional[builtins.str] = None,
15602
15710
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
15603
15711
  ) -> None:
@@ -15607,6 +15715,7 @@ class CfnFlowAlias(
15607
15715
  :param flow_arn: The Amazon Resource Name (ARN) of the alias.
15608
15716
  :param name: The name of the alias.
15609
15717
  :param routing_configuration: A list of configurations about the versions that the alias maps to. Currently, you can only specify one.
15718
+ :param concurrency_configuration:
15610
15719
  :param description: A description of the alias.
15611
15720
  :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
15721
  '''
@@ -15618,6 +15727,7 @@ class CfnFlowAlias(
15618
15727
  flow_arn=flow_arn,
15619
15728
  name=name,
15620
15729
  routing_configuration=routing_configuration,
15730
+ concurrency_configuration=concurrency_configuration,
15621
15731
  description=description,
15622
15732
  tags=tags,
15623
15733
  )
@@ -15754,6 +15864,23 @@ class CfnFlowAlias(
15754
15864
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
15755
15865
  jsii.set(self, "routingConfiguration", value) # pyright: ignore[reportArgumentType]
15756
15866
 
15867
+ @builtins.property
15868
+ @jsii.member(jsii_name="concurrencyConfiguration")
15869
+ def concurrency_configuration(
15870
+ self,
15871
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty"]]:
15872
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty"]], jsii.get(self, "concurrencyConfiguration"))
15873
+
15874
+ @concurrency_configuration.setter
15875
+ def concurrency_configuration(
15876
+ self,
15877
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty"]],
15878
+ ) -> None:
15879
+ if __debug__:
15880
+ type_hints = typing.get_type_hints(_typecheckingstub__1393cd9413cb4ef94a25c11eb3585c147e33097b8e29294d9317dbd1d69de9ec)
15881
+ check_type(argname="argument value", value=value, expected_type=type_hints["value"])
15882
+ jsii.set(self, "concurrencyConfiguration", value) # pyright: ignore[reportArgumentType]
15883
+
15757
15884
  @builtins.property
15758
15885
  @jsii.member(jsii_name="description")
15759
15886
  def description(self) -> typing.Optional[builtins.str]:
@@ -15786,6 +15913,77 @@ class CfnFlowAlias(
15786
15913
  check_type(argname="argument value", value=value, expected_type=type_hints["value"])
15787
15914
  jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
15788
15915
 
15916
+ @jsii.data_type(
15917
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty",
15918
+ jsii_struct_bases=[],
15919
+ name_mapping={"type": "type", "max_concurrency": "maxConcurrency"},
15920
+ )
15921
+ class FlowAliasConcurrencyConfigurationProperty:
15922
+ def __init__(
15923
+ self,
15924
+ *,
15925
+ type: builtins.str,
15926
+ max_concurrency: typing.Optional[jsii.Number] = None,
15927
+ ) -> None:
15928
+ '''
15929
+ :param type:
15930
+ :param max_concurrency: Number of nodes executed concurrently at a time.
15931
+
15932
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasconcurrencyconfiguration.html
15933
+ :exampleMetadata: fixture=_generated
15934
+
15935
+ Example::
15936
+
15937
+ # The code below shows an example of how to instantiate this type.
15938
+ # The values are placeholders you should change.
15939
+ from aws_cdk import aws_bedrock as bedrock
15940
+
15941
+ flow_alias_concurrency_configuration_property = bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty(
15942
+ type="type",
15943
+
15944
+ # the properties below are optional
15945
+ max_concurrency=123
15946
+ )
15947
+ '''
15948
+ if __debug__:
15949
+ type_hints = typing.get_type_hints(_typecheckingstub__072543ea393d94d65d2abab118549d637d93da4acfb3a4809b6955e92f927347)
15950
+ check_type(argname="argument type", value=type, expected_type=type_hints["type"])
15951
+ check_type(argname="argument max_concurrency", value=max_concurrency, expected_type=type_hints["max_concurrency"])
15952
+ self._values: typing.Dict[builtins.str, typing.Any] = {
15953
+ "type": type,
15954
+ }
15955
+ if max_concurrency is not None:
15956
+ self._values["max_concurrency"] = max_concurrency
15957
+
15958
+ @builtins.property
15959
+ def type(self) -> builtins.str:
15960
+ '''
15961
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasconcurrencyconfiguration.html#cfn-bedrock-flowalias-flowaliasconcurrencyconfiguration-type
15962
+ '''
15963
+ result = self._values.get("type")
15964
+ assert result is not None, "Required property 'type' is missing"
15965
+ return typing.cast(builtins.str, result)
15966
+
15967
+ @builtins.property
15968
+ def max_concurrency(self) -> typing.Optional[jsii.Number]:
15969
+ '''Number of nodes executed concurrently at a time.
15970
+
15971
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowalias-flowaliasconcurrencyconfiguration.html#cfn-bedrock-flowalias-flowaliasconcurrencyconfiguration-maxconcurrency
15972
+ '''
15973
+ result = self._values.get("max_concurrency")
15974
+ return typing.cast(typing.Optional[jsii.Number], result)
15975
+
15976
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
15977
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
15978
+
15979
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
15980
+ return not (rhs == self)
15981
+
15982
+ def __repr__(self) -> str:
15983
+ return "FlowAliasConcurrencyConfigurationProperty(%s)" % ", ".join(
15984
+ k + "=" + repr(v) for k, v in self._values.items()
15985
+ )
15986
+
15789
15987
  @jsii.data_type(
15790
15988
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty",
15791
15989
  jsii_struct_bases=[],
@@ -15849,6 +16047,7 @@ class CfnFlowAlias(
15849
16047
  "flow_arn": "flowArn",
15850
16048
  "name": "name",
15851
16049
  "routing_configuration": "routingConfiguration",
16050
+ "concurrency_configuration": "concurrencyConfiguration",
15852
16051
  "description": "description",
15853
16052
  "tags": "tags",
15854
16053
  },
@@ -15860,6 +16059,7 @@ class CfnFlowAliasProps:
15860
16059
  flow_arn: builtins.str,
15861
16060
  name: builtins.str,
15862
16061
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty, typing.Dict[builtins.str, typing.Any]]]]],
16062
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
15863
16063
  description: typing.Optional[builtins.str] = None,
15864
16064
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
15865
16065
  ) -> None:
@@ -15868,6 +16068,7 @@ class CfnFlowAliasProps:
15868
16068
  :param flow_arn: The Amazon Resource Name (ARN) of the alias.
15869
16069
  :param name: The name of the alias.
15870
16070
  :param routing_configuration: A list of configurations about the versions that the alias maps to. Currently, you can only specify one.
16071
+ :param concurrency_configuration:
15871
16072
  :param description: A description of the alias.
15872
16073
  :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
16074
 
@@ -15888,6 +16089,12 @@ class CfnFlowAliasProps:
15888
16089
  )],
15889
16090
 
15890
16091
  # the properties below are optional
16092
+ concurrency_configuration=bedrock.CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty(
16093
+ type="type",
16094
+
16095
+ # the properties below are optional
16096
+ max_concurrency=123
16097
+ ),
15891
16098
  description="description",
15892
16099
  tags={
15893
16100
  "tags_key": "tags"
@@ -15899,6 +16106,7 @@ class CfnFlowAliasProps:
15899
16106
  check_type(argname="argument flow_arn", value=flow_arn, expected_type=type_hints["flow_arn"])
15900
16107
  check_type(argname="argument name", value=name, expected_type=type_hints["name"])
15901
16108
  check_type(argname="argument routing_configuration", value=routing_configuration, expected_type=type_hints["routing_configuration"])
16109
+ check_type(argname="argument concurrency_configuration", value=concurrency_configuration, expected_type=type_hints["concurrency_configuration"])
15902
16110
  check_type(argname="argument description", value=description, expected_type=type_hints["description"])
15903
16111
  check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
15904
16112
  self._values: typing.Dict[builtins.str, typing.Any] = {
@@ -15906,6 +16114,8 @@ class CfnFlowAliasProps:
15906
16114
  "name": name,
15907
16115
  "routing_configuration": routing_configuration,
15908
16116
  }
16117
+ if concurrency_configuration is not None:
16118
+ self._values["concurrency_configuration"] = concurrency_configuration
15909
16119
  if description is not None:
15910
16120
  self._values["description"] = description
15911
16121
  if tags is not None:
@@ -15945,6 +16155,16 @@ class CfnFlowAliasProps:
15945
16155
  assert result is not None, "Required property 'routing_configuration' is missing"
15946
16156
  return typing.cast(typing.Union[_IResolvable_da3f097b, typing.List[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty]]], result)
15947
16157
 
16158
+ @builtins.property
16159
+ def concurrency_configuration(
16160
+ self,
16161
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty]]:
16162
+ '''
16163
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-flowalias.html#cfn-bedrock-flowalias-concurrencyconfiguration
16164
+ '''
16165
+ result = self._values.get("concurrency_configuration")
16166
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty]], result)
16167
+
15948
16168
  @builtins.property
15949
16169
  def description(self) -> typing.Optional[builtins.str]:
15950
16170
  '''A description of the alias.
@@ -16078,6 +16298,10 @@ class CfnFlowProps:
16078
16298
  expression="expression"
16079
16299
  )]
16080
16300
  ),
16301
+ inline_code=bedrock.CfnFlow.InlineCodeFlowNodeConfigurationProperty(
16302
+ code="code",
16303
+ language="language"
16304
+ ),
16081
16305
  input=input,
16082
16306
  iterator=iterator,
16083
16307
  knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -17123,6 +17347,10 @@ class CfnFlowVersion(
17123
17347
  expression="expression"
17124
17348
  )]
17125
17349
  ),
17350
+ inline_code=bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
17351
+ code="code",
17352
+ language="language"
17353
+ ),
17126
17354
  input=input,
17127
17355
  iterator=iterator,
17128
17356
  knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -17257,6 +17485,7 @@ class CfnFlowVersion(
17257
17485
  "agent": "agent",
17258
17486
  "collector": "collector",
17259
17487
  "condition": "condition",
17488
+ "inline_code": "inlineCode",
17260
17489
  "input": "input",
17261
17490
  "iterator": "iterator",
17262
17491
  "knowledge_base": "knowledgeBase",
@@ -17275,6 +17504,7 @@ class CfnFlowVersion(
17275
17504
  agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.AgentFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
17276
17505
  collector: typing.Any = None,
17277
17506
  condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.ConditionFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
17507
+ inline_code: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
17278
17508
  input: typing.Any = None,
17279
17509
  iterator: typing.Any = None,
17280
17510
  knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -17292,6 +17522,7 @@ class CfnFlowVersion(
17292
17522
  :param agent: Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
17293
17523
  :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
17524
  :param condition: Contains configurations for a condition node in your flow. Defines conditions that lead to different branches of the flow.
17525
+ :param inline_code: Inline code config strucuture, contains code configs.
17295
17526
  :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
17527
  :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
17528
  :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 +17560,10 @@ class CfnFlowVersion(
17329
17560
  expression="expression"
17330
17561
  )]
17331
17562
  ),
17563
+ inline_code=bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
17564
+ code="code",
17565
+ language="language"
17566
+ ),
17332
17567
  input=input,
17333
17568
  iterator=iterator,
17334
17569
  knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -17407,6 +17642,7 @@ class CfnFlowVersion(
17407
17642
  check_type(argname="argument agent", value=agent, expected_type=type_hints["agent"])
17408
17643
  check_type(argname="argument collector", value=collector, expected_type=type_hints["collector"])
17409
17644
  check_type(argname="argument condition", value=condition, expected_type=type_hints["condition"])
17645
+ check_type(argname="argument inline_code", value=inline_code, expected_type=type_hints["inline_code"])
17410
17646
  check_type(argname="argument input", value=input, expected_type=type_hints["input"])
17411
17647
  check_type(argname="argument iterator", value=iterator, expected_type=type_hints["iterator"])
17412
17648
  check_type(argname="argument knowledge_base", value=knowledge_base, expected_type=type_hints["knowledge_base"])
@@ -17423,6 +17659,8 @@ class CfnFlowVersion(
17423
17659
  self._values["collector"] = collector
17424
17660
  if condition is not None:
17425
17661
  self._values["condition"] = condition
17662
+ if inline_code is not None:
17663
+ self._values["inline_code"] = inline_code
17426
17664
  if input is not None:
17427
17665
  self._values["input"] = input
17428
17666
  if iterator is not None:
@@ -17479,6 +17717,17 @@ class CfnFlowVersion(
17479
17717
  result = self._values.get("condition")
17480
17718
  return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.ConditionFlowNodeConfigurationProperty"]], result)
17481
17719
 
17720
+ @builtins.property
17721
+ def inline_code(
17722
+ self,
17723
+ ) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty"]]:
17724
+ '''Inline code config strucuture, contains code configs.
17725
+
17726
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-inlinecode
17727
+ '''
17728
+ result = self._values.get("inline_code")
17729
+ return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty"]], result)
17730
+
17482
17731
  @builtins.property
17483
17732
  def input(self) -> typing.Any:
17484
17733
  '''Contains configurations for an input flow node in your flow.
@@ -17822,6 +18071,10 @@ class CfnFlowVersion(
17822
18071
  expression="expression"
17823
18072
  )]
17824
18073
  ),
18074
+ inline_code=bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
18075
+ code="code",
18076
+ language="language"
18077
+ ),
17825
18078
  input=input,
17826
18079
  iterator=iterator,
17827
18080
  knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
@@ -18062,6 +18315,74 @@ class CfnFlowVersion(
18062
18315
  k + "=" + repr(v) for k, v in self._values.items()
18063
18316
  )
18064
18317
 
18318
+ @jsii.data_type(
18319
+ jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty",
18320
+ jsii_struct_bases=[],
18321
+ name_mapping={"code": "code", "language": "language"},
18322
+ )
18323
+ class InlineCodeFlowNodeConfigurationProperty:
18324
+ def __init__(self, *, code: builtins.str, language: builtins.str) -> None:
18325
+ '''Inline code config strucuture, contains code configs.
18326
+
18327
+ :param code: The inline code entered by customers. max size is 5MB.
18328
+ :param language: Enum encodes the supported language type.
18329
+
18330
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-inlinecodeflownodeconfiguration.html
18331
+ :exampleMetadata: fixture=_generated
18332
+
18333
+ Example::
18334
+
18335
+ # The code below shows an example of how to instantiate this type.
18336
+ # The values are placeholders you should change.
18337
+ from aws_cdk import aws_bedrock as bedrock
18338
+
18339
+ inline_code_flow_node_configuration_property = bedrock.CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty(
18340
+ code="code",
18341
+ language="language"
18342
+ )
18343
+ '''
18344
+ if __debug__:
18345
+ type_hints = typing.get_type_hints(_typecheckingstub__665b1cf8ac6e3e764740251ba84f8a57d85b3c5dfee678f5893055f9ac09f98b)
18346
+ check_type(argname="argument code", value=code, expected_type=type_hints["code"])
18347
+ check_type(argname="argument language", value=language, expected_type=type_hints["language"])
18348
+ self._values: typing.Dict[builtins.str, typing.Any] = {
18349
+ "code": code,
18350
+ "language": language,
18351
+ }
18352
+
18353
+ @builtins.property
18354
+ def code(self) -> builtins.str:
18355
+ '''The inline code entered by customers.
18356
+
18357
+ max size is 5MB.
18358
+
18359
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-inlinecodeflownodeconfiguration.html#cfn-bedrock-flowversion-inlinecodeflownodeconfiguration-code
18360
+ '''
18361
+ result = self._values.get("code")
18362
+ assert result is not None, "Required property 'code' is missing"
18363
+ return typing.cast(builtins.str, result)
18364
+
18365
+ @builtins.property
18366
+ def language(self) -> builtins.str:
18367
+ '''Enum encodes the supported language type.
18368
+
18369
+ :see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-inlinecodeflownodeconfiguration.html#cfn-bedrock-flowversion-inlinecodeflownodeconfiguration-language
18370
+ '''
18371
+ result = self._values.get("language")
18372
+ assert result is not None, "Required property 'language' is missing"
18373
+ return typing.cast(builtins.str, result)
18374
+
18375
+ def __eq__(self, rhs: typing.Any) -> builtins.bool:
18376
+ return isinstance(rhs, self.__class__) and rhs._values == self._values
18377
+
18378
+ def __ne__(self, rhs: typing.Any) -> builtins.bool:
18379
+ return not (rhs == self)
18380
+
18381
+ def __repr__(self) -> str:
18382
+ return "InlineCodeFlowNodeConfigurationProperty(%s)" % ", ".join(
18383
+ k + "=" + repr(v) for k, v in self._values.items()
18384
+ )
18385
+
18065
18386
  @jsii.data_type(
18066
18387
  jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty",
18067
18388
  jsii_struct_bases=[],
@@ -31697,8 +32018,16 @@ class FoundationModelIdentifier(
31697
32018
 
31698
32019
  task = tasks.BedrockInvokeModel(self, "Prompt Model",
31699
32020
  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"))
32021
+ body=sfn.TaskInput.from_object({
32022
+ "input_text": "Generate a list of five first names.",
32023
+ "text_generation_config": {
32024
+ "max_token_count": 100,
32025
+ "temperature": 1
32026
+ }
32027
+ }),
32028
+ result_selector={
32029
+ "names": sfn.JsonPath.string_at("$.Body.results[0].outputText")
32030
+ }
31702
32031
  )
31703
32032
  '''
31704
32033
 
@@ -32141,6 +32470,18 @@ class FoundationModelIdentifier(
32141
32470
  '''
32142
32471
  return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_INSTANT_V1_2_100K"))
32143
32472
 
32473
+ @jsii.python.classproperty
32474
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_OPUS_4_20250514_V1_0")
32475
+ def ANTHROPIC_CLAUDE_OPUS_4_20250514_V1_0(cls) -> "FoundationModelIdentifier":
32476
+ '''Base model "anthropic.claude-opus-4-20250514-v1:0".'''
32477
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_OPUS_4_20250514_V1_0"))
32478
+
32479
+ @jsii.python.classproperty
32480
+ @jsii.member(jsii_name="ANTHROPIC_CLAUDE_SONNET_4_20250514_V1_0")
32481
+ def ANTHROPIC_CLAUDE_SONNET_4_20250514_V1_0(cls) -> "FoundationModelIdentifier":
32482
+ '''Base model "anthropic.claude-sonnet-4-20250514-v1:0".'''
32483
+ return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "ANTHROPIC_CLAUDE_SONNET_4_20250514_V1_0"))
32484
+
32144
32485
  @jsii.python.classproperty
32145
32486
  @jsii.member(jsii_name="ANTHROPIC_CLAUDE_V1")
32146
32487
  def ANTHROPIC_CLAUDE_V1(cls) -> "FoundationModelIdentifier":
@@ -32711,8 +33052,16 @@ class FoundationModel(
32711
33052
 
32712
33053
  task = tasks.BedrockInvokeModel(self, "Prompt Model",
32713
33054
  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"))
33055
+ body=sfn.TaskInput.from_object({
33056
+ "input_text": "Generate a list of five first names.",
33057
+ "text_generation_config": {
33058
+ "max_token_count": 100,
33059
+ "temperature": 1
33060
+ }
33061
+ }),
33062
+ result_selector={
33063
+ "names": sfn.JsonPath.string_at("$.Body.results[0].outputText")
33064
+ }
32716
33065
  )
32717
33066
  '''
32718
33067
 
@@ -34291,6 +34640,7 @@ def _typecheckingstub__425c904db23b9629fe6a830be94d214d112c1a6206b762478fd9e04b5
34291
34640
  agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.AgentFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34292
34641
  collector: typing.Any = None,
34293
34642
  condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.ConditionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34643
+ inline_code: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.InlineCodeFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34294
34644
  input: typing.Any = None,
34295
34645
  iterator: typing.Any = None,
34296
34646
  knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -34347,6 +34697,14 @@ def _typecheckingstub__7a58b1756431d0127fbde4a9b98f71b8bd861fde50f58d8b27f662148
34347
34697
  """Type checking stubs"""
34348
34698
  pass
34349
34699
 
34700
+ def _typecheckingstub__c79951af89e6cdc5aa2c9078976ad1291e6f2aafa2ae383e4a0b36da718d38dc(
34701
+ *,
34702
+ code: builtins.str,
34703
+ language: builtins.str,
34704
+ ) -> None:
34705
+ """Type checking stubs"""
34706
+ pass
34707
+
34350
34708
  def _typecheckingstub__004ed148a98b01e41f3efd077553224d0e5ce97fd3842fc0c6be6c28accdc6cc(
34351
34709
  *,
34352
34710
  knowledge_base_id: builtins.str,
@@ -34501,6 +34859,7 @@ def _typecheckingstub__8b7067d1caa5036e605a7c1234a4af2231017746b6c462a8b7014db38
34501
34859
  flow_arn: builtins.str,
34502
34860
  name: builtins.str,
34503
34861
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty, typing.Dict[builtins.str, typing.Any]]]]],
34862
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34504
34863
  description: typing.Optional[builtins.str] = None,
34505
34864
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
34506
34865
  ) -> None:
@@ -34537,6 +34896,12 @@ def _typecheckingstub__25332829430f5e80beb4046dfc1518084a8e57996d1c7754f19340851
34537
34896
  """Type checking stubs"""
34538
34897
  pass
34539
34898
 
34899
+ def _typecheckingstub__1393cd9413cb4ef94a25c11eb3585c147e33097b8e29294d9317dbd1d69de9ec(
34900
+ value: typing.Optional[typing.Union[_IResolvable_da3f097b, CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty]],
34901
+ ) -> None:
34902
+ """Type checking stubs"""
34903
+ pass
34904
+
34540
34905
  def _typecheckingstub__9669636b705c78a8d145d7a1d469c787fd21070582cc73345805622ba2f9ecc0(
34541
34906
  value: typing.Optional[builtins.str],
34542
34907
  ) -> None:
@@ -34549,6 +34914,14 @@ def _typecheckingstub__3c3491b1fef915af541cbc09b268c90d18ce0d02ff0917da6521a0093
34549
34914
  """Type checking stubs"""
34550
34915
  pass
34551
34916
 
34917
+ def _typecheckingstub__072543ea393d94d65d2abab118549d637d93da4acfb3a4809b6955e92f927347(
34918
+ *,
34919
+ type: builtins.str,
34920
+ max_concurrency: typing.Optional[jsii.Number] = None,
34921
+ ) -> None:
34922
+ """Type checking stubs"""
34923
+ pass
34924
+
34552
34925
  def _typecheckingstub__d9bd09906b076a991f07230b7803c936ed72845057c5587a1a1b04acf98e834b(
34553
34926
  *,
34554
34927
  flow_version: typing.Optional[builtins.str] = None,
@@ -34561,6 +34934,7 @@ def _typecheckingstub__dc38c23ad67fcb375dfaff403a32bd6897c077928003bee3845f452f8
34561
34934
  flow_arn: builtins.str,
34562
34935
  name: builtins.str,
34563
34936
  routing_configuration: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasRoutingConfigurationListItemProperty, typing.Dict[builtins.str, typing.Any]]]]],
34937
+ concurrency_configuration: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowAlias.FlowAliasConcurrencyConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34564
34938
  description: typing.Optional[builtins.str] = None,
34565
34939
  tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
34566
34940
  ) -> None:
@@ -34686,6 +35060,7 @@ def _typecheckingstub__f9cd0cd05b1dd568a6031e23179baa28ec1045e1a40b1eda1f4240278
34686
35060
  agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.AgentFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34687
35061
  collector: typing.Any = None,
34688
35062
  condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.ConditionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
35063
+ inline_code: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.InlineCodeFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
34689
35064
  input: typing.Any = None,
34690
35065
  iterator: typing.Any = None,
34691
35066
  knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
@@ -34735,6 +35110,14 @@ def _typecheckingstub__e730caca77d30abef7bb7cb2c01702883c895d80378652c3f9f4bd886
34735
35110
  """Type checking stubs"""
34736
35111
  pass
34737
35112
 
35113
+ def _typecheckingstub__665b1cf8ac6e3e764740251ba84f8a57d85b3c5dfee678f5893055f9ac09f98b(
35114
+ *,
35115
+ code: builtins.str,
35116
+ language: builtins.str,
35117
+ ) -> None:
35118
+ """Type checking stubs"""
35119
+ pass
35120
+
34738
35121
  def _typecheckingstub__17b9fe30408d688aaf08f87e21950af81c63d804d7021f8f66de0b47e6aa51be(
34739
35122
  *,
34740
35123
  knowledge_base_id: builtins.str,