CfnTrialComponentPropsMixin
- class aws_cdk.cfn_property_mixins.aws_sagemaker.CfnTrialComponentPropsMixin(props, *, strategy=None)
Bases:
MixinResource type definition for AWS::SageMaker::TrialComponent.
A trial component is a stage of a machine learning trial, such as a preprocessing job, training job, or batch transform job.
- See:
- CloudformationResource:
AWS::SageMaker::TrialComponent
- 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_trial_component_props_mixin = sagemaker.CfnTrialComponentPropsMixin(sagemaker.CfnTrialComponentMixinProps( display_name="displayName", input_artifacts={ "input_artifacts_key": sagemaker.CfnTrialComponentPropsMixin.TrialComponentArtifactProperty( media_type="mediaType", value="value" ) }, metadata_properties=sagemaker.CfnTrialComponentPropsMixin.MetadataPropertiesProperty( commit_id="commitId", generated_by="generatedBy", project_id="projectId", repository="repository" ), output_artifacts={ "output_artifacts_key": sagemaker.CfnTrialComponentPropsMixin.TrialComponentArtifactProperty( media_type="mediaType", value="value" ) }, parameters={ "parameters_key": sagemaker.CfnTrialComponentPropsMixin.TrialComponentParameterValueProperty( number_value=123, string_value="stringValue" ) }, status=sagemaker.CfnTrialComponentPropsMixin.TrialComponentStatusProperty( message="message", primary_status="primaryStatus" ), tags=[sagemaker.CfnTrialComponentPropsMixin.TagsItemsProperty( key="key", value="value" )], trial_component_name="trialComponentName" ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::SageMaker::TrialComponent.- Parameters:
props (
Union[CfnTrialComponentMixinProps,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 = ['displayName', 'inputArtifacts', 'metadataProperties', 'outputArtifacts', 'parameters', 'status', 'tags', 'trialComponentName']
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.
MetadataPropertiesProperty
- class CfnTrialComponentPropsMixin.MetadataPropertiesProperty(*, commit_id=None, generated_by=None, project_id=None, repository=None)
Bases:
objectMetadata properties of the tracking entity, trial, or trial component.
- Parameters:
commit_id (
Optional[str]) – The commit ID.generated_by (
Optional[str]) – The entity this entity was generated by.project_id (
Optional[str]) – The project ID.repository (
Optional[str]) – The repository.
- 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 metadata_properties_property = sagemaker.CfnTrialComponentPropsMixin.MetadataPropertiesProperty( commit_id="commitId", generated_by="generatedBy", project_id="projectId", repository="repository" )
Attributes
- commit_id
The commit ID.
- generated_by
The entity this entity was generated by.
- project_id
The project ID.
TrialComponentArtifactProperty
- class CfnTrialComponentPropsMixin.TrialComponentArtifactProperty(*, media_type=None, value=None)
Bases:
objectRepresents an input or output artifact of a trial component.
- Parameters:
media_type (
Optional[str]) – The media type of the artifact.value (
Optional[str]) – The location of the artifact.
- 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 trial_component_artifact_property = sagemaker.CfnTrialComponentPropsMixin.TrialComponentArtifactProperty( media_type="mediaType", value="value" )
Attributes
- media_type
The media type of the artifact.
TrialComponentParameterValueProperty
- class CfnTrialComponentPropsMixin.TrialComponentParameterValueProperty(*, number_value=None, string_value=None)
Bases:
objectThe value of a hyperparameter.
Only one of StringValue or NumberValue can be specified.
- Parameters:
number_value (
Union[int,float,None]) – The numeric value of a numeric hyperparameter.string_value (
Optional[str]) – The string value of a categorical hyperparameter.
- 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 trial_component_parameter_value_property = sagemaker.CfnTrialComponentPropsMixin.TrialComponentParameterValueProperty( number_value=123, string_value="stringValue" )
Attributes
- number_value
The numeric value of a numeric hyperparameter.
- string_value
The string value of a categorical hyperparameter.
TrialComponentStatusProperty
- class CfnTrialComponentPropsMixin.TrialComponentStatusProperty(*, message=None, primary_status=None)
Bases:
objectThe status of the trial component.
- Parameters:
message (
Optional[str]) – If the component failed, a message describing why.primary_status (
Optional[str]) – The status of the trial component.
- 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 trial_component_status_property = sagemaker.CfnTrialComponentPropsMixin.TrialComponentStatusProperty( message="message", primary_status="primaryStatus" )
Attributes
- message
If the component failed, a message describing why.
- primary_status
The status of the trial component.