@Stability(value=Stable)
public static interface CfnModel.VpcConfigProperty
extends software.amazon.jsii.JsiiSerializable
Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .
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.*;
VpcConfigProperty vpcConfigProperty = VpcConfigProperty.builder()
.securityGroupIds(List.of("securityGroupIds"))
.subnets(List.of("subnets"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnModel.VpcConfigProperty.Builder
A builder for
CfnModel.VpcConfigProperty |
static class |
CfnModel.VpcConfigProperty.Jsii$Proxy
An implementation for
CfnModel.VpcConfigProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnModel.VpcConfigProperty.Builder |
builder() |
List<String> |
getSecurityGroupIds()
The VPC security group IDs, in the form sg-xxxxxxxx.
|
List<String> |
getSubnets()
The ID of the subnets in the VPC to which you want to connect your training job or model.
|
@Stability(value=Stable) @NotNull List<String> getSecurityGroupIds()
Specify the security groups for the VPC that is specified in the Subnets field.
@Stability(value=Stable) @NotNull List<String> getSubnets()
For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .
@Stability(value=Stable) static CfnModel.VpcConfigProperty.Builder builder()
CfnModel.VpcConfigProperty.Builder of CfnModel.VpcConfigPropertyCopyright © 2022. All rights reserved.