Skip to content
v2.278.0

CfnImageBuilderProps Struct ​

Properties for defining a CfnImageBuilder.

Example ​

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
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
// 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();
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" }
    }
};
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 ​

accessEndpointsoptionalIResolvable | IResolvable | CfnImageBuilder.AccessEndpointProperty[]access_endpointsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, AccessEndpointProperty]]]accessEndpointsoptionalIResolvableAccessEndpointsoptionalIResolvableAccessEndpointsoptionalinterface{} #
The list of virtual private cloud (VPC) interface endpoint objects.

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

appstreamAgentVersionoptionalstringappstream_agent_versionoptionalstrappstreamAgentVersionoptionalStringAppstreamAgentVersionoptionalstringAppstreamAgentVersionoptional*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].

descriptionoptionalstringdescriptionoptionalstrdescriptionoptionalStringDescriptionoptionalstringDescriptionoptional*string #
The description to display.
disableImdsv1optionalboolean | IResolvabledisable_imdsv1optionaltyping.Union[bool, IResolvable]disableImdsv1optionalBooleanDisableImdsv1optionalboolDisableImdsv1optionalinterface{} #
displayNameoptionalstringdisplay_nameoptionalstrdisplayNameoptionalStringDisplayNameoptionalstringDisplayNameoptional*string #
The image builder name to display.
domainJoinInfooptionalIResolvable | CfnImageBuilder.DomainJoinInfoPropertydomain_join_infooptionaltyping.Union[IResolvable, DomainJoinInfoProperty]domainJoinInfooptionalIResolvableDomainJoinInfooptionalIResolvableDomainJoinInfooptionalinterface{} #
The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.
enableDefaultInternetAccessoptionalboolean | IResolvableenable_default_internet_accessoptionaltyping.Union[bool, IResolvable]enableDefaultInternetAccessoptionalBooleanEnableDefaultInternetAccessoptionalboolEnableDefaultInternetAccessoptionalinterface{} #
Enables or disables default internet access for the image builder.
iamRoleArnoptionalstringiam_role_arnoptionalstriamRoleArnoptionalStringIamRoleArnoptionalstringIamRoleArnoptional*string #
The ARN of the IAM role that is applied to the image builder.
notes

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 in the Amazon AppStream 2.0 Administration Guide .

imageArnoptionalstringimage_arnoptionalstrimageArnoptionalStringImageArnoptionalstringImageArnoptional*string #
The ARN of the public, private, or shared image to use.
imageNameoptionalstringimage_nameoptionalstrimageNameoptionalStringImageNameoptionalstringImageNameoptional*string #
The name of the image used to create the image builder.
instanceTypestringinstance_typestrinstanceTypeStringInstanceTypestringInstanceType*string required #
The instance type to use when launching the image builder. The following instance types are available:.
notes
  • 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
namestringnamestrnameStringNamestringName*string required #
A unique name for the image builder.
rootVolumeConfigoptionalIResolvable | CfnImageBuilder.VolumeConfigPropertyroot_volume_configoptionaltyping.Union[IResolvable, VolumeConfigProperty]rootVolumeConfigoptionalIResolvableRootVolumeConfigoptionalIResolvableRootVolumeConfigoptionalinterface{} #
softwaresToInstalloptionalstring[]softwares_to_installoptionaltyping.List[str]softwaresToInstalloptionalList<String>SoftwaresToInstalloptionalstring[]SoftwaresToInstalloptional*[]*string #
softwaresToUninstalloptionalstring[]softwares_to_uninstalloptionaltyping.List[str]softwaresToUninstalloptionalList<String>SoftwaresToUninstalloptionalstring[]SoftwaresToUninstalloptional*[]*string #
tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
An array of key-value pairs.
vpcConfigoptionalIResolvable | CfnImageBuilder.VpcConfigPropertyvpc_configoptionaltyping.Union[IResolvable, VpcConfigProperty]vpcConfigoptionalIResolvableVpcConfigoptionalIResolvableVpcConfigoptionalinterface{} #
The VPC configuration for the image builder.

You can specify only one subnet.