# ExpressGatewayServiceNetworkConfigurationProperty

The network configuration for an Express service.

By default, an Express service utilizes subnets and security groups associated with the default VPC.

- Source: Generated at build time
- Type last changed: v2.230.0 · 26 Nov 2025

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ecs as ecs } from 'aws-cdk-lib';
const expressGatewayServiceNetworkConfigurationProperty: ecs.CfnExpressGatewayService.ExpressGatewayServiceNetworkConfigurationProperty = {
  securityGroups: ['securityGroups'],
  subnets: ['subnets'],
};
```

Python:

```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_ecs as ecs

express_gateway_service_network_configuration_property = ecs.CfnExpressGatewayService.ExpressGatewayServiceNetworkConfigurationProperty(
    security_groups=["securityGroups"],
    subnets=["subnets"]
)
```

Java:

```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.ecs.*;

ExpressGatewayServiceNetworkConfigurationProperty expressGatewayServiceNetworkConfigurationProperty = ExpressGatewayServiceNetworkConfigurationProperty.builder()
        .securityGroups(List.of("securityGroups"))
        .subnets(List.of("subnets"))
        .build();
```

C# / .NET:

```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.ECS;

var expressGatewayServiceNetworkConfigurationProperty = new ExpressGatewayServiceNetworkConfigurationProperty {
    SecurityGroups = new [] { "securityGroups" },
    Subnets = new [] { "subnets" }
};
```

Golang:

```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"

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

## Properties

- `securityGroups`: string[] — The IDs of the security groups associated with the Express service.

- `subnets`: string[] — The IDs of the subnets associated with the Express service.
