# CfnImageBuilderProps

Properties for defining a `CfnImageBuilder`.

Used as props by: [CfnImageBuilder](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnImageBuilder.html)

- Source: Generated at build time
- Type last changed: v2.272.0 · 30 Sep 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_appstream as appstream } from 'aws-cdk-lib';
const cfnImageBuilderProps: appstream.CfnImageBuilderProps = {
  instanceType: 'instanceType',
  name: 'name',

  // the properties below are optional
  accessEndpoints: [{
    endpointType: 'endpointType',
    vpceId: 'vpceId',
  }],
  appstreamAgentVersion: 'appstreamAgentVersion',
  description: 'description',
  disableImdsv1: false,
  displayName: 'displayName',
  domainJoinInfo: {
    directoryName: 'directoryName',
    organizationalUnitDistinguishedName: 'organizationalUnitDistinguishedName',
  },
  enableDefaultInternetAccess: false,
  iamRoleArn: 'iamRoleArn',
  imageArn: 'imageArn',
  imageName: 'imageName',
  rootVolumeConfig: {
    volumeSizeInGb: 123,
  },
  softwaresToInstall: ['softwaresToInstall'],
  softwaresToUninstall: ['softwaresToUninstall'],
  tags: [{
    key: 'key',
    value: 'value',
  }],
  vpcConfig: {
    securityGroupIds: ['securityGroupIds'],
    subnetIds: ['subnetIds'],
  },
};
```

Python:

```python
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appstream as appstream

cfn_image_builder_props = appstream.CfnImageBuilderProps(
    instance_type="instanceType",
    name="name",

    # the properties below are optional
    access_endpoints=[appstream.CfnImageBuilder.AccessEndpointProperty(
        endpoint_type="endpointType",
        vpce_id="vpceId"
    )],
    appstream_agent_version="appstreamAgentVersion",
    description="description",
    disable_imdsv1=False,
    display_name="displayName",
    domain_join_info=appstream.CfnImageBuilder.DomainJoinInfoProperty(
        directory_name="directoryName",
        organizational_unit_distinguished_name="organizationalUnitDistinguishedName"
    ),
    enable_default_internet_access=False,
    iam_role_arn="iamRoleArn",
    image_arn="imageArn",
    image_name="imageName",
    root_volume_config=appstream.CfnImageBuilder.VolumeConfigProperty(
        volume_size_in_gb=123
    ),
    softwares_to_install=["softwaresToInstall"],
    softwares_to_uninstall=["softwaresToUninstall"],
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    vpc_config=appstream.CfnImageBuilder.VpcConfigProperty(
        security_group_ids=["securityGroupIds"],
        subnet_ids=["subnetIds"]
    )
)
```

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.appstream.*;

CfnImageBuilderProps cfnImageBuilderProps = CfnImageBuilderProps.builder()
        .instanceType("instanceType")
        .name("name")

        // the properties below are optional
        .accessEndpoints(List.of(AccessEndpointProperty.builder()
                .endpointType("endpointType")
                .vpceId("vpceId")
                .build()))
        .appstreamAgentVersion("appstreamAgentVersion")
        .description("description")
        .disableImdsv1(false)
        .displayName("displayName")
        .domainJoinInfo(DomainJoinInfoProperty.builder()
                .directoryName("directoryName")
                .organizationalUnitDistinguishedName("organizationalUnitDistinguishedName")
                .build())
        .enableDefaultInternetAccess(false)
        .iamRoleArn("iamRoleArn")
        .imageArn("imageArn")
        .imageName("imageName")
        .rootVolumeConfig(VolumeConfigProperty.builder()
                .volumeSizeInGb(123)
                .build())
        .softwaresToInstall(List.of("softwaresToInstall"))
        .softwaresToUninstall(List.of("softwaresToUninstall"))
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .vpcConfig(VpcConfigProperty.builder()
                .securityGroupIds(List.of("securityGroupIds"))
                .subnetIds(List.of("subnetIds"))
                .build())
        .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.AppStream;

var cfnImageBuilderProps = new CfnImageBuilderProps {
    InstanceType = "instanceType",
    Name = "name",

    // the properties below are optional
    AccessEndpoints = new [] { new AccessEndpointProperty {
        EndpointType = "endpointType",
        VpceId = "vpceId"
    } },
    AppstreamAgentVersion = "appstreamAgentVersion",
    Description = "description",
    DisableImdsv1 = false,
    DisplayName = "displayName",
    DomainJoinInfo = new DomainJoinInfoProperty {
        DirectoryName = "directoryName",
        OrganizationalUnitDistinguishedName = "organizationalUnitDistinguishedName"
    },
    EnableDefaultInternetAccess = false,
    IamRoleArn = "iamRoleArn",
    ImageArn = "imageArn",
    ImageName = "imageName",
    RootVolumeConfig = new VolumeConfigProperty {
        VolumeSizeInGb = 123
    },
    SoftwaresToInstall = new [] { "softwaresToInstall" },
    SoftwaresToUninstall = new [] { "softwaresToUninstall" },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } },
    VpcConfig = new VpcConfigProperty {
        SecurityGroupIds = new [] { "securityGroupIds" },
        SubnetIds = new [] { "subnetIds" }
    }
};
```

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"

cfnImageBuilderProps := &CfnImageBuilderProps{
	InstanceType: jsii.String("instanceType"),
	Name: jsii.String("name"),

	// the properties below are optional
	AccessEndpoints: []interface{}{
		&AccessEndpointProperty{
			EndpointType: jsii.String("endpointType"),
			VpceId: jsii.String("vpceId"),
		},
	},
	AppstreamAgentVersion: jsii.String("appstreamAgentVersion"),
	Description: jsii.String("description"),
	DisableImdsv1: jsii.Boolean(false),
	DisplayName: jsii.String("displayName"),
	DomainJoinInfo: &DomainJoinInfoProperty{
		DirectoryName: jsii.String("directoryName"),
		OrganizationalUnitDistinguishedName: jsii.String("organizationalUnitDistinguishedName"),
	},
	EnableDefaultInternetAccess: jsii.Boolean(false),
	IamRoleArn: jsii.String("iamRoleArn"),
	ImageArn: jsii.String("imageArn"),
	ImageName: jsii.String("imageName"),
	RootVolumeConfig: &VolumeConfigProperty{
		VolumeSizeInGb: jsii.Number(123),
	},
	SoftwaresToInstall: []*string{
		jsii.String("softwaresToInstall"),
	},
	SoftwaresToUninstall: []*string{
		jsii.String("softwaresToUninstall"),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	VpcConfig: &VpcConfigProperty{
		SecurityGroupIds: []*string{
			jsii.String("securityGroupIds"),
		},
		SubnetIds: []*string{
			jsii.String("subnetIds"),
		},
	},
}
```

## Properties

- `accessEndpoints`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnImageBuilder.AccessEndpointProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnImageBuilder.AccessEndpointProperty.html)[] — The list of virtual private cloud (VPC) interface endpoint objects.

  Administrators can connect to the image builder only through the specified endpoints.

- `appstreamAgentVersion`: string — The version of the WorkSpaces Applications agent to use for this image builder.

  To use the latest version of the WorkSpaces Applications agent, specify [LATEST].

- `description`: string — The description to display.

- `disableImdsv1`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html)

- `displayName`: string — The image builder name to display.

- `domainJoinInfo`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnImageBuilder.DomainJoinInfoProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnImageBuilder.DomainJoinInfoProperty.html) — The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.

- `enableDefaultInternetAccess`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Enables or disables default internet access for the image builder.

- `iamRoleArn`: string — The ARN of the IAM role that is applied to the image builder.

  To assume a role, the image builder calls the Security Token Service `AssumeRole` API operation and passes the ARN of the role to use. The operation creates a new session with temporary credentials. AppStream 2.0 retrieves the temporary credentials and creates the *appstream_machine_role* credential profile on the instance.

  For more information, see [Using an IAM Role to Grant Permissions to Applications and Scripts Running on AppStream 2.0 Streaming Instances](https://docs.aws.amazon.com/appstream2/latest/developerguide/using-iam-roles-to-grant-permissions-to-applications-scripts-streaming-instances.html) in the *Amazon AppStream 2.0 Administration Guide* .

- `imageArn`: string — The ARN of the public, private, or shared image to use.

- `imageName`: string — The name of the image used to create the image builder.

- `instanceType`: string (required) — The instance type to use when launching the image builder. The following instance types are available:.

  - stream.standard.small
  - stream.standard.medium
  - stream.standard.large
  - stream.compute.large
  - stream.compute.xlarge
  - stream.compute.2xlarge
  - stream.compute.4xlarge
  - stream.compute.8xlarge
  - stream.memory.large
  - stream.memory.xlarge
  - stream.memory.2xlarge
  - stream.memory.4xlarge
  - stream.memory.8xlarge
  - stream.memory.z1d.large
  - stream.memory.z1d.xlarge
  - stream.memory.z1d.2xlarge
  - stream.memory.z1d.3xlarge
  - stream.memory.z1d.6xlarge
  - stream.memory.z1d.12xlarge
  - stream.graphics-design.large
  - stream.graphics-design.xlarge
  - stream.graphics-design.2xlarge
  - stream.graphics-design.4xlarge
  - stream.graphics.g4dn.xlarge
  - stream.graphics.g4dn.2xlarge
  - stream.graphics.g4dn.4xlarge
  - stream.graphics.g4dn.8xlarge
  - stream.graphics.g4dn.12xlarge
  - stream.graphics.g4dn.16xlarge
  - stream.graphics.g5.xlarge
  - stream.graphics.g5.2xlarge
  - stream.graphics.g5.4xlarge
  - stream.graphics.g5.8xlarge
  - stream.graphics.g5.16xlarge
  - stream.graphics.g5.12xlarge
  - stream.graphics.g5.24xlarge
  - stream.graphics.g6.xlarge
  - stream.graphics.g6.2xlarge
  - stream.graphics.g6.4xlarge
  - stream.graphics.g6.8xlarge
  - stream.graphics.g6.16xlarge
  - stream.graphics.g6.12xlarge
  - stream.graphics.g6.24xlarge
  - stream.graphics.gr6.4xlarge
  - stream.graphics.gr6.8xlarge
  - stream.graphics.g6f.large
  - stream.graphics.g6f.xlarge
  - stream.graphics.g6f.2xlarge
  - stream.graphics.g6f.4xlarge
  - stream.graphics.gr6f.4xlarge

- `name`: string (required) — A unique name for the image builder.

- `rootVolumeConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnImageBuilder.VolumeConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnImageBuilder.VolumeConfigProperty.html)

- `softwaresToInstall`: string[]

- `softwaresToUninstall`: string[]

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — An array of key-value pairs.

- `vpcConfig`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnImageBuilder.VpcConfigProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appstream.CfnImageBuilder.VpcConfigProperty.html) — The VPC configuration for the image builder.

  You can specify only one subnet.
