Interface VpcConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
VpcConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:48.254Z")
@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")
.subnetName("subnetName")
.subnets(List.of(subnet))
.subnetType(SubnetType.ISOLATED)
.build())
.build();
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic VpcConfig.Builderbuilder()default SubnetSelectionVPC 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.BuilderofVpcConfig
-