Skip to content
v2.278.0

NetworkConfigProperty Struct ​

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.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sagemaker as sagemaker } from 'aws-cdk-lib';
const networkConfigProperty: sagemaker.CfnMonitoringSchedule.NetworkConfigProperty = {
  enableInterContainerTrafficEncryption: false,
  enableNetworkIsolation: false,
  vpcConfig: {
    securityGroupIds: ['securityGroupIds'],
    subnets: ['subnets'],
  },
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_sagemaker as sagemaker

network_config_property = sagemaker.CfnMonitoringSchedule.NetworkConfigProperty(
    enable_inter_container_traffic_encryption=False,
    enable_network_isolation=False,
    vpc_config=sagemaker.CfnMonitoringSchedule.VpcConfigProperty(
        security_group_ids=["securityGroupIds"],
        subnets=["subnets"]
    )
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;

NetworkConfigProperty networkConfigProperty = NetworkConfigProperty.builder()
        .enableInterContainerTrafficEncryption(false)
        .enableNetworkIsolation(false)
        .vpcConfig(VpcConfigProperty.builder()
                .securityGroupIds(List.of("securityGroupIds"))
                .subnets(List.of("subnets"))
                .build())
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;

var networkConfigProperty = new NetworkConfigProperty {
    EnableInterContainerTrafficEncryption = false,
    EnableNetworkIsolation = false,
    VpcConfig = new VpcConfigProperty {
        SecurityGroupIds = new [] { "securityGroupIds" },
        Subnets = new [] { "subnets" }
    }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

networkConfigProperty := &NetworkConfigProperty{
	EnableInterContainerTrafficEncryption: jsii.Boolean(false),
	EnableNetworkIsolation: jsii.Boolean(false),
	VpcConfig: &VpcConfigProperty{
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		Subnets: []*string{
			jsii.String("subnets"),
		},
	},
}

Properties ​

enableInterContainerTrafficEncryptionoptionalboolean | IResolvableenable_inter_container_traffic_encryptionoptionaltyping.Union[bool, IResolvable]enableInterContainerTrafficEncryptionoptionalBooleanEnableInterContainerTrafficEncryptionoptionalboolEnableInterContainerTrafficEncryptionoptionalinterface{} #
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.

enableNetworkIsolationoptionalboolean | IResolvableenable_network_isolationoptionaltyping.Union[bool, IResolvable]enableNetworkIsolationoptionalBooleanEnableNetworkIsolationoptionalboolEnableNetworkIsolationoptionalinterface{} #
Whether to allow inbound and outbound network calls to and from the containers used for the processing job.
vpcConfigoptionalIResolvable | CfnMonitoringSchedule.VpcConfigPropertyvpc_configoptionaltyping.Union[IResolvable, VpcConfigProperty]vpcConfigoptionalIResolvableVpcConfigoptionalIResolvableVpcConfigoptionalinterface{} #
Specifies a VPC that your training jobs and hosted models have access to.
notes

Control access to and from your training and model containers by configuring the VPC. For more information, see Protect Endpoints by Using an Amazon Virtual Private Cloud and Protect Training Jobs by Using an Amazon Virtual Private Cloud .