Class CfnTaskSetPropsMixin
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.Mixin
software.amazon.awscdk.cfnpropertymixins.services.ecs.CfnTaskSetPropsMixin
- 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.997Z")
@Stability(Stable)
public class CfnTaskSetPropsMixin
extends Mixin
implements software.constructs.IMixin
Create a task set in the specified cluster and service.
This is used when a service uses the EXTERNAL deployment controller type. For more information, see Amazon ECS deployment types in the Amazon Elastic Container Service Developer Guide .
On March 21, 2024, a change was made to resolve the task definition revision before authorization. When a task definition revision is not specified, authorization will occur using the latest revision of a task definition.
For information about the maximum number of task sets and other quotas, see Amazon ECS service quotas in the Amazon Elastic Container Service Developer Guide .
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;
CfnTaskSetPropsMixin cfnTaskSetPropsMixin = CfnTaskSetPropsMixin.Builder.create(CfnTaskSetMixinProps.builder()
.capacityProviderStrategy(List.of(CapacityProviderStrategyItemProperty.builder()
.base(123)
.capacityProvider("capacityProvider")
.weight(123)
.build()))
.cluster("cluster")
.externalId("externalId")
.launchType("launchType")
.loadBalancers(List.of(LoadBalancerProperty.builder()
.containerName("containerName")
.containerPort(123)
.targetGroupArn("targetGroupArn")
.build()))
.networkConfiguration(NetworkConfigurationProperty.builder()
.awsVpcConfiguration(AwsVpcConfigurationProperty.builder()
.assignPublicIp("assignPublicIp")
.securityGroups(List.of("securityGroups"))
.subnets(List.of("subnets"))
.build())
.build())
.platformVersion("platformVersion")
.scale(ScaleProperty.builder()
.unit("unit")
.value(123)
.build())
.service("service")
.serviceRegistries(List.of(ServiceRegistryProperty.builder()
.containerName("containerName")
.containerPort(123)
.port(123)
.registryArn("registryArn")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.taskDefinition("taskDefinition")
.build())
.strategy(mergeStrategy)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceAn object representing the networking details for a task or service.static final classA fluent builder forCfnTaskSetPropsMixin.static interfaceThe details of a capacity provider strategy.static interfaceThe load balancer configuration to use with a service or task set.static interfaceThe network configuration for a task or service.static interfaceA floating-point percentage of the desired number of tasks to place and keep running in the task set.static interfaceThe details for the service registry.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::TaskSet.CfnTaskSetPropsMixin(CfnTaskSetMixinProps props, CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECS::TaskSet.protectedCfnTaskSetPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTaskSetPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(software.constructs.IConstruct construct) Apply the mixin properties to the construct.protected CfnTaskSetMixinPropsgetProps()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
-
CfnTaskSetPropsMixin
protected CfnTaskSetPropsMixin(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTaskSetPropsMixin
protected CfnTaskSetPropsMixin(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTaskSetPropsMixin
@Stability(Stable) public CfnTaskSetPropsMixin(@NotNull CfnTaskSetMixinProps props, @Nullable CfnPropertyMixinOptions options) Create a mixin to apply properties toAWS::ECS::TaskSet.- Parameters:
props- L1 properties to apply. This parameter is required.options- Mixin options.
-
CfnTaskSetPropsMixin
Create a mixin to apply properties toAWS::ECS::TaskSet.- 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
-