CfnTrialComponentProps Struct
Properties for defining a CfnTrialComponent.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const cfnTrialComponentProps: sagemaker.CfnTrialComponentProps = {
trialComponentName: 'trialComponentName',
// the properties below are optional
displayName: 'displayName',
inputArtifacts: {
inputArtifactsKey: {
value: 'value',
// the properties below are optional
mediaType: 'mediaType',
},
},
metadataProperties: {
commitId: 'commitId',
generatedBy: 'generatedBy',
projectId: 'projectId',
repository: 'repository',
},
outputArtifacts: {
outputArtifactsKey: {
value: 'value',
// the properties below are optional
mediaType: 'mediaType',
},
},
parameters: {
parametersKey: {
numberValue: 123,
stringValue: 'stringValue',
},
},
status: {
message: 'message',
primaryStatus: 'primaryStatus',
},
tags: [{
key: 'key',
value: 'value',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker
cfn_trial_component_props = sagemaker.CfnTrialComponentProps(
trial_component_name="trialComponentName",
# the properties below are optional
display_name="displayName",
input_artifacts={
"input_artifacts_key": sagemaker.CfnTrialComponent.TrialComponentArtifactProperty(
value="value",
# the properties below are optional
media_type="mediaType"
)
},
metadata_properties=sagemaker.CfnTrialComponent.MetadataPropertiesProperty(
commit_id="commitId",
generated_by="generatedBy",
project_id="projectId",
repository="repository"
),
output_artifacts={
"output_artifacts_key": sagemaker.CfnTrialComponent.TrialComponentArtifactProperty(
value="value",
# the properties below are optional
media_type="mediaType"
)
},
parameters={
"parameters_key": sagemaker.CfnTrialComponent.TrialComponentParameterValueProperty(
number_value=123,
string_value="stringValue"
)
},
status=sagemaker.CfnTrialComponent.TrialComponentStatusProperty(
message="message",
primary_status="primaryStatus"
),
tags=[sagemaker.CfnTrialComponent.TagsItemsProperty(
key="key",
value="value"
)]
)
java
// 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.*;
CfnTrialComponentProps cfnTrialComponentProps = CfnTrialComponentProps.builder()
.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();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var cfnTrialComponentProps = new CfnTrialComponentProps {
TrialComponentName = "trialComponentName",
// the properties below are optional
DisplayName = "displayName",
InputArtifacts = new Dictionary<string, object> {
{ "inputArtifactsKey", new TrialComponentArtifactProperty {
Value = "value",
// the properties below are optional
MediaType = "mediaType"
} }
},
MetadataProperties = new MetadataPropertiesProperty {
CommitId = "commitId",
GeneratedBy = "generatedBy",
ProjectId = "projectId",
Repository = "repository"
},
OutputArtifacts = new Dictionary<string, object> {
{ "outputArtifactsKey", new TrialComponentArtifactProperty {
Value = "value",
// the properties below are optional
MediaType = "mediaType"
} }
},
Parameters = new Dictionary<string, object> {
{ "parametersKey", new TrialComponentParameterValueProperty {
NumberValue = 123,
StringValue = "stringValue"
} }
},
Status = new TrialComponentStatusProperty {
Message = "message",
PrimaryStatus = "primaryStatus"
},
Tags = new [] { new TagsItemsProperty {
Key = "key",
Value = "value"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnTrialComponentProps := &CfnTrialComponentProps{
TrialComponentName: jsii.String("trialComponentName"),
// the properties below are optional
DisplayName: jsii.String("displayName"),
InputArtifacts: map[string]interface{}{
"inputArtifactsKey": &TrialComponentArtifactProperty{
"value": jsii.String("value"),
// the properties below are optional
"mediaType": jsii.String("mediaType"),
},
},
MetadataProperties: &MetadataPropertiesProperty{
CommitId: jsii.String("commitId"),
GeneratedBy: jsii.String("generatedBy"),
ProjectId: jsii.String("projectId"),
Repository: jsii.String("repository"),
},
OutputArtifacts: map[string]interface{}{
"outputArtifactsKey": &TrialComponentArtifactProperty{
"value": jsii.String("value"),
// the properties below are optional
"mediaType": jsii.String("mediaType"),
},
},
Parameters: map[string]interface{}{
"parametersKey": &TrialComponentParameterValueProperty{
"numberValue": jsii.Number(123),
"stringValue": jsii.String("stringValue"),
},
},
Status: &TrialComponentStatusProperty{
Message: jsii.String("message"),
PrimaryStatus: jsii.String("primaryStatus"),
},
Tags: []TagsItemsProperty{
&TagsItemsProperty{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
displayNameoptionalstringdisplay_nameoptionalstrdisplayNameoptionalStringDisplayNameoptionalstringDisplayNameoptional*string #The name of the component as displayed.
If DisplayName isn't specified, TrialComponentName is displayed.
inputArtifactsoptionalIResolvable | { [key: string]: IResolvable | CfnTrialComponent.input_artifactsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, TrialComponentArtifactProperty]]]inputArtifactsoptionalIResolvableInputArtifactsoptionalIResolvableInputArtifactsoptionalinterface{} #The input artifacts for the component.
metadataPropertiesoptionalIResolvable | CfnTrialComponent.metadata_propertiesoptionaltyping.Union[IResolvable, MetadataPropertiesProperty]metadataPropertiesoptionalIResolvableMetadataPropertiesoptionalIResolvableMetadataPropertiesoptionalinterface{} #Metadata properties of the tracking entity, trial, or trial component.
outputArtifactsoptionalIResolvable | { [key: string]: IResolvable | CfnTrialComponent.output_artifactsoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, TrialComponentArtifactProperty]]]outputArtifactsoptionalIResolvableOutputArtifactsoptionalIResolvableOutputArtifactsoptionalinterface{} #The output artifacts for the component.
parametersoptionalIResolvable | { [key: string]: IResolvable | CfnTrialComponent.parametersoptionaltyping.Union[IResolvable, typing.Mapping[str, typing.Union[IResolvable, TrialComponentParameterValueProperty]]]parametersoptionalIResolvableParametersoptionalIResolvableParametersoptionalinterface{} #The hyperparameters for the component.
statusoptionalIResolvable | CfnTrialComponent.statusoptionaltyping.Union[IResolvable, TrialComponentStatusProperty]statusoptionalIResolvableStatusoptionalIResolvableStatusoptionalinterface{} #The status of the trial component.
tagsoptionalCfnTrialComponent.tagsoptionaltyping.List[TagsItemsProperty]tagsoptionalList<TagsItemsProperty>TagsoptionalTagsItemsProperty[]Tagsoptional*[]TagsItemsProperty #A list of tags to associate with the trial component.
trialComponentNamestringtrial_component_namestrtrialComponentNameStringTrialComponentNamestringTrialComponentName*string required #The name of the trial component.
Must be unique in your AWS account and is not case-sensitive.