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

Represents a Model resource defined outside this stack.

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

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sagemaker_alpha from '@aws-cdk/aws-sagemaker-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_iam as iam } from 'aws-cdk-lib';

declare const role: iam.Role;
declare const securityGroup: ec2.SecurityGroup;
const modelAttributes: sagemaker_alpha.ModelAttributes = {
  modelArn: 'modelArn',

  // the properties below are optional
  role: role,
  securityGroups: [securityGroup],
};
```

## Properties

- `modelArn`: string (required) — The ARN of this model.

- `role`: [IRole](/cdk/api/v2/docs/aws-cdk-lib.aws_iam.IRole.html) — The IAM execution role associated with this model.

  **Default:** When not provided, any role-related operations will no-op.

- `securityGroups`: [ISecurityGroup](/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.ISecurityGroup.html)[] — The security groups for this model, if in a VPC.

  **Default:** When not provided, the connections to/from this model cannot be managed.
