Class: AWSCDK::Sagemaker::CfnProcessingJob::NetworkConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Sagemaker::CfnProcessingJob::NetworkConfigProperty
- Defined in:
- sagemaker/cfn_processing_job.rb
Overview
Networking options for a job, such as network traffic encryption between containers, whether to allow inbound and outbound network calls to and from containers, and the VPC subnets and security groups to use for VPC-enabled jobs.
Instance Attribute Summary collapse
-
#enable_inter_container_traffic_encryption ⇒ Boolean, ...
readonly
Whether to encrypt all communications between distributed processing jobs.
-
#enable_network_isolation ⇒ Boolean, ...
readonly
Whether to allow inbound and outbound network calls to and from the containers used for the processing job.
-
#vpc_config ⇒ AWSCDK::IResolvable, ...
readonly
Specifies an Amazon Virtual Private Cloud (VPC) that your SageMaker jobs, hosted models, and compute resources have access to.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enable_inter_container_traffic_encryption: nil, enable_network_isolation: nil, vpc_config: nil) ⇒ NetworkConfigProperty
constructor
A new instance of NetworkConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enable_inter_container_traffic_encryption: nil, enable_network_isolation: nil, vpc_config: nil) ⇒ NetworkConfigProperty
Returns a new instance of NetworkConfigProperty.
1158 1159 1160 1161 1162 1163 1164 1165 |
# File 'sagemaker/cfn_processing_job.rb', line 1158 def initialize(enable_inter_container_traffic_encryption: nil, enable_network_isolation: nil, vpc_config: nil) @enable_inter_container_traffic_encryption = enable_inter_container_traffic_encryption Jsii::Type.check_type(@enable_inter_container_traffic_encryption, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableInterContainerTrafficEncryption") unless @enable_inter_container_traffic_encryption.nil? @enable_network_isolation = enable_network_isolation Jsii::Type.check_type(@enable_network_isolation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableNetworkIsolation") unless @enable_network_isolation.nil? @vpc_config = vpc_config.is_a?(Hash) ? ::AWSCDK::Sagemaker::CfnProcessingJob::VPCConfigProperty.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config Jsii::Type.check_type(@vpc_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuUHJvY2Vzc2luZ0pvYi5WcGNDb25maWdQcm9wZXJ0eSJ9XX19")), "vpcConfig") unless @vpc_config.nil? end |
Instance Attribute Details
#enable_inter_container_traffic_encryption ⇒ Boolean, ... (readonly)
Whether to encrypt all communications between distributed processing jobs.
Choose True to encrypt communications. Encryption provides greater security for distributed processing jobs, but the processing might take longer.
1173 1174 1175 |
# File 'sagemaker/cfn_processing_job.rb', line 1173 def enable_inter_container_traffic_encryption @enable_inter_container_traffic_encryption end |
#enable_network_isolation ⇒ Boolean, ... (readonly)
Whether to allow inbound and outbound network calls to and from the containers used for the processing job.
1178 1179 1180 |
# File 'sagemaker/cfn_processing_job.rb', line 1178 def enable_network_isolation @enable_network_isolation end |
#vpc_config ⇒ AWSCDK::IResolvable, ... (readonly)
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 .
1185 1186 1187 |
# File 'sagemaker/cfn_processing_job.rb', line 1185 def vpc_config @vpc_config end |
Class Method Details
.jsii_properties ⇒ Object
1187 1188 1189 1190 1191 1192 1193 |
# File 'sagemaker/cfn_processing_job.rb', line 1187 def self.jsii_properties { :enable_inter_container_traffic_encryption => "enableInterContainerTrafficEncryption", :enable_network_isolation => "enableNetworkIsolation", :vpc_config => "vpcConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
1195 1196 1197 1198 1199 1200 1201 1202 1203 |
# File 'sagemaker/cfn_processing_job.rb', line 1195 def to_jsii result = {} result.merge!({ "enableInterContainerTrafficEncryption" => @enable_inter_container_traffic_encryption, "enableNetworkIsolation" => @enable_network_isolation, "vpcConfig" => @vpc_config, }) result.compact end |