Skip to content
v2.277.0

ParentInstanceProperty Struct ​

Settings for building on an instance that is already running, instead of an instance that Image Builder launches for the build.

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 parentInstanceProperty: imagebuilder.CfnInfrastructureConfiguration.ParentInstanceProperty = {
  autoScalingGroup: {
    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

parent_instance_property = imagebuilder.CfnInfrastructureConfiguration.ParentInstanceProperty(
    auto_scaling_group=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.*;

ParentInstanceProperty parentInstanceProperty = ParentInstanceProperty.builder()
        .autoScalingGroup(AutoScalingGroupProperty.builder()
                .name("name")

                // the properties below are optional
                .capacityWaitTimeoutSeconds(123)
                .build())
        .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 parentInstanceProperty = new ParentInstanceProperty {
    AutoScalingGroup = 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"

parentInstanceProperty := &ParentInstanceProperty{
	AutoScalingGroup: &AutoScalingGroupProperty{
		Name: jsii.String("name"),

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

Properties ​

autoScalingGroupIResolvable | CfnInfrastructureConfiguration.AutoScalingGroupPropertyauto_scaling_grouptyping.Union[IResolvable, AutoScalingGroupProperty]autoScalingGroupIResolvableAutoScalingGroupIResolvableAutoScalingGroupinterface{}required#
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.