# FlowConditionProperty

Defines a condition in the condition node.

- Source: Generated at build time
- Type last changed: v2.154.0 · 22 Aug 2024

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrock as bedrock } from 'aws-cdk-lib';
const flowConditionProperty: bedrock.CfnFlowVersion.FlowConditionProperty = {
  name: 'name',

  // the properties below are optional
  expression: 'expression',
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_bedrock as bedrock

flow_condition_property = bedrock.CfnFlowVersion.FlowConditionProperty(
    name="name",

    # the properties below are optional
    expression="expression"
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.bedrock.*;

FlowConditionProperty flowConditionProperty = FlowConditionProperty.builder()
        .name("name")

        // the properties below are optional
        .expression("expression")
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Bedrock;

var flowConditionProperty = new FlowConditionProperty {
    Name = "name",

    // the properties below are optional
    Expression = "expression"
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

flowConditionProperty := &FlowConditionProperty{
	Name: jsii.String("name"),

	// the properties below are optional
	Expression: jsii.String("expression"),
}
```

## Properties

- `expression`: string — Defines the condition.

  You must refer to at least one of the inputs in the condition. For more information, expand the Condition node section in [Node types in prompt flows](https://docs.aws.amazon.com/bedrock/latest/userguide/flows-how-it-works.html#flows-nodes) .

- `name`: string (required) — A name for the condition that you can reference.
