Interface VpcConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:28.106Z")
@Stability(Stable)
public interface VpcConfig
extends software.amazon.jsii.JsiiSerializable
Specifies the VPC that you want your Amazon SageMaker training job to connect to.
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.ec2.*; import software.amazon.awscdk.services.stepfunctions.tasks.*; Subnet subnet; SubnetFilter subnetFilter; Vpc vpc; VpcConfig vpcConfig = VpcConfig.builder() .vpc(vpc) // the properties below are optional .subnets(SubnetSelection.builder() .availabilityZones(List.of("availabilityZones")) .onePerAz(false) .subnetFilters(List.of(subnetFilter)) .subnetGroupName("subnetGroupName") .subnets(List.of(subnet)) .subnetType(SubnetType.PRIVATE_ISOLATED) .build()) .build();
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VpcConfig.Builder
builder()
default SubnetSelection
VPC subnets.getVpc()
VPC.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVpc
VPC. -
getSubnets
VPC subnets.Default: - Private Subnets are selected
-
builder
- Returns:
- a
VpcConfig.Builder
ofVpcConfig
-