Class CfnAIWorkloadConfig
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.sagemaker.CfnAIWorkloadConfig
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,IAIWorkloadConfigRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:05:00.534Z")
@Stability(Stable)
public class CfnAIWorkloadConfig
extends CfnResource
implements IInspectable, IAIWorkloadConfigRef, ITaggableV2
Resource Type definition for AWS::SageMaker::AIWorkloadConfig.
A reusable AI workload configuration that defines datasets, data sources and benchmark tool settings for consistent performance testing of generative AI inference deployments on Amazon SageMaker AI.
Example:
// 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.*;
CfnAIWorkloadConfig cfnAIWorkloadConfig = CfnAIWorkloadConfig.Builder.create(this, "MyCfnAIWorkloadConfig")
.aiWorkloadConfigName("aiWorkloadConfigName")
// the properties below are optional
.aiWorkloadConfigs(AIWorkloadConfigsProperty.builder()
.workloadSpec(WorkloadSpecProperty.builder()
.inline("inline")
.build())
.build())
.datasetConfig(AIDatasetConfigProperty.builder()
.inputDataConfig(List.of(AIWorkloadInputDataConfigProperty.builder()
.channelName("channelName")
.dataSource(AIWorkloadDataSourceProperty.builder()
.s3DataSource(AIWorkloadS3DataSourceProperty.builder()
.s3Uri("s3Uri")
.build())
.build())
.build()))
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceThe dataset configuration for an AI workload.static interfaceThe benchmark tool configuration for an AI workload.static interfaceThe data source for an AI workload input data channel.static interfaceA channel of input data for an AI workload configuration.static interfaceThe Amazon S3 data source for an AI workload.static final classA fluent builder forCfnAIWorkloadConfig.static interfaceThe workload specification for benchmark tool configuration.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.IAIWorkloadConfigRef
IAIWorkloadConfigRef.Jsii$Default, IAIWorkloadConfigRef.Jsii$ProxyNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnAIWorkloadConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnAIWorkloadConfig(software.amazon.jsii.JsiiObjectRef objRef) CfnAIWorkloadConfig(software.constructs.Construct scope, String id, CfnAIWorkloadConfigProps props) Create a newAWS::SageMaker::AIWorkloadConfig. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForAIWorkloadConfig(IAIWorkloadConfigRef resource) The name of the AI workload configuration.A reference to a AIWorkloadConfig resource.The benchmark tool configuration for an AI workload.The Amazon Resource Name (ARN) of the AI workload configuration.A timestamp that indicates when the AI workload configuration was created.Tag Manager which manages the tags for this resource.The dataset configuration for an AI workload.getTags()The metadata that you apply to the AI workload configuration to help you categorize and organize it.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnAIWorkloadConfig.renderProperties(Map<String, Object> props) voidsetAiWorkloadConfigName(String value) The name of the AI workload configuration.voidsetAiWorkloadConfigs(IResolvable value) The benchmark tool configuration for an AI workload.voidThe benchmark tool configuration for an AI workload.voidsetDatasetConfig(IResolvable value) The dataset configuration for an AI workload.voidThe dataset configuration for an AI workload.voidThe metadata that you apply to the AI workload configuration to help you categorize and organize it.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods 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, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnAIWorkloadConfig
protected CfnAIWorkloadConfig(software.amazon.jsii.JsiiObjectRef objRef) -
CfnAIWorkloadConfig
protected CfnAIWorkloadConfig(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnAIWorkloadConfig
@Stability(Stable) public CfnAIWorkloadConfig(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAIWorkloadConfigProps props) Create a newAWS::SageMaker::AIWorkloadConfig.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForAIWorkloadConfig
@Stability(Stable) @NotNull public static String arnForAIWorkloadConfig(@NotNull IAIWorkloadConfigRef resource) - Parameters:
resource- This parameter is required.
-
isCfnAIWorkloadConfig
Checks whether the given object is a CfnAIWorkloadConfig.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAiWorkloadConfigRef
A reference to a AIWorkloadConfig resource.- Specified by:
getAiWorkloadConfigRefin interfaceIAIWorkloadConfigRef
-
getAttrAiWorkloadConfigArn
The Amazon Resource Name (ARN) of the AI workload configuration.The name segment is restricted to lowercase for the same reason as AIWorkloadConfigName: the engine derives that property from this ARN, so a permissive ARN would yield a derived name the schema itself rejects.
-
getAttrCreationTime
A timestamp that indicates when the AI workload configuration was created. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getAiWorkloadConfigName
The name of the AI workload configuration. -
setAiWorkloadConfigName
The name of the AI workload configuration. -
getAiWorkloadConfigs
The benchmark tool configuration for an AI workload.Returns union: either
IResolvableorCfnAIWorkloadConfig.AIWorkloadConfigsProperty -
setAiWorkloadConfigs
The benchmark tool configuration for an AI workload. -
setAiWorkloadConfigs
@Stability(Stable) public void setAiWorkloadConfigs(@Nullable CfnAIWorkloadConfig.AIWorkloadConfigsProperty value) The benchmark tool configuration for an AI workload. -
getDatasetConfig
The dataset configuration for an AI workload.Returns union: either
IResolvableorCfnAIWorkloadConfig.AIDatasetConfigProperty -
setDatasetConfig
The dataset configuration for an AI workload. -
setDatasetConfig
@Stability(Stable) public void setDatasetConfig(@Nullable CfnAIWorkloadConfig.AIDatasetConfigProperty value) The dataset configuration for an AI workload. -
getTags
The metadata that you apply to the AI workload configuration to help you categorize and organize it. -
setTags
The metadata that you apply to the AI workload configuration to help you categorize and organize it.
-