Class CfnModelCard
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.CfnElement
software.amazon.awscdk.core.CfnRefElement
software.amazon.awscdk.core.CfnResource
software.amazon.awscdk.services.sagemaker.CfnModelCard
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:35.294Z")
@Stability(Stable)
public class CfnModelCard
extends CfnResource
implements IInspectable
A CloudFormation
AWS::SageMaker::ModelCard
.
Creates an Amazon SageMaker Model Card.
For information about how to use model cards, see Amazon SageMaker Model Card .
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.*; Object value; CfnModelCard cfnModelCard = CfnModelCard.Builder.create(this, "MyCfnModelCard") .content(ContentProperty.builder() .additionalInformation(AdditionalInformationProperty.builder() .caveatsAndRecommendations("caveatsAndRecommendations") .customDetails(Map.of( "customDetailsKey", "customDetails")) .ethicalConsiderations("ethicalConsiderations") .build()) .businessDetails(BusinessDetailsProperty.builder() .businessProblem("businessProblem") .businessStakeholders("businessStakeholders") .lineOfBusiness("lineOfBusiness") .build()) .evaluationDetails(List.of(EvaluationDetailProperty.builder() .name("name") // the properties below are optional .datasets(List.of("datasets")) .evaluationJobArn("evaluationJobArn") .evaluationObservation("evaluationObservation") .metadata(Map.of( "metadataKey", "metadata")) .metricGroups(List.of(MetricGroupProperty.builder() .metricData(List.of(MetricDataItemsProperty.builder() .name("name") .type("type") .value(value) // the properties below are optional .notes("notes") .xAxisName(List.of("xAxisName")) .yAxisName(List.of("yAxisName")) .build())) .name("name") .build())) .build())) .intendedUses(IntendedUsesProperty.builder() .explanationsForRiskRating("explanationsForRiskRating") .factorsAffectingModelEfficiency("factorsAffectingModelEfficiency") .intendedUses("intendedUses") .purposeOfModel("purposeOfModel") .riskRating("riskRating") .build()) .modelOverview(ModelOverviewProperty.builder() .algorithmType("algorithmType") .inferenceEnvironment(InferenceEnvironmentProperty.builder() .containerImage(List.of("containerImage")) .build()) .modelArtifact(List.of("modelArtifact")) .modelCreator("modelCreator") .modelDescription("modelDescription") .modelId("modelId") .modelName("modelName") .modelOwner("modelOwner") .modelVersion(123) .problemType("problemType") .build()) .modelPackageDetails(ModelPackageDetailsProperty.builder() .approvalDescription("approvalDescription") .createdBy(ModelPackageCreatorProperty.builder() .userProfileName("userProfileName") .build()) .domain("domain") .inferenceSpecification(InferenceSpecificationProperty.builder() .containers(List.of(ContainerProperty.builder() .image("image") // the properties below are optional .modelDataUrl("modelDataUrl") .nearestModelName("nearestModelName") .build())) .build()) .modelApprovalStatus("modelApprovalStatus") .modelPackageArn("modelPackageArn") .modelPackageDescription("modelPackageDescription") .modelPackageGroupName("modelPackageGroupName") .modelPackageName("modelPackageName") .modelPackageStatus("modelPackageStatus") .modelPackageVersion(123) .sourceAlgorithms(List.of(SourceAlgorithmProperty.builder() .algorithmName("algorithmName") // the properties below are optional .modelDataUrl("modelDataUrl") .build())) .task("task") .build()) .trainingDetails(TrainingDetailsProperty.builder() .objectiveFunction(ObjectiveFunctionProperty.builder() .function(FunctionProperty.builder() .condition("condition") .facet("facet") .function("function") .build()) .notes("notes") .build()) .trainingJobDetails(TrainingJobDetailsProperty.builder() .hyperParameters(List.of(TrainingHyperParameterProperty.builder() .name("name") .value("value") .build())) .trainingArn("trainingArn") .trainingDatasets(List.of("trainingDatasets")) .trainingEnvironment(TrainingEnvironmentProperty.builder() .containerImage(List.of("containerImage")) .build()) .trainingMetrics(List.of(TrainingMetricProperty.builder() .name("name") .value(123) // the properties below are optional .notes("notes") .build())) .userProvidedHyperParameters(List.of(TrainingHyperParameterProperty.builder() .name("name") .value("value") .build())) .userProvidedTrainingMetrics(List.of(TrainingMetricProperty.builder() .name("name") .value(123) // the properties below are optional .notes("notes") .build())) .build()) .trainingObservations("trainingObservations") .build()) .build()) .modelCardName("modelCardName") .modelCardStatus("modelCardStatus") // the properties below are optional .createdBy(UserContextProperty.builder() .domainId("domainId") .userProfileArn("userProfileArn") .userProfileName("userProfileName") .build()) .lastModifiedBy(UserContextProperty.builder() .domainId("domainId") .userProfileArn("userProfileArn") .userProfileName("userProfileName") .build()) .securityConfig(SecurityConfigProperty.builder() .kmsKeyId("kmsKeyId") .build()) .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .build();
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Additional information about the model.static final class
A fluent builder forCfnModelCard
.static interface
Information about how the model supports business goals.static interface
Example:static interface
The content of the model card.static interface
The evaluation details of the model.static interface
Function details.static interface
An overview of a model's inference environment.static interface
Example:static interface
The intended uses of a model.static interface
Metric data.static interface
A group of metric data that you use to initialize a metric group object.static interface
An overview about the model.static interface
Example:static interface
Example:static interface
The function that is optimized during model training.static interface
The security configuration used to protect model card data.static interface
Example:static interface
The training details of the model.static interface
SageMaker training image.static interface
A hyper parameter that was configured in training the model.static interface
The overview of a training job.static interface
A result from a SageMaker training job.static interface
Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionCfnModelCard
(Construct scope, String id, CfnModelCardProps props) Create a newAWS::SageMaker::ModelCard
.protected
CfnModelCard
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnModelCard
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Number (ARN) of the model card.The content of the model card.Information about the user who created or modified one or more of the following:.AWS::SageMaker::ModelCard.LastModifiedBy
.The unique name of the model card.The approval status of the model card within your organization.The security configuration used to protect model card data.getTags()
Key-value pairs used to manage metadata for the model card.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setContent
(IResolvable value) The content of the model card.void
The content of the model card.void
setCreatedBy
(IResolvable value) Information about the user who created or modified one or more of the following:.void
Information about the user who created or modified one or more of the following:.void
setLastModifiedBy
(IResolvable value) AWS::SageMaker::ModelCard.LastModifiedBy
.void
AWS::SageMaker::ModelCard.LastModifiedBy
.void
setModelCardName
(String value) The unique name of the model card.void
setModelCardStatus
(String value) The approval status of the model card within your organization.void
setSecurityConfig
(IResolvable value) The security configuration used to protect model card data.void
The security configuration used to protect model card data.Methods inherited from class software.amazon.awscdk.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods 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
-
CfnModelCard
protected CfnModelCard(software.amazon.jsii.JsiiObjectRef objRef) -
CfnModelCard
protected CfnModelCard(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnModelCard
@Stability(Stable) public CfnModelCard(@NotNull Construct scope, @NotNull String id, @NotNull CfnModelCardProps props) Create a newAWS::SageMaker::ModelCard
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrCreatedByDomainId
-
getAttrCreatedByUserProfileArn
-
getAttrCreatedByUserProfileName
-
getAttrCreationTime
-
getAttrLastModifiedByDomainId
-
getAttrLastModifiedByUserProfileArn
-
getAttrLastModifiedByUserProfileName
-
getAttrLastModifiedTime
-
getAttrModelCardArn
The Amazon Resource Number (ARN) of the model card.For example,
arn:aws:sagemaker:us-west-2:012345678901:modelcard/examplemodelcard
. -
getAttrModelCardProcessingStatus
-
getAttrModelCardVersion
-
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Key-value pairs used to manage metadata for the model card. -
getContent
The content of the model card.Content uses the model card JSON schema .
-
setContent
The content of the model card.Content uses the model card JSON schema .
-
setContent
The content of the model card.Content uses the model card JSON schema .
-
getModelCardName
The unique name of the model card. -
setModelCardName
The unique name of the model card. -
getModelCardStatus
The approval status of the model card within your organization.Different organizations might have different criteria for model card review and approval.
Draft
: The model card is a work in progress.PendingReview
: The model card is pending review.Approved
: The model card is approved.Archived
: The model card is archived. No more updates should be made to the model card, but it can still be exported.
-
setModelCardStatus
The approval status of the model card within your organization.Different organizations might have different criteria for model card review and approval.
Draft
: The model card is a work in progress.PendingReview
: The model card is pending review.Approved
: The model card is approved.Archived
: The model card is archived. No more updates should be made to the model card, but it can still be exported.
-
getCreatedBy
Information about the user who created or modified one or more of the following:.- Experiment
- Trial
- Trial component
- Lineage group
- Project
- Model Card
-
setCreatedBy
Information about the user who created or modified one or more of the following:.- Experiment
- Trial
- Trial component
- Lineage group
- Project
- Model Card
-
setCreatedBy
Information about the user who created or modified one or more of the following:.- Experiment
- Trial
- Trial component
- Lineage group
- Project
- Model Card
-
getLastModifiedBy
AWS::SageMaker::ModelCard.LastModifiedBy
. -
setLastModifiedBy
AWS::SageMaker::ModelCard.LastModifiedBy
. -
setLastModifiedBy
AWS::SageMaker::ModelCard.LastModifiedBy
. -
getSecurityConfig
The security configuration used to protect model card data. -
setSecurityConfig
The security configuration used to protect model card data. -
setSecurityConfig
@Stability(Stable) public void setSecurityConfig(@Nullable CfnModelCard.SecurityConfigProperty value) The security configuration used to protect model card data.
-