Class CfnExpressGatewayServicePropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnExpressGatewayServicePropsMixin
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable,software.constructs.IMixin
@Generated(value="jsii-pacmak/1.127.0 (build 2117ad5)",
date="2026-03-11T13:19:58.876Z")
@Stability(Stable)
public class CfnExpressGatewayServicePropsMixin
extends Mixin
implements software.constructs.IMixin
Creates an Express service that simplifies deploying containerized web applications on Amazon ECS with managed AWS infrastructure.
This operation provisions and configures Application Load Balancers, target groups, security groups, and auto-scaling policies automatically.
Specify a primary container configuration with your application image and basic settings. Amazon ECS creates the necessary AWS resources for traffic distribution, health monitoring, network access control, and capacity management.
Provide an execution role for task operations and an infrastructure role for managing AWS resources on your behalf.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.ecs.*;
import software.amazon.awscdk.*;
IMergeStrategy mergeStrategy;
CfnExpressGatewayServicePropsMixin cfnExpressGatewayServicePropsMixin = CfnExpressGatewayServicePropsMixin.Builder.create(CfnExpressGatewayServiceMixinProps.builder()
.cluster("cluster")
.cpu("cpu")
.executionRoleArn("executionRoleArn")
.healthCheckPath("healthCheckPath")
.infrastructureRoleArn("infrastructureRoleArn")
.memory("memory")
.networkConfiguration(ExpressGatewayServiceNetworkConfigurationProperty.builder()
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.primaryContainer(ExpressGatewayContainerProperty.builder()
.awsLogsConfiguration(ExpressGatewayServiceAwsLogsConfigurationProperty.builder()
.logGroup("logGroup")
.logStreamPrefix("logStreamPrefix")
.build())
.command(List.of("command"))
.containerPort(123)
.environment(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.image("image")
.repositoryCredentials(ExpressGatewayRepositoryCredentialsProperty.builder()
.credentialsParameter("credentialsParameter")
.build())
.secrets(List.of(SecretProperty.builder()
.name("name")
.valueFrom("valueFrom")
.build()))
.build())
.scalingTarget(ExpressGatewayScalingTargetProperty.builder()
.autoScalingMetric("autoScalingMetric")
.autoScalingTargetValue(123)
.maxTaskCount(123)
.minTaskCount(123)
.build())
.serviceName("serviceName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskRoleArn("taskRoleArn")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceExample:static final classA fluent builder forCfnExpressGatewayServicePropsMixin.static interfaceExample:static interfaceDefines the configuration for the primary container in an Express service.static interfaceThe repository credentials for private registry authentication to pass to the container.static interfaceDefines the auto-scaling configuration for an Express service.static interfaceSpecifies the Amazon CloudWatch Logs configuration for the Express service container.static interfaceRepresents a specific configuration revision of an Express service, containing all the settings and parameters for that revision.static interfaceThe network configuration for an Express service.static interfaceAn object that defines the status of Express service creation and information about the status of the service.static interfaceExample:static interfaceThe entry point into an Express service.static interfaceA key-value pair object.static interfaceAn object representing the secret to expose to your container.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IMixin
software.constructs.IMixin.Jsii$Default, software.constructs.IMixin.Jsii$Proxy -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionCreate a mixin to apply properties toAWS::ECS::ExpressGatewayService.CfnExpressGatewayServicePropsMixin(CfnExpressGatewayServiceMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECS::ExpressGatewayService.protectedCfnExpressGatewayServicePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnExpressGatewayServicePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnExpressGatewayServiceMixinPropsgetProps()protected IMergeStrategysupports(software.constructs.IConstruct construct) Check if this mixin supports the given construct.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_PROPERTY_KEYS
-
-
Constructor Details
-
CfnExpressGatewayServicePropsMixin
protected CfnExpressGatewayServicePropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnExpressGatewayServicePropsMixin
protected CfnExpressGatewayServicePropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnExpressGatewayServicePropsMixin
@Stability(Stable) public CfnExpressGatewayServicePropsMixin(@NotNull CfnExpressGatewayServiceMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECS::ExpressGatewayService.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnExpressGatewayServicePropsMixin
@Stability(Stable) public CfnExpressGatewayServicePropsMixin(@NotNull CfnExpressGatewayServiceMixinProps props) Create a mixin to apply properties toAWS::ECS::ExpressGatewayService.- Parameters:
props- L1 properties to apply. This parameter is required.
-
-
Method Details
-
applyTo
@Stability(Stable) public void applyTo(@NotNull software.constructs.IConstruct construct) Apply the mixin properties to the construct. -
supports
@Stability(Stable) @NotNull public Boolean supports(@NotNull software.constructs.IConstruct construct) Check if this mixin supports the given construct. -
getProps
-
getStrategy
-