Class CfnTrialComponent
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.CfnTrialComponent
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITrialComponentRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.138.0 (build 0ca7ee8)",
date="2026-08-10T14:51:11.577Z")
@Stability(Stable)
public class CfnTrialComponent
extends CfnResource
implements IInspectable, ITrialComponentRef, ITaggableV2
Resource 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.
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.*;
CfnTrialComponent cfnTrialComponent = CfnTrialComponent.Builder.create(this, "MyCfnTrialComponent")
.trialComponentName("trialComponentName")
// the properties below are optional
.displayName("displayName")
.inputArtifacts(Map.of(
"inputArtifactsKey", TrialComponentArtifactProperty.builder()
.value("value")
// the properties below are optional
.mediaType("mediaType")
.build()))
.metadataProperties(MetadataPropertiesProperty.builder()
.commitId("commitId")
.generatedBy("generatedBy")
.projectId("projectId")
.repository("repository")
.build())
.outputArtifacts(Map.of(
"outputArtifactsKey", TrialComponentArtifactProperty.builder()
.value("value")
// the properties below are optional
.mediaType("mediaType")
.build()))
.parameters(Map.of(
"parametersKey", TrialComponentParameterValueProperty.builder()
.numberValue(123)
.stringValue("stringValue")
.build()))
.status(TrialComponentStatusProperty.builder()
.message("message")
.primaryStatus("primaryStatus")
.build())
.tags(List.of(TagsItemsProperty.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnTrialComponent.static interfaceMetadata properties of the tracking entity, trial, or trial component.static interfaceExample:static interfaceRepresents an input or output artifact of a trial component.static interfaceThe value of a hyperparameter.static interfaceThe status of the trial component.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested 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$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.sagemaker.ITrialComponentRef
ITrialComponentRef.Jsii$Default, ITrialComponentRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTrialComponent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTrialComponent(software.amazon.jsii.JsiiObjectRef objRef) CfnTrialComponent(software.constructs.Construct scope, String id, CfnTrialComponentProps props) Create a newAWS::SageMaker::TrialComponent. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTrialComponent(ITrialComponentRef resource) When the trial component was created.When the trial component was last modified.The Amazon Resource Name (ARN) of the lineage group.The Amazon Resource Name (ARN) of the trial component.Tag Manager which manages the tags for this resource.The name of the component as displayed.The input artifacts for the component.Metadata properties of the tracking entity, trial, or trial component.The output artifacts for the component.The hyperparameters for the component.The status of the trial component.getTags()A list of tags to associate with the trial component.The name of the trial component.A reference to a TrialComponent resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTrialComponent.renderProperties(Map<String, Object> props) voidsetDisplayName(String value) The name of the component as displayed.voidsetInputArtifacts(Map<String, Object> value) The input artifacts for the component.voidsetInputArtifacts(IResolvable value) The input artifacts for the component.voidsetMetadataProperties(IResolvable value) Metadata properties of the tracking entity, trial, or trial component.voidMetadata properties of the tracking entity, trial, or trial component.voidsetOutputArtifacts(Map<String, Object> value) The output artifacts for the component.voidsetOutputArtifacts(IResolvable value) The output artifacts for the component.voidsetParameters(Map<String, Object> value) The hyperparameters for the component.voidsetParameters(IResolvable value) The hyperparameters for the component.voidsetStatus(IResolvable value) The status of the trial component.voidThe status of the trial component.voidA list of tags to associate with the trial component.voidsetTrialComponentName(String value) The name of the trial component.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
-
CfnTrialComponent
protected CfnTrialComponent(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTrialComponent
protected CfnTrialComponent(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTrialComponent
@Stability(Stable) public CfnTrialComponent(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTrialComponentProps props) Create a newAWS::SageMaker::TrialComponent.- 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
-
arnForTrialComponent
@Stability(Stable) @NotNull public static String arnForTrialComponent(@NotNull ITrialComponentRef resource) - Parameters:
resource- This parameter is required.
-
isCfnTrialComponent
Checks whether the given object is a CfnTrialComponent.- 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.
-
getAttrCreationTime
When the trial component was created. -
getAttrLastModifiedTime
When the trial component was last modified. -
getAttrLineageGroupArn
The Amazon Resource Name (ARN) of the lineage group. -
getAttrTrialComponentArn
The Amazon Resource Name (ARN) of the trial component. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTrialComponentRef
A reference to a TrialComponent resource.- Specified by:
getTrialComponentRefin interfaceITrialComponentRef
-
getTrialComponentName
The name of the trial component. -
setTrialComponentName
The name of the trial component. -
getDisplayName
The name of the component as displayed. -
setDisplayName
The name of the component as displayed. -
getInputArtifacts
The input artifacts for the component.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnTrialComponent.TrialComponentArtifactProperty> -
setInputArtifacts
The input artifacts for the component. -
setInputArtifacts
The input artifacts for the component. -
getMetadataProperties
Metadata properties of the tracking entity, trial, or trial component.Returns union: either
IResolvableorCfnTrialComponent.MetadataPropertiesProperty -
setMetadataProperties
Metadata properties of the tracking entity, trial, or trial component. -
setMetadataProperties
@Stability(Stable) public void setMetadataProperties(@Nullable CfnTrialComponent.MetadataPropertiesProperty value) Metadata properties of the tracking entity, trial, or trial component. -
getOutputArtifacts
The output artifacts for the component.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnTrialComponent.TrialComponentArtifactProperty> -
setOutputArtifacts
The output artifacts for the component. -
setOutputArtifacts
The output artifacts for the component. -
getParameters
The hyperparameters for the component.Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnTrialComponent.TrialComponentParameterValueProperty> -
setParameters
The hyperparameters for the component. -
setParameters
The hyperparameters for the component. -
getStatus
The status of the trial component.Returns union: either
IResolvableorCfnTrialComponent.TrialComponentStatusProperty -
setStatus
The status of the trial component. -
setStatus
@Stability(Stable) public void setStatus(@Nullable CfnTrialComponent.TrialComponentStatusProperty value) The status of the trial component. -
getTags
A list of tags to associate with the trial component. -
setTags
A list of tags to associate with the trial component.
-