# CfnArtifactProps

Properties for defining a `CfnArtifact`.

Extends: CfnArtifactProps
Used as props by: CfnArtifact

- Source: Generated code
- Type last changed: v2.268.0 · 2 Sep 2026

## 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 cfnArtifactProps: sagemaker.CfnArtifactProps = {
  artifactType: 'artifactType',
  source: {
    sourceUri: 'sourceUri',

    // the properties below are optional
    sourceTypes: [{
      sourceIdType: 'sourceIdType',
      value: 'value',
    }],
  },

  // the properties below are optional
  artifactName: 'artifactName',
  metadataProperties: {
    commitId: 'commitId',
    generatedBy: 'generatedBy',
    projectId: 'projectId',
    repository: 'repository',
  },
  properties: {
    propertiesKey: 'properties',
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `artifactName`: string — The name of the artifact.

  Must be unique to your account in an AWS Region.

- `artifactType`: string (required) — The artifact type.

- `metadataProperties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnArtifact.MetadataPropertiesProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnArtifact.MetadataPropertiesProperty.html)

- `properties`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | { [key: string]: string } — A list of properties to add to the artifact.

- `source`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnArtifact.ArtifactSourceProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_sagemaker.CfnArtifact.ArtifactSourceProperty.html) (required)

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of tags to apply to the artifact.
