CfnAlgorithmPropsMixin
- class aws_cdk.cfn_property_mixins.aws_sagemaker.CfnAlgorithmPropsMixin(props, *, strategy=None)
Bases:
MixinResource Type definition for AWS::SageMaker::Algorithm.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sagemaker-algorithm.html
- CloudformationResource:
AWS::SageMaker::Algorithm
- 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_algorithm_props_mixin = sagemaker.CfnAlgorithmPropsMixin(sagemaker.CfnAlgorithmMixinProps( algorithm_description="algorithmDescription", algorithm_name="algorithmName", certify_for_marketplace=False, inference_specification=sagemaker.CfnAlgorithmPropsMixin.InferenceSpecificationProperty( containers=[sagemaker.CfnAlgorithmPropsMixin.ModelPackageContainerDefinitionProperty( container_hostname="containerHostname", environment={ "environment_key": "environment" }, framework="framework", framework_version="frameworkVersion", image="image", image_digest="imageDigest", is_checkpoint=False, model_input=sagemaker.CfnAlgorithmPropsMixin.ModelInputProperty( data_input_config="dataInputConfig" ), nearest_model_name="nearestModelName" )], supported_content_types=["supportedContentTypes"], supported_realtime_inference_instance_types=["supportedRealtimeInferenceInstanceTypes"], supported_response_mime_types=["supportedResponseMimeTypes"], supported_transform_instance_types=["supportedTransformInstanceTypes"] ), tags=[cdk.CfnTag( key="key", value="value" )], training_specification=sagemaker.CfnAlgorithmPropsMixin.TrainingSpecificationProperty( metric_definitions=[sagemaker.CfnAlgorithmPropsMixin.MetricDefinitionProperty( name="name", regex="regex" )], supported_hyper_parameters=[sagemaker.CfnAlgorithmPropsMixin.HyperParameterSpecificationProperty( default_value="defaultValue", description="description", is_required=False, is_tunable=False, name="name", range=sagemaker.CfnAlgorithmPropsMixin.ParameterRangeProperty( categorical_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.CategoricalParameterRangeSpecificationProperty( values=["values"] ), continuous_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.ContinuousParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ), integer_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.IntegerParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ) ), type="type" )], supported_training_instance_types=["supportedTrainingInstanceTypes"], supported_tuning_job_objective_metrics=[sagemaker.CfnAlgorithmPropsMixin.HyperParameterTuningJobObjectiveProperty( metric_name="metricName", type="type" )], supports_distributed_training=False, training_channels=[sagemaker.CfnAlgorithmPropsMixin.ChannelSpecificationProperty( description="description", is_required=False, name="name", supported_compression_types=["supportedCompressionTypes"], supported_content_types=["supportedContentTypes"], supported_input_modes=["supportedInputModes"] )], training_image="trainingImage", training_image_digest="trainingImageDigest" ) ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::SageMaker::Algorithm.- Parameters:
props (
Union[CfnAlgorithmMixinProps,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 = ['algorithmDescription', 'algorithmName', 'certifyForMarketplace', 'inferenceSpecification', 'tags', 'trainingSpecification']
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.
CategoricalParameterRangeSpecificationProperty
- class CfnAlgorithmPropsMixin.CategoricalParameterRangeSpecificationProperty(*, values=None)
Bases:
object- Parameters:
values (
Optional[Sequence[str]])- 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 categorical_parameter_range_specification_property = sagemaker.CfnAlgorithmPropsMixin.CategoricalParameterRangeSpecificationProperty( values=["values"] )
Attributes
ChannelSpecificationProperty
- class CfnAlgorithmPropsMixin.ChannelSpecificationProperty(*, description=None, is_required=None, name=None, supported_compression_types=None, supported_content_types=None, supported_input_modes=None)
Bases:
object- Parameters:
description (
Optional[str])is_required (
Union[bool,IResolvable,None])name (
Optional[str])supported_compression_types (
Optional[Sequence[str]])supported_content_types (
Optional[Sequence[str]])supported_input_modes (
Optional[Sequence[str]])
- 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 channel_specification_property = sagemaker.CfnAlgorithmPropsMixin.ChannelSpecificationProperty( description="description", is_required=False, name="name", supported_compression_types=["supportedCompressionTypes"], supported_content_types=["supportedContentTypes"], supported_input_modes=["supportedInputModes"] )
Attributes
- description
-
- Type:
see
- is_required
-
- Type:
see
- name
-
- Type:
see
- supported_compression_types
-
- Type:
see
- supported_content_types
-
- Type:
see
ContinuousParameterRangeSpecificationProperty
- class CfnAlgorithmPropsMixin.ContinuousParameterRangeSpecificationProperty(*, max_value=None, min_value=None)
Bases:
object- Parameters:
max_value (
Optional[str])min_value (
Optional[str])
- 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 continuous_parameter_range_specification_property = sagemaker.CfnAlgorithmPropsMixin.ContinuousParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" )
Attributes
- max_value
-
- Type:
see
HyperParameterSpecificationProperty
- class CfnAlgorithmPropsMixin.HyperParameterSpecificationProperty(*, default_value=None, description=None, is_required=None, is_tunable=None, name=None, range=None, type=None)
Bases:
object- Parameters:
default_value (
Optional[str])description (
Optional[str])is_required (
Union[bool,IResolvable,None])is_tunable (
Union[bool,IResolvable,None])name (
Optional[str])range (
Union[IResolvable,ParameterRangeProperty,Dict[str,Any],None])type (
Optional[str])
- 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 hyper_parameter_specification_property = sagemaker.CfnAlgorithmPropsMixin.HyperParameterSpecificationProperty( default_value="defaultValue", description="description", is_required=False, is_tunable=False, name="name", range=sagemaker.CfnAlgorithmPropsMixin.ParameterRangeProperty( categorical_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.CategoricalParameterRangeSpecificationProperty( values=["values"] ), continuous_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.ContinuousParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ), integer_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.IntegerParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ) ), type="type" )
Attributes
- default_value
-
- Type:
see
- description
-
- Type:
see
- is_required
-
- Type:
see
- is_tunable
-
- Type:
see
- name
-
- Type:
see
- range
-
- Type:
see
HyperParameterTuningJobObjectiveProperty
- class CfnAlgorithmPropsMixin.HyperParameterTuningJobObjectiveProperty(*, metric_name=None, type=None)
Bases:
object- Parameters:
metric_name (
Optional[str])type (
Optional[str])
- 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 hyper_parameter_tuning_job_objective_property = sagemaker.CfnAlgorithmPropsMixin.HyperParameterTuningJobObjectiveProperty( metric_name="metricName", type="type" )
Attributes
- metric_name
-
- Type:
see
InferenceSpecificationProperty
- class CfnAlgorithmPropsMixin.InferenceSpecificationProperty(*, containers=None, supported_content_types=None, supported_realtime_inference_instance_types=None, supported_response_mime_types=None, supported_transform_instance_types=None)
Bases:
object- Parameters:
containers (
Union[IResolvable,Sequence[Union[IResolvable,ModelPackageContainerDefinitionProperty,Dict[str,Any]]],None])supported_content_types (
Optional[Sequence[str]])supported_realtime_inference_instance_types (
Optional[Sequence[str]])supported_response_mime_types (
Optional[Sequence[str]])supported_transform_instance_types (
Optional[Sequence[str]])
- 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 inference_specification_property = sagemaker.CfnAlgorithmPropsMixin.InferenceSpecificationProperty( containers=[sagemaker.CfnAlgorithmPropsMixin.ModelPackageContainerDefinitionProperty( container_hostname="containerHostname", environment={ "environment_key": "environment" }, framework="framework", framework_version="frameworkVersion", image="image", image_digest="imageDigest", is_checkpoint=False, model_input=sagemaker.CfnAlgorithmPropsMixin.ModelInputProperty( data_input_config="dataInputConfig" ), nearest_model_name="nearestModelName" )], supported_content_types=["supportedContentTypes"], supported_realtime_inference_instance_types=["supportedRealtimeInferenceInstanceTypes"], supported_response_mime_types=["supportedResponseMimeTypes"], supported_transform_instance_types=["supportedTransformInstanceTypes"] )
Attributes
- containers
-
- Type:
see
- supported_content_types
-
- Type:
see
- supported_realtime_inference_instance_types
-
- Type:
see
- supported_response_mime_types
-
- Type:
see
IntegerParameterRangeSpecificationProperty
- class CfnAlgorithmPropsMixin.IntegerParameterRangeSpecificationProperty(*, max_value=None, min_value=None)
Bases:
object- Parameters:
max_value (
Optional[str])min_value (
Optional[str])
- 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 integer_parameter_range_specification_property = sagemaker.CfnAlgorithmPropsMixin.IntegerParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" )
Attributes
- max_value
-
- Type:
see
MetricDefinitionProperty
- class CfnAlgorithmPropsMixin.MetricDefinitionProperty(*, name=None, regex=None)
Bases:
object- Parameters:
name (
Optional[str])regex (
Optional[str])
- 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 metric_definition_property = sagemaker.CfnAlgorithmPropsMixin.MetricDefinitionProperty( name="name", regex="regex" )
Attributes
- name
-
- Type:
see
ModelInputProperty
- class CfnAlgorithmPropsMixin.ModelInputProperty(*, data_input_config=None)
Bases:
object- Parameters:
data_input_config (
Optional[str])- 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 model_input_property = sagemaker.CfnAlgorithmPropsMixin.ModelInputProperty( data_input_config="dataInputConfig" )
Attributes
ModelPackageContainerDefinitionProperty
- class CfnAlgorithmPropsMixin.ModelPackageContainerDefinitionProperty(*, container_hostname=None, environment=None, framework=None, framework_version=None, image=None, image_digest=None, is_checkpoint=None, model_input=None, nearest_model_name=None)
Bases:
object- Parameters:
container_hostname (
Optional[str])environment (
Union[IResolvable,Mapping[str,str],None])framework (
Optional[str])framework_version (
Optional[str])image (
Optional[str])image_digest (
Optional[str])is_checkpoint (
Union[bool,IResolvable,None])model_input (
Union[IResolvable,ModelInputProperty,Dict[str,Any],None])nearest_model_name (
Optional[str])
- 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 model_package_container_definition_property = sagemaker.CfnAlgorithmPropsMixin.ModelPackageContainerDefinitionProperty( container_hostname="containerHostname", environment={ "environment_key": "environment" }, framework="framework", framework_version="frameworkVersion", image="image", image_digest="imageDigest", is_checkpoint=False, model_input=sagemaker.CfnAlgorithmPropsMixin.ModelInputProperty( data_input_config="dataInputConfig" ), nearest_model_name="nearestModelName" )
Attributes
- container_hostname
-
- Type:
see
- environment
-
- Type:
see
- framework
-
- Type:
see
- framework_version
-
- Type:
see
- image
-
- Type:
see
- image_digest
-
- Type:
see
- is_checkpoint
-
- Type:
see
- model_input
-
- Type:
see
ParameterRangeProperty
- class CfnAlgorithmPropsMixin.ParameterRangeProperty(*, categorical_parameter_range_specification=None, continuous_parameter_range_specification=None, integer_parameter_range_specification=None)
Bases:
object- Parameters:
categorical_parameter_range_specification (
Union[IResolvable,CategoricalParameterRangeSpecificationProperty,Dict[str,Any],None])continuous_parameter_range_specification (
Union[IResolvable,ContinuousParameterRangeSpecificationProperty,Dict[str,Any],None])integer_parameter_range_specification (
Union[IResolvable,IntegerParameterRangeSpecificationProperty,Dict[str,Any],None])
- 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 parameter_range_property = sagemaker.CfnAlgorithmPropsMixin.ParameterRangeProperty( categorical_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.CategoricalParameterRangeSpecificationProperty( values=["values"] ), continuous_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.ContinuousParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ), integer_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.IntegerParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ) )
Attributes
- categorical_parameter_range_specification
-
- Type:
see
- continuous_parameter_range_specification
-
- Type:
see
- integer_parameter_range_specification
-
- Type:
see
TrainingSpecificationProperty
- class CfnAlgorithmPropsMixin.TrainingSpecificationProperty(*, metric_definitions=None, supported_hyper_parameters=None, supported_training_instance_types=None, supported_tuning_job_objective_metrics=None, supports_distributed_training=None, training_channels=None, training_image=None, training_image_digest=None)
Bases:
object- Parameters:
metric_definitions (
Union[IResolvable,Sequence[Union[IResolvable,MetricDefinitionProperty,Dict[str,Any]]],None])supported_hyper_parameters (
Union[IResolvable,Sequence[Union[IResolvable,HyperParameterSpecificationProperty,Dict[str,Any]]],None])supported_training_instance_types (
Optional[Sequence[str]])supported_tuning_job_objective_metrics (
Union[IResolvable,Sequence[Union[IResolvable,HyperParameterTuningJobObjectiveProperty,Dict[str,Any]]],None])supports_distributed_training (
Union[bool,IResolvable,None])training_channels (
Union[IResolvable,Sequence[Union[IResolvable,ChannelSpecificationProperty,Dict[str,Any]]],None])training_image (
Optional[str])training_image_digest (
Optional[str])
- 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 training_specification_property = sagemaker.CfnAlgorithmPropsMixin.TrainingSpecificationProperty( metric_definitions=[sagemaker.CfnAlgorithmPropsMixin.MetricDefinitionProperty( name="name", regex="regex" )], supported_hyper_parameters=[sagemaker.CfnAlgorithmPropsMixin.HyperParameterSpecificationProperty( default_value="defaultValue", description="description", is_required=False, is_tunable=False, name="name", range=sagemaker.CfnAlgorithmPropsMixin.ParameterRangeProperty( categorical_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.CategoricalParameterRangeSpecificationProperty( values=["values"] ), continuous_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.ContinuousParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ), integer_parameter_range_specification=sagemaker.CfnAlgorithmPropsMixin.IntegerParameterRangeSpecificationProperty( max_value="maxValue", min_value="minValue" ) ), type="type" )], supported_training_instance_types=["supportedTrainingInstanceTypes"], supported_tuning_job_objective_metrics=[sagemaker.CfnAlgorithmPropsMixin.HyperParameterTuningJobObjectiveProperty( metric_name="metricName", type="type" )], supports_distributed_training=False, training_channels=[sagemaker.CfnAlgorithmPropsMixin.ChannelSpecificationProperty( description="description", is_required=False, name="name", supported_compression_types=["supportedCompressionTypes"], supported_content_types=["supportedContentTypes"], supported_input_modes=["supportedInputModes"] )], training_image="trainingImage", training_image_digest="trainingImageDigest" )
Attributes
- metric_definitions
-
- Type:
see
- supported_hyper_parameters
-
- Type:
see
- supported_training_instance_types
-
- Type:
see
- supported_tuning_job_objective_metrics
-
- Type:
see
- supports_distributed_training
-
- Type:
see
- training_channels
-
- Type:
see
- training_image
-
- Type:
see