An object representing a constraint on task placement.
Type: objectProperties: 2
Amazon Web ServicesCronEvent-DrivenSchedulingServerless
PlacementConstraint is a JSON Structure definition published by Amazon EventBridge Scheduler, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/amazon-eventbridge-scheduler/refs/heads/main/json-structure/amazon-eventbridge-scheduler-placement-constraint-structure.json",
"name": "PlacementConstraint",
"description": "An object representing a constraint on task placement.",
"type": "object",
"properties": {
"expression": {
"allOf": [
{
"$ref": "#/components/schemas/PlacementConstraintExpression"
},
{
"description": "A cluster query language expression to apply to the constraint. You cannot specify an expression if the constraint type is <code>distinctInstance</code>. For more information, see <a href=\"https://docs.aws.amazon.com/latest/developerguide/cluster-query-language.html\">Cluster query language</a> in the <i>Amazon ECS Developer Guide</i>."
}
]
},
"type": {
"allOf": [
{
"$ref": "#/components/schemas/PlacementConstraintType"
},
{
"description": "The type of constraint. Use <code>distinctInstance</code> to ensure that each task in a particular group is running on a different container instance. Use <code>memberOf</code> to restrict the selection to a group of valid candidates."
}
]
}
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.