# MatchModelsProperty

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_bedrockagentcore as bedrockagentcore } from 'aws-cdk-lib';
const matchModelsProperty: bedrockagentcore.CfnGatewayRule.MatchModelsProperty = {
  anyOf: [{
    value: 'value',

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

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_bedrockagentcore as bedrockagentcore

match_models_property = bedrockagentcore.CfnGatewayRule.MatchModelsProperty(
    any_of=[bedrockagentcore.CfnGatewayRule.MatchModelEntryProperty(
        value="value",

        # the properties below are optional
        operator="operator"
    )]
)
```

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.bedrockagentcore.*;

MatchModelsProperty matchModelsProperty = MatchModelsProperty.builder()
        .anyOf(List.of(MatchModelEntryProperty.builder()
                .value("value")

                // the properties below are optional
                .operator("operator")
                .build()))
        .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.BedrockAgentCore;

var matchModelsProperty = new MatchModelsProperty {
    AnyOf = new [] { new MatchModelEntryProperty {
        Value = "value",

        // the properties below are optional
        Operator = "operator"
    } }
};
```

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"

matchModelsProperty := &MatchModelsProperty{
	AnyOf: []interface{}{
		&MatchModelEntryProperty{
			Value: jsii.String("value"),

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

## Properties

- `anyOf`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnGatewayRule.MatchModelEntryProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_bedrockagentcore.CfnGatewayRule.MatchModelEntryProperty.html)[] (required)
