Skip to content
v2.278.0

ManagedInstancesNetworkConfigurationProperty Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_batch as batch } from 'aws-cdk-lib';
const managedInstancesNetworkConfigurationProperty: batch.CfnComputeEnvironment.ManagedInstancesNetworkConfigurationProperty = {
  securityGroups: ['securityGroups'],
  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_batch as batch

managed_instances_network_configuration_property = batch.CfnComputeEnvironment.ManagedInstancesNetworkConfigurationProperty(
    security_groups=["securityGroups"],
    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.batch.*;

ManagedInstancesNetworkConfigurationProperty managedInstancesNetworkConfigurationProperty = ManagedInstancesNetworkConfigurationProperty.builder()
        .securityGroups(List.of("securityGroups"))
        .subnets(List.of("subnets"))
        .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.Batch;

var managedInstancesNetworkConfigurationProperty = new ManagedInstancesNetworkConfigurationProperty {
    SecurityGroups = new [] { "securityGroups" },
    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"

managedInstancesNetworkConfigurationProperty := &ManagedInstancesNetworkConfigurationProperty{
	SecurityGroups: []*string{
		jsii.String("securityGroups"),
	},
	Subnets: []*string{
		jsii.String("subnets"),
	},
}

Properties ​

securityGroupsstring[]security_groupstyping.List[str]securityGroupsList<String>SecurityGroupsstring[]SecurityGroups*[]*string required #
subnetsstring[]subnetstyping.List[str]subnetsList<String>Subnetsstring[]Subnets*[]*string required #