Class: AWSCDK::StepFunctionsTasks::VPCConfig

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(vpc:, subnets: nil) ⇒ VPCConfig

Returns a new instance of VPCConfig.

Parameters:



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

#subnetsAWSCDK::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

#vpcAWSCDK::EC2::IVPC (readonly)

VPC.

Returns:



19
20
21
# File 'step_functions_tasks/vpc_config.rb', line 19

def vpc
  @vpc
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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