@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:06.821Z") @Stability(value=Experimental) public class PlacementConstraint extends software.amazon.jsii.JsiiObject
Tasks will only be placed on instances that match these rules.
Modifier | Constructor and Description |
---|---|
protected |
PlacementConstraint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PlacementConstraint(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static PlacementConstraint |
distinctInstances()
(experimental) Use distinctInstance to ensure that each task in a particular group is running on a different container instance.
|
static PlacementConstraint |
memberOf(String... expressions)
(experimental) Use memberOf to restrict the selection to a group of valid candidates specified by a query expression.
|
List<CfnService.PlacementConstraintProperty> |
toJson()
(experimental) Return the placement JSON.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
protected PlacementConstraint(software.amazon.jsii.JsiiObjectRef objRef)
protected PlacementConstraint(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental) @NotNull public static PlacementConstraint distinctInstances()
@Stability(value=Experimental) @NotNull public static PlacementConstraint memberOf(@NotNull String... expressions)
Multiple expressions can be specified. For more information, see Cluster Query Language.
You can specify multiple expressions in one call. The tasks will only be placed on instances matching all expressions.
expressions
- This parameter is required.https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html
@Stability(value=Experimental) @NotNull public List<CfnService.PlacementConstraintProperty> toJson()
Copyright © 2021. All rights reserved.