Interface ModelAttributes
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
ModelAttributes.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:26.125Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forModelAttributes
static final class
An implementation forModelAttributes
-
Method Summary
Modifier and TypeMethodDescriptionstatic ModelAttributes.Builder
builder()
(experimental) The ARN of this model.default IRole
getRole()
(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.Builder
ofModelAttributes
-