Class: AWSCDK::Sagemaker::CfnDataQualityJobDefinition::NetworkConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
sagemaker/cfn_data_quality_job_definition.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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(enable_inter_container_traffic_encryption: nil, enable_network_isolation: nil, vpc_config: nil) ⇒ NetworkConfigProperty

Returns a new instance of NetworkConfigProperty.

Parameters:



1342
1343
1344
1345
1346
1347
1348
1349
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1342

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::CfnDataQualityJobDefinition::VPCConfigProperty.new(**vpc_config.transform_keys(&:to_sym)) : vpc_config
  Jsii::Type.check_type(@vpc_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19zYWdlbWFrZXIuQ2ZuRGF0YVF1YWxpdHlKb2JEZWZpbml0aW9uLlZwY0NvbmZpZ1Byb3BlcnR5In1dfX0=")), "vpcConfig") unless @vpc_config.nil?
end

Instance Attribute Details

#enable_inter_container_traffic_encryptionBoolean, ... (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.



1357
1358
1359
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1357

def enable_inter_container_traffic_encryption
  @enable_inter_container_traffic_encryption
end

#enable_network_isolationBoolean, ... (readonly)

Whether to allow inbound and outbound network calls to and from the containers used for the processing job.



1362
1363
1364
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1362

def enable_network_isolation
  @enable_network_isolation
end

#vpc_configAWSCDK::IResolvable, ... (readonly)

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.



1369
1370
1371
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1369

def vpc_config
  @vpc_config
end

Class Method Details

.jsii_propertiesObject



1371
1372
1373
1374
1375
1376
1377
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1371

def self.jsii_properties
  {
    :enable_inter_container_traffic_encryption => "enableInterContainerTrafficEncryption",
    :enable_network_isolation => "enableNetworkIsolation",
    :vpc_config => "vpcConfig",
  }
end

Instance Method Details

#to_jsiiObject



1379
1380
1381
1382
1383
1384
1385
1386
1387
# File 'sagemaker/cfn_data_quality_job_definition.rb', line 1379

def to_jsii
  result = {}
  result.merge!({
    "enableInterContainerTrafficEncryption" => @enable_inter_container_traffic_encryption,
    "enableNetworkIsolation" => @enable_network_isolation,
    "vpcConfig" => @vpc_config,
  })
  result.compact
end