Network Configuration¶
This file contains code related to network configuration.
It also includes encryption, network isolation, and VPC configurations.
- class sagemaker.network.NetworkConfig(enable_network_isolation=None, security_group_ids=None, subnets=None, encrypt_inter_container_traffic=None)¶
Bases:
object
Accepts network configuration parameters for conversion to request dict.
The _to_request_dict provides a method to turn the parameters into a dict.
Initialize a
NetworkConfig
instance.NetworkConfig accepts network configuration parameters and provides a method to turn these parameters into a dictionary.
- Parameters
enable_network_isolation (bool or PipelineVariable) – Boolean that determines whether to enable network isolation.
security_group_ids (list[str] or list[PipelineVariable]) – A list of strings representing security group IDs.
subnets (list[str] or list[PipelineVariable]) – A list of strings representing subnets.
encrypt_inter_container_traffic (bool or PipelineVariable) – Boolean that determines whether to encrypt inter-container traffic. Default value is None.