Class: AWSCDK::StepFunctionsTasks::VPCConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::StepFunctionsTasks::VPCConfig
- Defined in:
- step_functions_tasks/vpc_config.rb
Overview
Specifies the VPC that you want your Amazon SageMaker training job to connect to.
Instance Attribute Summary collapse
-
#subnets ⇒ AWSCDK::EC2::SubnetSelection?
readonly
VPC subnets.
-
#vpc ⇒ AWSCDK::EC2::IVPC
readonly
VPC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(vpc:, subnets: nil) ⇒ VPCConfig
constructor
A new instance of VPCConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(vpc:, subnets: nil) ⇒ VPCConfig
Returns a new instance of VPCConfig.
9 10 11 12 13 14 |
# File 'step_functions_tasks/vpc_config.rb', line 9 def initialize(vpc:, subnets: nil) @vpc = vpc Jsii::Type.check_type(@vpc, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklWcGMifQ==")), "vpc") @subnets = subnets.is_a?(Hash) ? ::AWSCDK::EC2::SubnetSelection.new(**subnets.transform_keys(&:to_sym)) : subnets Jsii::Type.check_type(@subnets, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLlN1Ym5ldFNlbGVjdGlvbiJ9")), "subnets") unless @subnets.nil? end |
Instance Attribute Details
#subnets ⇒ AWSCDK::EC2::SubnetSelection? (readonly)
Note:
Default: - Private Subnets are selected
VPC subnets.
24 25 26 |
# File 'step_functions_tasks/vpc_config.rb', line 24 def subnets @subnets end |
#vpc ⇒ AWSCDK::EC2::IVPC (readonly)
VPC.
19 20 21 |
# File 'step_functions_tasks/vpc_config.rb', line 19 def vpc @vpc end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'step_functions_tasks/vpc_config.rb', line 26 def self.jsii_properties { :vpc => "vpc", :subnets => "subnets", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'step_functions_tasks/vpc_config.rb', line 33 def to_jsii result = {} result.merge!({ "vpc" => @vpc, "subnets" => @subnets, }) result.compact end |