Skip to content
v2.278.0

CfnModelCard L1 construct ​

Creates an Amazon SageMaker Model Card.

For information about how to use model cards, see Amazon SageMaker Model Card .

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';

declare const value: any;
const cfnModelCard = new sagemaker.CfnModelCard(this, 'MyCfnModelCard', {
  content: {
    additionalInformation: {
      caveatsAndRecommendations: 'caveatsAndRecommendations',
      customDetails: {
        customDetailsKey: 'customDetails',
      },
      ethicalConsiderations: 'ethicalConsiderations',
    },
    businessDetails: {
      businessProblem: 'businessProblem',
      businessStakeholders: 'businessStakeholders',
      lineOfBusiness: 'lineOfBusiness',
    },
    evaluationDetails: [{
      name: 'name',

      // the properties below are optional
      datasets: ['datasets'],
      evaluationJobArn: 'evaluationJobArn',
      evaluationObservation: 'evaluationObservation',
      metadata: {
        metadataKey: 'metadata',
      },
      metricGroups: [{
        metricData: [{
          name: 'name',
          type: 'type',
          value: value,

          // the properties below are optional
          notes: 'notes',
          xAxisName: ['xAxisName'],
          yAxisName: ['yAxisName'],
        }],
        name: 'name',
      }],
    }],
    intendedUses: {
      explanationsForRiskRating: 'explanationsForRiskRating',
      factorsAffectingModelEfficiency: 'factorsAffectingModelEfficiency',
      intendedUses: 'intendedUses',
      purposeOfModel: 'purposeOfModel',
      riskRating: 'riskRating',
    },
    modelOverview: {
      algorithmType: 'algorithmType',
      inferenceEnvironment: {
        containerImage: ['containerImage'],
      },
      modelArtifact: ['modelArtifact'],
      modelCreator: 'modelCreator',
      modelDescription: 'modelDescription',
      modelId: 'modelId',
      modelName: 'modelName',
      modelOwner: 'modelOwner',
      modelVersion: 123,
      problemType: 'problemType',
    },
    modelPackageDetails: {
      approvalDescription: 'approvalDescription',
      createdBy: {
        userProfileName: 'userProfileName',
      },
      domain: 'domain',
      inferenceSpecification: {
        containers: [{
          image: 'image',

          // the properties below are optional
          modelDataUrl: 'modelDataUrl',
          nearestModelName: 'nearestModelName',
        }],
      },
      modelApprovalStatus: 'modelApprovalStatus',
      modelPackageArn: 'modelPackageArn',
      modelPackageDescription: 'modelPackageDescription',
      modelPackageGroupName: 'modelPackageGroupName',
      modelPackageName: 'modelPackageName',
      modelPackageStatus: 'modelPackageStatus',
      modelPackageVersion: 123,
      sourceAlgorithms: [{
        algorithmName: 'algorithmName',

        // the properties below are optional
        modelDataUrl: 'modelDataUrl',
      }],
      task: 'task',
    },
    trainingDetails: {
      objectiveFunction: {
        function: {
          condition: 'condition',
          facet: 'facet',
          function: 'function',
        },
        notes: 'notes',
      },
      trainingJobDetails: {
        hyperParameters: [{
          name: 'name',
          value: 'value',
        }],
        trainingArn: 'trainingArn',
        trainingDatasets: ['trainingDatasets'],
        trainingEnvironment: {
          containerImage: ['containerImage'],
        },
        trainingMetrics: [{
          name: 'name',
          value: 123,

          // the properties below are optional
          notes: 'notes',
        }],
        userProvidedHyperParameters: [{
          name: 'name',
          value: 'value',
        }],
        userProvidedTrainingMetrics: [{
          name: 'name',
          value: 123,

          // the properties below are optional
          notes: 'notes',
        }],
      },
      trainingObservations: 'trainingObservations',
    },
  },
  modelCardName: 'modelCardName',
  modelCardStatus: 'modelCardStatus',

  // the properties below are optional
  createdBy: {
    domainId: 'domainId',
    userProfileArn: 'userProfileArn',
    userProfileName: 'userProfileName',
  },
  lastModifiedBy: {
    domainId: 'domainId',
    userProfileArn: 'userProfileArn',
    userProfileName: 'userProfileName',
  },
  securityConfig: {
    kmsKeyId: 'kmsKeyId',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
});
python
from aws_cdk import CfnTag
# 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

# value: Any

cfn_model_card = sagemaker.CfnModelCard(self, "MyCfnModelCard",
    content=sagemaker.CfnModelCard.ContentProperty(
        additional_information=sagemaker.CfnModelCard.AdditionalInformationProperty(
            caveats_and_recommendations="caveatsAndRecommendations",
            custom_details={
                "custom_details_key": "customDetails"
            },
            ethical_considerations="ethicalConsiderations"
        ),
        business_details=sagemaker.CfnModelCard.BusinessDetailsProperty(
            business_problem="businessProblem",
            business_stakeholders="businessStakeholders",
            line_of_business="lineOfBusiness"
        ),
        evaluation_details=[sagemaker.CfnModelCard.EvaluationDetailProperty(
            name="name",

            # the properties below are optional
            datasets=["datasets"],
            evaluation_job_arn="evaluationJobArn",
            evaluation_observation="evaluationObservation",
            metadata={
                "metadata_key": "metadata"
            },
            metric_groups=[sagemaker.CfnModelCard.MetricGroupProperty(
                metric_data=[sagemaker.CfnModelCard.MetricDataItemsProperty(
                    name="name",
                    type="type",
                    value=value,

                    # the properties below are optional
                    notes="notes",
                    x_axis_name=["xAxisName"],
                    y_axis_name=["yAxisName"]
                )],
                name="name"
            )]
        )],
        intended_uses=sagemaker.CfnModelCard.IntendedUsesProperty(
            explanations_for_risk_rating="explanationsForRiskRating",
            factors_affecting_model_efficiency="factorsAffectingModelEfficiency",
            intended_uses="intendedUses",
            purpose_of_model="purposeOfModel",
            risk_rating="riskRating"
        ),
        model_overview=sagemaker.CfnModelCard.ModelOverviewProperty(
            algorithm_type="algorithmType",
            inference_environment=sagemaker.CfnModelCard.InferenceEnvironmentProperty(
                container_image=["containerImage"]
            ),
            model_artifact=["modelArtifact"],
            model_creator="modelCreator",
            model_description="modelDescription",
            model_id="modelId",
            model_name="modelName",
            model_owner="modelOwner",
            model_version=123,
            problem_type="problemType"
        ),
        model_package_details=sagemaker.CfnModelCard.ModelPackageDetailsProperty(
            approval_description="approvalDescription",
            created_by=sagemaker.CfnModelCard.ModelPackageCreatorProperty(
                user_profile_name="userProfileName"
            ),
            domain="domain",
            inference_specification=sagemaker.CfnModelCard.InferenceSpecificationProperty(
                containers=[sagemaker.CfnModelCard.ContainerProperty(
                    image="image",

                    # the properties below are optional
                    model_data_url="modelDataUrl",
                    nearest_model_name="nearestModelName"
                )]
            ),
            model_approval_status="modelApprovalStatus",
            model_package_arn="modelPackageArn",
            model_package_description="modelPackageDescription",
            model_package_group_name="modelPackageGroupName",
            model_package_name="modelPackageName",
            model_package_status="modelPackageStatus",
            model_package_version=123,
            source_algorithms=[sagemaker.CfnModelCard.SourceAlgorithmProperty(
                algorithm_name="algorithmName",

                # the properties below are optional
                model_data_url="modelDataUrl"
            )],
            task="task"
        ),
        training_details=sagemaker.CfnModelCard.TrainingDetailsProperty(
            objective_function=sagemaker.CfnModelCard.ObjectiveFunctionProperty(
                function=sagemaker.CfnModelCard.FunctionProperty(
                    condition="condition",
                    facet="facet",
                    function="function"
                ),
                notes="notes"
            ),
            training_job_details=sagemaker.CfnModelCard.TrainingJobDetailsProperty(
                hyper_parameters=[sagemaker.CfnModelCard.TrainingHyperParameterProperty(
                    name="name",
                    value="value"
                )],
                training_arn="trainingArn",
                training_datasets=["trainingDatasets"],
                training_environment=sagemaker.CfnModelCard.TrainingEnvironmentProperty(
                    container_image=["containerImage"]
                ),
                training_metrics=[sagemaker.CfnModelCard.TrainingMetricProperty(
                    name="name",
                    value=123,

                    # the properties below are optional
                    notes="notes"
                )],
                user_provided_hyper_parameters=[sagemaker.CfnModelCard.TrainingHyperParameterProperty(
                    name="name",
                    value="value"
                )],
                user_provided_training_metrics=[sagemaker.CfnModelCard.TrainingMetricProperty(
                    name="name",
                    value=123,

                    # the properties below are optional
                    notes="notes"
                )]
            ),
            training_observations="trainingObservations"
        )
    ),
    model_card_name="modelCardName",
    model_card_status="modelCardStatus",

    # the properties below are optional
    created_by=sagemaker.CfnModelCard.UserContextProperty(
        domain_id="domainId",
        user_profile_arn="userProfileArn",
        user_profile_name="userProfileName"
    ),
    last_modified_by=sagemaker.CfnModelCard.UserContextProperty(
        domain_id="domainId",
        user_profile_arn="userProfileArn",
        user_profile_name="userProfileName"
    ),
    security_config=sagemaker.CfnModelCard.SecurityConfigProperty(
        kms_key_id="kmsKeyId"
    ),
    tags=[CfnTag(
        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.*;

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();
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 value;

var cfnModelCard = new CfnModelCard(this, "MyCfnModelCard", new CfnModelCardProps {
    Content = new ContentProperty {
        AdditionalInformation = new AdditionalInformationProperty {
            CaveatsAndRecommendations = "caveatsAndRecommendations",
            CustomDetails = new Dictionary<string, string> {
                { "customDetailsKey", "customDetails" }
            },
            EthicalConsiderations = "ethicalConsiderations"
        },
        BusinessDetails = new BusinessDetailsProperty {
            BusinessProblem = "businessProblem",
            BusinessStakeholders = "businessStakeholders",
            LineOfBusiness = "lineOfBusiness"
        },
        EvaluationDetails = new [] { new EvaluationDetailProperty {
            Name = "name",

            // the properties below are optional
            Datasets = new [] { "datasets" },
            EvaluationJobArn = "evaluationJobArn",
            EvaluationObservation = "evaluationObservation",
            Metadata = new Dictionary<string, string> {
                { "metadataKey", "metadata" }
            },
            MetricGroups = new [] { new MetricGroupProperty {
                MetricData = new [] { new MetricDataItemsProperty {
                    Name = "name",
                    Type = "type",
                    Value = value,

                    // the properties below are optional
                    Notes = "notes",
                    XAxisName = new [] { "xAxisName" },
                    YAxisName = new [] { "yAxisName" }
                } },
                Name = "name"
            } }
        } },
        IntendedUses = new IntendedUsesProperty {
            ExplanationsForRiskRating = "explanationsForRiskRating",
            FactorsAffectingModelEfficiency = "factorsAffectingModelEfficiency",
            IntendedUses = "intendedUses",
            PurposeOfModel = "purposeOfModel",
            RiskRating = "riskRating"
        },
        ModelOverview = new ModelOverviewProperty {
            AlgorithmType = "algorithmType",
            InferenceEnvironment = new InferenceEnvironmentProperty {
                ContainerImage = new [] { "containerImage" }
            },
            ModelArtifact = new [] { "modelArtifact" },
            ModelCreator = "modelCreator",
            ModelDescription = "modelDescription",
            ModelId = "modelId",
            ModelName = "modelName",
            ModelOwner = "modelOwner",
            ModelVersion = 123,
            ProblemType = "problemType"
        },
        ModelPackageDetails = new ModelPackageDetailsProperty {
            ApprovalDescription = "approvalDescription",
            CreatedBy = new ModelPackageCreatorProperty {
                UserProfileName = "userProfileName"
            },
            Domain = "domain",
            InferenceSpecification = new InferenceSpecificationProperty {
                Containers = new [] { new ContainerProperty {
                    Image = "image",

                    // the properties below are optional
                    ModelDataUrl = "modelDataUrl",
                    NearestModelName = "nearestModelName"
                } }
            },
            ModelApprovalStatus = "modelApprovalStatus",
            ModelPackageArn = "modelPackageArn",
            ModelPackageDescription = "modelPackageDescription",
            ModelPackageGroupName = "modelPackageGroupName",
            ModelPackageName = "modelPackageName",
            ModelPackageStatus = "modelPackageStatus",
            ModelPackageVersion = 123,
            SourceAlgorithms = new [] { new SourceAlgorithmProperty {
                AlgorithmName = "algorithmName",

                // the properties below are optional
                ModelDataUrl = "modelDataUrl"
            } },
            Task = "task"
        },
        TrainingDetails = new TrainingDetailsProperty {
            ObjectiveFunction = new ObjectiveFunctionProperty {
                Function = new FunctionProperty {
                    Condition = "condition",
                    Facet = "facet",
                    Function = "function"
                },
                Notes = "notes"
            },
            TrainingJobDetails = new TrainingJobDetailsProperty {
                HyperParameters = new [] { new TrainingHyperParameterProperty {
                    Name = "name",
                    Value = "value"
                } },
                TrainingArn = "trainingArn",
                TrainingDatasets = new [] { "trainingDatasets" },
                TrainingEnvironment = new TrainingEnvironmentProperty {
                    ContainerImage = new [] { "containerImage" }
                },
                TrainingMetrics = new [] { new TrainingMetricProperty {
                    Name = "name",
                    Value = 123,

                    // the properties below are optional
                    Notes = "notes"
                } },
                UserProvidedHyperParameters = new [] { new TrainingHyperParameterProperty {
                    Name = "name",
                    Value = "value"
                } },
                UserProvidedTrainingMetrics = new [] { new TrainingMetricProperty {
                    Name = "name",
                    Value = 123,

                    // the properties below are optional
                    Notes = "notes"
                } }
            },
            TrainingObservations = "trainingObservations"
        }
    },
    ModelCardName = "modelCardName",
    ModelCardStatus = "modelCardStatus",

    // the properties below are optional
    CreatedBy = new UserContextProperty {
        DomainId = "domainId",
        UserProfileArn = "userProfileArn",
        UserProfileName = "userProfileName"
    },
    LastModifiedBy = new UserContextProperty {
        DomainId = "domainId",
        UserProfileArn = "userProfileArn",
        UserProfileName = "userProfileName"
    },
    SecurityConfig = new SecurityConfigProperty {
        KmsKeyId = "kmsKeyId"
    },
    Tags = new [] { new CfnTag {
        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"

var value interface{}

cfnModelCard := awscdk.Aws_sagemaker.NewCfnModelCard(this, jsii.String("MyCfnModelCard"), &CfnModelCardProps{
	Content: &ContentProperty{
		AdditionalInformation: &AdditionalInformationProperty{
			CaveatsAndRecommendations: jsii.String("caveatsAndRecommendations"),
			CustomDetails: map[string]*string{
				"customDetailsKey": jsii.String("customDetails"),
			},
			EthicalConsiderations: jsii.String("ethicalConsiderations"),
		},
		BusinessDetails: &BusinessDetailsProperty{
			BusinessProblem: jsii.String("businessProblem"),
			BusinessStakeholders: jsii.String("businessStakeholders"),
			LineOfBusiness: jsii.String("lineOfBusiness"),
		},
		EvaluationDetails: []interface{}{
			&EvaluationDetailProperty{
				Name: jsii.String("name"),

				// the properties below are optional
				Datasets: []*string{
					jsii.String("datasets"),
				},
				EvaluationJobArn: jsii.String("evaluationJobArn"),
				EvaluationObservation: jsii.String("evaluationObservation"),
				Metadata: map[string]*string{
					"metadataKey": jsii.String("metadata"),
				},
				MetricGroups: []interface{}{
					&MetricGroupProperty{
						MetricData: []interface{}{
							&MetricDataItemsProperty{
								Name: jsii.String("name"),
								Type: jsii.String("type"),
								Value: value,

								// the properties below are optional
								Notes: jsii.String("notes"),
								XAxisName: []*string{
									jsii.String("xAxisName"),
								},
								YAxisName: []*string{
									jsii.String("yAxisName"),
								},
							},
						},
						Name: jsii.String("name"),
					},
				},
			},
		},
		IntendedUses: &IntendedUsesProperty{
			ExplanationsForRiskRating: jsii.String("explanationsForRiskRating"),
			FactorsAffectingModelEfficiency: jsii.String("factorsAffectingModelEfficiency"),
			IntendedUses: jsii.String("intendedUses"),
			PurposeOfModel: jsii.String("purposeOfModel"),
			RiskRating: jsii.String("riskRating"),
		},
		ModelOverview: &ModelOverviewProperty{
			AlgorithmType: jsii.String("algorithmType"),
			InferenceEnvironment: &InferenceEnvironmentProperty{
				ContainerImage: []*string{
					jsii.String("containerImage"),
				},
			},
			ModelArtifact: []*string{
				jsii.String("modelArtifact"),
			},
			ModelCreator: jsii.String("modelCreator"),
			ModelDescription: jsii.String("modelDescription"),
			ModelId: jsii.String("modelId"),
			ModelName: jsii.String("modelName"),
			ModelOwner: jsii.String("modelOwner"),
			ModelVersion: jsii.Number(123),
			ProblemType: jsii.String("problemType"),
		},
		ModelPackageDetails: &ModelPackageDetailsProperty{
			ApprovalDescription: jsii.String("approvalDescription"),
			CreatedBy: &ModelPackageCreatorProperty{
				UserProfileName: jsii.String("userProfileName"),
			},
			Domain: jsii.String("domain"),
			InferenceSpecification: &InferenceSpecificationProperty{
				Containers: []interface{}{
					&ContainerProperty{
						Image: jsii.String("image"),

						// the properties below are optional
						ModelDataUrl: jsii.String("modelDataUrl"),
						NearestModelName: jsii.String("nearestModelName"),
					},
				},
			},
			ModelApprovalStatus: jsii.String("modelApprovalStatus"),
			ModelPackageArn: jsii.String("modelPackageArn"),
			ModelPackageDescription: jsii.String("modelPackageDescription"),
			ModelPackageGroupName: jsii.String("modelPackageGroupName"),
			ModelPackageName: jsii.String("modelPackageName"),
			ModelPackageStatus: jsii.String("modelPackageStatus"),
			ModelPackageVersion: jsii.Number(123),
			SourceAlgorithms: []interface{}{
				&SourceAlgorithmProperty{
					AlgorithmName: jsii.String("algorithmName"),

					// the properties below are optional
					ModelDataUrl: jsii.String("modelDataUrl"),
				},
			},
			Task: jsii.String("task"),
		},
		TrainingDetails: &TrainingDetailsProperty{
			ObjectiveFunction: &ObjectiveFunctionProperty{
				Function: &FunctionProperty{
					Condition: jsii.String("condition"),
					Facet: jsii.String("facet"),
					Function: jsii.String("function"),
				},
				Notes: jsii.String("notes"),
			},
			TrainingJobDetails: &TrainingJobDetailsProperty{
				HyperParameters: []interface{}{
					&TrainingHyperParameterProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
				TrainingArn: jsii.String("trainingArn"),
				TrainingDatasets: []*string{
					jsii.String("trainingDatasets"),
				},
				TrainingEnvironment: &TrainingEnvironmentProperty{
					ContainerImage: []*string{
						jsii.String("containerImage"),
					},
				},
				TrainingMetrics: []interface{}{
					&TrainingMetricProperty{
						Name: jsii.String("name"),
						Value: jsii.Number(123),

						// the properties below are optional
						Notes: jsii.String("notes"),
					},
				},
				UserProvidedHyperParameters: []interface{}{
					&TrainingHyperParameterProperty{
						Name: jsii.String("name"),
						Value: jsii.String("value"),
					},
				},
				UserProvidedTrainingMetrics: []interface{}{
					&TrainingMetricProperty{
						Name: jsii.String("name"),
						Value: jsii.Number(123),

						// the properties below are optional
						Notes: jsii.String("notes"),
					},
				},
			},
			TrainingObservations: jsii.String("trainingObservations"),
		},
	},
	ModelCardName: jsii.String("modelCardName"),
	ModelCardStatus: jsii.String("modelCardStatus"),

	// the properties below are optional
	CreatedBy: &UserContextProperty{
		DomainId: jsii.String("domainId"),
		UserProfileArn: jsii.String("userProfileArn"),
		UserProfileName: jsii.String("userProfileName"),
	},
	LastModifiedBy: &UserContextProperty{
		DomainId: jsii.String("domainId"),
		UserProfileArn: jsii.String("userProfileArn"),
		UserProfileName: jsii.String("userProfileName"),
	},
	SecurityConfig: &SecurityConfigProperty{
		KmsKeyId: jsii.String("kmsKeyId"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
})

Initializer ​

ts
new CfnModelCard(scope: Construct, id: string, props: CfnModelCardProps)
python
CfnModelCard(scope: Construct, id: str, props: CfnModelCardProps)
java
new CfnModelCard(Construct scope, String id, CfnModelCardProps props)
csharp
new CfnModelCard(Construct scope, string id, CfnModelCardProps props)
go
NewCfnModelCard(Scope Construct, Id *string, Props CfnModelCardProps)

Construct Props ​

contentIResolvable | CfnModelCard.ContentPropertycontenttyping.Union[IResolvable, ContentProperty]contentIResolvableContentIResolvableContentinterface{} required #
The content of the model card.

Content uses the model card JSON schema .

createdByoptionalIResolvable | CfnModelCard.UserContextPropertycreated_byoptionaltyping.Union[IResolvable, UserContextProperty]createdByoptionalIResolvableCreatedByoptionalIResolvableCreatedByoptionalinterface{} #
Information about the user who created or modified one or more of the following:.
  • Experiment
  • Trial
  • Trial component
  • Lineage group
  • Project
  • Model Card
lastModifiedByoptionalIResolvable | CfnModelCard.UserContextPropertylast_modified_byoptionaltyping.Union[IResolvable, UserContextProperty]lastModifiedByoptionalIResolvableLastModifiedByoptionalIResolvableLastModifiedByoptionalinterface{} #
Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
modelCardNamestringmodel_card_namestrmodelCardNameStringModelCardNamestringModelCardName*string required #
The unique name of the model card.
modelCardStatusstringmodel_card_statusstrmodelCardStatusStringModelCardStatusstringModelCardStatus*string required #
The approval status of the model card within your organization.
notes

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.
securityConfigoptionalIResolvable | CfnModelCard.SecurityConfigPropertysecurity_configoptionaltyping.Union[IResolvable, SecurityConfigProperty]securityConfigoptionalIResolvableSecurityConfigoptionalIResolvableSecurityConfigoptionalinterface{} #
The security configuration used to protect model card data.
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Key-value pairs used to manage metadata for the model card.

Properties ​

attrCreatedByDomainIdstringattr_created_by_domain_idstrattrCreatedByDomainIdStringAttrCreatedByDomainIdstringAttrCreatedByDomainId*string #
The domain associated with the user.
attrCreatedByUserProfileArnstringattr_created_by_user_profile_arnstrattrCreatedByUserProfileArnStringAttrCreatedByUserProfileArnstringAttrCreatedByUserProfileArn*string #
The Amazon Resource Name (ARN) of the user's profile.
attrCreatedByUserProfileNamestringattr_created_by_user_profile_namestrattrCreatedByUserProfileNameStringAttrCreatedByUserProfileNamestringAttrCreatedByUserProfileName*string #
The name of the user's profile.
attrCreationTimestringattr_creation_timestrattrCreationTimeStringAttrCreationTimestringAttrCreationTime*string #
The date and time the model card was created.
attrLastModifiedByDomainIdstringattr_last_modified_by_domain_idstrattrLastModifiedByDomainIdStringAttrLastModifiedByDomainIdstringAttrLastModifiedByDomainId*string #
The domain associated with the user.
attrLastModifiedByUserProfileArnstringattr_last_modified_by_user_profile_arnstrattrLastModifiedByUserProfileArnStringAttrLastModifiedByUserProfileArnstringAttrLastModifiedByUserProfileArn*string #
The Amazon Resource Name (ARN) of the user's profile.
attrLastModifiedByUserProfileNamestringattr_last_modified_by_user_profile_namestrattrLastModifiedByUserProfileNameStringAttrLastModifiedByUserProfileNamestringAttrLastModifiedByUserProfileName*string #
The name of the user's profile.
attrLastModifiedTimestringattr_last_modified_timestrattrLastModifiedTimeStringAttrLastModifiedTimestringAttrLastModifiedTime*string #
The date and time the model card was last modified.
attrModelCardArnstringattr_model_card_arnstrattrModelCardArnStringAttrModelCardArnstringAttrModelCardArn*string #
The Amazon Resource Number (ARN) of the model card.

For example, arn:aws:sagemaker:us-west-2:012345678901:modelcard/examplemodelcard .

attrModelCardProcessingStatusstringattr_model_card_processing_statusstrattrModelCardProcessingStatusStringAttrModelCardProcessingStatusstringAttrModelCardProcessingStatus*string #
The processing status of model card deletion.

The ModelCardProcessingStatus updates throughout the different deletion steps.

attrModelCardVersionnumberattr_model_card_versionint | floatattrModelCardVersionNumberAttrModelCardVersiondoubleAttrModelCardVersion*float64 #
A version of the model card.
CFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAMEstrCFN_RESOURCE_TYPE_NAMEStringCFN_RESOURCE_TYPE_NAMEstringCFN_RESOURCE_TYPE_NAME*string static #
The CloudFormation resource type name for this resource class.
Options for this resource, such as condition, update policy etc.
cfnResourceTypestringcfn_resource_typestrcfnResourceTypeStringCfnResourceTypestringCfnResourceType*string #
AWS resource type.
contentIResolvable | CfnModelCard.ContentPropertycontenttyping.Union[IResolvable, ContentProperty]contentIResolvableContentIResolvableContentinterface{} #
The content of the model card.
createdBymay be undefinedIResolvable | CfnModelCard.UserContextPropertycreated_bymay be undefinedtyping.Union[IResolvable, UserContextProperty]createdBymay be undefinedIResolvableCreatedBymay be undefinedIResolvableCreatedBymay be undefinedinterface{} #
Information about the user who created or modified one or more of the following:.
creationStackstring[]creation_stacktyping.List[str]creationStackList<String>CreationStackstring[]CreationStack*[]*string #
lastModifiedBymay be undefinedIResolvable | CfnModelCard.UserContextPropertylast_modified_bymay be undefinedtyping.Union[IResolvable, UserContextProperty]lastModifiedBymay be undefinedIResolvableLastModifiedBymay be undefinedIResolvableLastModifiedBymay be undefinedinterface{} #
Information about the user who created or modified an experiment, trial, trial component, lineage group, project, or model card.
logicalIdstringlogical_idstrlogicalIdStringLogicalIdstringLogicalId*string #
The logical ID for this CloudFormation stack element.

The logical ID of the element is calculated from the path of the resource node in the construct tree.

To override this value, use overrideLogicalId(newLogicalId).

modelCardNamestringmodel_card_namestrmodelCardNameStringModelCardNamestringModelCardName*string #
The unique name of the model card.
modelCardRefModelCardReferencemodel_card_refModelCardReferencemodelCardRefModelCardReferenceModelCardRefModelCardReferenceModelCardRefModelCardReference #
A reference to a ModelCard resource.
modelCardStatusstringmodel_card_statusstrmodelCardStatusStringModelCardStatusstringModelCardStatus*string #
The approval status of the model card within your organization.
nodeNodenodeNodenodeNodeNodeNodeNodeNode #
The tree node.
refstringrefstrrefStringRefstringRef*string #
Return a string that will be resolved to a CloudFormation `{ Ref }` for this element.

If, by any chance, the intrinsic reference of a resource is not a string, you could coerce it to an IResolvable through Lazy.any({ produce: resource.ref }).

securityConfigmay be undefinedIResolvable | CfnModelCard.SecurityConfigPropertysecurity_configmay be undefinedtyping.Union[IResolvable, SecurityConfigProperty]securityConfigmay be undefinedIResolvableSecurityConfigmay be undefinedIResolvableSecurityConfigmay be undefinedinterface{} #
The security configuration used to protect model card data.
stackStackstackStackstackStackStackStackStackStack #
The stack in which this element is defined.

CfnElements must be defined within a stack scope (directly or indirectly).

Tag Manager which manages the tags for this resource.
tagsRawmay be undefinedCfnTag[]tags_rawmay be undefinedtyping.List[CfnTag]tagsRawmay be undefinedList<CfnTag>TagsRawmay be undefinedCfnTag[]TagsRawmay be undefined*[]CfnTag #
Key-value pairs used to manage metadata for the model card.

Methods ​

addDeletionOverride(path: string): voiddef add_deletion_override(self, path: str) -> Nonepublic void addDeletionOverride(String path)public void AddDeletionOverride(string path)func AddDeletionOverride(Path *string) #
Syntactic sugar for `addOverride(path, undefined)`.
1 parameter

Parameters

  • pathpathpathpathPath — The path of the value to delete.
addDependency(target: CfnResource): voiddef add_dependency(self, target: CfnResource) -> Nonepublic void addDependency(CfnResource target)public void AddDependency(CfnResource target)func AddDependency(Target CfnResource) deprecated #
Use `addResourceDependency` instead.

This method has been renamed to addResourceDependency to more clearly set it apart from construct.node.addDependency. See the documentation of that function for more details.

addDependsOn(target: CfnResource): voiddef add_depends_on(self, target: CfnResource) -> Nonepublic void addDependsOn(CfnResource target)public void AddDependsOn(CfnResource target)func AddDependsOn(Target CfnResource) deprecated #
Use `addResourceDependency` instead.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method has been renamed to addResourceDependency, which makes it more clear that this method operates at a different level from the construct-level construct.node.addDependency() mechanism.

addMetadata(key: string, value: any): voiddef add_metadata(self, key: str, value: Any) -> Nonepublic void addMetadata(String key, Object value)public void AddMetadata(string key, object value)func AddMetadata(Key *string, Value interface{}) #
Add a value to the CloudFormation Resource Metadata.
addOverride(path: string, value: any): voiddef add_override(self, path: str, value: Any) -> Nonepublic void addOverride(String path, Object value)public void AddOverride(string path, object value)func AddOverride(Path *string, Value interface{}) #
Adds an override to the synthesized CloudFormation resource.
notes · 2 parameters

To add a property override, either use addPropertyOverride or prefix path with "Properties." (i.e. Properties.TopicName).

If the override is nested, separate each nested level using a dot (.) in the path parameter. If there is an array as part of the nesting, specify the index in the path.

To include a literal . in the property name, prefix with a \. In most programming languages you will need to write this as "\\." because the \ itself will need to be escaped.

For example,

typescript
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.0.Projection.NonKeyAttributes', ['myattribute']);
cfnResource.addOverride('Properties.GlobalSecondaryIndexes.1.ProjectionType', 'INCLUDE');

would add the overrides

json
"Properties": {
  "GlobalSecondaryIndexes": [
    {
      "Projection": {
        "NonKeyAttributes": [ "myattribute" ]
        ...
      }
      ...
    },
    {
      "ProjectionType": "INCLUDE"
      ...
    },
  ]
  ...
}

The value argument to addOverride will not be processed or translated in any way. Pass raw JSON values in here with the correct capitalization for CloudFormation. If you pass CDK classes or structs, they will be rendered with lowercased key names, and CloudFormation will reject the template.

Parameters

  • pathpathpathpathPath — - The path of the property, you can use dot notation to override values in complex types.
  • valuevaluevaluevalueValue — - The value.
addPropertyDeletionOverride(propertyPath: string): voiddef add_property_deletion_override(self, property_path: str) -> Nonepublic void addPropertyDeletionOverride(String propertyPath)public void AddPropertyDeletionOverride(string propertyPath)func AddPropertyDeletionOverride(PropertyPath *string) #
Adds an override that deletes the value of a property from the resource definition.
1 parameter

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path to the property.
addPropertyOverride(propertyPath: string, value: any): voiddef add_property_override(self, property_path: str, value: Any) -> Nonepublic void addPropertyOverride(String propertyPath, Object value)public void AddPropertyOverride(string propertyPath, object value)func AddPropertyOverride(PropertyPath *string, Value interface{}) #
Adds an override to a resource property.

Syntactic sugar for addOverride("Properties.<...>", value).

2 parameters

Parameters

  • propertyPathproperty_pathpropertyPathpropertyPathPropertyPath — The path of the property.
  • valuevaluevaluevalueValue — The value.
addResourceDependency(target: CfnResource, reason?: string): voiddef add_resource_dependency(self, target: CfnResource, reason: typing.Optional[str] = None) -> Nonepublic void addResourceDependency(CfnResource target, String reason)public void AddResourceDependency(CfnResource target, string? reason = null)func AddResourceDependency(Target CfnResource, Reason *string) #
Indicates that this resource depends on another resource and cannot be provisioned unless the other resource has been successfully provisioned.
notes

This can be used for resources across stacks (or nested stack) boundaries and the dependency will automatically be transferred to the relevant scope.

This method only adds dependencies between L1 resources. If you are looking for a generic construct-to-construct dependency mechanism that works for all constructs including L2s, use construct.node.addDependency instead.

applyCrossStackReferenceStrength(strength: ReferenceStrength): voiddef apply_cross_stack_reference_strength(self, strength: ReferenceStrength) -> Nonepublic void applyCrossStackReferenceStrength(ReferenceStrength strength)public void ApplyCrossStackReferenceStrength(ReferenceStrength strength)func ApplyCrossStackReferenceStrength(Strength ReferenceStrength) #
Sets the cross-stack reference strength for this resource.

When set, any cross-stack reference to this resource will use the specified strength instead of the global default from the consuming stack's context.

1 parameter

Parameters

  • strengthstrengthstrengthstrengthStrength — - The reference strength to use for this resource.
applyRemovalPolicy(policy?: RemovalPolicy, options?: RemovalPolicyOptions): voiddef apply_removal_policy(self, policy: typing.Optional[RemovalPolicy] = None, options: typing.Optional[RemovalPolicyOptions] = None) -> Nonepublic void applyRemovalPolicy(RemovalPolicy policy, RemovalPolicyOptions options)public void ApplyRemovalPolicy(RemovalPolicy? policy = null, RemovalPolicyOptions? options = null)func ApplyRemovalPolicy(Policy RemovalPolicy, Options RemovalPolicyOptions) #
Sets the deletion policy of the resource based on the removal policy specified.
notes

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN). In some cases, a snapshot can be taken of the resource prior to deletion (RemovalPolicy.SNAPSHOT). A list of resources that support this policy can be found in the following link:

arnForModelCard(resource: IModelCardRef): string@staticmethod def arn_for_model_card(resource: IModelCardRef) -> strpublic static String arnForModelCard(IModelCardRef resource)public static string ArnForModelCard(IModelCardRef resource)func ArnForModelCard(Resource IModelCardRef) *string static #
cfnPropertyName(cdkPropertyName: string): stringdef cfn_property_name(self, cdk_property_name: str) -> strpublic String cfnPropertyName(String cdkPropertyName)public string CfnPropertyName(string cdkPropertyName)func CfnPropertyName(CdkPropertyName *string) *string #
fromModelCardArn(scope: Construct, id: string, arn: string): IModelCardRef@staticmethod def from_model_card_arn(scope: Construct, id: str, arn: str) -> IModelCardRefpublic static IModelCardRef fromModelCardArn(Construct scope, String id, String arn)public static IModelCardRef FromModelCardArn(Construct scope, string id, string arn)func FromModelCardArn(Scope Construct, Id *string, Arn *string) IModelCardRef static #
Creates a new IModelCardRef from an ARN.
fromModelCardName(scope: Construct, id: string, modelCardName: string): IModelCardRef@staticmethod def from_model_card_name(scope: Construct, id: str, model_card_name: str) -> IModelCardRefpublic static IModelCardRef fromModelCardName(Construct scope, String id, String modelCardName)public static IModelCardRef FromModelCardName(Construct scope, string id, string modelCardName)func FromModelCardName(Scope Construct, Id *string, ModelCardName *string) IModelCardRef static #
Creates a new IModelCardRef from a modelCardName.
getAtt(attributeName: string, typeHint?: ResolutionTypeHint): Referencedef get_att(self, attribute_name: str, type_hint: typing.Optional[ResolutionTypeHint] = None) -> Referencepublic Reference getAtt(String attributeName, ResolutionTypeHint typeHint)public Reference GetAtt(string attributeName, ResolutionTypeHint? typeHint = null)func GetAtt(AttributeName *string, TypeHint ResolutionTypeHint) Reference #
Returns a token for an runtime attribute of this resource.

Ideally, use generated attribute accessors (e.g. resource.arn), but this can be used for future compatibility in case there is no generated attribute.

1 parameter

Parameters

  • attributeNameattribute_nameattributeNameattributeNameAttributeName — The name of the attribute.
getMetadata(key: string): anydef get_metadata(self, key: str) -> Anypublic Object getMetadata(String key)public object GetMetadata(string key)func GetMetadata(Key *string) interface{} #
Retrieve a value value from the CloudFormation Resource Metadata.
inspect(inspector: TreeInspector): voiddef inspect(self, inspector: TreeInspector) -> Nonepublic void inspect(TreeInspector inspector)public void Inspect(TreeInspector inspector)func Inspect(Inspector TreeInspector) #
Examines the CloudFormation resource and discloses attributes.
1 parameter

Parameters

  • inspectorinspectorinspectorinspectorInspector — tree inspector to collect and process attributes.
isCfnElement(x: any): boolean@staticmethod def is_cfn_element(x: Any) -> boolpublic static Boolean isCfnElement(Object x)public static bool IsCfnElement(object x)func IsCfnElement(X interface{}) *bool static #
Returns `true` if a construct is a stack element (i.e. part of the synthesized cloudformation template).

Uses duck-typing instead of instanceof to allow stack elements from different versions of this library to be included in the same stack.

returns

Returns: The construct as a stack element or undefined if it is not a stack element.

isCfnModelCard(x: any): boolean@staticmethod def is_cfn_model_card(x: Any) -> boolpublic static Boolean isCfnModelCard(Object x)public static bool IsCfnModelCard(object x)func IsCfnModelCard(X interface{}) *bool static #
Checks whether the given object is a CfnModelCard.
isCfnResource(x: any): boolean@staticmethod def is_cfn_resource(x: Any) -> boolpublic static Boolean isCfnResource(Object x)public static bool IsCfnResource(object x)func IsCfnResource(X interface{}) *bool static #
Check whether the given object is a CfnResource.
isConstruct(x: any): boolean@staticmethod def is_construct(x: Any) -> boolpublic static Boolean isConstruct(Object x)public static bool IsConstruct(object x)func IsConstruct(X interface{}) *bool static #
Checks if `x` is a construct.
notes · 1 parameter · returns

Use this method instead of instanceof to properly detect Construct instances, even when the construct library is symlinked.

Explanation: in JavaScript, multiple copies of the constructs library on disk are seen as independent, completely different libraries. As a consequence, the class Construct in each copy of the constructs library is seen as a different class, and an instance of one class will not test as instanceof the other class. npm install will not create installations like this, but users may manually symlink construct libraries together or use a monorepo tool: in those cases, multiple copies of the constructs library can be accidentally installed, and instanceof will behave unpredictably. It is safest to avoid using instanceof, and using this type-testing method instead.

Parameters

  • xxxxX — Any object.

Returns: true if x is an object created from a class which extends Construct.

obtainDependencies(): Stack | CfnResource[]def obtain_dependencies(self, ) -> typing.List[typing.Union[Stack, CfnResource]]public List<Stack> obtainDependencies()public Stack[] ObtainDependencies()func ObtainDependencies() *[]interface{} #
Retrieves an array of resources and stacks this resource depends on.

For resources depended on directly, returns the CfnResource object. For dependencies on other stacks, returns the Stack object. The order of the array is not guaranteed.

overrideLogicalId(newLogicalId: string): voiddef override_logical_id(self, new_logical_id: str) -> Nonepublic void overrideLogicalId(String newLogicalId)public void OverrideLogicalId(string newLogicalId)func OverrideLogicalId(NewLogicalId *string) #
Overrides the auto-generated logical ID with a specific ID.
1 parameter

Parameters

  • newLogicalIdnew_logical_idnewLogicalIdnewLogicalIdNewLogicalId — The new logical ID to use for this stack element.
removeDependency(target: CfnResource): voiddef remove_dependency(self, target: CfnResource) -> Nonepublic void removeDependency(CfnResource target)public void RemoveDependency(CfnResource target)func RemoveDependency(Target CfnResource) deprecated #
Use `removeResourceDependency` instead

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

removeResourceDependency(target: CfnResource): voiddef remove_resource_dependency(self, target: CfnResource) -> Nonepublic void removeResourceDependency(CfnResource target)public void RemoveResourceDependency(CfnResource target)func RemoveResourceDependency(Target CfnResource) #
Indicates that this resource no longer depends on another resource.

This can be used for resources across stacks (including nested stacks) and the dependency will automatically be removed from the relevant scope.

replaceDependency(target: CfnResource, newTarget: CfnResource): voiddef replace_dependency(self, target: CfnResource, new_target: CfnResource) -> Nonepublic void replaceDependency(CfnResource target, CfnResource newTarget)public void ReplaceDependency(CfnResource target, CfnResource newTarget)func ReplaceDependency(Target CfnResource, NewTarget CfnResource) #
Replaces one dependency with another.
2 parameters

Parameters

  • targettargettargettargetTarget — The dependency to replace.
  • newTargetnew_targetnewTargetnewTargetNewTarget — The new dependency to add.
toString(): stringdef to_string(self, ) -> strpublic String toString()public string ToString()func ToString() *string #
Returns a string representation of this construct.
returns

Returns: a string representation of this resource

with(...mixins: IMixin[]): IConstructdef with(self, mixins: IMixin) -> IConstructpublic IConstruct with(IMixin mixins)public IConstruct With(IMixin mixins)func With(Mixins IMixin) IConstruct #
Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.