# ShadowModeConfigProperty

The configuration of `ShadowMode` inference experiment type, which specifies a production variant to take all the inference requests, and a shadow variant to which Amazon SageMaker replicates a percentage of the inference requests.

For the shadow variant it also specifies the percentage of requests that Amazon SageMaker replicates.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```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 shadowModeConfigProperty: sagemaker.CfnInferenceExperiment.ShadowModeConfigProperty = {
  shadowModelVariants: [{
    samplingPercentage: 123,
    shadowModelVariantName: 'shadowModelVariantName',
  }],
  sourceModelVariantName: 'sourceModelVariantName',
};
```

## Properties

- `shadowModelVariants`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnInferenceExperiment.ShadowModelVariantConfigProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnInferenceExperiment.ShadowModelVariantConfigProperty.html)[] (required) — List of shadow variant configurations.

- `sourceModelVariantName`: string (required) — The name of the production variant, which takes all the inference requests.
