You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::SageMaker::Types::VpcConfig

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb

Overview

Note:

When making an API call, you may pass VpcConfig data as a hash:

{
  security_group_ids: ["SecurityGroupId"], # required
  subnets: ["SubnetId"], # required
}

Specifies a VPC that your training jobs and hosted models have access to. 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.

Instance Attribute Summary collapse

Instance Attribute Details

#security_group_idsArray<String>

The VPC security group IDs, in the form sg-xxxxxxxx. Specify the security groups for the VPC that is specified in the Subnets field.

Returns:

  • (Array<String>)


12505
12506
12507
12508
12509
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 12505

class VpcConfig < Struct.new(
  :security_group_ids,
  :subnets)
  include Aws::Structure
end

#subnetsArray<String>

The ID of the subnets in the VPC to which you want to connect your training job or model.

Amazon EC2 P3 accelerated computing instances are not available in the c/d/e availability zones of region us-east-1. If you want to create endpoints with P3 instances in VPC mode in region us-east-1, create subnets in a/b/f availability zones instead.

Returns:

  • (Array<String>)


12505
12506
12507
12508
12509
# File 'gems/aws-sdk-sagemaker/lib/aws-sdk-sagemaker/types.rb', line 12505

class VpcConfig < Struct.new(
  :security_group_ids,
  :subnets)
  include Aws::Structure
end