/
awsevents_CfnRule_PlacementConstraintProperty.go
28 lines (25 loc) · 1.35 KB
/
awsevents_CfnRule_PlacementConstraintProperty.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package awsevents
// An object representing a constraint on task placement.
//
// To learn more, see [Task Placement Constraints](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task-placement-constraints.html) 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 "github.com/aws/aws-cdk-go/awscdk"
//
// placementConstraintProperty := &placementConstraintProperty{
// expression: jsii.String("expression"),
// type: jsii.String("type"),
// }
//
type CfnRule_PlacementConstraintProperty struct {
// A cluster query language expression to apply to the constraint.
//
// You cannot specify an expression if the constraint type is `distinctInstance` . To learn more, see [Cluster Query Language](https://docs.aws.amazon.com/AmazonECS/latest/developerguide/cluster-query-language.html) in the Amazon Elastic Container Service Developer Guide.
Expression *string `field:"optional" json:"expression" yaml:"expression"`
// 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.
Type *string `field:"optional" json:"type" yaml:"type"`
}