Interface ModelAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ModelAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:50.437Z")
@Stability(Experimental)
public interface ModelAttributes
extends software.amazon.jsii.JsiiSerializable
(experimental) Represents a Model resource defined outside this stack.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.alpha.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.iam.*;
Role role;
SecurityGroup securityGroup;
ModelAttributes modelAttributes = ModelAttributes.builder()
.modelArn("modelArn")
// the properties below are optional
.role(role)
.securityGroups(List.of(securityGroup))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forModelAttributesstatic final classAn implementation forModelAttributes -
Method Summary
Modifier and TypeMethodDescriptionstatic ModelAttributes.Builderbuilder()(experimental) The ARN of this model.default IRolegetRole()(experimental) The IAM execution role associated with this model.default List<ISecurityGroup> (experimental) The security groups for this model, if in a VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getModelArn
(experimental) The ARN of this model. -
getRole
(experimental) The IAM execution role associated with this model.Default: - When not provided, any role-related operations will no-op.
-
getSecurityGroups
(experimental) The security groups for this model, if in a VPC.Default: - When not provided, the connections to/from this model cannot be managed.
-
builder
- Returns:
- a
ModelAttributes.BuilderofModelAttributes
-