# InferenceExecutionConfigProperty

Specifies details about how containers in a multi-container endpoint are run.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const inferenceExecutionConfigProperty: sagemaker.CfnModel.InferenceExecutionConfigProperty = {
  mode: 'mode',
};
```

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_sagemaker as sagemaker

inference_execution_config_property = sagemaker.CfnModel.InferenceExecutionConfigProperty(
    mode="mode"
)
```

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

InferenceExecutionConfigProperty inferenceExecutionConfigProperty = InferenceExecutionConfigProperty.builder()
        .mode("mode")
        .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.Sagemaker;

var inferenceExecutionConfigProperty = new InferenceExecutionConfigProperty {
    Mode = "mode"
};
```

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"

inferenceExecutionConfigProperty := &InferenceExecutionConfigProperty{
	Mode: jsii.String("mode"),
}
```

## Properties

- `mode`: string (required) — How containers in a multi-container are run. The following values are valid.

  - `Serial` - Containers run as a serial pipeline.
  - `Direct` - Only the individual container that you specify is run.
