Class: Aws::SageMaker::Types::VpcConfig
- Inherits:
-
Struct
- Object
- Struct
- Aws::SageMaker::Types::VpcConfig
- Includes:
- Aws::Structure
- Defined in:
- lib/aws-sdk-sagemaker/types.rb
Overview
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].
[1]: docs.aws.amazon.com/sagemaker/latest/dg/host-vpc.html [2]: docs.aws.amazon.com/sagemaker/latest/dg/train-vpc.html
Instance Attribute Summary collapse
-
#security_group_ids ⇒ Array<String>
The VPC security group IDs, in the form sg-xxxxxxxx.
-
#subnets ⇒ Array<String>
The ID of the subnets in the VPC to which you want to connect your training job or model.
Instance Attribute Details
#security_group_ids ⇒ Array<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.
20623 20624 20625 20626 20627 |
# File 'lib/aws-sdk-sagemaker/types.rb', line 20623 class VpcConfig < Struct.new( :security_group_ids, :subnets) include Aws::Structure end |
#subnets ⇒ Array<String>
The ID of the subnets in the VPC to which you want to connect your training job or model.
<note markdown=“1”> 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.
</note>
20623 20624 20625 20626 20627 |
# File 'lib/aws-sdk-sagemaker/types.rb', line 20623 class VpcConfig < Struct.new( :security_group_ids, :subnets) include Aws::Structure end |