Class CfnInferenceExperimentPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.sagemaker.CfnInferenceExperimentPropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:20:04.997Z")
@Stability(Stable)
public class CfnInferenceExperimentPropsMixin
extends Mixin
implements software.constructs.IMixin
Creates 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 .
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 .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.sagemaker.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnInferenceExperimentPropsMixin cfnInferenceExperimentPropsMixin = CfnInferenceExperimentPropsMixin.Builder.create(CfnInferenceExperimentMixinProps.builder()
.dataStorageConfig(DataStorageConfigProperty.builder()
.contentType(CaptureContentTypeHeaderProperty.builder()
.csvContentTypes(List.of("csvContentTypes"))
.jsonContentTypes(List.of("jsonContentTypes"))
.build())
.destination("destination")
.kmsKey("kmsKey")
.build())
.description("description")
.desiredState("desiredState")
.endpointName("endpointName")
.kmsKey("kmsKey")
.modelVariants(List.of(ModelVariantConfigProperty.builder()
.infrastructureConfig(ModelInfrastructureConfigProperty.builder()
.infrastructureType("infrastructureType")
.realTimeInferenceConfig(RealTimeInferenceConfigProperty.builder()
.instanceCount(123)
.instanceType("instanceType")
.build())
.build())
.modelName("modelName")
.variantName("variantName")
.build()))
.name("name")
.roleArn("roleArn")
.schedule(InferenceExperimentScheduleProperty.builder()
.endTime("endTime")
.startTime("startTime")
.build())
.shadowModeConfig(ShadowModeConfigProperty.builder()
.shadowModelVariants(List.of(ShadowModelVariantConfigProperty.builder()
.samplingPercentage(123)
.shadowModelVariantName("shadowModelVariantName")
.build()))
.sourceModelVariantName("sourceModelVariantName")
.build())
.statusReason("statusReason")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.type("type")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnInferenceExperimentPropsMixin.static interfaceConfiguration specifying how to treat different headers.static interfaceThe Amazon S3 location and configuration for storing inference request and response data.static interfaceThe metadata of the endpoint.static interfaceThe start and end times of an inference experiment.static interfaceThe configuration for the infrastructure that the model will be deployed to.static interfaceContains information about the deployment options of a model.static interfaceThe infrastructure configuration for deploying the model to a real-time inference endpoint.static interfaceThe configuration ofShadowModeinference 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.static interfaceThe name and sampling percentage of a shadow variant.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::SageMaker::InferenceExperiment.CfnInferenceExperimentPropsMixin(CfnInferenceExperimentMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::SageMaker::InferenceExperiment.protectedCfnInferenceExperimentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnInferenceExperimentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnInferenceExperimentMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnInferenceExperimentPropsMixin
protected CfnInferenceExperimentPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnInferenceExperimentPropsMixin
protected CfnInferenceExperimentPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnInferenceExperimentPropsMixin
@Stability(Stable) public CfnInferenceExperimentPropsMixin(@NotNull CfnInferenceExperimentMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::SageMaker::InferenceExperiment.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnInferenceExperimentPropsMixin
@Stability(Stable) public CfnInferenceExperimentPropsMixin(@NotNull CfnInferenceExperimentMixinProps props) Create a mixin to apply properties toAWS::SageMaker::InferenceExperiment.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-