Interface CfnExpressGatewayService.ExpressGatewayContainerProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnExpressGatewayService.ExpressGatewayContainerProperty.Jsii$Proxy
Enclosing class:
CfnExpressGatewayService

@Stability(Stable) public static interface CfnExpressGatewayService.ExpressGatewayContainerProperty extends software.amazon.jsii.JsiiSerializable
Defines the configuration for the primary container in an Express service.

This container receives traffic from the Application Load Balancer and runs your application code.

The container configuration includes the container image, port mapping, logging settings, environment variables, and secrets. The container image is the only required parameter, with sensible defaults provided for other settings.

Example:

 // 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.*;
 ExpressGatewayContainerProperty expressGatewayContainerProperty = ExpressGatewayContainerProperty.builder()
         .image("image")
         // the properties below are optional
         .awsLogsConfiguration(ExpressGatewayServiceAwsLogsConfigurationProperty.builder()
                 .logGroup("logGroup")
                 .logStreamPrefix("logStreamPrefix")
                 .build())
         .command(List.of("command"))
         .containerPort(123)
         .environment(List.of(KeyValuePairProperty.builder()
                 .name("name")
                 .value("value")
                 .build()))
         .repositoryCredentials(ExpressGatewayRepositoryCredentialsProperty.builder()
                 .credentialsParameter("credentialsParameter")
                 .build())
         .secrets(List.of(SecretProperty.builder()
                 .name("name")
                 .valueFrom("valueFrom")
                 .build()))
         .build();
 

See Also: