interface IModel
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Sagemaker.Alpha.IModel |
![]() | github.com/aws/aws-cdk-go/awscdksagemakeralpha/v2#IModel |
![]() | software.amazon.awscdk.services.sagemaker.alpha.IModel |
![]() | aws_cdk.aws_sagemaker_alpha.IModel |
![]() | @aws-cdk/aws-sagemaker-alpha ยป IModel |
Implemented by
Model
Obtainable from
Model
.fromModelArn()
, Model
.fromModelAttributes()
, Model
.fromModelName()
Interface that defines a Model resource.
Properties
Name | Type | Description |
---|---|---|
connections | Connections | The network connections associated with this resource. |
env | Resource | The environment this resource belongs to. |
grant | IPrincipal | The principal to grant permissions to. |
model | string | Returns the ARN of this model. |
model | string | Returns the name of this model. |
node | Node | The tree node. |
stack | Stack | The stack in which this resource is defined. |
role? | IRole | The IAM role associated with this Model. |
connections
Type:
Connections
The network connections associated with this resource.
env
Type:
Resource
The environment this resource belongs to.
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
grantPrincipal
Type:
IPrincipal
The principal to grant permissions to.
modelArn
Type:
string
Returns the ARN of this model.
modelName
Type:
string
Returns the name of this model.
node
Type:
Node
The tree node.
stack
Type:
Stack
The stack in which this resource is defined.
role?
Type:
IRole
(optional)
The IAM role associated with this Model.
Methods
Name | Description |
---|---|
add | Adds a statement to the IAM role assumed by the instance. |
apply | Apply the given removal policy to this resource. |
addToRolePolicy(statement)
public addToRolePolicy(statement: PolicyStatement): void
Parameters
- statement
Policy
Statement
Adds a statement to the IAM role assumed by the instance.
applyRemovalPolicy(policy)
public applyRemovalPolicy(policy: RemovalPolicy): void
Parameters
- policy
Removal
Policy
Apply the given removal policy to this resource.
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
).