awsautoscalingcommon

package
v1.151.0-devpreview Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 1, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Alarms

type Alarms struct {
	// Experimental.
	LowerAlarmIntervalIndex *float64 `json:"lowerAlarmIntervalIndex" yaml:"lowerAlarmIntervalIndex"`
	// Experimental.
	UpperAlarmIntervalIndex *float64 `json:"upperAlarmIntervalIndex" yaml:"upperAlarmIntervalIndex"`
}

Example:

import awscdk "github.com/aws/aws-cdk-go/awscdk"import autoscaling_common "github.com/aws/aws-cdk-go/awscdk/aws_autoscaling_common"
alarms := &alarms{
	lowerAlarmIntervalIndex: jsii.Number(123),
	upperAlarmIntervalIndex: jsii.Number(123),
}

Experimental.

type ArbitraryIntervals

type ArbitraryIntervals struct {
	// Experimental.
	Absolute *bool `json:"absolute" yaml:"absolute"`
	// Experimental.
	Intervals *[]*ScalingInterval `json:"intervals" yaml:"intervals"`
}

Example:

import awscdk "github.com/aws/aws-cdk-go/awscdk"import autoscaling_common "github.com/aws/aws-cdk-go/awscdk/aws_autoscaling_common"
arbitraryIntervals := &arbitraryIntervals{
	absolute: jsii.Boolean(false),
	intervals: []scalingInterval{
		&scalingInterval{
			change: jsii.Number(123),

			// the properties below are optional
			lower: jsii.Number(123),
			upper: jsii.Number(123),
		},
	},
}

Experimental.

type CompleteScalingInterval

type CompleteScalingInterval struct {
	// Experimental.
	Lower *float64 `json:"lower" yaml:"lower"`
	// Experimental.
	Upper *float64 `json:"upper" yaml:"upper"`
	// Experimental.
	Change *float64 `json:"change" yaml:"change"`
}

Example:

import awscdk "github.com/aws/aws-cdk-go/awscdk"import autoscaling_common "github.com/aws/aws-cdk-go/awscdk/aws_autoscaling_common"
completeScalingInterval := &completeScalingInterval{
	lower: jsii.Number(123),
	upper: jsii.Number(123),

	// the properties below are optional
	change: jsii.Number(123),
}

Experimental.

type IRandomGenerator

type IRandomGenerator interface {
	// Experimental.
	NextBoolean() *bool
	// Experimental.
	NextInt(min *float64, max *float64) *float64
}

Experimental.

type ScalingInterval

type ScalingInterval struct {
	// The capacity adjustment to apply in this interval.
	//
	// The number is interpreted differently based on AdjustmentType:
	//
	// - ChangeInCapacity: add the adjustment to the current capacity.
	//   The number can be positive or negative.
	// - PercentChangeInCapacity: add or remove the given percentage of the current
	//    capacity to itself. The number can be in the range [-100..100].
	// - ExactCapacity: set the capacity to this number. The number must
	//    be positive.
	// Experimental.
	Change *float64 `json:"change" yaml:"change"`
	// The lower bound of the interval.
	//
	// The scaling adjustment will be applied if the metric is higher than this value.
	// Experimental.
	Lower *float64 `json:"lower" yaml:"lower"`
	// The upper bound of the interval.
	//
	// The scaling adjustment will be applied if the metric is lower than this value.
	// Experimental.
	Upper *float64 `json:"upper" yaml:"upper"`
}

A range of metric values in which to apply a certain scaling operation.

Example:

import awscdk "github.com/aws/aws-cdk-go/awscdk"import autoscaling_common "github.com/aws/aws-cdk-go/awscdk/aws_autoscaling_common"
scalingInterval := &scalingInterval{
	change: jsii.Number(123),

	// the properties below are optional
	lower: jsii.Number(123),
	upper: jsii.Number(123),
}

Experimental.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL