# AutoScalingGroupProperty

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.

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `capacityWaitTimeoutSeconds`: number — 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.

- `name`: string (required) — The name of the Auto Scaling group, in the same account and AWS Region as the infrastructure configuration.
