> **Experimental**
>
> `@aws-cdk/aws-sagemaker-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# ModelData

Model data represents the source of model artifacts, which will ultimately be loaded from an S3 location.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/model-data.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-sagemaker-alpha/lib/model-data.ts#L26)

## Example

```ts
import * as sagemaker from '@aws-cdk/aws-sagemaker-alpha';

declare const image: sagemaker.ContainerImage;
declare const modelData: sagemaker.ModelData;

const model = new sagemaker.Model(this, 'ContainerModel', {
  containers: [
    {
      image,
      modelData,
    }
  ],
  networkIsolation: true,
});
```

## Initializer

```ts
new ModelData()
```

## Methods

- `bind(scope: Construct, model: IModel): ModelDataConfig` — This method is invoked by the SageMaker Model construct when it needs to resolve the model data to a URI.

  **Parameters**

  - `scope` — The scope within which the model data is resolved.
  - `model` — The Model construct performing the URI resolution.

- `fromAsset(path: string, options?: AssetOptions): ModelData // chainable` (static) — Constructs model data that will be uploaded to S3 as part of the CDK app deployment.

  **Parameters**

  - `path` — The local path to a model artifact file as a gzipped tar file.
  - `options` — The options to further configure the selected asset.

- `fromBucket(bucket: IBucket, objectKey: string): ModelData // chainable` (static) — Constructs model data which is already available within S3.

  **Parameters**

  - `bucket` — The S3 bucket within which the model artifacts are stored.
  - `objectKey` — The S3 object key at which the model artifacts are stored.
