AWS::SageMaker::InferenceExperimentCreates an inference experiment using the configurations specified in the request. Use this API to setup and schedule an experiment to compare model variants on a Amazon SageMaker inference endpoint. For more information about inference experiments, see [Shadow tests](https://docs.aws.amazon.com/sagemaker/latest/dg/shadow-tests.html) . Amazon SageMaker begins your experiment at the scheduled time and routes traffic to your endpoint's model variants based on your specified configuration. While the experiment is in progress or after it has concluded, you can view metrics that compare your model variants. For more information, see [View, monitor, and edit shadow tests](https://docs.aws.amazon.com/sagemaker/latest/dg/shadow-tests-view-monitor-edit.html) .
import { CfnInferenceExperiment } from 'aws-cdk-lib/aws-sagemaker';Or use the module namespace:
import * as sagemaker from 'aws-cdk-lib/aws-sagemaker';
// sagemaker.CfnInferenceExperimentConfiguration passed to the constructor as CfnInferenceExperimentProps.
endpointNameRequiredstringThe name of the endpoint.
modelVariantsRequiredIResolvable | IResolvable | ModelVariantConfigProperty[]An array of `ModelVariantConfigSummary` objects. There is one for each variant in the inference experiment. Each `ModelVariantConfigSummary` object in the array describes the infrastructure configuration for deploying the corresponding variant.
nameRequiredstringThe name of the inference experiment.
roleArnRequiredstringThe ARN of the IAM role that Amazon SageMaker can assume to access model artifacts and container images, and manage Amazon SageMaker Inference endpoints for model deployment.
typeRequiredstringThe type of the inference experiment.
dataStorageConfigOptionalIResolvable | DataStorageConfigPropertyThe Amazon S3 location and configuration for storing inference request and response data.
descriptionOptionalstringThe description of the inference experiment.
desiredStateOptionalstringThe desired state of the experiment after stopping. The possible states are the following:. - `Completed` : The experiment completed successfully - `Cancelled` : The experiment was canceled
kmsKeyOptionalstringThe AWS Key Management Service key that Amazon SageMaker uses to encrypt captured data at rest using Amazon S3 server-side encryption.
scheduleOptionalIResolvable | InferenceExperimentSchedulePropertyThe duration for which the inference experiment ran or will run. The maximum duration that you can set for an inference experiment is 30 days.
shadowModeConfigOptionalIResolvable | ShadowModeConfigPropertyThe configuration of `ShadowMode` inference experiment type, which shows the production variant that takes all the inference requests, and the shadow variant to which Amazon SageMaker replicates a percentage of the inference requests. For the shadow variant it also shows the percentage of requests that Amazon SageMaker replicates.
statusReasonOptionalstringThe error message for the inference experiment status result.
tagsOptionalCfnTag[]An array of key-value pairs to apply to this resource. For more information, see [Tag](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-resource-tags.html) .
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-sagemakerAWS::SageMaker::InferenceExperiment