Amazon EventBridge Pipes · JSON Structure

Amazon Eventbridge Pipes Placement Constraint Structure

An object representing a constraint on task placement. To learn more, see Task Placement Constraints in the Amazon Elastic Container Service Developer Guide.

Type: object Properties: 2
Amazon Web ServicesEvent-DrivenIntegrationMessagingServerless

PlacementConstraint is a JSON Structure definition published by Amazon EventBridge Pipes, describing 2 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

expression type

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-eventbridge-pipes/refs/heads/main/json-structure/amazon-eventbridge-pipes-placement-constraint-structure.json",
  "name": "PlacementConstraint",
  "description": "An object representing a constraint on task placement. To learn more, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html\">Task Placement Constraints</a> in the Amazon Elastic Container Service Developer Guide.",
  "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>. To learn more, see <a href=\"https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html\">Cluster Query Language</a> in the Amazon Elastic Container Service Developer Guide. "
        }
      ]
    },
    "type": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PlacementConstraintType"
        },
        {
          "description": "The type of constraint. Use distinctInstance to ensure that each task in a particular group is running on a different container instance. Use memberOf to restrict the selection to a group of valid candidates. "
        }
      ]
    }
  }
}