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();
 
  • Method Details

    • getModelArn

      @Stability(Experimental) @NotNull String getModelArn()
      (experimental) The ARN of this model.
    • getRole

      @Stability(Experimental) @Nullable default IRole getRole()
      (experimental) The IAM execution role associated with this model.

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

    • getSecurityGroups

      @Stability(Experimental) @Nullable default List<ISecurityGroup> 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

      @Stability(Experimental) static ModelAttributes.Builder builder()
      Returns:
      a ModelAttributes.Builder of ModelAttributes