aws-cdk-lib 2.155.0__py3-none-any.whl → 2.157.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of aws-cdk-lib might be problematic. Click here for more details.
- aws_cdk/__init__.py +28 -24
- aws_cdk/_jsii/__init__.py +1 -1
- aws_cdk/_jsii/{aws-cdk-lib@2.155.0.jsii.tgz → aws-cdk-lib@2.157.0.jsii.tgz} +0 -0
- aws_cdk/aws_acmpca/__init__.py +10 -75
- aws_cdk/aws_amplify/__init__.py +106 -0
- aws_cdk/aws_apigatewayv2/__init__.py +81 -13
- aws_cdk/aws_appintegrations/__init__.py +14 -14
- aws_cdk/aws_applicationsignals/__init__.py +750 -1
- aws_cdk/aws_appsync/__init__.py +50 -18
- aws_cdk/aws_autoscaling/__init__.py +6 -6
- aws_cdk/aws_backup/__init__.py +39 -0
- aws_cdk/aws_batch/__init__.py +41 -0
- aws_cdk/aws_bedrock/__init__.py +1528 -91
- aws_cdk/aws_chatbot/__init__.py +6 -6
- aws_cdk/aws_cloudformation/__init__.py +22 -22
- aws_cdk/aws_cloudfront/__init__.py +650 -57
- aws_cdk/aws_cloudfront/experimental/__init__.py +30 -3
- aws_cdk/aws_cloudfront_origins/__init__.py +2034 -91
- aws_cdk/aws_codebuild/__init__.py +1 -1
- aws_cdk/aws_datasync/__init__.py +40 -29
- aws_cdk/aws_docdb/__init__.py +78 -6
- aws_cdk/aws_ec2/__init__.py +397 -75
- aws_cdk/aws_ecs/__init__.py +271 -101
- aws_cdk/aws_ecs_patterns/__init__.py +129 -11
- aws_cdk/aws_eks/__init__.py +40 -4
- aws_cdk/aws_elasticloadbalancingv2/__init__.py +26 -50
- aws_cdk/aws_entityresolution/__init__.py +117 -4
- aws_cdk/aws_events/__init__.py +40 -14
- aws_cdk/aws_events_targets/__init__.py +357 -0
- aws_cdk/aws_glue/__init__.py +0 -8
- aws_cdk/aws_groundstation/__init__.py +27 -16
- aws_cdk/aws_guardduty/__init__.py +26 -14
- aws_cdk/aws_iam/__init__.py +7 -8
- aws_cdk/aws_iotfleetwise/__init__.py +108 -0
- aws_cdk/aws_kms/__init__.py +53 -10
- aws_cdk/aws_lambda/__init__.py +147 -17
- aws_cdk/aws_lambda_nodejs/__init__.py +30 -3
- aws_cdk/aws_macie/__init__.py +4 -4
- aws_cdk/aws_medialive/__init__.py +348 -0
- aws_cdk/aws_mediapackagev2/__init__.py +38 -38
- aws_cdk/aws_neptune/__init__.py +14 -8
- aws_cdk/aws_opensearchservice/__init__.py +194 -0
- aws_cdk/aws_pcaconnectorscep/__init__.py +884 -0
- aws_cdk/aws_personalize/__init__.py +2 -2
- aws_cdk/aws_pipes/__init__.py +22 -22
- aws_cdk/aws_qbusiness/__init__.py +675 -6
- aws_cdk/aws_quicksight/__init__.py +3285 -0
- aws_cdk/aws_rds/__init__.py +24 -0
- aws_cdk/aws_s3/__init__.py +13 -14
- aws_cdk/aws_sagemaker/__init__.py +1167 -0
- aws_cdk/aws_secretsmanager/__init__.py +2 -3
- aws_cdk/aws_securityhub/__init__.py +108 -103
- aws_cdk/aws_ses/__init__.py +31 -0
- aws_cdk/aws_sns/__init__.py +19 -13
- aws_cdk/aws_ssm/__init__.py +10 -6
- aws_cdk/aws_ssmquicksetup/__init__.py +967 -0
- aws_cdk/aws_stepfunctions_tasks/__init__.py +106 -45
- aws_cdk/aws_synthetics/__init__.py +13 -0
- aws_cdk/cx_api/__init__.py +16 -0
- aws_cdk/triggers/__init__.py +30 -3
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/METADATA +1 -1
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/RECORD +66 -64
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/LICENSE +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/NOTICE +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/WHEEL +0 -0
- {aws_cdk_lib-2.155.0.dist-info → aws_cdk_lib-2.157.0.dist-info}/top_level.txt +0 -0
aws_cdk/aws_bedrock/__init__.py
CHANGED
|
@@ -6803,7 +6803,9 @@ class CfnFlow(
|
|
|
6803
6803
|
# The values are placeholders you should change.
|
|
6804
6804
|
from aws_cdk import aws_bedrock as bedrock
|
|
6805
6805
|
|
|
6806
|
+
# collector: Any
|
|
6806
6807
|
# input: Any
|
|
6808
|
+
# iterator: Any
|
|
6807
6809
|
# output: Any
|
|
6808
6810
|
|
|
6809
6811
|
cfn_flow = bedrock.CfnFlow(self, "MyCfnFlow",
|
|
@@ -6836,6 +6838,10 @@ class CfnFlow(
|
|
|
6836
6838
|
|
|
6837
6839
|
# the properties below are optional
|
|
6838
6840
|
configuration=bedrock.CfnFlow.FlowNodeConfigurationProperty(
|
|
6841
|
+
agent=bedrock.CfnFlow.AgentFlowNodeConfigurationProperty(
|
|
6842
|
+
agent_alias_arn="agentAliasArn"
|
|
6843
|
+
),
|
|
6844
|
+
collector=collector,
|
|
6839
6845
|
condition=bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty(
|
|
6840
6846
|
conditions=[bedrock.CfnFlow.FlowConditionProperty(
|
|
6841
6847
|
name="name",
|
|
@@ -6845,6 +6851,7 @@ class CfnFlow(
|
|
|
6845
6851
|
)]
|
|
6846
6852
|
),
|
|
6847
6853
|
input=input,
|
|
6854
|
+
iterator=iterator,
|
|
6848
6855
|
knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
6849
6856
|
knowledge_base_id="knowledgeBaseId",
|
|
6850
6857
|
|
|
@@ -6890,6 +6897,20 @@ class CfnFlow(
|
|
|
6890
6897
|
prompt_arn="promptArn"
|
|
6891
6898
|
)
|
|
6892
6899
|
)
|
|
6900
|
+
),
|
|
6901
|
+
retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
|
|
6902
|
+
service_configuration=bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty(
|
|
6903
|
+
s3=bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
6904
|
+
bucket_name="bucketName"
|
|
6905
|
+
)
|
|
6906
|
+
)
|
|
6907
|
+
),
|
|
6908
|
+
storage=bedrock.CfnFlow.StorageFlowNodeConfigurationProperty(
|
|
6909
|
+
service_configuration=bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty(
|
|
6910
|
+
s3=bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
6911
|
+
bucket_name="bucketName"
|
|
6912
|
+
)
|
|
6913
|
+
)
|
|
6893
6914
|
)
|
|
6894
6915
|
),
|
|
6895
6916
|
inputs=[bedrock.CfnFlow.FlowNodeInputProperty(
|
|
@@ -7053,6 +7074,15 @@ class CfnFlow(
|
|
|
7053
7074
|
'''
|
|
7054
7075
|
return typing.cast(builtins.str, jsii.get(self, "attrUpdatedAt"))
|
|
7055
7076
|
|
|
7077
|
+
@builtins.property
|
|
7078
|
+
@jsii.member(jsii_name="attrValidations")
|
|
7079
|
+
def attr_validations(self) -> _IResolvable_da3f097b:
|
|
7080
|
+
'''List of flow validations.
|
|
7081
|
+
|
|
7082
|
+
:cloudformationAttribute: Validations
|
|
7083
|
+
'''
|
|
7084
|
+
return typing.cast(_IResolvable_da3f097b, jsii.get(self, "attrValidations"))
|
|
7085
|
+
|
|
7056
7086
|
@builtins.property
|
|
7057
7087
|
@jsii.member(jsii_name="attrVersion")
|
|
7058
7088
|
def attr_version(self) -> builtins.str:
|
|
@@ -7229,6 +7259,60 @@ class CfnFlow(
|
|
|
7229
7259
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
7230
7260
|
jsii.set(self, "testAliasTags", value) # pyright: ignore[reportArgumentType]
|
|
7231
7261
|
|
|
7262
|
+
@jsii.data_type(
|
|
7263
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.AgentFlowNodeConfigurationProperty",
|
|
7264
|
+
jsii_struct_bases=[],
|
|
7265
|
+
name_mapping={"agent_alias_arn": "agentAliasArn"},
|
|
7266
|
+
)
|
|
7267
|
+
class AgentFlowNodeConfigurationProperty:
|
|
7268
|
+
def __init__(self, *, agent_alias_arn: builtins.str) -> None:
|
|
7269
|
+
'''Defines an agent node in your flow.
|
|
7270
|
+
|
|
7271
|
+
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.
|
|
7272
|
+
|
|
7273
|
+
:param agent_alias_arn: The Amazon Resource Name (ARN) of the alias of the agent to invoke.
|
|
7274
|
+
|
|
7275
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-agentflownodeconfiguration.html
|
|
7276
|
+
:exampleMetadata: fixture=_generated
|
|
7277
|
+
|
|
7278
|
+
Example::
|
|
7279
|
+
|
|
7280
|
+
# The code below shows an example of how to instantiate this type.
|
|
7281
|
+
# The values are placeholders you should change.
|
|
7282
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
7283
|
+
|
|
7284
|
+
agent_flow_node_configuration_property = bedrock.CfnFlow.AgentFlowNodeConfigurationProperty(
|
|
7285
|
+
agent_alias_arn="agentAliasArn"
|
|
7286
|
+
)
|
|
7287
|
+
'''
|
|
7288
|
+
if __debug__:
|
|
7289
|
+
type_hints = typing.get_type_hints(_typecheckingstub__a835b75c491363488063d3b7d26eef8f2e4a2e2f689eb3676748164e4491c5fe)
|
|
7290
|
+
check_type(argname="argument agent_alias_arn", value=agent_alias_arn, expected_type=type_hints["agent_alias_arn"])
|
|
7291
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
7292
|
+
"agent_alias_arn": agent_alias_arn,
|
|
7293
|
+
}
|
|
7294
|
+
|
|
7295
|
+
@builtins.property
|
|
7296
|
+
def agent_alias_arn(self) -> builtins.str:
|
|
7297
|
+
'''The Amazon Resource Name (ARN) of the alias of the agent to invoke.
|
|
7298
|
+
|
|
7299
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-agentflownodeconfiguration.html#cfn-bedrock-flow-agentflownodeconfiguration-agentaliasarn
|
|
7300
|
+
'''
|
|
7301
|
+
result = self._values.get("agent_alias_arn")
|
|
7302
|
+
assert result is not None, "Required property 'agent_alias_arn' is missing"
|
|
7303
|
+
return typing.cast(builtins.str, result)
|
|
7304
|
+
|
|
7305
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
7306
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
7307
|
+
|
|
7308
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
7309
|
+
return not (rhs == self)
|
|
7310
|
+
|
|
7311
|
+
def __repr__(self) -> str:
|
|
7312
|
+
return "AgentFlowNodeConfigurationProperty(%s)" % ", ".join(
|
|
7313
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
7314
|
+
)
|
|
7315
|
+
|
|
7232
7316
|
@jsii.data_type(
|
|
7233
7317
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty",
|
|
7234
7318
|
jsii_struct_bases=[],
|
|
@@ -7735,7 +7819,9 @@ class CfnFlow(
|
|
|
7735
7819
|
# The values are placeholders you should change.
|
|
7736
7820
|
from aws_cdk import aws_bedrock as bedrock
|
|
7737
7821
|
|
|
7822
|
+
# collector: Any
|
|
7738
7823
|
# input: Any
|
|
7824
|
+
# iterator: Any
|
|
7739
7825
|
# output: Any
|
|
7740
7826
|
|
|
7741
7827
|
flow_definition_property = bedrock.CfnFlow.FlowDefinitionProperty(
|
|
@@ -7762,6 +7848,10 @@ class CfnFlow(
|
|
|
7762
7848
|
|
|
7763
7849
|
# the properties below are optional
|
|
7764
7850
|
configuration=bedrock.CfnFlow.FlowNodeConfigurationProperty(
|
|
7851
|
+
agent=bedrock.CfnFlow.AgentFlowNodeConfigurationProperty(
|
|
7852
|
+
agent_alias_arn="agentAliasArn"
|
|
7853
|
+
),
|
|
7854
|
+
collector=collector,
|
|
7765
7855
|
condition=bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty(
|
|
7766
7856
|
conditions=[bedrock.CfnFlow.FlowConditionProperty(
|
|
7767
7857
|
name="name",
|
|
@@ -7771,6 +7861,7 @@ class CfnFlow(
|
|
|
7771
7861
|
)]
|
|
7772
7862
|
),
|
|
7773
7863
|
input=input,
|
|
7864
|
+
iterator=iterator,
|
|
7774
7865
|
knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
7775
7866
|
knowledge_base_id="knowledgeBaseId",
|
|
7776
7867
|
|
|
@@ -7816,6 +7907,20 @@ class CfnFlow(
|
|
|
7816
7907
|
prompt_arn="promptArn"
|
|
7817
7908
|
)
|
|
7818
7909
|
)
|
|
7910
|
+
),
|
|
7911
|
+
retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
|
|
7912
|
+
service_configuration=bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty(
|
|
7913
|
+
s3=bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
7914
|
+
bucket_name="bucketName"
|
|
7915
|
+
)
|
|
7916
|
+
)
|
|
7917
|
+
),
|
|
7918
|
+
storage=bedrock.CfnFlow.StorageFlowNodeConfigurationProperty(
|
|
7919
|
+
service_configuration=bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty(
|
|
7920
|
+
s3=bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
7921
|
+
bucket_name="bucketName"
|
|
7922
|
+
)
|
|
7923
|
+
)
|
|
7819
7924
|
)
|
|
7820
7925
|
),
|
|
7821
7926
|
inputs=[bedrock.CfnFlow.FlowNodeInputProperty(
|
|
@@ -7877,38 +7982,53 @@ class CfnFlow(
|
|
|
7877
7982
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.FlowNodeConfigurationProperty",
|
|
7878
7983
|
jsii_struct_bases=[],
|
|
7879
7984
|
name_mapping={
|
|
7985
|
+
"agent": "agent",
|
|
7986
|
+
"collector": "collector",
|
|
7880
7987
|
"condition": "condition",
|
|
7881
7988
|
"input": "input",
|
|
7989
|
+
"iterator": "iterator",
|
|
7882
7990
|
"knowledge_base": "knowledgeBase",
|
|
7883
7991
|
"lambda_function": "lambdaFunction",
|
|
7884
7992
|
"lex": "lex",
|
|
7885
7993
|
"output": "output",
|
|
7886
7994
|
"prompt": "prompt",
|
|
7995
|
+
"retrieval": "retrieval",
|
|
7996
|
+
"storage": "storage",
|
|
7887
7997
|
},
|
|
7888
7998
|
)
|
|
7889
7999
|
class FlowNodeConfigurationProperty:
|
|
7890
8000
|
def __init__(
|
|
7891
8001
|
self,
|
|
7892
8002
|
*,
|
|
8003
|
+
agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.AgentFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8004
|
+
collector: typing.Any = None,
|
|
7893
8005
|
condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.ConditionFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7894
8006
|
input: typing.Any = None,
|
|
8007
|
+
iterator: typing.Any = None,
|
|
7895
8008
|
knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7896
8009
|
lambda_function: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.LambdaFunctionFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7897
8010
|
lex: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.LexFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7898
8011
|
output: typing.Any = None,
|
|
7899
8012
|
prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.PromptFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8013
|
+
retrieval: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.RetrievalFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
8014
|
+
storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.StorageFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
7900
8015
|
) -> None:
|
|
7901
8016
|
'''Contains configurations for a node in your flow.
|
|
7902
8017
|
|
|
7903
8018
|
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.
|
|
7904
8019
|
|
|
8020
|
+
:param agent: Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
|
|
8021
|
+
:param collector: Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
|
|
7905
8022
|
:param condition: Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
|
|
7906
8023
|
: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.
|
|
8024
|
+
: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.
|
|
7907
8025
|
: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.
|
|
7908
8026
|
:param lambda_function: Contains configurations for a Lambda function node in your flow. Invokes an AWS Lambda function.
|
|
7909
8027
|
:param lex: Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
|
|
7910
8028
|
:param output: Contains configurations for an output flow node in your flow. The last node in the flow. ``outputs`` can't be specified for this node.
|
|
7911
8029
|
:param prompt: Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
|
|
8030
|
+
:param retrieval: Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
|
|
8031
|
+
:param storage: Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
|
|
7912
8032
|
|
|
7913
8033
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html
|
|
7914
8034
|
:exampleMetadata: fixture=_generated
|
|
@@ -7919,10 +8039,16 @@ class CfnFlow(
|
|
|
7919
8039
|
# The values are placeholders you should change.
|
|
7920
8040
|
from aws_cdk import aws_bedrock as bedrock
|
|
7921
8041
|
|
|
8042
|
+
# collector: Any
|
|
7922
8043
|
# input: Any
|
|
8044
|
+
# iterator: Any
|
|
7923
8045
|
# output: Any
|
|
7924
8046
|
|
|
7925
8047
|
flow_node_configuration_property = bedrock.CfnFlow.FlowNodeConfigurationProperty(
|
|
8048
|
+
agent=bedrock.CfnFlow.AgentFlowNodeConfigurationProperty(
|
|
8049
|
+
agent_alias_arn="agentAliasArn"
|
|
8050
|
+
),
|
|
8051
|
+
collector=collector,
|
|
7926
8052
|
condition=bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty(
|
|
7927
8053
|
conditions=[bedrock.CfnFlow.FlowConditionProperty(
|
|
7928
8054
|
name="name",
|
|
@@ -7932,6 +8058,7 @@ class CfnFlow(
|
|
|
7932
8058
|
)]
|
|
7933
8059
|
),
|
|
7934
8060
|
input=input,
|
|
8061
|
+
iterator=iterator,
|
|
7935
8062
|
knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
7936
8063
|
knowledge_base_id="knowledgeBaseId",
|
|
7937
8064
|
|
|
@@ -7977,23 +8104,48 @@ class CfnFlow(
|
|
|
7977
8104
|
prompt_arn="promptArn"
|
|
7978
8105
|
)
|
|
7979
8106
|
)
|
|
8107
|
+
),
|
|
8108
|
+
retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
|
|
8109
|
+
service_configuration=bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty(
|
|
8110
|
+
s3=bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
8111
|
+
bucket_name="bucketName"
|
|
8112
|
+
)
|
|
8113
|
+
)
|
|
8114
|
+
),
|
|
8115
|
+
storage=bedrock.CfnFlow.StorageFlowNodeConfigurationProperty(
|
|
8116
|
+
service_configuration=bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty(
|
|
8117
|
+
s3=bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
8118
|
+
bucket_name="bucketName"
|
|
8119
|
+
)
|
|
8120
|
+
)
|
|
7980
8121
|
)
|
|
7981
8122
|
)
|
|
7982
8123
|
'''
|
|
7983
8124
|
if __debug__:
|
|
7984
8125
|
type_hints = typing.get_type_hints(_typecheckingstub__425c904db23b9629fe6a830be94d214d112c1a6206b762478fd9e04b551b5552)
|
|
8126
|
+
check_type(argname="argument agent", value=agent, expected_type=type_hints["agent"])
|
|
8127
|
+
check_type(argname="argument collector", value=collector, expected_type=type_hints["collector"])
|
|
7985
8128
|
check_type(argname="argument condition", value=condition, expected_type=type_hints["condition"])
|
|
7986
8129
|
check_type(argname="argument input", value=input, expected_type=type_hints["input"])
|
|
8130
|
+
check_type(argname="argument iterator", value=iterator, expected_type=type_hints["iterator"])
|
|
7987
8131
|
check_type(argname="argument knowledge_base", value=knowledge_base, expected_type=type_hints["knowledge_base"])
|
|
7988
8132
|
check_type(argname="argument lambda_function", value=lambda_function, expected_type=type_hints["lambda_function"])
|
|
7989
8133
|
check_type(argname="argument lex", value=lex, expected_type=type_hints["lex"])
|
|
7990
8134
|
check_type(argname="argument output", value=output, expected_type=type_hints["output"])
|
|
7991
8135
|
check_type(argname="argument prompt", value=prompt, expected_type=type_hints["prompt"])
|
|
8136
|
+
check_type(argname="argument retrieval", value=retrieval, expected_type=type_hints["retrieval"])
|
|
8137
|
+
check_type(argname="argument storage", value=storage, expected_type=type_hints["storage"])
|
|
7992
8138
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
8139
|
+
if agent is not None:
|
|
8140
|
+
self._values["agent"] = agent
|
|
8141
|
+
if collector is not None:
|
|
8142
|
+
self._values["collector"] = collector
|
|
7993
8143
|
if condition is not None:
|
|
7994
8144
|
self._values["condition"] = condition
|
|
7995
8145
|
if input is not None:
|
|
7996
8146
|
self._values["input"] = input
|
|
8147
|
+
if iterator is not None:
|
|
8148
|
+
self._values["iterator"] = iterator
|
|
7997
8149
|
if knowledge_base is not None:
|
|
7998
8150
|
self._values["knowledge_base"] = knowledge_base
|
|
7999
8151
|
if lambda_function is not None:
|
|
@@ -8004,6 +8156,34 @@ class CfnFlow(
|
|
|
8004
8156
|
self._values["output"] = output
|
|
8005
8157
|
if prompt is not None:
|
|
8006
8158
|
self._values["prompt"] = prompt
|
|
8159
|
+
if retrieval is not None:
|
|
8160
|
+
self._values["retrieval"] = retrieval
|
|
8161
|
+
if storage is not None:
|
|
8162
|
+
self._values["storage"] = storage
|
|
8163
|
+
|
|
8164
|
+
@builtins.property
|
|
8165
|
+
def agent(
|
|
8166
|
+
self,
|
|
8167
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.AgentFlowNodeConfigurationProperty"]]:
|
|
8168
|
+
'''Contains configurations for an agent node in your flow.
|
|
8169
|
+
|
|
8170
|
+
Invokes an alias of an agent and returns the response.
|
|
8171
|
+
|
|
8172
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-agent
|
|
8173
|
+
'''
|
|
8174
|
+
result = self._values.get("agent")
|
|
8175
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.AgentFlowNodeConfigurationProperty"]], result)
|
|
8176
|
+
|
|
8177
|
+
@builtins.property
|
|
8178
|
+
def collector(self) -> typing.Any:
|
|
8179
|
+
'''Contains configurations for a collector node in your flow.
|
|
8180
|
+
|
|
8181
|
+
Collects an iteration of inputs and consolidates them into an array of outputs.
|
|
8182
|
+
|
|
8183
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-collector
|
|
8184
|
+
'''
|
|
8185
|
+
result = self._values.get("collector")
|
|
8186
|
+
return typing.cast(typing.Any, result)
|
|
8007
8187
|
|
|
8008
8188
|
@builtins.property
|
|
8009
8189
|
def condition(
|
|
@@ -8029,6 +8209,19 @@ class CfnFlow(
|
|
|
8029
8209
|
result = self._values.get("input")
|
|
8030
8210
|
return typing.cast(typing.Any, result)
|
|
8031
8211
|
|
|
8212
|
+
@builtins.property
|
|
8213
|
+
def iterator(self) -> typing.Any:
|
|
8214
|
+
'''Contains configurations for an iterator node in your flow.
|
|
8215
|
+
|
|
8216
|
+
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.
|
|
8217
|
+
|
|
8218
|
+
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.
|
|
8219
|
+
|
|
8220
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-iterator
|
|
8221
|
+
'''
|
|
8222
|
+
result = self._values.get("iterator")
|
|
8223
|
+
return typing.cast(typing.Any, result)
|
|
8224
|
+
|
|
8032
8225
|
@builtins.property
|
|
8033
8226
|
def knowledge_base(
|
|
8034
8227
|
self,
|
|
@@ -8092,6 +8285,32 @@ class CfnFlow(
|
|
|
8092
8285
|
result = self._values.get("prompt")
|
|
8093
8286
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.PromptFlowNodeConfigurationProperty"]], result)
|
|
8094
8287
|
|
|
8288
|
+
@builtins.property
|
|
8289
|
+
def retrieval(
|
|
8290
|
+
self,
|
|
8291
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.RetrievalFlowNodeConfigurationProperty"]]:
|
|
8292
|
+
'''Contains configurations for a Retrieval node in your flow.
|
|
8293
|
+
|
|
8294
|
+
Retrieves data from an Amazon S3 location and returns it as the output.
|
|
8295
|
+
|
|
8296
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-retrieval
|
|
8297
|
+
'''
|
|
8298
|
+
result = self._values.get("retrieval")
|
|
8299
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.RetrievalFlowNodeConfigurationProperty"]], result)
|
|
8300
|
+
|
|
8301
|
+
@builtins.property
|
|
8302
|
+
def storage(
|
|
8303
|
+
self,
|
|
8304
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.StorageFlowNodeConfigurationProperty"]]:
|
|
8305
|
+
'''Contains configurations for a Storage node in your flow.
|
|
8306
|
+
|
|
8307
|
+
Stores an input in an Amazon S3 location.
|
|
8308
|
+
|
|
8309
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flownodeconfiguration.html#cfn-bedrock-flow-flownodeconfiguration-storage
|
|
8310
|
+
'''
|
|
8311
|
+
result = self._values.get("storage")
|
|
8312
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.StorageFlowNodeConfigurationProperty"]], result)
|
|
8313
|
+
|
|
8095
8314
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8096
8315
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8097
8316
|
|
|
@@ -8299,7 +8518,9 @@ class CfnFlow(
|
|
|
8299
8518
|
# The values are placeholders you should change.
|
|
8300
8519
|
from aws_cdk import aws_bedrock as bedrock
|
|
8301
8520
|
|
|
8521
|
+
# collector: Any
|
|
8302
8522
|
# input: Any
|
|
8523
|
+
# iterator: Any
|
|
8303
8524
|
# output: Any
|
|
8304
8525
|
|
|
8305
8526
|
flow_node_property = bedrock.CfnFlow.FlowNodeProperty(
|
|
@@ -8308,6 +8529,10 @@ class CfnFlow(
|
|
|
8308
8529
|
|
|
8309
8530
|
# the properties below are optional
|
|
8310
8531
|
configuration=bedrock.CfnFlow.FlowNodeConfigurationProperty(
|
|
8532
|
+
agent=bedrock.CfnFlow.AgentFlowNodeConfigurationProperty(
|
|
8533
|
+
agent_alias_arn="agentAliasArn"
|
|
8534
|
+
),
|
|
8535
|
+
collector=collector,
|
|
8311
8536
|
condition=bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty(
|
|
8312
8537
|
conditions=[bedrock.CfnFlow.FlowConditionProperty(
|
|
8313
8538
|
name="name",
|
|
@@ -8317,6 +8542,7 @@ class CfnFlow(
|
|
|
8317
8542
|
)]
|
|
8318
8543
|
),
|
|
8319
8544
|
input=input,
|
|
8545
|
+
iterator=iterator,
|
|
8320
8546
|
knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
8321
8547
|
knowledge_base_id="knowledgeBaseId",
|
|
8322
8548
|
|
|
@@ -8362,6 +8588,20 @@ class CfnFlow(
|
|
|
8362
8588
|
prompt_arn="promptArn"
|
|
8363
8589
|
)
|
|
8364
8590
|
)
|
|
8591
|
+
),
|
|
8592
|
+
retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
|
|
8593
|
+
service_configuration=bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty(
|
|
8594
|
+
s3=bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
8595
|
+
bucket_name="bucketName"
|
|
8596
|
+
)
|
|
8597
|
+
)
|
|
8598
|
+
),
|
|
8599
|
+
storage=bedrock.CfnFlow.StorageFlowNodeConfigurationProperty(
|
|
8600
|
+
service_configuration=bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty(
|
|
8601
|
+
s3=bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
8602
|
+
bucket_name="bucketName"
|
|
8603
|
+
)
|
|
8604
|
+
)
|
|
8365
8605
|
)
|
|
8366
8606
|
),
|
|
8367
8607
|
inputs=[bedrock.CfnFlow.FlowNodeInputProperty(
|
|
@@ -8459,6 +8699,63 @@ class CfnFlow(
|
|
|
8459
8699
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
8460
8700
|
)
|
|
8461
8701
|
|
|
8702
|
+
@jsii.data_type(
|
|
8703
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.FlowValidationProperty",
|
|
8704
|
+
jsii_struct_bases=[],
|
|
8705
|
+
name_mapping={"message": "message"},
|
|
8706
|
+
)
|
|
8707
|
+
class FlowValidationProperty:
|
|
8708
|
+
def __init__(self, *, message: builtins.str) -> None:
|
|
8709
|
+
'''Contains information about validation of the flow.
|
|
8710
|
+
|
|
8711
|
+
This data type is used in the following API operations:
|
|
8712
|
+
|
|
8713
|
+
- `GetFlow response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlow.html#API_agent_GetFlow_ResponseSyntax>`_
|
|
8714
|
+
- `GetFlowVersion response <https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_GetFlowVersion.html#API_agent_GetFlowVersion_ResponseSyntax>`_
|
|
8715
|
+
|
|
8716
|
+
:param message: A message describing the validation error.
|
|
8717
|
+
|
|
8718
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowvalidation.html
|
|
8719
|
+
:exampleMetadata: fixture=_generated
|
|
8720
|
+
|
|
8721
|
+
Example::
|
|
8722
|
+
|
|
8723
|
+
# The code below shows an example of how to instantiate this type.
|
|
8724
|
+
# The values are placeholders you should change.
|
|
8725
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
8726
|
+
|
|
8727
|
+
flow_validation_property = bedrock.CfnFlow.FlowValidationProperty(
|
|
8728
|
+
message="message"
|
|
8729
|
+
)
|
|
8730
|
+
'''
|
|
8731
|
+
if __debug__:
|
|
8732
|
+
type_hints = typing.get_type_hints(_typecheckingstub__3eab89f770734deb893367e044b113c86911377a918b039f1ba9310a34002e30)
|
|
8733
|
+
check_type(argname="argument message", value=message, expected_type=type_hints["message"])
|
|
8734
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
8735
|
+
"message": message,
|
|
8736
|
+
}
|
|
8737
|
+
|
|
8738
|
+
@builtins.property
|
|
8739
|
+
def message(self) -> builtins.str:
|
|
8740
|
+
'''A message describing the validation error.
|
|
8741
|
+
|
|
8742
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-flowvalidation.html#cfn-bedrock-flow-flowvalidation-message
|
|
8743
|
+
'''
|
|
8744
|
+
result = self._values.get("message")
|
|
8745
|
+
assert result is not None, "Required property 'message' is missing"
|
|
8746
|
+
return typing.cast(builtins.str, result)
|
|
8747
|
+
|
|
8748
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
8749
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
8750
|
+
|
|
8751
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
8752
|
+
return not (rhs == self)
|
|
8753
|
+
|
|
8754
|
+
def __repr__(self) -> str:
|
|
8755
|
+
return "FlowValidationProperty(%s)" % ", ".join(
|
|
8756
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
8757
|
+
)
|
|
8758
|
+
|
|
8462
8759
|
@jsii.data_type(
|
|
8463
8760
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty",
|
|
8464
8761
|
jsii_struct_bases=[],
|
|
@@ -9340,6 +9637,181 @@ class CfnFlow(
|
|
|
9340
9637
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
9341
9638
|
)
|
|
9342
9639
|
|
|
9640
|
+
@jsii.data_type(
|
|
9641
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty",
|
|
9642
|
+
jsii_struct_bases=[],
|
|
9643
|
+
name_mapping={"service_configuration": "serviceConfiguration"},
|
|
9644
|
+
)
|
|
9645
|
+
class RetrievalFlowNodeConfigurationProperty:
|
|
9646
|
+
def __init__(
|
|
9647
|
+
self,
|
|
9648
|
+
*,
|
|
9649
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.RetrievalFlowNodeServiceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
9650
|
+
) -> None:
|
|
9651
|
+
'''Contains configurations for a Retrieval node in a flow.
|
|
9652
|
+
|
|
9653
|
+
This node retrieves data from the Amazon S3 location that you specify and returns it as the output.
|
|
9654
|
+
|
|
9655
|
+
:param service_configuration: Contains configurations for the service to use for retrieving data to return as the output from the node.
|
|
9656
|
+
|
|
9657
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeconfiguration.html
|
|
9658
|
+
:exampleMetadata: fixture=_generated
|
|
9659
|
+
|
|
9660
|
+
Example::
|
|
9661
|
+
|
|
9662
|
+
# The code below shows an example of how to instantiate this type.
|
|
9663
|
+
# The values are placeholders you should change.
|
|
9664
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
9665
|
+
|
|
9666
|
+
retrieval_flow_node_configuration_property = bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
|
|
9667
|
+
service_configuration=bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty(
|
|
9668
|
+
s3=bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
9669
|
+
bucket_name="bucketName"
|
|
9670
|
+
)
|
|
9671
|
+
)
|
|
9672
|
+
)
|
|
9673
|
+
'''
|
|
9674
|
+
if __debug__:
|
|
9675
|
+
type_hints = typing.get_type_hints(_typecheckingstub__982db19983467a9d8b437235c39ed6a0fbf0e08458563d3e8f78d9a7de277861)
|
|
9676
|
+
check_type(argname="argument service_configuration", value=service_configuration, expected_type=type_hints["service_configuration"])
|
|
9677
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9678
|
+
"service_configuration": service_configuration,
|
|
9679
|
+
}
|
|
9680
|
+
|
|
9681
|
+
@builtins.property
|
|
9682
|
+
def service_configuration(
|
|
9683
|
+
self,
|
|
9684
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnFlow.RetrievalFlowNodeServiceConfigurationProperty"]:
|
|
9685
|
+
'''Contains configurations for the service to use for retrieving data to return as the output from the node.
|
|
9686
|
+
|
|
9687
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeconfiguration.html#cfn-bedrock-flow-retrievalflownodeconfiguration-serviceconfiguration
|
|
9688
|
+
'''
|
|
9689
|
+
result = self._values.get("service_configuration")
|
|
9690
|
+
assert result is not None, "Required property 'service_configuration' is missing"
|
|
9691
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlow.RetrievalFlowNodeServiceConfigurationProperty"], result)
|
|
9692
|
+
|
|
9693
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9694
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9695
|
+
|
|
9696
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9697
|
+
return not (rhs == self)
|
|
9698
|
+
|
|
9699
|
+
def __repr__(self) -> str:
|
|
9700
|
+
return "RetrievalFlowNodeConfigurationProperty(%s)" % ", ".join(
|
|
9701
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9702
|
+
)
|
|
9703
|
+
|
|
9704
|
+
@jsii.data_type(
|
|
9705
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty",
|
|
9706
|
+
jsii_struct_bases=[],
|
|
9707
|
+
name_mapping={"bucket_name": "bucketName"},
|
|
9708
|
+
)
|
|
9709
|
+
class RetrievalFlowNodeS3ConfigurationProperty:
|
|
9710
|
+
def __init__(self, *, bucket_name: builtins.str) -> None:
|
|
9711
|
+
'''Contains configurations for the Amazon S3 location from which to retrieve data to return as the output from the node.
|
|
9712
|
+
|
|
9713
|
+
:param bucket_name: The name of the Amazon S3 bucket from which to retrieve data.
|
|
9714
|
+
|
|
9715
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodes3configuration.html
|
|
9716
|
+
:exampleMetadata: fixture=_generated
|
|
9717
|
+
|
|
9718
|
+
Example::
|
|
9719
|
+
|
|
9720
|
+
# The code below shows an example of how to instantiate this type.
|
|
9721
|
+
# The values are placeholders you should change.
|
|
9722
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
9723
|
+
|
|
9724
|
+
retrieval_flow_node_s3_configuration_property = bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
9725
|
+
bucket_name="bucketName"
|
|
9726
|
+
)
|
|
9727
|
+
'''
|
|
9728
|
+
if __debug__:
|
|
9729
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cc1fc39971930d3b8f21c48c16cc46f7b6dcac42391342dc2c0b08f3ab2dd6c9)
|
|
9730
|
+
check_type(argname="argument bucket_name", value=bucket_name, expected_type=type_hints["bucket_name"])
|
|
9731
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9732
|
+
"bucket_name": bucket_name,
|
|
9733
|
+
}
|
|
9734
|
+
|
|
9735
|
+
@builtins.property
|
|
9736
|
+
def bucket_name(self) -> builtins.str:
|
|
9737
|
+
'''The name of the Amazon S3 bucket from which to retrieve data.
|
|
9738
|
+
|
|
9739
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodes3configuration.html#cfn-bedrock-flow-retrievalflownodes3configuration-bucketname
|
|
9740
|
+
'''
|
|
9741
|
+
result = self._values.get("bucket_name")
|
|
9742
|
+
assert result is not None, "Required property 'bucket_name' is missing"
|
|
9743
|
+
return typing.cast(builtins.str, result)
|
|
9744
|
+
|
|
9745
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9746
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9747
|
+
|
|
9748
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9749
|
+
return not (rhs == self)
|
|
9750
|
+
|
|
9751
|
+
def __repr__(self) -> str:
|
|
9752
|
+
return "RetrievalFlowNodeS3ConfigurationProperty(%s)" % ", ".join(
|
|
9753
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9754
|
+
)
|
|
9755
|
+
|
|
9756
|
+
@jsii.data_type(
|
|
9757
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty",
|
|
9758
|
+
jsii_struct_bases=[],
|
|
9759
|
+
name_mapping={"s3": "s3"},
|
|
9760
|
+
)
|
|
9761
|
+
class RetrievalFlowNodeServiceConfigurationProperty:
|
|
9762
|
+
def __init__(
|
|
9763
|
+
self,
|
|
9764
|
+
*,
|
|
9765
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.RetrievalFlowNodeS3ConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
9766
|
+
) -> None:
|
|
9767
|
+
'''Contains configurations for the service to use for retrieving data to return as the output from the node.
|
|
9768
|
+
|
|
9769
|
+
:param s3: Contains configurations for the Amazon S3 location from which to retrieve data to return as the output from the node.
|
|
9770
|
+
|
|
9771
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeserviceconfiguration.html
|
|
9772
|
+
:exampleMetadata: fixture=_generated
|
|
9773
|
+
|
|
9774
|
+
Example::
|
|
9775
|
+
|
|
9776
|
+
# The code below shows an example of how to instantiate this type.
|
|
9777
|
+
# The values are placeholders you should change.
|
|
9778
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
9779
|
+
|
|
9780
|
+
retrieval_flow_node_service_configuration_property = bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty(
|
|
9781
|
+
s3=bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
9782
|
+
bucket_name="bucketName"
|
|
9783
|
+
)
|
|
9784
|
+
)
|
|
9785
|
+
'''
|
|
9786
|
+
if __debug__:
|
|
9787
|
+
type_hints = typing.get_type_hints(_typecheckingstub__71787bd8165076f8853d3c5e8ccf1f76a3ecc1dff4ad49e09330cc7c5fd42328)
|
|
9788
|
+
check_type(argname="argument s3", value=s3, expected_type=type_hints["s3"])
|
|
9789
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
9790
|
+
if s3 is not None:
|
|
9791
|
+
self._values["s3"] = s3
|
|
9792
|
+
|
|
9793
|
+
@builtins.property
|
|
9794
|
+
def s3(
|
|
9795
|
+
self,
|
|
9796
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.RetrievalFlowNodeS3ConfigurationProperty"]]:
|
|
9797
|
+
'''Contains configurations for the Amazon S3 location from which to retrieve data to return as the output from the node.
|
|
9798
|
+
|
|
9799
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-retrievalflownodeserviceconfiguration.html#cfn-bedrock-flow-retrievalflownodeserviceconfiguration-s3
|
|
9800
|
+
'''
|
|
9801
|
+
result = self._values.get("s3")
|
|
9802
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.RetrievalFlowNodeS3ConfigurationProperty"]], result)
|
|
9803
|
+
|
|
9804
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9805
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9806
|
+
|
|
9807
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9808
|
+
return not (rhs == self)
|
|
9809
|
+
|
|
9810
|
+
def __repr__(self) -> str:
|
|
9811
|
+
return "RetrievalFlowNodeServiceConfigurationProperty(%s)" % ", ".join(
|
|
9812
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9813
|
+
)
|
|
9814
|
+
|
|
9343
9815
|
@jsii.data_type(
|
|
9344
9816
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.S3LocationProperty",
|
|
9345
9817
|
jsii_struct_bases=[],
|
|
@@ -9429,11 +9901,186 @@ class CfnFlow(
|
|
|
9429
9901
|
)
|
|
9430
9902
|
|
|
9431
9903
|
@jsii.data_type(
|
|
9432
|
-
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.
|
|
9904
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.StorageFlowNodeConfigurationProperty",
|
|
9433
9905
|
jsii_struct_bases=[],
|
|
9434
|
-
name_mapping={"
|
|
9906
|
+
name_mapping={"service_configuration": "serviceConfiguration"},
|
|
9435
9907
|
)
|
|
9436
|
-
class
|
|
9908
|
+
class StorageFlowNodeConfigurationProperty:
|
|
9909
|
+
def __init__(
|
|
9910
|
+
self,
|
|
9911
|
+
*,
|
|
9912
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.StorageFlowNodeServiceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
9913
|
+
) -> None:
|
|
9914
|
+
'''Contains configurations for a Storage node in a flow.
|
|
9915
|
+
|
|
9916
|
+
This node stores the input in an Amazon S3 location that you specify.
|
|
9917
|
+
|
|
9918
|
+
:param service_configuration: Contains configurations for the service to use for storing the input into the node.
|
|
9919
|
+
|
|
9920
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeconfiguration.html
|
|
9921
|
+
:exampleMetadata: fixture=_generated
|
|
9922
|
+
|
|
9923
|
+
Example::
|
|
9924
|
+
|
|
9925
|
+
# The code below shows an example of how to instantiate this type.
|
|
9926
|
+
# The values are placeholders you should change.
|
|
9927
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
9928
|
+
|
|
9929
|
+
storage_flow_node_configuration_property = bedrock.CfnFlow.StorageFlowNodeConfigurationProperty(
|
|
9930
|
+
service_configuration=bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty(
|
|
9931
|
+
s3=bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
9932
|
+
bucket_name="bucketName"
|
|
9933
|
+
)
|
|
9934
|
+
)
|
|
9935
|
+
)
|
|
9936
|
+
'''
|
|
9937
|
+
if __debug__:
|
|
9938
|
+
type_hints = typing.get_type_hints(_typecheckingstub__2947611a82b29854c7efc58b7c733174ecf09a5853484c0d5e8f1ce11289b86a)
|
|
9939
|
+
check_type(argname="argument service_configuration", value=service_configuration, expected_type=type_hints["service_configuration"])
|
|
9940
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9941
|
+
"service_configuration": service_configuration,
|
|
9942
|
+
}
|
|
9943
|
+
|
|
9944
|
+
@builtins.property
|
|
9945
|
+
def service_configuration(
|
|
9946
|
+
self,
|
|
9947
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnFlow.StorageFlowNodeServiceConfigurationProperty"]:
|
|
9948
|
+
'''Contains configurations for the service to use for storing the input into the node.
|
|
9949
|
+
|
|
9950
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeconfiguration.html#cfn-bedrock-flow-storageflownodeconfiguration-serviceconfiguration
|
|
9951
|
+
'''
|
|
9952
|
+
result = self._values.get("service_configuration")
|
|
9953
|
+
assert result is not None, "Required property 'service_configuration' is missing"
|
|
9954
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlow.StorageFlowNodeServiceConfigurationProperty"], result)
|
|
9955
|
+
|
|
9956
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
9957
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
9958
|
+
|
|
9959
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
9960
|
+
return not (rhs == self)
|
|
9961
|
+
|
|
9962
|
+
def __repr__(self) -> str:
|
|
9963
|
+
return "StorageFlowNodeConfigurationProperty(%s)" % ", ".join(
|
|
9964
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
9965
|
+
)
|
|
9966
|
+
|
|
9967
|
+
@jsii.data_type(
|
|
9968
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty",
|
|
9969
|
+
jsii_struct_bases=[],
|
|
9970
|
+
name_mapping={"bucket_name": "bucketName"},
|
|
9971
|
+
)
|
|
9972
|
+
class StorageFlowNodeS3ConfigurationProperty:
|
|
9973
|
+
def __init__(self, *, bucket_name: builtins.str) -> None:
|
|
9974
|
+
'''Contains configurations for the Amazon S3 location in which to store the input into the node.
|
|
9975
|
+
|
|
9976
|
+
:param bucket_name: The name of the Amazon S3 bucket in which to store the input into the node.
|
|
9977
|
+
|
|
9978
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodes3configuration.html
|
|
9979
|
+
:exampleMetadata: fixture=_generated
|
|
9980
|
+
|
|
9981
|
+
Example::
|
|
9982
|
+
|
|
9983
|
+
# The code below shows an example of how to instantiate this type.
|
|
9984
|
+
# The values are placeholders you should change.
|
|
9985
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
9986
|
+
|
|
9987
|
+
storage_flow_node_s3_configuration_property = bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
9988
|
+
bucket_name="bucketName"
|
|
9989
|
+
)
|
|
9990
|
+
'''
|
|
9991
|
+
if __debug__:
|
|
9992
|
+
type_hints = typing.get_type_hints(_typecheckingstub__4a2fc36b12bce2e01af3c61406e1b388bed1307c7154a5986c5562cc872007f5)
|
|
9993
|
+
check_type(argname="argument bucket_name", value=bucket_name, expected_type=type_hints["bucket_name"])
|
|
9994
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
9995
|
+
"bucket_name": bucket_name,
|
|
9996
|
+
}
|
|
9997
|
+
|
|
9998
|
+
@builtins.property
|
|
9999
|
+
def bucket_name(self) -> builtins.str:
|
|
10000
|
+
'''The name of the Amazon S3 bucket in which to store the input into the node.
|
|
10001
|
+
|
|
10002
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodes3configuration.html#cfn-bedrock-flow-storageflownodes3configuration-bucketname
|
|
10003
|
+
'''
|
|
10004
|
+
result = self._values.get("bucket_name")
|
|
10005
|
+
assert result is not None, "Required property 'bucket_name' is missing"
|
|
10006
|
+
return typing.cast(builtins.str, result)
|
|
10007
|
+
|
|
10008
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
10009
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
10010
|
+
|
|
10011
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
10012
|
+
return not (rhs == self)
|
|
10013
|
+
|
|
10014
|
+
def __repr__(self) -> str:
|
|
10015
|
+
return "StorageFlowNodeS3ConfigurationProperty(%s)" % ", ".join(
|
|
10016
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
10017
|
+
)
|
|
10018
|
+
|
|
10019
|
+
@jsii.data_type(
|
|
10020
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty",
|
|
10021
|
+
jsii_struct_bases=[],
|
|
10022
|
+
name_mapping={"s3": "s3"},
|
|
10023
|
+
)
|
|
10024
|
+
class StorageFlowNodeServiceConfigurationProperty:
|
|
10025
|
+
def __init__(
|
|
10026
|
+
self,
|
|
10027
|
+
*,
|
|
10028
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlow.StorageFlowNodeS3ConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
10029
|
+
) -> None:
|
|
10030
|
+
'''Contains configurations for the service to use for storing the input into the node.
|
|
10031
|
+
|
|
10032
|
+
:param s3: Contains configurations for the Amazon S3 location in which to store the input into the node.
|
|
10033
|
+
|
|
10034
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeserviceconfiguration.html
|
|
10035
|
+
:exampleMetadata: fixture=_generated
|
|
10036
|
+
|
|
10037
|
+
Example::
|
|
10038
|
+
|
|
10039
|
+
# The code below shows an example of how to instantiate this type.
|
|
10040
|
+
# The values are placeholders you should change.
|
|
10041
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
10042
|
+
|
|
10043
|
+
storage_flow_node_service_configuration_property = bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty(
|
|
10044
|
+
s3=bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
10045
|
+
bucket_name="bucketName"
|
|
10046
|
+
)
|
|
10047
|
+
)
|
|
10048
|
+
'''
|
|
10049
|
+
if __debug__:
|
|
10050
|
+
type_hints = typing.get_type_hints(_typecheckingstub__de8a16140d8aef7030c7580cb53c7b271917f885403ef4e509d2d3eedefafab7)
|
|
10051
|
+
check_type(argname="argument s3", value=s3, expected_type=type_hints["s3"])
|
|
10052
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
10053
|
+
if s3 is not None:
|
|
10054
|
+
self._values["s3"] = s3
|
|
10055
|
+
|
|
10056
|
+
@builtins.property
|
|
10057
|
+
def s3(
|
|
10058
|
+
self,
|
|
10059
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.StorageFlowNodeS3ConfigurationProperty"]]:
|
|
10060
|
+
'''Contains configurations for the Amazon S3 location in which to store the input into the node.
|
|
10061
|
+
|
|
10062
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flow-storageflownodeserviceconfiguration.html#cfn-bedrock-flow-storageflownodeserviceconfiguration-s3
|
|
10063
|
+
'''
|
|
10064
|
+
result = self._values.get("s3")
|
|
10065
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlow.StorageFlowNodeS3ConfigurationProperty"]], result)
|
|
10066
|
+
|
|
10067
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
10068
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
10069
|
+
|
|
10070
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
10071
|
+
return not (rhs == self)
|
|
10072
|
+
|
|
10073
|
+
def __repr__(self) -> str:
|
|
10074
|
+
return "StorageFlowNodeServiceConfigurationProperty(%s)" % ", ".join(
|
|
10075
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
10076
|
+
)
|
|
10077
|
+
|
|
10078
|
+
@jsii.data_type(
|
|
10079
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlow.TextPromptTemplateConfigurationProperty",
|
|
10080
|
+
jsii_struct_bases=[],
|
|
10081
|
+
name_mapping={"text": "text", "input_variables": "inputVariables"},
|
|
10082
|
+
)
|
|
10083
|
+
class TextPromptTemplateConfigurationProperty:
|
|
9437
10084
|
def __init__(
|
|
9438
10085
|
self,
|
|
9439
10086
|
*,
|
|
@@ -9984,7 +10631,9 @@ class CfnFlowProps:
|
|
|
9984
10631
|
# The values are placeholders you should change.
|
|
9985
10632
|
from aws_cdk import aws_bedrock as bedrock
|
|
9986
10633
|
|
|
10634
|
+
# collector: Any
|
|
9987
10635
|
# input: Any
|
|
10636
|
+
# iterator: Any
|
|
9988
10637
|
# output: Any
|
|
9989
10638
|
|
|
9990
10639
|
cfn_flow_props = bedrock.CfnFlowProps(
|
|
@@ -10017,6 +10666,10 @@ class CfnFlowProps:
|
|
|
10017
10666
|
|
|
10018
10667
|
# the properties below are optional
|
|
10019
10668
|
configuration=bedrock.CfnFlow.FlowNodeConfigurationProperty(
|
|
10669
|
+
agent=bedrock.CfnFlow.AgentFlowNodeConfigurationProperty(
|
|
10670
|
+
agent_alias_arn="agentAliasArn"
|
|
10671
|
+
),
|
|
10672
|
+
collector=collector,
|
|
10020
10673
|
condition=bedrock.CfnFlow.ConditionFlowNodeConfigurationProperty(
|
|
10021
10674
|
conditions=[bedrock.CfnFlow.FlowConditionProperty(
|
|
10022
10675
|
name="name",
|
|
@@ -10026,6 +10679,7 @@ class CfnFlowProps:
|
|
|
10026
10679
|
)]
|
|
10027
10680
|
),
|
|
10028
10681
|
input=input,
|
|
10682
|
+
iterator=iterator,
|
|
10029
10683
|
knowledge_base=bedrock.CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
10030
10684
|
knowledge_base_id="knowledgeBaseId",
|
|
10031
10685
|
|
|
@@ -10071,6 +10725,20 @@ class CfnFlowProps:
|
|
|
10071
10725
|
prompt_arn="promptArn"
|
|
10072
10726
|
)
|
|
10073
10727
|
)
|
|
10728
|
+
),
|
|
10729
|
+
retrieval=bedrock.CfnFlow.RetrievalFlowNodeConfigurationProperty(
|
|
10730
|
+
service_configuration=bedrock.CfnFlow.RetrievalFlowNodeServiceConfigurationProperty(
|
|
10731
|
+
s3=bedrock.CfnFlow.RetrievalFlowNodeS3ConfigurationProperty(
|
|
10732
|
+
bucket_name="bucketName"
|
|
10733
|
+
)
|
|
10734
|
+
)
|
|
10735
|
+
),
|
|
10736
|
+
storage=bedrock.CfnFlow.StorageFlowNodeConfigurationProperty(
|
|
10737
|
+
service_configuration=bedrock.CfnFlow.StorageFlowNodeServiceConfigurationProperty(
|
|
10738
|
+
s3=bedrock.CfnFlow.StorageFlowNodeS3ConfigurationProperty(
|
|
10739
|
+
bucket_name="bucketName"
|
|
10740
|
+
)
|
|
10741
|
+
)
|
|
10074
10742
|
)
|
|
10075
10743
|
),
|
|
10076
10744
|
inputs=[bedrock.CfnFlow.FlowNodeInputProperty(
|
|
@@ -10349,6 +11017,15 @@ class CfnFlowVersion(
|
|
|
10349
11017
|
'''
|
|
10350
11018
|
return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
|
|
10351
11019
|
|
|
11020
|
+
@builtins.property
|
|
11021
|
+
@jsii.member(jsii_name="attrCustomerEncryptionKeyArn")
|
|
11022
|
+
def attr_customer_encryption_key_arn(self) -> builtins.str:
|
|
11023
|
+
'''A KMS key ARN.
|
|
11024
|
+
|
|
11025
|
+
:cloudformationAttribute: CustomerEncryptionKeyArn
|
|
11026
|
+
'''
|
|
11027
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCustomerEncryptionKeyArn"))
|
|
11028
|
+
|
|
10352
11029
|
@builtins.property
|
|
10353
11030
|
@jsii.member(jsii_name="attrDefinition")
|
|
10354
11031
|
def attr_definition(self) -> _IResolvable_da3f097b:
|
|
@@ -10436,6 +11113,60 @@ class CfnFlowVersion(
|
|
|
10436
11113
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
10437
11114
|
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
10438
11115
|
|
|
11116
|
+
@jsii.data_type(
|
|
11117
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty",
|
|
11118
|
+
jsii_struct_bases=[],
|
|
11119
|
+
name_mapping={"agent_alias_arn": "agentAliasArn"},
|
|
11120
|
+
)
|
|
11121
|
+
class AgentFlowNodeConfigurationProperty:
|
|
11122
|
+
def __init__(self, *, agent_alias_arn: builtins.str) -> None:
|
|
11123
|
+
'''Defines an agent node in your flow.
|
|
11124
|
+
|
|
11125
|
+
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.
|
|
11126
|
+
|
|
11127
|
+
:param agent_alias_arn: The Amazon Resource Name (ARN) of the alias of the agent to invoke.
|
|
11128
|
+
|
|
11129
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-agentflownodeconfiguration.html
|
|
11130
|
+
:exampleMetadata: fixture=_generated
|
|
11131
|
+
|
|
11132
|
+
Example::
|
|
11133
|
+
|
|
11134
|
+
# The code below shows an example of how to instantiate this type.
|
|
11135
|
+
# The values are placeholders you should change.
|
|
11136
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
11137
|
+
|
|
11138
|
+
agent_flow_node_configuration_property = bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty(
|
|
11139
|
+
agent_alias_arn="agentAliasArn"
|
|
11140
|
+
)
|
|
11141
|
+
'''
|
|
11142
|
+
if __debug__:
|
|
11143
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d2f9b914c5d40c946bff1dbcc6c016aacfab4e4b5c8f2a45cb392c7a1adb7083)
|
|
11144
|
+
check_type(argname="argument agent_alias_arn", value=agent_alias_arn, expected_type=type_hints["agent_alias_arn"])
|
|
11145
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
11146
|
+
"agent_alias_arn": agent_alias_arn,
|
|
11147
|
+
}
|
|
11148
|
+
|
|
11149
|
+
@builtins.property
|
|
11150
|
+
def agent_alias_arn(self) -> builtins.str:
|
|
11151
|
+
'''The Amazon Resource Name (ARN) of the alias of the agent to invoke.
|
|
11152
|
+
|
|
11153
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-agentflownodeconfiguration.html#cfn-bedrock-flowversion-agentflownodeconfiguration-agentaliasarn
|
|
11154
|
+
'''
|
|
11155
|
+
result = self._values.get("agent_alias_arn")
|
|
11156
|
+
assert result is not None, "Required property 'agent_alias_arn' is missing"
|
|
11157
|
+
return typing.cast(builtins.str, result)
|
|
11158
|
+
|
|
11159
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
11160
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
11161
|
+
|
|
11162
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
11163
|
+
return not (rhs == self)
|
|
11164
|
+
|
|
11165
|
+
def __repr__(self) -> str:
|
|
11166
|
+
return "AgentFlowNodeConfigurationProperty(%s)" % ", ".join(
|
|
11167
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
11168
|
+
)
|
|
11169
|
+
|
|
10439
11170
|
@jsii.data_type(
|
|
10440
11171
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty",
|
|
10441
11172
|
jsii_struct_bases=[],
|
|
@@ -10942,7 +11673,9 @@ class CfnFlowVersion(
|
|
|
10942
11673
|
# The values are placeholders you should change.
|
|
10943
11674
|
from aws_cdk import aws_bedrock as bedrock
|
|
10944
11675
|
|
|
11676
|
+
# collector: Any
|
|
10945
11677
|
# input: Any
|
|
11678
|
+
# iterator: Any
|
|
10946
11679
|
# output: Any
|
|
10947
11680
|
|
|
10948
11681
|
flow_definition_property = bedrock.CfnFlowVersion.FlowDefinitionProperty(
|
|
@@ -10969,6 +11702,10 @@ class CfnFlowVersion(
|
|
|
10969
11702
|
|
|
10970
11703
|
# the properties below are optional
|
|
10971
11704
|
configuration=bedrock.CfnFlowVersion.FlowNodeConfigurationProperty(
|
|
11705
|
+
agent=bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty(
|
|
11706
|
+
agent_alias_arn="agentAliasArn"
|
|
11707
|
+
),
|
|
11708
|
+
collector=collector,
|
|
10972
11709
|
condition=bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty(
|
|
10973
11710
|
conditions=[bedrock.CfnFlowVersion.FlowConditionProperty(
|
|
10974
11711
|
name="name",
|
|
@@ -10978,6 +11715,7 @@ class CfnFlowVersion(
|
|
|
10978
11715
|
)]
|
|
10979
11716
|
),
|
|
10980
11717
|
input=input,
|
|
11718
|
+
iterator=iterator,
|
|
10981
11719
|
knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
10982
11720
|
knowledge_base_id="knowledgeBaseId",
|
|
10983
11721
|
|
|
@@ -11023,6 +11761,20 @@ class CfnFlowVersion(
|
|
|
11023
11761
|
prompt_arn="promptArn"
|
|
11024
11762
|
)
|
|
11025
11763
|
)
|
|
11764
|
+
),
|
|
11765
|
+
retrieval=bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty(
|
|
11766
|
+
service_configuration=bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty(
|
|
11767
|
+
s3=bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty(
|
|
11768
|
+
bucket_name="bucketName"
|
|
11769
|
+
)
|
|
11770
|
+
)
|
|
11771
|
+
),
|
|
11772
|
+
storage=bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty(
|
|
11773
|
+
service_configuration=bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty(
|
|
11774
|
+
s3=bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty(
|
|
11775
|
+
bucket_name="bucketName"
|
|
11776
|
+
)
|
|
11777
|
+
)
|
|
11026
11778
|
)
|
|
11027
11779
|
),
|
|
11028
11780
|
inputs=[bedrock.CfnFlowVersion.FlowNodeInputProperty(
|
|
@@ -11084,38 +11836,53 @@ class CfnFlowVersion(
|
|
|
11084
11836
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.FlowNodeConfigurationProperty",
|
|
11085
11837
|
jsii_struct_bases=[],
|
|
11086
11838
|
name_mapping={
|
|
11839
|
+
"agent": "agent",
|
|
11840
|
+
"collector": "collector",
|
|
11087
11841
|
"condition": "condition",
|
|
11088
11842
|
"input": "input",
|
|
11843
|
+
"iterator": "iterator",
|
|
11089
11844
|
"knowledge_base": "knowledgeBase",
|
|
11090
11845
|
"lambda_function": "lambdaFunction",
|
|
11091
11846
|
"lex": "lex",
|
|
11092
11847
|
"output": "output",
|
|
11093
11848
|
"prompt": "prompt",
|
|
11849
|
+
"retrieval": "retrieval",
|
|
11850
|
+
"storage": "storage",
|
|
11094
11851
|
},
|
|
11095
11852
|
)
|
|
11096
11853
|
class FlowNodeConfigurationProperty:
|
|
11097
11854
|
def __init__(
|
|
11098
11855
|
self,
|
|
11099
11856
|
*,
|
|
11857
|
+
agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.AgentFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11858
|
+
collector: typing.Any = None,
|
|
11100
11859
|
condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.ConditionFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11101
11860
|
input: typing.Any = None,
|
|
11861
|
+
iterator: typing.Any = None,
|
|
11102
11862
|
knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11103
11863
|
lambda_function: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11104
11864
|
lex: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.LexFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11105
11865
|
output: typing.Any = None,
|
|
11106
11866
|
prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.PromptFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11867
|
+
retrieval: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.RetrievalFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11868
|
+
storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.StorageFlowNodeConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
11107
11869
|
) -> None:
|
|
11108
11870
|
'''Contains configurations for a node in your flow.
|
|
11109
11871
|
|
|
11110
11872
|
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.
|
|
11111
11873
|
|
|
11874
|
+
:param agent: Contains configurations for an agent node in your flow. Invokes an alias of an agent and returns the response.
|
|
11875
|
+
:param collector: Contains configurations for a collector node in your flow. Collects an iteration of inputs and consolidates them into an array of outputs.
|
|
11112
11876
|
:param condition: Contains configurations for a Condition node in your flow. Defines conditions that lead to different branches of the flow.
|
|
11113
11877
|
: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.
|
|
11878
|
+
: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.
|
|
11114
11879
|
: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.
|
|
11115
11880
|
:param lambda_function: Contains configurations for a Lambda function node in your flow. Invokes an AWS Lambda function.
|
|
11116
11881
|
:param lex: Contains configurations for a Lex node in your flow. Invokes an Amazon Lex bot to identify the intent of the input and return the intent as the output.
|
|
11117
11882
|
:param output: Contains configurations for an output flow node in your flow. The last node in the flow. ``outputs`` can't be specified for this node.
|
|
11118
11883
|
:param prompt: Contains configurations for a prompt node in your flow. Runs a prompt and generates the model response as the output. You can use a prompt from Prompt management or you can configure one in this node.
|
|
11884
|
+
:param retrieval: Contains configurations for a Retrieval node in your flow. Retrieves data from an Amazon S3 location and returns it as the output.
|
|
11885
|
+
:param storage: Contains configurations for a Storage node in your flow. Stores an input in an Amazon S3 location.
|
|
11119
11886
|
|
|
11120
11887
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html
|
|
11121
11888
|
:exampleMetadata: fixture=_generated
|
|
@@ -11126,10 +11893,16 @@ class CfnFlowVersion(
|
|
|
11126
11893
|
# The values are placeholders you should change.
|
|
11127
11894
|
from aws_cdk import aws_bedrock as bedrock
|
|
11128
11895
|
|
|
11896
|
+
# collector: Any
|
|
11129
11897
|
# input: Any
|
|
11898
|
+
# iterator: Any
|
|
11130
11899
|
# output: Any
|
|
11131
11900
|
|
|
11132
11901
|
flow_node_configuration_property = bedrock.CfnFlowVersion.FlowNodeConfigurationProperty(
|
|
11902
|
+
agent=bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty(
|
|
11903
|
+
agent_alias_arn="agentAliasArn"
|
|
11904
|
+
),
|
|
11905
|
+
collector=collector,
|
|
11133
11906
|
condition=bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty(
|
|
11134
11907
|
conditions=[bedrock.CfnFlowVersion.FlowConditionProperty(
|
|
11135
11908
|
name="name",
|
|
@@ -11139,6 +11912,7 @@ class CfnFlowVersion(
|
|
|
11139
11912
|
)]
|
|
11140
11913
|
),
|
|
11141
11914
|
input=input,
|
|
11915
|
+
iterator=iterator,
|
|
11142
11916
|
knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
11143
11917
|
knowledge_base_id="knowledgeBaseId",
|
|
11144
11918
|
|
|
@@ -11184,23 +11958,48 @@ class CfnFlowVersion(
|
|
|
11184
11958
|
prompt_arn="promptArn"
|
|
11185
11959
|
)
|
|
11186
11960
|
)
|
|
11961
|
+
),
|
|
11962
|
+
retrieval=bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty(
|
|
11963
|
+
service_configuration=bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty(
|
|
11964
|
+
s3=bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty(
|
|
11965
|
+
bucket_name="bucketName"
|
|
11966
|
+
)
|
|
11967
|
+
)
|
|
11968
|
+
),
|
|
11969
|
+
storage=bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty(
|
|
11970
|
+
service_configuration=bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty(
|
|
11971
|
+
s3=bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty(
|
|
11972
|
+
bucket_name="bucketName"
|
|
11973
|
+
)
|
|
11974
|
+
)
|
|
11187
11975
|
)
|
|
11188
11976
|
)
|
|
11189
11977
|
'''
|
|
11190
11978
|
if __debug__:
|
|
11191
11979
|
type_hints = typing.get_type_hints(_typecheckingstub__f9cd0cd05b1dd568a6031e23179baa28ec1045e1a40b1eda1f4240278fd28f94)
|
|
11980
|
+
check_type(argname="argument agent", value=agent, expected_type=type_hints["agent"])
|
|
11981
|
+
check_type(argname="argument collector", value=collector, expected_type=type_hints["collector"])
|
|
11192
11982
|
check_type(argname="argument condition", value=condition, expected_type=type_hints["condition"])
|
|
11193
11983
|
check_type(argname="argument input", value=input, expected_type=type_hints["input"])
|
|
11984
|
+
check_type(argname="argument iterator", value=iterator, expected_type=type_hints["iterator"])
|
|
11194
11985
|
check_type(argname="argument knowledge_base", value=knowledge_base, expected_type=type_hints["knowledge_base"])
|
|
11195
11986
|
check_type(argname="argument lambda_function", value=lambda_function, expected_type=type_hints["lambda_function"])
|
|
11196
11987
|
check_type(argname="argument lex", value=lex, expected_type=type_hints["lex"])
|
|
11197
11988
|
check_type(argname="argument output", value=output, expected_type=type_hints["output"])
|
|
11198
11989
|
check_type(argname="argument prompt", value=prompt, expected_type=type_hints["prompt"])
|
|
11990
|
+
check_type(argname="argument retrieval", value=retrieval, expected_type=type_hints["retrieval"])
|
|
11991
|
+
check_type(argname="argument storage", value=storage, expected_type=type_hints["storage"])
|
|
11199
11992
|
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
11993
|
+
if agent is not None:
|
|
11994
|
+
self._values["agent"] = agent
|
|
11995
|
+
if collector is not None:
|
|
11996
|
+
self._values["collector"] = collector
|
|
11200
11997
|
if condition is not None:
|
|
11201
11998
|
self._values["condition"] = condition
|
|
11202
11999
|
if input is not None:
|
|
11203
12000
|
self._values["input"] = input
|
|
12001
|
+
if iterator is not None:
|
|
12002
|
+
self._values["iterator"] = iterator
|
|
11204
12003
|
if knowledge_base is not None:
|
|
11205
12004
|
self._values["knowledge_base"] = knowledge_base
|
|
11206
12005
|
if lambda_function is not None:
|
|
@@ -11211,6 +12010,34 @@ class CfnFlowVersion(
|
|
|
11211
12010
|
self._values["output"] = output
|
|
11212
12011
|
if prompt is not None:
|
|
11213
12012
|
self._values["prompt"] = prompt
|
|
12013
|
+
if retrieval is not None:
|
|
12014
|
+
self._values["retrieval"] = retrieval
|
|
12015
|
+
if storage is not None:
|
|
12016
|
+
self._values["storage"] = storage
|
|
12017
|
+
|
|
12018
|
+
@builtins.property
|
|
12019
|
+
def agent(
|
|
12020
|
+
self,
|
|
12021
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.AgentFlowNodeConfigurationProperty"]]:
|
|
12022
|
+
'''Contains configurations for an agent node in your flow.
|
|
12023
|
+
|
|
12024
|
+
Invokes an alias of an agent and returns the response.
|
|
12025
|
+
|
|
12026
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-agent
|
|
12027
|
+
'''
|
|
12028
|
+
result = self._values.get("agent")
|
|
12029
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.AgentFlowNodeConfigurationProperty"]], result)
|
|
12030
|
+
|
|
12031
|
+
@builtins.property
|
|
12032
|
+
def collector(self) -> typing.Any:
|
|
12033
|
+
'''Contains configurations for a collector node in your flow.
|
|
12034
|
+
|
|
12035
|
+
Collects an iteration of inputs and consolidates them into an array of outputs.
|
|
12036
|
+
|
|
12037
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-collector
|
|
12038
|
+
'''
|
|
12039
|
+
result = self._values.get("collector")
|
|
12040
|
+
return typing.cast(typing.Any, result)
|
|
11214
12041
|
|
|
11215
12042
|
@builtins.property
|
|
11216
12043
|
def condition(
|
|
@@ -11236,6 +12063,19 @@ class CfnFlowVersion(
|
|
|
11236
12063
|
result = self._values.get("input")
|
|
11237
12064
|
return typing.cast(typing.Any, result)
|
|
11238
12065
|
|
|
12066
|
+
@builtins.property
|
|
12067
|
+
def iterator(self) -> typing.Any:
|
|
12068
|
+
'''Contains configurations for an iterator node in your flow.
|
|
12069
|
+
|
|
12070
|
+
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.
|
|
12071
|
+
|
|
12072
|
+
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.
|
|
12073
|
+
|
|
12074
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-iterator
|
|
12075
|
+
'''
|
|
12076
|
+
result = self._values.get("iterator")
|
|
12077
|
+
return typing.cast(typing.Any, result)
|
|
12078
|
+
|
|
11239
12079
|
@builtins.property
|
|
11240
12080
|
def knowledge_base(
|
|
11241
12081
|
self,
|
|
@@ -11299,6 +12139,32 @@ class CfnFlowVersion(
|
|
|
11299
12139
|
result = self._values.get("prompt")
|
|
11300
12140
|
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.PromptFlowNodeConfigurationProperty"]], result)
|
|
11301
12141
|
|
|
12142
|
+
@builtins.property
|
|
12143
|
+
def retrieval(
|
|
12144
|
+
self,
|
|
12145
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.RetrievalFlowNodeConfigurationProperty"]]:
|
|
12146
|
+
'''Contains configurations for a Retrieval node in your flow.
|
|
12147
|
+
|
|
12148
|
+
Retrieves data from an Amazon S3 location and returns it as the output.
|
|
12149
|
+
|
|
12150
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-retrieval
|
|
12151
|
+
'''
|
|
12152
|
+
result = self._values.get("retrieval")
|
|
12153
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.RetrievalFlowNodeConfigurationProperty"]], result)
|
|
12154
|
+
|
|
12155
|
+
@builtins.property
|
|
12156
|
+
def storage(
|
|
12157
|
+
self,
|
|
12158
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.StorageFlowNodeConfigurationProperty"]]:
|
|
12159
|
+
'''Contains configurations for a Storage node in your flow.
|
|
12160
|
+
|
|
12161
|
+
Stores an input in an Amazon S3 location.
|
|
12162
|
+
|
|
12163
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-flownodeconfiguration.html#cfn-bedrock-flowversion-flownodeconfiguration-storage
|
|
12164
|
+
'''
|
|
12165
|
+
result = self._values.get("storage")
|
|
12166
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.StorageFlowNodeConfigurationProperty"]], result)
|
|
12167
|
+
|
|
11302
12168
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
11303
12169
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
11304
12170
|
|
|
@@ -11506,7 +12372,9 @@ class CfnFlowVersion(
|
|
|
11506
12372
|
# The values are placeholders you should change.
|
|
11507
12373
|
from aws_cdk import aws_bedrock as bedrock
|
|
11508
12374
|
|
|
12375
|
+
# collector: Any
|
|
11509
12376
|
# input: Any
|
|
12377
|
+
# iterator: Any
|
|
11510
12378
|
# output: Any
|
|
11511
12379
|
|
|
11512
12380
|
flow_node_property = bedrock.CfnFlowVersion.FlowNodeProperty(
|
|
@@ -11515,6 +12383,10 @@ class CfnFlowVersion(
|
|
|
11515
12383
|
|
|
11516
12384
|
# the properties below are optional
|
|
11517
12385
|
configuration=bedrock.CfnFlowVersion.FlowNodeConfigurationProperty(
|
|
12386
|
+
agent=bedrock.CfnFlowVersion.AgentFlowNodeConfigurationProperty(
|
|
12387
|
+
agent_alias_arn="agentAliasArn"
|
|
12388
|
+
),
|
|
12389
|
+
collector=collector,
|
|
11518
12390
|
condition=bedrock.CfnFlowVersion.ConditionFlowNodeConfigurationProperty(
|
|
11519
12391
|
conditions=[bedrock.CfnFlowVersion.FlowConditionProperty(
|
|
11520
12392
|
name="name",
|
|
@@ -11524,6 +12396,7 @@ class CfnFlowVersion(
|
|
|
11524
12396
|
)]
|
|
11525
12397
|
),
|
|
11526
12398
|
input=input,
|
|
12399
|
+
iterator=iterator,
|
|
11527
12400
|
knowledge_base=bedrock.CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty(
|
|
11528
12401
|
knowledge_base_id="knowledgeBaseId",
|
|
11529
12402
|
|
|
@@ -11569,6 +12442,20 @@ class CfnFlowVersion(
|
|
|
11569
12442
|
prompt_arn="promptArn"
|
|
11570
12443
|
)
|
|
11571
12444
|
)
|
|
12445
|
+
),
|
|
12446
|
+
retrieval=bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty(
|
|
12447
|
+
service_configuration=bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty(
|
|
12448
|
+
s3=bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty(
|
|
12449
|
+
bucket_name="bucketName"
|
|
12450
|
+
)
|
|
12451
|
+
)
|
|
12452
|
+
),
|
|
12453
|
+
storage=bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty(
|
|
12454
|
+
service_configuration=bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty(
|
|
12455
|
+
s3=bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty(
|
|
12456
|
+
bucket_name="bucketName"
|
|
12457
|
+
)
|
|
12458
|
+
)
|
|
11572
12459
|
)
|
|
11573
12460
|
),
|
|
11574
12461
|
inputs=[bedrock.CfnFlowVersion.FlowNodeInputProperty(
|
|
@@ -12404,70 +13291,428 @@ class CfnFlowVersion(
|
|
|
12404
13291
|
)
|
|
12405
13292
|
'''
|
|
12406
13293
|
if __debug__:
|
|
12407
|
-
type_hints = typing.get_type_hints(_typecheckingstub__296008f3af7867aca83108accdbdf386a68d143c6a178bb785d89777bebf4b04)
|
|
12408
|
-
check_type(argname="argument max_tokens", value=max_tokens, expected_type=type_hints["max_tokens"])
|
|
12409
|
-
check_type(argname="argument stop_sequences", value=stop_sequences, expected_type=type_hints["stop_sequences"])
|
|
12410
|
-
check_type(argname="argument temperature", value=temperature, expected_type=type_hints["temperature"])
|
|
12411
|
-
check_type(argname="argument top_k", value=top_k, expected_type=type_hints["top_k"])
|
|
12412
|
-
check_type(argname="argument top_p", value=top_p, expected_type=type_hints["top_p"])
|
|
12413
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
12414
|
-
if max_tokens is not None:
|
|
12415
|
-
self._values["max_tokens"] = max_tokens
|
|
12416
|
-
if stop_sequences is not None:
|
|
12417
|
-
self._values["stop_sequences"] = stop_sequences
|
|
12418
|
-
if temperature is not None:
|
|
12419
|
-
self._values["temperature"] = temperature
|
|
12420
|
-
if top_k is not None:
|
|
12421
|
-
self._values["top_k"] = top_k
|
|
12422
|
-
if top_p is not None:
|
|
12423
|
-
self._values["top_p"] = top_p
|
|
13294
|
+
type_hints = typing.get_type_hints(_typecheckingstub__296008f3af7867aca83108accdbdf386a68d143c6a178bb785d89777bebf4b04)
|
|
13295
|
+
check_type(argname="argument max_tokens", value=max_tokens, expected_type=type_hints["max_tokens"])
|
|
13296
|
+
check_type(argname="argument stop_sequences", value=stop_sequences, expected_type=type_hints["stop_sequences"])
|
|
13297
|
+
check_type(argname="argument temperature", value=temperature, expected_type=type_hints["temperature"])
|
|
13298
|
+
check_type(argname="argument top_k", value=top_k, expected_type=type_hints["top_k"])
|
|
13299
|
+
check_type(argname="argument top_p", value=top_p, expected_type=type_hints["top_p"])
|
|
13300
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
13301
|
+
if max_tokens is not None:
|
|
13302
|
+
self._values["max_tokens"] = max_tokens
|
|
13303
|
+
if stop_sequences is not None:
|
|
13304
|
+
self._values["stop_sequences"] = stop_sequences
|
|
13305
|
+
if temperature is not None:
|
|
13306
|
+
self._values["temperature"] = temperature
|
|
13307
|
+
if top_k is not None:
|
|
13308
|
+
self._values["top_k"] = top_k
|
|
13309
|
+
if top_p is not None:
|
|
13310
|
+
self._values["top_p"] = top_p
|
|
13311
|
+
|
|
13312
|
+
@builtins.property
|
|
13313
|
+
def max_tokens(self) -> typing.Optional[jsii.Number]:
|
|
13314
|
+
'''The maximum number of tokens to return in the response.
|
|
13315
|
+
|
|
13316
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-maxtokens
|
|
13317
|
+
'''
|
|
13318
|
+
result = self._values.get("max_tokens")
|
|
13319
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
13320
|
+
|
|
13321
|
+
@builtins.property
|
|
13322
|
+
def stop_sequences(self) -> typing.Optional[typing.List[builtins.str]]:
|
|
13323
|
+
'''A list of strings that define sequences after which the model will stop generating.
|
|
13324
|
+
|
|
13325
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-stopsequences
|
|
13326
|
+
'''
|
|
13327
|
+
result = self._values.get("stop_sequences")
|
|
13328
|
+
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
13329
|
+
|
|
13330
|
+
@builtins.property
|
|
13331
|
+
def temperature(self) -> typing.Optional[jsii.Number]:
|
|
13332
|
+
'''Controls the randomness of the response.
|
|
13333
|
+
|
|
13334
|
+
Choose a lower value for more predictable outputs and a higher value for more surprising outputs.
|
|
13335
|
+
|
|
13336
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-temperature
|
|
13337
|
+
'''
|
|
13338
|
+
result = self._values.get("temperature")
|
|
13339
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
13340
|
+
|
|
13341
|
+
@builtins.property
|
|
13342
|
+
def top_k(self) -> typing.Optional[jsii.Number]:
|
|
13343
|
+
'''The number of most-likely candidates that the model considers for the next token during generation.
|
|
13344
|
+
|
|
13345
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-topk
|
|
13346
|
+
'''
|
|
13347
|
+
result = self._values.get("top_k")
|
|
13348
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
13349
|
+
|
|
13350
|
+
@builtins.property
|
|
13351
|
+
def top_p(self) -> typing.Optional[jsii.Number]:
|
|
13352
|
+
'''The percentage of most-likely candidates that the model considers for the next token.
|
|
13353
|
+
|
|
13354
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-promptmodelinferenceconfiguration.html#cfn-bedrock-flowversion-promptmodelinferenceconfiguration-topp
|
|
13355
|
+
'''
|
|
13356
|
+
result = self._values.get("top_p")
|
|
13357
|
+
return typing.cast(typing.Optional[jsii.Number], result)
|
|
13358
|
+
|
|
13359
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
13360
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
13361
|
+
|
|
13362
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
13363
|
+
return not (rhs == self)
|
|
13364
|
+
|
|
13365
|
+
def __repr__(self) -> str:
|
|
13366
|
+
return "PromptModelInferenceConfigurationProperty(%s)" % ", ".join(
|
|
13367
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
13368
|
+
)
|
|
13369
|
+
|
|
13370
|
+
@jsii.data_type(
|
|
13371
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty",
|
|
13372
|
+
jsii_struct_bases=[],
|
|
13373
|
+
name_mapping={"text": "text"},
|
|
13374
|
+
)
|
|
13375
|
+
class PromptTemplateConfigurationProperty:
|
|
13376
|
+
def __init__(
|
|
13377
|
+
self,
|
|
13378
|
+
*,
|
|
13379
|
+
text: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.TextPromptTemplateConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
13380
|
+
) -> None:
|
|
13381
|
+
'''Contains the message for a prompt.
|
|
13382
|
+
|
|
13383
|
+
For more information, see `Prompt management in Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html>`_ .
|
|
13384
|
+
|
|
13385
|
+
:param text: Contains configurations for the text in a message for a prompt.
|
|
13386
|
+
|
|
13387
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-prompttemplateconfiguration.html
|
|
13388
|
+
:exampleMetadata: fixture=_generated
|
|
13389
|
+
|
|
13390
|
+
Example::
|
|
13391
|
+
|
|
13392
|
+
# The code below shows an example of how to instantiate this type.
|
|
13393
|
+
# The values are placeholders you should change.
|
|
13394
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
13395
|
+
|
|
13396
|
+
prompt_template_configuration_property = bedrock.CfnFlowVersion.PromptTemplateConfigurationProperty(
|
|
13397
|
+
text=bedrock.CfnFlowVersion.TextPromptTemplateConfigurationProperty(
|
|
13398
|
+
text="text",
|
|
13399
|
+
|
|
13400
|
+
# the properties below are optional
|
|
13401
|
+
input_variables=[bedrock.CfnFlowVersion.PromptInputVariableProperty(
|
|
13402
|
+
name="name"
|
|
13403
|
+
)]
|
|
13404
|
+
)
|
|
13405
|
+
)
|
|
13406
|
+
'''
|
|
13407
|
+
if __debug__:
|
|
13408
|
+
type_hints = typing.get_type_hints(_typecheckingstub__cdae5ed58ab50ea65740dfb331694cb5fd8ad547ccbbbedbe809c7f9ff9e72d1)
|
|
13409
|
+
check_type(argname="argument text", value=text, expected_type=type_hints["text"])
|
|
13410
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13411
|
+
"text": text,
|
|
13412
|
+
}
|
|
13413
|
+
|
|
13414
|
+
@builtins.property
|
|
13415
|
+
def text(
|
|
13416
|
+
self,
|
|
13417
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.TextPromptTemplateConfigurationProperty"]:
|
|
13418
|
+
'''Contains configurations for the text in a message for a prompt.
|
|
13419
|
+
|
|
13420
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-prompttemplateconfiguration.html#cfn-bedrock-flowversion-prompttemplateconfiguration-text
|
|
13421
|
+
'''
|
|
13422
|
+
result = self._values.get("text")
|
|
13423
|
+
assert result is not None, "Required property 'text' is missing"
|
|
13424
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.TextPromptTemplateConfigurationProperty"], result)
|
|
13425
|
+
|
|
13426
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
13427
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
13428
|
+
|
|
13429
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
13430
|
+
return not (rhs == self)
|
|
13431
|
+
|
|
13432
|
+
def __repr__(self) -> str:
|
|
13433
|
+
return "PromptTemplateConfigurationProperty(%s)" % ", ".join(
|
|
13434
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
13435
|
+
)
|
|
13436
|
+
|
|
13437
|
+
@jsii.data_type(
|
|
13438
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty",
|
|
13439
|
+
jsii_struct_bases=[],
|
|
13440
|
+
name_mapping={"service_configuration": "serviceConfiguration"},
|
|
13441
|
+
)
|
|
13442
|
+
class RetrievalFlowNodeConfigurationProperty:
|
|
13443
|
+
def __init__(
|
|
13444
|
+
self,
|
|
13445
|
+
*,
|
|
13446
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
13447
|
+
) -> None:
|
|
13448
|
+
'''Contains configurations for a Retrieval node in a flow.
|
|
13449
|
+
|
|
13450
|
+
This node retrieves data from the Amazon S3 location that you specify and returns it as the output.
|
|
13451
|
+
|
|
13452
|
+
:param service_configuration: Contains configurations for the service to use for retrieving data to return as the output from the node.
|
|
13453
|
+
|
|
13454
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeconfiguration.html
|
|
13455
|
+
:exampleMetadata: fixture=_generated
|
|
13456
|
+
|
|
13457
|
+
Example::
|
|
13458
|
+
|
|
13459
|
+
# The code below shows an example of how to instantiate this type.
|
|
13460
|
+
# The values are placeholders you should change.
|
|
13461
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
13462
|
+
|
|
13463
|
+
retrieval_flow_node_configuration_property = bedrock.CfnFlowVersion.RetrievalFlowNodeConfigurationProperty(
|
|
13464
|
+
service_configuration=bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty(
|
|
13465
|
+
s3=bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty(
|
|
13466
|
+
bucket_name="bucketName"
|
|
13467
|
+
)
|
|
13468
|
+
)
|
|
13469
|
+
)
|
|
13470
|
+
'''
|
|
13471
|
+
if __debug__:
|
|
13472
|
+
type_hints = typing.get_type_hints(_typecheckingstub__1b2ccf635b97ea636e11b91f8e9192a84ab3e4b666d226ecff9668ddba28f3fc)
|
|
13473
|
+
check_type(argname="argument service_configuration", value=service_configuration, expected_type=type_hints["service_configuration"])
|
|
13474
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13475
|
+
"service_configuration": service_configuration,
|
|
13476
|
+
}
|
|
13477
|
+
|
|
13478
|
+
@builtins.property
|
|
13479
|
+
def service_configuration(
|
|
13480
|
+
self,
|
|
13481
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty"]:
|
|
13482
|
+
'''Contains configurations for the service to use for retrieving data to return as the output from the node.
|
|
13483
|
+
|
|
13484
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeconfiguration.html#cfn-bedrock-flowversion-retrievalflownodeconfiguration-serviceconfiguration
|
|
13485
|
+
'''
|
|
13486
|
+
result = self._values.get("service_configuration")
|
|
13487
|
+
assert result is not None, "Required property 'service_configuration' is missing"
|
|
13488
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty"], result)
|
|
13489
|
+
|
|
13490
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
13491
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
13492
|
+
|
|
13493
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
13494
|
+
return not (rhs == self)
|
|
13495
|
+
|
|
13496
|
+
def __repr__(self) -> str:
|
|
13497
|
+
return "RetrievalFlowNodeConfigurationProperty(%s)" % ", ".join(
|
|
13498
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
13499
|
+
)
|
|
13500
|
+
|
|
13501
|
+
@jsii.data_type(
|
|
13502
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty",
|
|
13503
|
+
jsii_struct_bases=[],
|
|
13504
|
+
name_mapping={"bucket_name": "bucketName"},
|
|
13505
|
+
)
|
|
13506
|
+
class RetrievalFlowNodeS3ConfigurationProperty:
|
|
13507
|
+
def __init__(self, *, bucket_name: builtins.str) -> None:
|
|
13508
|
+
'''Contains configurations for the Amazon S3 location from which to retrieve data to return as the output from the node.
|
|
13509
|
+
|
|
13510
|
+
:param bucket_name: The name of the Amazon S3 bucket from which to retrieve data.
|
|
13511
|
+
|
|
13512
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodes3configuration.html
|
|
13513
|
+
:exampleMetadata: fixture=_generated
|
|
13514
|
+
|
|
13515
|
+
Example::
|
|
13516
|
+
|
|
13517
|
+
# The code below shows an example of how to instantiate this type.
|
|
13518
|
+
# The values are placeholders you should change.
|
|
13519
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
13520
|
+
|
|
13521
|
+
retrieval_flow_node_s3_configuration_property = bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty(
|
|
13522
|
+
bucket_name="bucketName"
|
|
13523
|
+
)
|
|
13524
|
+
'''
|
|
13525
|
+
if __debug__:
|
|
13526
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d571fce6026f6906d4b9877f76350900eb2d36b8c98f0f49cc0a67b541cd27c7)
|
|
13527
|
+
check_type(argname="argument bucket_name", value=bucket_name, expected_type=type_hints["bucket_name"])
|
|
13528
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13529
|
+
"bucket_name": bucket_name,
|
|
13530
|
+
}
|
|
13531
|
+
|
|
13532
|
+
@builtins.property
|
|
13533
|
+
def bucket_name(self) -> builtins.str:
|
|
13534
|
+
'''The name of the Amazon S3 bucket from which to retrieve data.
|
|
13535
|
+
|
|
13536
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodes3configuration.html#cfn-bedrock-flowversion-retrievalflownodes3configuration-bucketname
|
|
13537
|
+
'''
|
|
13538
|
+
result = self._values.get("bucket_name")
|
|
13539
|
+
assert result is not None, "Required property 'bucket_name' is missing"
|
|
13540
|
+
return typing.cast(builtins.str, result)
|
|
13541
|
+
|
|
13542
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
13543
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
13544
|
+
|
|
13545
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
13546
|
+
return not (rhs == self)
|
|
13547
|
+
|
|
13548
|
+
def __repr__(self) -> str:
|
|
13549
|
+
return "RetrievalFlowNodeS3ConfigurationProperty(%s)" % ", ".join(
|
|
13550
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
13551
|
+
)
|
|
13552
|
+
|
|
13553
|
+
@jsii.data_type(
|
|
13554
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty",
|
|
13555
|
+
jsii_struct_bases=[],
|
|
13556
|
+
name_mapping={"s3": "s3"},
|
|
13557
|
+
)
|
|
13558
|
+
class RetrievalFlowNodeServiceConfigurationProperty:
|
|
13559
|
+
def __init__(
|
|
13560
|
+
self,
|
|
13561
|
+
*,
|
|
13562
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
13563
|
+
) -> None:
|
|
13564
|
+
'''Contains configurations for the service to use for retrieving data to return as the output from the node.
|
|
13565
|
+
|
|
13566
|
+
:param s3: Contains configurations for the Amazon S3 location from which to retrieve data to return as the output from the node.
|
|
13567
|
+
|
|
13568
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeserviceconfiguration.html
|
|
13569
|
+
:exampleMetadata: fixture=_generated
|
|
13570
|
+
|
|
13571
|
+
Example::
|
|
13572
|
+
|
|
13573
|
+
# The code below shows an example of how to instantiate this type.
|
|
13574
|
+
# The values are placeholders you should change.
|
|
13575
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
13576
|
+
|
|
13577
|
+
retrieval_flow_node_service_configuration_property = bedrock.CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty(
|
|
13578
|
+
s3=bedrock.CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty(
|
|
13579
|
+
bucket_name="bucketName"
|
|
13580
|
+
)
|
|
13581
|
+
)
|
|
13582
|
+
'''
|
|
13583
|
+
if __debug__:
|
|
13584
|
+
type_hints = typing.get_type_hints(_typecheckingstub__21a7a1c7745fcff35d6a7be6ee612e1ed2dbb49e3565ed086db62ce1bc0649c5)
|
|
13585
|
+
check_type(argname="argument s3", value=s3, expected_type=type_hints["s3"])
|
|
13586
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
13587
|
+
if s3 is not None:
|
|
13588
|
+
self._values["s3"] = s3
|
|
13589
|
+
|
|
13590
|
+
@builtins.property
|
|
13591
|
+
def s3(
|
|
13592
|
+
self,
|
|
13593
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty"]]:
|
|
13594
|
+
'''Contains configurations for the Amazon S3 location from which to retrieve data to return as the output from the node.
|
|
13595
|
+
|
|
13596
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-retrievalflownodeserviceconfiguration.html#cfn-bedrock-flowversion-retrievalflownodeserviceconfiguration-s3
|
|
13597
|
+
'''
|
|
13598
|
+
result = self._values.get("s3")
|
|
13599
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty"]], result)
|
|
13600
|
+
|
|
13601
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
13602
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
13603
|
+
|
|
13604
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
13605
|
+
return not (rhs == self)
|
|
13606
|
+
|
|
13607
|
+
def __repr__(self) -> str:
|
|
13608
|
+
return "RetrievalFlowNodeServiceConfigurationProperty(%s)" % ", ".join(
|
|
13609
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
13610
|
+
)
|
|
13611
|
+
|
|
13612
|
+
@jsii.data_type(
|
|
13613
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty",
|
|
13614
|
+
jsii_struct_bases=[],
|
|
13615
|
+
name_mapping={"service_configuration": "serviceConfiguration"},
|
|
13616
|
+
)
|
|
13617
|
+
class StorageFlowNodeConfigurationProperty:
|
|
13618
|
+
def __init__(
|
|
13619
|
+
self,
|
|
13620
|
+
*,
|
|
13621
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty", typing.Dict[builtins.str, typing.Any]]],
|
|
13622
|
+
) -> None:
|
|
13623
|
+
'''Contains configurations for a Storage node in a flow.
|
|
13624
|
+
|
|
13625
|
+
This node stores the input in an Amazon S3 location that you specify.
|
|
13626
|
+
|
|
13627
|
+
:param service_configuration: Contains configurations for the service to use for storing the input into the node.
|
|
13628
|
+
|
|
13629
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeconfiguration.html
|
|
13630
|
+
:exampleMetadata: fixture=_generated
|
|
13631
|
+
|
|
13632
|
+
Example::
|
|
13633
|
+
|
|
13634
|
+
# The code below shows an example of how to instantiate this type.
|
|
13635
|
+
# The values are placeholders you should change.
|
|
13636
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
13637
|
+
|
|
13638
|
+
storage_flow_node_configuration_property = bedrock.CfnFlowVersion.StorageFlowNodeConfigurationProperty(
|
|
13639
|
+
service_configuration=bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty(
|
|
13640
|
+
s3=bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty(
|
|
13641
|
+
bucket_name="bucketName"
|
|
13642
|
+
)
|
|
13643
|
+
)
|
|
13644
|
+
)
|
|
13645
|
+
'''
|
|
13646
|
+
if __debug__:
|
|
13647
|
+
type_hints = typing.get_type_hints(_typecheckingstub__0fddcc2e5093ac996342f42863b40df2e48e76d811a4e482a7f5aea20b4d9627)
|
|
13648
|
+
check_type(argname="argument service_configuration", value=service_configuration, expected_type=type_hints["service_configuration"])
|
|
13649
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13650
|
+
"service_configuration": service_configuration,
|
|
13651
|
+
}
|
|
12424
13652
|
|
|
12425
13653
|
@builtins.property
|
|
12426
|
-
def
|
|
12427
|
-
|
|
13654
|
+
def service_configuration(
|
|
13655
|
+
self,
|
|
13656
|
+
) -> typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty"]:
|
|
13657
|
+
'''Contains configurations for the service to use for storing the input into the node.
|
|
12428
13658
|
|
|
12429
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-
|
|
13659
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeconfiguration.html#cfn-bedrock-flowversion-storageflownodeconfiguration-serviceconfiguration
|
|
12430
13660
|
'''
|
|
12431
|
-
result = self._values.get("
|
|
12432
|
-
|
|
13661
|
+
result = self._values.get("service_configuration")
|
|
13662
|
+
assert result is not None, "Required property 'service_configuration' is missing"
|
|
13663
|
+
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty"], result)
|
|
12433
13664
|
|
|
12434
|
-
|
|
12435
|
-
|
|
12436
|
-
'''A list of strings that define sequences after which the model will stop generating.
|
|
13665
|
+
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
13666
|
+
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
12437
13667
|
|
|
12438
|
-
|
|
12439
|
-
|
|
12440
|
-
result = self._values.get("stop_sequences")
|
|
12441
|
-
return typing.cast(typing.Optional[typing.List[builtins.str]], result)
|
|
13668
|
+
def __ne__(self, rhs: typing.Any) -> builtins.bool:
|
|
13669
|
+
return not (rhs == self)
|
|
12442
13670
|
|
|
12443
|
-
|
|
12444
|
-
|
|
12445
|
-
|
|
13671
|
+
def __repr__(self) -> str:
|
|
13672
|
+
return "StorageFlowNodeConfigurationProperty(%s)" % ", ".join(
|
|
13673
|
+
k + "=" + repr(v) for k, v in self._values.items()
|
|
13674
|
+
)
|
|
12446
13675
|
|
|
12447
|
-
|
|
13676
|
+
@jsii.data_type(
|
|
13677
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty",
|
|
13678
|
+
jsii_struct_bases=[],
|
|
13679
|
+
name_mapping={"bucket_name": "bucketName"},
|
|
13680
|
+
)
|
|
13681
|
+
class StorageFlowNodeS3ConfigurationProperty:
|
|
13682
|
+
def __init__(self, *, bucket_name: builtins.str) -> None:
|
|
13683
|
+
'''Contains configurations for the Amazon S3 location in which to store the input into the node.
|
|
12448
13684
|
|
|
12449
|
-
:
|
|
12450
|
-
'''
|
|
12451
|
-
result = self._values.get("temperature")
|
|
12452
|
-
return typing.cast(typing.Optional[jsii.Number], result)
|
|
13685
|
+
:param bucket_name: The name of the Amazon S3 bucket in which to store the input into the node.
|
|
12453
13686
|
|
|
12454
|
-
|
|
12455
|
-
|
|
12456
|
-
'''The number of most-likely candidates that the model considers for the next token during generation.
|
|
13687
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodes3configuration.html
|
|
13688
|
+
:exampleMetadata: fixture=_generated
|
|
12457
13689
|
|
|
12458
|
-
|
|
13690
|
+
Example::
|
|
13691
|
+
|
|
13692
|
+
# The code below shows an example of how to instantiate this type.
|
|
13693
|
+
# The values are placeholders you should change.
|
|
13694
|
+
from aws_cdk import aws_bedrock as bedrock
|
|
13695
|
+
|
|
13696
|
+
storage_flow_node_s3_configuration_property = bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty(
|
|
13697
|
+
bucket_name="bucketName"
|
|
13698
|
+
)
|
|
12459
13699
|
'''
|
|
12460
|
-
|
|
12461
|
-
|
|
13700
|
+
if __debug__:
|
|
13701
|
+
type_hints = typing.get_type_hints(_typecheckingstub__d7b9df955514d0838f602eb6266a08d2ac3018fb4196f94b2dbc2e715b8c4443)
|
|
13702
|
+
check_type(argname="argument bucket_name", value=bucket_name, expected_type=type_hints["bucket_name"])
|
|
13703
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
13704
|
+
"bucket_name": bucket_name,
|
|
13705
|
+
}
|
|
12462
13706
|
|
|
12463
13707
|
@builtins.property
|
|
12464
|
-
def
|
|
12465
|
-
'''The
|
|
13708
|
+
def bucket_name(self) -> builtins.str:
|
|
13709
|
+
'''The name of the Amazon S3 bucket in which to store the input into the node.
|
|
12466
13710
|
|
|
12467
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-
|
|
13711
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodes3configuration.html#cfn-bedrock-flowversion-storageflownodes3configuration-bucketname
|
|
12468
13712
|
'''
|
|
12469
|
-
result = self._values.get("
|
|
12470
|
-
|
|
13713
|
+
result = self._values.get("bucket_name")
|
|
13714
|
+
assert result is not None, "Required property 'bucket_name' is missing"
|
|
13715
|
+
return typing.cast(builtins.str, result)
|
|
12471
13716
|
|
|
12472
13717
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
12473
13718
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -12476,28 +13721,26 @@ class CfnFlowVersion(
|
|
|
12476
13721
|
return not (rhs == self)
|
|
12477
13722
|
|
|
12478
13723
|
def __repr__(self) -> str:
|
|
12479
|
-
return "
|
|
13724
|
+
return "StorageFlowNodeS3ConfigurationProperty(%s)" % ", ".join(
|
|
12480
13725
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
12481
13726
|
)
|
|
12482
13727
|
|
|
12483
13728
|
@jsii.data_type(
|
|
12484
|
-
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.
|
|
13729
|
+
jsii_type="aws-cdk-lib.aws_bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty",
|
|
12485
13730
|
jsii_struct_bases=[],
|
|
12486
|
-
name_mapping={"
|
|
13731
|
+
name_mapping={"s3": "s3"},
|
|
12487
13732
|
)
|
|
12488
|
-
class
|
|
13733
|
+
class StorageFlowNodeServiceConfigurationProperty:
|
|
12489
13734
|
def __init__(
|
|
12490
13735
|
self,
|
|
12491
13736
|
*,
|
|
12492
|
-
|
|
13737
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union["CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty", typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
12493
13738
|
) -> None:
|
|
12494
|
-
'''Contains the
|
|
12495
|
-
|
|
12496
|
-
For more information, see `Prompt management in Amazon Bedrock <https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-management.html>`_ .
|
|
13739
|
+
'''Contains configurations for the service to use for storing the input into the node.
|
|
12497
13740
|
|
|
12498
|
-
:param
|
|
13741
|
+
:param s3: Contains configurations for the Amazon S3 location in which to store the input into the node.
|
|
12499
13742
|
|
|
12500
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-
|
|
13743
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeserviceconfiguration.html
|
|
12501
13744
|
:exampleMetadata: fixture=_generated
|
|
12502
13745
|
|
|
12503
13746
|
Example::
|
|
@@ -12506,35 +13749,29 @@ class CfnFlowVersion(
|
|
|
12506
13749
|
# The values are placeholders you should change.
|
|
12507
13750
|
from aws_cdk import aws_bedrock as bedrock
|
|
12508
13751
|
|
|
12509
|
-
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
|
|
12513
|
-
# the properties below are optional
|
|
12514
|
-
input_variables=[bedrock.CfnFlowVersion.PromptInputVariableProperty(
|
|
12515
|
-
name="name"
|
|
12516
|
-
)]
|
|
13752
|
+
storage_flow_node_service_configuration_property = bedrock.CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty(
|
|
13753
|
+
s3=bedrock.CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty(
|
|
13754
|
+
bucket_name="bucketName"
|
|
12517
13755
|
)
|
|
12518
13756
|
)
|
|
12519
13757
|
'''
|
|
12520
13758
|
if __debug__:
|
|
12521
|
-
type_hints = typing.get_type_hints(
|
|
12522
|
-
check_type(argname="argument
|
|
12523
|
-
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
12524
|
-
|
|
12525
|
-
|
|
13759
|
+
type_hints = typing.get_type_hints(_typecheckingstub__000a8a0ee8692fbfb462ce4a24438d150dc2d6b8143c4e68df268bd52edde0f3)
|
|
13760
|
+
check_type(argname="argument s3", value=s3, expected_type=type_hints["s3"])
|
|
13761
|
+
self._values: typing.Dict[builtins.str, typing.Any] = {}
|
|
13762
|
+
if s3 is not None:
|
|
13763
|
+
self._values["s3"] = s3
|
|
12526
13764
|
|
|
12527
13765
|
@builtins.property
|
|
12528
|
-
def
|
|
13766
|
+
def s3(
|
|
12529
13767
|
self,
|
|
12530
|
-
) -> typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.
|
|
12531
|
-
'''Contains configurations for the
|
|
13768
|
+
) -> typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty"]]:
|
|
13769
|
+
'''Contains configurations for the Amazon S3 location in which to store the input into the node.
|
|
12532
13770
|
|
|
12533
|
-
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-
|
|
13771
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-bedrock-flowversion-storageflownodeserviceconfiguration.html#cfn-bedrock-flowversion-storageflownodeserviceconfiguration-s3
|
|
12534
13772
|
'''
|
|
12535
|
-
result = self._values.get("
|
|
12536
|
-
|
|
12537
|
-
return typing.cast(typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.TextPromptTemplateConfigurationProperty"], result)
|
|
13773
|
+
result = self._values.get("s3")
|
|
13774
|
+
return typing.cast(typing.Optional[typing.Union[_IResolvable_da3f097b, "CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty"]], result)
|
|
12538
13775
|
|
|
12539
13776
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
12540
13777
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
@@ -12543,7 +13780,7 @@ class CfnFlowVersion(
|
|
|
12543
13780
|
return not (rhs == self)
|
|
12544
13781
|
|
|
12545
13782
|
def __repr__(self) -> str:
|
|
12546
|
-
return "
|
|
13783
|
+
return "StorageFlowNodeServiceConfigurationProperty(%s)" % ", ".join(
|
|
12547
13784
|
k + "=" + repr(v) for k, v in self._values.items()
|
|
12548
13785
|
)
|
|
12549
13786
|
|
|
@@ -17351,7 +18588,7 @@ class CfnPromptProps:
|
|
|
17351
18588
|
)
|
|
17352
18589
|
|
|
17353
18590
|
|
|
17354
|
-
@jsii.implements(_IInspectable_c2943556)
|
|
18591
|
+
@jsii.implements(_IInspectable_c2943556, _ITaggableV2_4e6798f8)
|
|
17355
18592
|
class CfnPromptVersion(
|
|
17356
18593
|
_CfnResource_9df397a6,
|
|
17357
18594
|
metaclass=jsii.JSIIMeta,
|
|
@@ -17375,7 +18612,10 @@ class CfnPromptVersion(
|
|
|
17375
18612
|
prompt_arn="promptArn",
|
|
17376
18613
|
|
|
17377
18614
|
# the properties below are optional
|
|
17378
|
-
description="description"
|
|
18615
|
+
description="description",
|
|
18616
|
+
tags={
|
|
18617
|
+
"tags_key": "tags"
|
|
18618
|
+
}
|
|
17379
18619
|
)
|
|
17380
18620
|
'''
|
|
17381
18621
|
|
|
@@ -17386,18 +18626,22 @@ class CfnPromptVersion(
|
|
|
17386
18626
|
*,
|
|
17387
18627
|
prompt_arn: builtins.str,
|
|
17388
18628
|
description: typing.Optional[builtins.str] = None,
|
|
18629
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
17389
18630
|
) -> None:
|
|
17390
18631
|
'''
|
|
17391
18632
|
:param scope: Scope in which this resource is defined.
|
|
17392
18633
|
:param id: Construct identifier for this resource (unique in its scope).
|
|
17393
18634
|
:param prompt_arn: The Amazon Resource Name (ARN) of the version of the prompt.
|
|
17394
18635
|
:param description: The description of the prompt version.
|
|
18636
|
+
:param tags: A map of tag keys and values.
|
|
17395
18637
|
'''
|
|
17396
18638
|
if __debug__:
|
|
17397
18639
|
type_hints = typing.get_type_hints(_typecheckingstub__655fee944eb77092f564ba8ce6cc99b8af558f5e4f24168d280a8d548f092789)
|
|
17398
18640
|
check_type(argname="argument scope", value=scope, expected_type=type_hints["scope"])
|
|
17399
18641
|
check_type(argname="argument id", value=id, expected_type=type_hints["id"])
|
|
17400
|
-
props = CfnPromptVersionProps(
|
|
18642
|
+
props = CfnPromptVersionProps(
|
|
18643
|
+
prompt_arn=prompt_arn, description=description, tags=tags
|
|
18644
|
+
)
|
|
17401
18645
|
|
|
17402
18646
|
jsii.create(self.__class__, self, [scope, id, props])
|
|
17403
18647
|
|
|
@@ -17449,6 +18693,15 @@ class CfnPromptVersion(
|
|
|
17449
18693
|
'''
|
|
17450
18694
|
return typing.cast(builtins.str, jsii.get(self, "attrCreatedAt"))
|
|
17451
18695
|
|
|
18696
|
+
@builtins.property
|
|
18697
|
+
@jsii.member(jsii_name="attrCustomerEncryptionKeyArn")
|
|
18698
|
+
def attr_customer_encryption_key_arn(self) -> builtins.str:
|
|
18699
|
+
'''A KMS key ARN.
|
|
18700
|
+
|
|
18701
|
+
:cloudformationAttribute: CustomerEncryptionKeyArn
|
|
18702
|
+
'''
|
|
18703
|
+
return typing.cast(builtins.str, jsii.get(self, "attrCustomerEncryptionKeyArn"))
|
|
18704
|
+
|
|
17452
18705
|
@builtins.property
|
|
17453
18706
|
@jsii.member(jsii_name="attrDefaultVariant")
|
|
17454
18707
|
def attr_default_variant(self) -> builtins.str:
|
|
@@ -17505,6 +18758,12 @@ class CfnPromptVersion(
|
|
|
17505
18758
|
'''
|
|
17506
18759
|
return typing.cast(builtins.str, jsii.get(self, "attrVersion"))
|
|
17507
18760
|
|
|
18761
|
+
@builtins.property
|
|
18762
|
+
@jsii.member(jsii_name="cdkTagManager")
|
|
18763
|
+
def cdk_tag_manager(self) -> _TagManager_0a598cb3:
|
|
18764
|
+
'''Tag Manager which manages the tags for this resource.'''
|
|
18765
|
+
return typing.cast(_TagManager_0a598cb3, jsii.get(self, "cdkTagManager"))
|
|
18766
|
+
|
|
17508
18767
|
@builtins.property
|
|
17509
18768
|
@jsii.member(jsii_name="cfnProperties")
|
|
17510
18769
|
def _cfn_properties(self) -> typing.Mapping[builtins.str, typing.Any]:
|
|
@@ -17536,6 +18795,22 @@ class CfnPromptVersion(
|
|
|
17536
18795
|
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
17537
18796
|
jsii.set(self, "description", value) # pyright: ignore[reportArgumentType]
|
|
17538
18797
|
|
|
18798
|
+
@builtins.property
|
|
18799
|
+
@jsii.member(jsii_name="tags")
|
|
18800
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
18801
|
+
'''A map of tag keys and values.'''
|
|
18802
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], jsii.get(self, "tags"))
|
|
18803
|
+
|
|
18804
|
+
@tags.setter
|
|
18805
|
+
def tags(
|
|
18806
|
+
self,
|
|
18807
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
18808
|
+
) -> None:
|
|
18809
|
+
if __debug__:
|
|
18810
|
+
type_hints = typing.get_type_hints(_typecheckingstub__9272c7a9663761c48d9f2dd784a0dea11f8f35dbce40fb938036091fd8cf57a0)
|
|
18811
|
+
check_type(argname="argument value", value=value, expected_type=type_hints["value"])
|
|
18812
|
+
jsii.set(self, "tags", value) # pyright: ignore[reportArgumentType]
|
|
18813
|
+
|
|
17539
18814
|
@jsii.data_type(
|
|
17540
18815
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersion.PromptInferenceConfigurationProperty",
|
|
17541
18816
|
jsii_struct_bases=[],
|
|
@@ -18071,7 +19346,11 @@ class CfnPromptVersion(
|
|
|
18071
19346
|
@jsii.data_type(
|
|
18072
19347
|
jsii_type="aws-cdk-lib.aws_bedrock.CfnPromptVersionProps",
|
|
18073
19348
|
jsii_struct_bases=[],
|
|
18074
|
-
name_mapping={
|
|
19349
|
+
name_mapping={
|
|
19350
|
+
"prompt_arn": "promptArn",
|
|
19351
|
+
"description": "description",
|
|
19352
|
+
"tags": "tags",
|
|
19353
|
+
},
|
|
18075
19354
|
)
|
|
18076
19355
|
class CfnPromptVersionProps:
|
|
18077
19356
|
def __init__(
|
|
@@ -18079,11 +19358,13 @@ class CfnPromptVersionProps:
|
|
|
18079
19358
|
*,
|
|
18080
19359
|
prompt_arn: builtins.str,
|
|
18081
19360
|
description: typing.Optional[builtins.str] = None,
|
|
19361
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
18082
19362
|
) -> None:
|
|
18083
19363
|
'''Properties for defining a ``CfnPromptVersion``.
|
|
18084
19364
|
|
|
18085
19365
|
:param prompt_arn: The Amazon Resource Name (ARN) of the version of the prompt.
|
|
18086
19366
|
:param description: The description of the prompt version.
|
|
19367
|
+
:param tags: A map of tag keys and values.
|
|
18087
19368
|
|
|
18088
19369
|
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html
|
|
18089
19370
|
:exampleMetadata: fixture=_generated
|
|
@@ -18098,18 +19379,24 @@ class CfnPromptVersionProps:
|
|
|
18098
19379
|
prompt_arn="promptArn",
|
|
18099
19380
|
|
|
18100
19381
|
# the properties below are optional
|
|
18101
|
-
description="description"
|
|
19382
|
+
description="description",
|
|
19383
|
+
tags={
|
|
19384
|
+
"tags_key": "tags"
|
|
19385
|
+
}
|
|
18102
19386
|
)
|
|
18103
19387
|
'''
|
|
18104
19388
|
if __debug__:
|
|
18105
19389
|
type_hints = typing.get_type_hints(_typecheckingstub__96c6f04d4bf0b791d1f12be1ce79f791556638376cf77d3bf64ac4995d21603a)
|
|
18106
19390
|
check_type(argname="argument prompt_arn", value=prompt_arn, expected_type=type_hints["prompt_arn"])
|
|
18107
19391
|
check_type(argname="argument description", value=description, expected_type=type_hints["description"])
|
|
19392
|
+
check_type(argname="argument tags", value=tags, expected_type=type_hints["tags"])
|
|
18108
19393
|
self._values: typing.Dict[builtins.str, typing.Any] = {
|
|
18109
19394
|
"prompt_arn": prompt_arn,
|
|
18110
19395
|
}
|
|
18111
19396
|
if description is not None:
|
|
18112
19397
|
self._values["description"] = description
|
|
19398
|
+
if tags is not None:
|
|
19399
|
+
self._values["tags"] = tags
|
|
18113
19400
|
|
|
18114
19401
|
@builtins.property
|
|
18115
19402
|
def prompt_arn(self) -> builtins.str:
|
|
@@ -18130,6 +19417,15 @@ class CfnPromptVersionProps:
|
|
|
18130
19417
|
result = self._values.get("description")
|
|
18131
19418
|
return typing.cast(typing.Optional[builtins.str], result)
|
|
18132
19419
|
|
|
19420
|
+
@builtins.property
|
|
19421
|
+
def tags(self) -> typing.Optional[typing.Mapping[builtins.str, builtins.str]]:
|
|
19422
|
+
'''A map of tag keys and values.
|
|
19423
|
+
|
|
19424
|
+
:see: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-bedrock-promptversion.html#cfn-bedrock-promptversion-tags
|
|
19425
|
+
'''
|
|
19426
|
+
result = self._values.get("tags")
|
|
19427
|
+
return typing.cast(typing.Optional[typing.Mapping[builtins.str, builtins.str]], result)
|
|
19428
|
+
|
|
18133
19429
|
def __eq__(self, rhs: typing.Any) -> builtins.bool:
|
|
18134
19430
|
return isinstance(rhs, self.__class__) and rhs._values == self._values
|
|
18135
19431
|
|
|
@@ -18160,8 +19456,8 @@ class FoundationModelIdentifier(
|
|
|
18160
19456
|
|
|
18161
19457
|
task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
18162
19458
|
model=model,
|
|
18163
|
-
|
|
18164
|
-
|
|
19459
|
+
input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
|
|
19460
|
+
output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
|
|
18165
19461
|
)
|
|
18166
19462
|
'''
|
|
18167
19463
|
|
|
@@ -18606,6 +19902,12 @@ class FoundationModelIdentifier(
|
|
|
18606
19902
|
'''Base model "mistral.mistral-small-2402-v1:0".'''
|
|
18607
19903
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "MISTRAL_SMALL_V0_1"))
|
|
18608
19904
|
|
|
19905
|
+
@jsii.python.classproperty
|
|
19906
|
+
@jsii.member(jsii_name="STABILITY_SD3_LARGE_V1_0")
|
|
19907
|
+
def STABILITY_SD3_LARGE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
19908
|
+
'''Base model "stability.sd3-large-v1:0".'''
|
|
19909
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_SD3_LARGE_V1_0"))
|
|
19910
|
+
|
|
18609
19911
|
@jsii.python.classproperty
|
|
18610
19912
|
@jsii.member(jsii_name="STABILITY_STABLE_DIFFUSION_XL")
|
|
18611
19913
|
def STABILITY_STABLE_DIFFUSION_XL(cls) -> "FoundationModelIdentifier":
|
|
@@ -18640,6 +19942,18 @@ class FoundationModelIdentifier(
|
|
|
18640
19942
|
'''Base model "stability.stable-diffusion-xl-v1:0".'''
|
|
18641
19943
|
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_DIFFUSION_XL_V1_0"))
|
|
18642
19944
|
|
|
19945
|
+
@jsii.python.classproperty
|
|
19946
|
+
@jsii.member(jsii_name="STABILITY_STABLE_IMAGE_CORE_V1_0")
|
|
19947
|
+
def STABILITY_STABLE_IMAGE_CORE_V1_0(cls) -> "FoundationModelIdentifier":
|
|
19948
|
+
'''Base model "stability.stable-image-core-v1:0".'''
|
|
19949
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_CORE_V1_0"))
|
|
19950
|
+
|
|
19951
|
+
@jsii.python.classproperty
|
|
19952
|
+
@jsii.member(jsii_name="STABILITY_STABLE_IMAGE_ULTRA_V1_0")
|
|
19953
|
+
def STABILITY_STABLE_IMAGE_ULTRA_V1_0(cls) -> "FoundationModelIdentifier":
|
|
19954
|
+
'''Base model "stability.stable-image-ultra-v1:0".'''
|
|
19955
|
+
return typing.cast("FoundationModelIdentifier", jsii.sget(cls, "STABILITY_STABLE_IMAGE_ULTRA_V1_0"))
|
|
19956
|
+
|
|
18643
19957
|
@builtins.property
|
|
18644
19958
|
@jsii.member(jsii_name="modelId")
|
|
18645
19959
|
def model_id(self) -> builtins.str:
|
|
@@ -18755,8 +20069,8 @@ class FoundationModel(
|
|
|
18755
20069
|
|
|
18756
20070
|
task = tasks.BedrockInvokeModel(self, "Prompt Model",
|
|
18757
20071
|
model=model,
|
|
18758
|
-
|
|
18759
|
-
|
|
20072
|
+
input=tasks.BedrockInvokeModelInputProps(s3_input_uri=sfn.JsonPath.string_at("$.prompt")),
|
|
20073
|
+
output=tasks.BedrockInvokeModelOutputProps(s3_output_uri=sfn.JsonPath.string_at("$.prompt"))
|
|
18760
20074
|
)
|
|
18761
20075
|
'''
|
|
18762
20076
|
|
|
@@ -19637,6 +20951,13 @@ def _typecheckingstub__0c8f573e426abfd3b90c4d9ff9fecb4f008835544cca9591251c13879
|
|
|
19637
20951
|
"""Type checking stubs"""
|
|
19638
20952
|
pass
|
|
19639
20953
|
|
|
20954
|
+
def _typecheckingstub__a835b75c491363488063d3b7d26eef8f2e4a2e2f689eb3676748164e4491c5fe(
|
|
20955
|
+
*,
|
|
20956
|
+
agent_alias_arn: builtins.str,
|
|
20957
|
+
) -> None:
|
|
20958
|
+
"""Type checking stubs"""
|
|
20959
|
+
pass
|
|
20960
|
+
|
|
19640
20961
|
def _typecheckingstub__dda3f0b71fa4dedd72606bcb4dc1b235e5e8f33ebe66758c36774f374b1f09b1(
|
|
19641
20962
|
*,
|
|
19642
20963
|
conditions: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.FlowConditionProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
@@ -19696,13 +21017,18 @@ def _typecheckingstub__9871e2259e9da04030894d1ca021265a5d802265579dabeef19377844
|
|
|
19696
21017
|
|
|
19697
21018
|
def _typecheckingstub__425c904db23b9629fe6a830be94d214d112c1a6206b762478fd9e04b551b5552(
|
|
19698
21019
|
*,
|
|
21020
|
+
agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.AgentFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21021
|
+
collector: typing.Any = None,
|
|
19699
21022
|
condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.ConditionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
19700
21023
|
input: typing.Any = None,
|
|
21024
|
+
iterator: typing.Any = None,
|
|
19701
21025
|
knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.KnowledgeBaseFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
19702
21026
|
lambda_function: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.LambdaFunctionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
19703
21027
|
lex: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.LexFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
19704
21028
|
output: typing.Any = None,
|
|
19705
21029
|
prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.PromptFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21030
|
+
retrieval: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.RetrievalFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21031
|
+
storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.StorageFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
19706
21032
|
) -> None:
|
|
19707
21033
|
"""Type checking stubs"""
|
|
19708
21034
|
pass
|
|
@@ -19735,6 +21061,13 @@ def _typecheckingstub__3918fc30aa5dc9c688e4ea9c5bf2fb45419e4becfd6e3eccdcd68e52c
|
|
|
19735
21061
|
"""Type checking stubs"""
|
|
19736
21062
|
pass
|
|
19737
21063
|
|
|
21064
|
+
def _typecheckingstub__3eab89f770734deb893367e044b113c86911377a918b039f1ba9310a34002e30(
|
|
21065
|
+
*,
|
|
21066
|
+
message: builtins.str,
|
|
21067
|
+
) -> None:
|
|
21068
|
+
"""Type checking stubs"""
|
|
21069
|
+
pass
|
|
21070
|
+
|
|
19738
21071
|
def _typecheckingstub__004ed148a98b01e41f3efd077553224d0e5ce97fd3842fc0c6be6c28accdc6cc(
|
|
19739
21072
|
*,
|
|
19740
21073
|
knowledge_base_id: builtins.str,
|
|
@@ -19822,6 +21155,27 @@ def _typecheckingstub__5bf1f973d583ea4ef1d4bc5b39d3ee1b4725beaa6d0ec7ffb982b4315
|
|
|
19822
21155
|
"""Type checking stubs"""
|
|
19823
21156
|
pass
|
|
19824
21157
|
|
|
21158
|
+
def _typecheckingstub__982db19983467a9d8b437235c39ed6a0fbf0e08458563d3e8f78d9a7de277861(
|
|
21159
|
+
*,
|
|
21160
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.RetrievalFlowNodeServiceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
21161
|
+
) -> None:
|
|
21162
|
+
"""Type checking stubs"""
|
|
21163
|
+
pass
|
|
21164
|
+
|
|
21165
|
+
def _typecheckingstub__cc1fc39971930d3b8f21c48c16cc46f7b6dcac42391342dc2c0b08f3ab2dd6c9(
|
|
21166
|
+
*,
|
|
21167
|
+
bucket_name: builtins.str,
|
|
21168
|
+
) -> None:
|
|
21169
|
+
"""Type checking stubs"""
|
|
21170
|
+
pass
|
|
21171
|
+
|
|
21172
|
+
def _typecheckingstub__71787bd8165076f8853d3c5e8ccf1f76a3ecc1dff4ad49e09330cc7c5fd42328(
|
|
21173
|
+
*,
|
|
21174
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.RetrievalFlowNodeS3ConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21175
|
+
) -> None:
|
|
21176
|
+
"""Type checking stubs"""
|
|
21177
|
+
pass
|
|
21178
|
+
|
|
19825
21179
|
def _typecheckingstub__05457863dfccc1ba82410713caf4f4f5196707f3818d55f3234a1ee92a836f3a(
|
|
19826
21180
|
*,
|
|
19827
21181
|
bucket: builtins.str,
|
|
@@ -19831,6 +21185,27 @@ def _typecheckingstub__05457863dfccc1ba82410713caf4f4f5196707f3818d55f3234a1ee92
|
|
|
19831
21185
|
"""Type checking stubs"""
|
|
19832
21186
|
pass
|
|
19833
21187
|
|
|
21188
|
+
def _typecheckingstub__2947611a82b29854c7efc58b7c733174ecf09a5853484c0d5e8f1ce11289b86a(
|
|
21189
|
+
*,
|
|
21190
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.StorageFlowNodeServiceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
21191
|
+
) -> None:
|
|
21192
|
+
"""Type checking stubs"""
|
|
21193
|
+
pass
|
|
21194
|
+
|
|
21195
|
+
def _typecheckingstub__4a2fc36b12bce2e01af3c61406e1b388bed1307c7154a5986c5562cc872007f5(
|
|
21196
|
+
*,
|
|
21197
|
+
bucket_name: builtins.str,
|
|
21198
|
+
) -> None:
|
|
21199
|
+
"""Type checking stubs"""
|
|
21200
|
+
pass
|
|
21201
|
+
|
|
21202
|
+
def _typecheckingstub__de8a16140d8aef7030c7580cb53c7b271917f885403ef4e509d2d3eedefafab7(
|
|
21203
|
+
*,
|
|
21204
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlow.StorageFlowNodeS3ConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21205
|
+
) -> None:
|
|
21206
|
+
"""Type checking stubs"""
|
|
21207
|
+
pass
|
|
21208
|
+
|
|
19834
21209
|
def _typecheckingstub__a1164d8b76fe518886244583bdf3b7b3822830d9f1ee7bc6beec54ce34c0f455(
|
|
19835
21210
|
*,
|
|
19836
21211
|
text: builtins.str,
|
|
@@ -19962,6 +21337,13 @@ def _typecheckingstub__7f982c06560684269ac07c3dc57223c48225800eaacbc87f08a51a55e
|
|
|
19962
21337
|
"""Type checking stubs"""
|
|
19963
21338
|
pass
|
|
19964
21339
|
|
|
21340
|
+
def _typecheckingstub__d2f9b914c5d40c946bff1dbcc6c016aacfab4e4b5c8f2a45cb392c7a1adb7083(
|
|
21341
|
+
*,
|
|
21342
|
+
agent_alias_arn: builtins.str,
|
|
21343
|
+
) -> None:
|
|
21344
|
+
"""Type checking stubs"""
|
|
21345
|
+
pass
|
|
21346
|
+
|
|
19965
21347
|
def _typecheckingstub__58998504af7a39c970b789ec28fb7e3afe8c42041c2bad9381d2fc98e905dc94(
|
|
19966
21348
|
*,
|
|
19967
21349
|
conditions: typing.Union[_IResolvable_da3f097b, typing.Sequence[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.FlowConditionProperty, typing.Dict[builtins.str, typing.Any]]]]],
|
|
@@ -20021,13 +21403,18 @@ def _typecheckingstub__8475acb2c15a224f24d256dd7b562970391360b68614b931f44c1e981
|
|
|
20021
21403
|
|
|
20022
21404
|
def _typecheckingstub__f9cd0cd05b1dd568a6031e23179baa28ec1045e1a40b1eda1f4240278fd28f94(
|
|
20023
21405
|
*,
|
|
21406
|
+
agent: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.AgentFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21407
|
+
collector: typing.Any = None,
|
|
20024
21408
|
condition: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.ConditionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
20025
21409
|
input: typing.Any = None,
|
|
21410
|
+
iterator: typing.Any = None,
|
|
20026
21411
|
knowledge_base: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.KnowledgeBaseFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
20027
21412
|
lambda_function: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.LambdaFunctionFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
20028
21413
|
lex: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.LexFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
20029
21414
|
output: typing.Any = None,
|
|
20030
21415
|
prompt: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.PromptFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21416
|
+
retrieval: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.RetrievalFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21417
|
+
storage: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.StorageFlowNodeConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
20031
21418
|
) -> None:
|
|
20032
21419
|
"""Type checking stubs"""
|
|
20033
21420
|
pass
|
|
@@ -20147,6 +21534,48 @@ def _typecheckingstub__cdae5ed58ab50ea65740dfb331694cb5fd8ad547ccbbbedbe809c7f9f
|
|
|
20147
21534
|
"""Type checking stubs"""
|
|
20148
21535
|
pass
|
|
20149
21536
|
|
|
21537
|
+
def _typecheckingstub__1b2ccf635b97ea636e11b91f8e9192a84ab3e4b666d226ecff9668ddba28f3fc(
|
|
21538
|
+
*,
|
|
21539
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.RetrievalFlowNodeServiceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
21540
|
+
) -> None:
|
|
21541
|
+
"""Type checking stubs"""
|
|
21542
|
+
pass
|
|
21543
|
+
|
|
21544
|
+
def _typecheckingstub__d571fce6026f6906d4b9877f76350900eb2d36b8c98f0f49cc0a67b541cd27c7(
|
|
21545
|
+
*,
|
|
21546
|
+
bucket_name: builtins.str,
|
|
21547
|
+
) -> None:
|
|
21548
|
+
"""Type checking stubs"""
|
|
21549
|
+
pass
|
|
21550
|
+
|
|
21551
|
+
def _typecheckingstub__21a7a1c7745fcff35d6a7be6ee612e1ed2dbb49e3565ed086db62ce1bc0649c5(
|
|
21552
|
+
*,
|
|
21553
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.RetrievalFlowNodeS3ConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21554
|
+
) -> None:
|
|
21555
|
+
"""Type checking stubs"""
|
|
21556
|
+
pass
|
|
21557
|
+
|
|
21558
|
+
def _typecheckingstub__0fddcc2e5093ac996342f42863b40df2e48e76d811a4e482a7f5aea20b4d9627(
|
|
21559
|
+
*,
|
|
21560
|
+
service_configuration: typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.StorageFlowNodeServiceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
21561
|
+
) -> None:
|
|
21562
|
+
"""Type checking stubs"""
|
|
21563
|
+
pass
|
|
21564
|
+
|
|
21565
|
+
def _typecheckingstub__d7b9df955514d0838f602eb6266a08d2ac3018fb4196f94b2dbc2e715b8c4443(
|
|
21566
|
+
*,
|
|
21567
|
+
bucket_name: builtins.str,
|
|
21568
|
+
) -> None:
|
|
21569
|
+
"""Type checking stubs"""
|
|
21570
|
+
pass
|
|
21571
|
+
|
|
21572
|
+
def _typecheckingstub__000a8a0ee8692fbfb462ce4a24438d150dc2d6b8143c4e68df268bd52edde0f3(
|
|
21573
|
+
*,
|
|
21574
|
+
s3: typing.Optional[typing.Union[_IResolvable_da3f097b, typing.Union[CfnFlowVersion.StorageFlowNodeS3ConfigurationProperty, typing.Dict[builtins.str, typing.Any]]]] = None,
|
|
21575
|
+
) -> None:
|
|
21576
|
+
"""Type checking stubs"""
|
|
21577
|
+
pass
|
|
21578
|
+
|
|
20150
21579
|
def _typecheckingstub__ae71846b7aa0cb96d488de8fb8524f13a8239cc97cfb519c31e546c953063339(
|
|
20151
21580
|
*,
|
|
20152
21581
|
text: builtins.str,
|
|
@@ -20727,6 +22156,7 @@ def _typecheckingstub__655fee944eb77092f564ba8ce6cc99b8af558f5e4f24168d280a8d548
|
|
|
20727
22156
|
*,
|
|
20728
22157
|
prompt_arn: builtins.str,
|
|
20729
22158
|
description: typing.Optional[builtins.str] = None,
|
|
22159
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
20730
22160
|
) -> None:
|
|
20731
22161
|
"""Type checking stubs"""
|
|
20732
22162
|
pass
|
|
@@ -20755,6 +22185,12 @@ def _typecheckingstub__ec4abcbc329aa78e1da7b3e9657d097c8f6506ef57c7cd0271a70014e
|
|
|
20755
22185
|
"""Type checking stubs"""
|
|
20756
22186
|
pass
|
|
20757
22187
|
|
|
22188
|
+
def _typecheckingstub__9272c7a9663761c48d9f2dd784a0dea11f8f35dbce40fb938036091fd8cf57a0(
|
|
22189
|
+
value: typing.Optional[typing.Mapping[builtins.str, builtins.str]],
|
|
22190
|
+
) -> None:
|
|
22191
|
+
"""Type checking stubs"""
|
|
22192
|
+
pass
|
|
22193
|
+
|
|
20758
22194
|
def _typecheckingstub__62215d8cc9a7076c41c83c6c84d981ced4f43ba8a60a2dfd544e01c1202d1726(
|
|
20759
22195
|
*,
|
|
20760
22196
|
text: typing.Union[_IResolvable_da3f097b, typing.Union[CfnPromptVersion.PromptModelInferenceConfigurationProperty, typing.Dict[builtins.str, typing.Any]]],
|
|
@@ -20810,6 +22246,7 @@ def _typecheckingstub__96c6f04d4bf0b791d1f12be1ce79f791556638376cf77d3bf64ac4995
|
|
|
20810
22246
|
*,
|
|
20811
22247
|
prompt_arn: builtins.str,
|
|
20812
22248
|
description: typing.Optional[builtins.str] = None,
|
|
22249
|
+
tags: typing.Optional[typing.Mapping[builtins.str, builtins.str]] = None,
|
|
20813
22250
|
) -> None:
|
|
20814
22251
|
"""Type checking stubs"""
|
|
20815
22252
|
pass
|