aws-cdk-lib.aws_stepfunctions_tasks.VpcConfig

interface VpcConfig

LanguageType name
.NETAmazon.CDK.AWS.StepFunctions.Tasks.VpcConfig
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsstepfunctionstasks#VpcConfig
Javasoftware.amazon.awscdk.services.stepfunctions.tasks.VpcConfig
Pythonaws_cdk.aws_stepfunctions_tasks.VpcConfig
TypeScript (source)aws-cdk-lib » aws_stepfunctions_tasks » VpcConfig

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 { aws_ec2 as ec2 } from 'aws-cdk-lib';
import { aws_stepfunctions_tasks as stepfunctions_tasks } from 'aws-cdk-lib';

declare const subnet: ec2.Subnet;
declare const subnetFilter: ec2.SubnetFilter;
declare const vpc: ec2.Vpc;
const vpcConfig: stepfunctions_tasks.VpcConfig = {
  vpc: vpc,

  // the properties below are optional
  subnets: {
    availabilityZones: ['availabilityZones'],
    onePerAz: false,
    subnetFilters: [subnetFilter],
    subnetGroupName: 'subnetGroupName',
    subnets: [subnet],
    subnetType: ec2.SubnetType.PRIVATE_ISOLATED,
  },
};

Properties

NameTypeDescription
vpcIVpcVPC.
subnets?SubnetSelectionVPC subnets.

vpc

Type: IVpc

VPC.


subnets?

Type: SubnetSelection (optional, default: Private Subnets are selected)

VPC subnets.