Skip to content
v2.273.0

CfnFlowPropsMixin Mixin ​

Creates a prompt flow that you can use to send an input through various steps to yield an output.

You define a flow by configuring nodes, each of which corresponds to a step of the flow, and creating connections between the nodes to create paths to different outputs. You can define the flow in one of the following ways:

  • Define a FlowDefinition in the Definition property.
  • Provide the definition in the DefinitionString property as a JSON-formatted string matching the FlowDefinition property.
  • Provide an Amazon S3 location in the DefinitionS3Location property that matches the FlowDefinition .

If you use the DefinitionString or DefinitionS3Location property, you can use the DefinitionSubstitutions property to define key-value pairs to replace at runtime.

For more information, see How it works and Create a prompt flow in Amazon Bedrock in the Amazon Bedrock User Guide.

Initializer ​

ts
new CfnFlowPropsMixin(props: CfnFlowMixinProps, options?: CfnPropertyMixinOptions)
python
CfnFlowPropsMixin(props: CfnFlowMixinProps, options: typing.Optional[CfnPropertyMixinOptions] = None)
java
new CfnFlowPropsMixin(CfnFlowMixinProps props, CfnPropertyMixinOptions options)
csharp
new CfnFlowPropsMixin(CfnFlowMixinProps props, CfnPropertyMixinOptions? options = null)
go
NewCfnFlowPropsMixin(Props CfnFlowMixinProps, Options CfnPropertyMixinOptions)

Methods ​

applyTo(construct: IConstruct): voiddef apply_to(self, construct: IConstruct) -> Nonepublic void applyTo(IConstruct construct)public void ApplyTo(IConstruct construct)func ApplyTo(Construct IConstruct)#
Apply the mixin properties to the construct.
isMixin(x: any): boolean@staticmethod def is_mixin(x: Any) -> boolpublic static Boolean isMixin(Object x)public static bool IsMixin(object x)func IsMixin(X interface{}) *boolstatic#
Checks if `x` is a Mixin.
1 parameter · returns

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Mixin.

supports(construct: IConstruct): booleandef supports(self, construct: IConstruct) -> boolpublic Boolean supports(IConstruct construct)public bool Supports(IConstruct construct)func Supports(Construct IConstruct) *bool#
Check if this mixin supports the given construct.