/
CfnRule_CapacityProviderStrategyItemProperty.go
33 lines (30 loc) · 1.49 KB
/
CfnRule_CapacityProviderStrategyItemProperty.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
28
29
30
31
32
package awsevents
// The details of a capacity provider strategy.
//
// To learn more, see [CapacityProviderStrategyItem](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_CapacityProviderStrategyItem.html) in the Amazon ECS API Reference.
//
// 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"
//
// capacityProviderStrategyItemProperty := &CapacityProviderStrategyItemProperty{
// CapacityProvider: jsii.String("capacityProvider"),
//
// // the properties below are optional
// Base: jsii.Number(123),
// Weight: jsii.Number(123),
// }
//
type CfnRule_CapacityProviderStrategyItemProperty struct {
// The short name of the capacity provider.
CapacityProvider *string `field:"required" json:"capacityProvider" yaml:"capacityProvider"`
// The base value designates how many tasks, at a minimum, to run on the specified capacity provider.
//
// Only one capacity provider in a capacity provider strategy can have a base defined. If no value is specified, the default value of 0 is used.
Base *float64 `field:"optional" json:"base" yaml:"base"`
// The weight value designates the relative percentage of the total number of tasks launched that should use the specified capacity provider.
//
// The weight value is taken into consideration after the base value, if defined, is satisfied.
Weight *float64 `field:"optional" json:"weight" yaml:"weight"`
}