# ShadowModelVariantConfigProperty

The name and sampling percentage of a shadow variant.

- 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 shadowModelVariantConfigProperty: sagemaker.CfnInferenceExperiment.ShadowModelVariantConfigProperty = {
  samplingPercentage: 123,
  shadowModelVariantName: 'shadowModelVariantName',
};
```

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

shadow_model_variant_config_property = sagemaker.CfnInferenceExperiment.ShadowModelVariantConfigProperty(
    sampling_percentage=123,
    shadow_model_variant_name="shadowModelVariantName"
)
```

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

ShadowModelVariantConfigProperty shadowModelVariantConfigProperty = ShadowModelVariantConfigProperty.builder()
        .samplingPercentage(123)
        .shadowModelVariantName("shadowModelVariantName")
        .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 shadowModelVariantConfigProperty = new ShadowModelVariantConfigProperty {
    SamplingPercentage = 123,
    ShadowModelVariantName = "shadowModelVariantName"
};
```

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"

shadowModelVariantConfigProperty := &ShadowModelVariantConfigProperty{
	SamplingPercentage: jsii.Number(123),
	ShadowModelVariantName: jsii.String("shadowModelVariantName"),
}
```

## Properties

- `samplingPercentage`: number (required) — The percentage of inference requests that Amazon SageMaker replicates from the production variant to the shadow variant.

- `shadowModelVariantName`: string (required) — The name of the shadow variant.
