CfnAIWorkloadConfigPropsMixin
- class aws_cdk.cfn_property_mixins.aws_sagemaker.CfnAIWorkloadConfigPropsMixin(props, *, strategy=None)
Bases:
MixinResource 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.
- See:
- CloudformationResource:
AWS::SageMaker::AIWorkloadConfig
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_sagemaker as sagemaker import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_ai_workload_config_props_mixin = sagemaker.CfnAIWorkloadConfigPropsMixin(sagemaker.CfnAIWorkloadConfigMixinProps( ai_workload_config_name="aiWorkloadConfigName", ai_workload_configs=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadConfigsProperty( workload_spec=sagemaker.CfnAIWorkloadConfigPropsMixin.WorkloadSpecProperty( inline="inline" ) ), dataset_config=sagemaker.CfnAIWorkloadConfigPropsMixin.AIDatasetConfigProperty( input_data_config=[sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadInputDataConfigProperty( channel_name="channelName", data_source=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadDataSourceProperty( s3_data_source=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadS3DataSourceProperty( s3_uri="s3Uri" ) ) )] ), tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::SageMaker::AIWorkloadConfig.- Parameters:
props (
Union[CfnAIWorkloadConfigMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['aiWorkloadConfigName', 'aiWorkloadConfigs', 'datasetConfig', 'tags']
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.
AIDatasetConfigProperty
- class CfnAIWorkloadConfigPropsMixin.AIDatasetConfigProperty(*, input_data_config=None)
Bases:
objectThe dataset configuration for an AI workload.
- Parameters:
input_data_config (
Union[IResolvable,Sequence[Union[IResolvable,AIWorkloadInputDataConfigProperty,Dict[str,Any]]],None]) – An array of input data channel configurations for the workload.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_sagemaker as sagemaker a_i_dataset_config_property = sagemaker.CfnAIWorkloadConfigPropsMixin.AIDatasetConfigProperty( input_data_config=[sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadInputDataConfigProperty( channel_name="channelName", data_source=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadDataSourceProperty( s3_data_source=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadS3DataSourceProperty( s3_uri="s3Uri" ) ) )] )
Attributes
- input_data_config
An array of input data channel configurations for the workload.
AIWorkloadConfigsProperty
- class CfnAIWorkloadConfigPropsMixin.AIWorkloadConfigsProperty(*, workload_spec=None)
Bases:
objectThe benchmark tool configuration for an AI workload.
- Parameters:
workload_spec (
Union[IResolvable,WorkloadSpecProperty,Dict[str,Any],None]) – The workload specification for benchmark tool configuration.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_sagemaker as sagemaker a_i_workload_configs_property = sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadConfigsProperty( workload_spec=sagemaker.CfnAIWorkloadConfigPropsMixin.WorkloadSpecProperty( inline="inline" ) )
Attributes
- workload_spec
The workload specification for benchmark tool configuration.
AIWorkloadDataSourceProperty
- class CfnAIWorkloadConfigPropsMixin.AIWorkloadDataSourceProperty(*, s3_data_source=None)
Bases:
objectThe data source for an AI workload input data channel.
- Parameters:
s3_data_source (
Union[IResolvable,AIWorkloadS3DataSourceProperty,Dict[str,Any],None]) – The Amazon S3 data source for an AI workload.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_sagemaker as sagemaker a_i_workload_data_source_property = sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadDataSourceProperty( s3_data_source=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadS3DataSourceProperty( s3_uri="s3Uri" ) )
Attributes
- s3_data_source
The Amazon S3 data source for an AI workload.
AIWorkloadInputDataConfigProperty
- class CfnAIWorkloadConfigPropsMixin.AIWorkloadInputDataConfigProperty(*, channel_name=None, data_source=None)
Bases:
objectA channel of input data for an AI workload configuration.
- Parameters:
channel_name (
Optional[str]) – The logical name for the data channel.data_source (
Union[IResolvable,AIWorkloadDataSourceProperty,Dict[str,Any],None]) – The data source for an AI workload input data channel.
- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_sagemaker as sagemaker a_i_workload_input_data_config_property = sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadInputDataConfigProperty( channel_name="channelName", data_source=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadDataSourceProperty( s3_data_source=sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadS3DataSourceProperty( s3_uri="s3Uri" ) ) )
Attributes
- channel_name
The logical name for the data channel.
- data_source
The data source for an AI workload input data channel.
AIWorkloadS3DataSourceProperty
- class CfnAIWorkloadConfigPropsMixin.AIWorkloadS3DataSourceProperty(*, s3_uri=None)
Bases:
objectThe Amazon S3 data source for an AI workload.
- Parameters:
s3_uri (
Optional[str]) – The Amazon S3 URI of the data.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_sagemaker as sagemaker a_i_workload_s3_data_source_property = sagemaker.CfnAIWorkloadConfigPropsMixin.AIWorkloadS3DataSourceProperty( s3_uri="s3Uri" )
Attributes
WorkloadSpecProperty
- class CfnAIWorkloadConfigPropsMixin.WorkloadSpecProperty(*, inline=None)
Bases:
objectThe workload specification for benchmark tool configuration.
- Parameters:
inline (
Optional[str]) – An inline YAML or JSON string that defines benchmark parameters. The service validates the document against its own benchmark schema: it must declare a benchmark object whose type member matches the pattern ^(aiperf)$.- See:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.cfn_property_mixins import aws_sagemaker as sagemaker workload_spec_property = sagemaker.CfnAIWorkloadConfigPropsMixin.WorkloadSpecProperty( inline="inline" )
Attributes
- inline
An inline YAML or JSON string that defines benchmark parameters.
The service validates the document against its own benchmark schema: it must declare a benchmark object whose type member matches the pattern ^(aiperf)$.