-
Notifications
You must be signed in to change notification settings - Fork 17
/
awsapplicationautoscaling_BaseTargetTrackingProps.go
43 lines (40 loc) · 1.81 KB
/
awsapplicationautoscaling_BaseTargetTrackingProps.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
33
34
35
36
37
38
39
40
41
42
package awsapplicationautoscaling
import (
"github.com/aws/aws-cdk-go/awscdk/v2"
)
// Base interface for target tracking props.
//
// Contains the attributes that are common to target tracking policies,
// except the ones relating to the metric and to the scalable target.
//
// This interface is reused by more specific target tracking props objects
// in other services.
//
// Example:
// // The code below shows an example of how to instantiate this type.
// // The values are placeholders you should change.
// import cdk "github.com/aws/aws-cdk-go/awscdk"
// import "github.com/aws/aws-cdk-go/awscdk"
//
// baseTargetTrackingProps := &baseTargetTrackingProps{
// disableScaleIn: jsii.Boolean(false),
// policyName: jsii.String("policyName"),
// scaleInCooldown: cdk.duration.minutes(jsii.Number(30)),
// scaleOutCooldown: cdk.*duration.minutes(jsii.Number(30)),
// }
//
type BaseTargetTrackingProps struct {
// Indicates whether scale in by the target tracking policy is disabled.
//
// If the value is true, scale in is disabled and the target tracking policy
// won't remove capacity from the scalable resource. Otherwise, scale in is
// enabled and the target tracking policy can remove capacity from the
// scalable resource.
DisableScaleIn *bool `field:"optional" json:"disableScaleIn" yaml:"disableScaleIn"`
// A name for the scaling policy.
PolicyName *string `field:"optional" json:"policyName" yaml:"policyName"`
// Period after a scale in activity completes before another scale in activity can start.
ScaleInCooldown awscdk.Duration `field:"optional" json:"scaleInCooldown" yaml:"scaleInCooldown"`
// Period after a scale out activity completes before another scale out activity can start.
ScaleOutCooldown awscdk.Duration `field:"optional" json:"scaleOutCooldown" yaml:"scaleOutCooldown"`
}