Class: AWSCDK::Sagemaker::CfnCluster::VPCConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnCluster::VPCConfigProperty
- Defined in:
- sagemaker/cfn_cluster.rb
Overview
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.
You can control access to and from your resources by configuring a VPC. For more information, see Give SageMaker Access to Resources in your Amazon VPC .
Instance Attribute Summary collapse
-
#security_group_ids ⇒ Array<String>
readonly
The VPC security group IDs, in the form
sg-xxxxxxxx. -
#subnets ⇒ Array<String>
readonly
The ID of the subnets in the VPC to which you want to connect your training job or model.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(security_group_ids:, subnets:) ⇒ VPCConfigProperty
constructor
A new instance of VPCConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(security_group_ids:, subnets:) ⇒ VPCConfigProperty
Returns a new instance of VPCConfigProperty.
2166 2167 2168 2169 2170 2171 |
# File 'sagemaker/cfn_cluster.rb', line 2166 def initialize(security_group_ids:, subnets:) @security_group_ids = security_group_ids Jsii::Type.check_type(@security_group_ids, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "securityGroupIds") @subnets = subnets Jsii::Type.check_type(@subnets, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "subnets") end |
Instance Attribute Details
#security_group_ids ⇒ Array<String> (readonly)
The VPC security group IDs, in the form sg-xxxxxxxx .
Specify the security groups for the VPC that is specified in the Subnets field.
2179 2180 2181 |
# File 'sagemaker/cfn_cluster.rb', line 2179 def security_group_ids @security_group_ids end |
#subnets ⇒ Array<String> (readonly)
The ID of the subnets in the VPC to which you want to connect your training job or model.
For information about the availability of specific instance types, see Supported Instance Types and Availability Zones .
2186 2187 2188 |
# File 'sagemaker/cfn_cluster.rb', line 2186 def subnets @subnets end |
Class Method Details
.jsii_properties ⇒ Object
2188 2189 2190 2191 2192 2193 |
# File 'sagemaker/cfn_cluster.rb', line 2188 def self.jsii_properties { :security_group_ids => "securityGroupIds", :subnets => "subnets", } end |
Instance Method Details
#to_jsii ⇒ Object
2195 2196 2197 2198 2199 2200 2201 2202 |
# File 'sagemaker/cfn_cluster.rb', line 2195 def to_jsii result = {} result.merge!({ "securityGroupIds" => @security_group_ids, "subnets" => @subnets, }) result.compact end |