Skip to content
v2.278.0

ExpressGatewayServiceNetworkConfigurationProperty Struct ​

The network configuration for an Express service.

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

Example ​

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
# 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
// 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();
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" }
};
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 ​

securityGroupsoptionalstring[]security_groupsoptionaltyping.List[str]securityGroupsoptionalList<String>SecurityGroupsoptionalstring[]SecurityGroupsoptional*[]*string #
The IDs of the security groups associated with the Express service.
subnetsoptionalstring[]subnetsoptionaltyping.List[str]subnetsoptionalList<String>Subnetsoptionalstring[]Subnetsoptional*[]*string #
The IDs of the subnets associated with the Express service.