Skip to content
v2.274.0

Experimental

@aws-cdk/aws-sagemaker-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

ModelAttributes Struct ​

Represents a Model resource defined outside this stack.

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 ​

modelArnstringmodel_arnstrmodelArnStringModelArnstringModelArn*stringrequired#
The ARN of this model.
roleIRoleroleIRoleroleIRoleRoleIRoleRoleIRole#
The IAM execution role associated with this model.

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

securityGroupsISecurityGroup[]security_groupstyping.List[ISecurityGroup]securityGroupsList<ISecurityGroup>SecurityGroupsISecurityGroup[]SecurityGroups*[]ISecurityGroup#
The security groups for this model, if in a VPC.

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