Skip to content
v2.278.0

AutoScalingProperty Struct ​

Specifies how the connector scales.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_kafkaconnect as kafkaconnect } from 'aws-cdk-lib';
const autoScalingProperty: kafkaconnect.CfnConnector.AutoScalingProperty = {
  maxWorkerCount: 123,
  mcuCount: 123,
  minWorkerCount: 123,
  scaleInPolicy: {
    cpuUtilizationPercentage: 123,
  },
  scaleOutPolicy: {
    cpuUtilizationPercentage: 123,
  },

  // the properties below are optional
  maxAutoscalingTaskCount: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_kafkaconnect as kafkaconnect

auto_scaling_property = kafkaconnect.CfnConnector.AutoScalingProperty(
    max_worker_count=123,
    mcu_count=123,
    min_worker_count=123,
    scale_in_policy=kafkaconnect.CfnConnector.ScaleInPolicyProperty(
        cpu_utilization_percentage=123
    ),
    scale_out_policy=kafkaconnect.CfnConnector.ScaleOutPolicyProperty(
        cpu_utilization_percentage=123
    ),

    # the properties below are optional
    max_autoscaling_task_count=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.kafkaconnect.*;

AutoScalingProperty autoScalingProperty = AutoScalingProperty.builder()
        .maxWorkerCount(123)
        .mcuCount(123)
        .minWorkerCount(123)
        .scaleInPolicy(ScaleInPolicyProperty.builder()
                .cpuUtilizationPercentage(123)
                .build())
        .scaleOutPolicy(ScaleOutPolicyProperty.builder()
                .cpuUtilizationPercentage(123)
                .build())

        // the properties below are optional
        .maxAutoscalingTaskCount(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.KafkaConnect;

var autoScalingProperty = new AutoScalingProperty {
    MaxWorkerCount = 123,
    McuCount = 123,
    MinWorkerCount = 123,
    ScaleInPolicy = new ScaleInPolicyProperty {
        CpuUtilizationPercentage = 123
    },
    ScaleOutPolicy = new ScaleOutPolicyProperty {
        CpuUtilizationPercentage = 123
    },

    // the properties below are optional
    MaxAutoscalingTaskCount = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// 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"

autoScalingProperty := &AutoScalingProperty{
	MaxWorkerCount: jsii.Number(123),
	McuCount: jsii.Number(123),
	MinWorkerCount: jsii.Number(123),
	ScaleInPolicy: &ScaleInPolicyProperty{
		CpuUtilizationPercentage: jsii.Number(123),
	},
	ScaleOutPolicy: &ScaleOutPolicyProperty{
		CpuUtilizationPercentage: jsii.Number(123),
	},

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

Properties ​

maxAutoscalingTaskCountoptionalnumbermax_autoscaling_task_countoptionalint | floatmaxAutoscalingTaskCountoptionalNumberMaxAutoscalingTaskCountoptionaldoubleMaxAutoscalingTaskCountoptional*float64 #
The maximum number of tasks allocated to the connector during autoscaling operations.
maxWorkerCountnumbermax_worker_countint | floatmaxWorkerCountNumberMaxWorkerCountdoubleMaxWorkerCount*float64 required #
The maximum number of workers allocated to the connector.
mcuCountnumbermcu_countint | floatmcuCountNumberMcuCountdoubleMcuCount*float64 required #
The number of microcontroller units (MCUs) allocated to each connector worker.

The valid values are 1,2,4,8.

minWorkerCountnumbermin_worker_countint | floatminWorkerCountNumberMinWorkerCountdoubleMinWorkerCount*float64 required #
The minimum number of workers allocated to the connector.
scaleInPolicyIResolvable | CfnConnector.ScaleInPolicyPropertyscale_in_policytyping.Union[IResolvable, ScaleInPolicyProperty]scaleInPolicyIResolvableScaleInPolicyIResolvableScaleInPolicyinterface{} required #
The sacle-in policy for the connector.
scaleOutPolicyIResolvable | CfnConnector.ScaleOutPolicyPropertyscale_out_policytyping.Union[IResolvable, ScaleOutPolicyProperty]scaleOutPolicyIResolvableScaleOutPolicyIResolvableScaleOutPolicyinterface{} required #
The sacle-out policy for the connector.