Skip to content
v2.277.0

AutoScalingGroupProperty Struct ​

Identifies the Amazon EC2 Auto Scaling group that Image Builder takes the build instance from, and how long Image Builder waits when the group has no instance available.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_imagebuilder as imagebuilder } from 'aws-cdk-lib';
const autoScalingGroupProperty: imagebuilder.CfnInfrastructureConfiguration.AutoScalingGroupProperty = {
  name: 'name',

  // the properties below are optional
  capacityWaitTimeoutSeconds: 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_imagebuilder as imagebuilder

auto_scaling_group_property = imagebuilder.CfnInfrastructureConfiguration.AutoScalingGroupProperty(
    name="name",

    # the properties below are optional
    capacity_wait_timeout_seconds=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.imagebuilder.*;

AutoScalingGroupProperty autoScalingGroupProperty = AutoScalingGroupProperty.builder()
        .name("name")

        // the properties below are optional
        .capacityWaitTimeoutSeconds(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.ImageBuilder;

var autoScalingGroupProperty = new AutoScalingGroupProperty {
    Name = "name",

    // the properties below are optional
    CapacityWaitTimeoutSeconds = 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"

autoScalingGroupProperty := &AutoScalingGroupProperty{
	Name: jsii.String("name"),

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

Properties ​

capacityWaitTimeoutSecondsoptionalnumbercapacity_wait_timeout_secondsoptionalint | floatcapacityWaitTimeoutSecondsoptionalNumberCapacityWaitTimeoutSecondsoptionaldoubleCapacityWaitTimeoutSecondsoptional*float64#
The number of seconds that Image Builder waits for an instance to become available in the group before the build fails.

If you set this value to 0 or omit it, the build fails as soon as the group has no instance available.

namestringnamestrnameStringNamestringName*stringrequired#
The name of the Auto Scaling group, in the same account and AWS Region as the infrastructure configuration.