Class CfnImageBuilderMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appstream.CfnImageBuilderMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnImageBuilderMixinProps>
- Enclosing interface:
CfnImageBuilderMixinProps
@Stability(Stable)
public static final class CfnImageBuilderMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnImageBuilderMixinProps>
A builder for
CfnImageBuilderMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessEndpoints(List<? extends Object> accessEndpoints) Sets the value ofCfnImageBuilderMixinProps.getAccessEndpoints()accessEndpoints(IResolvable accessEndpoints) Sets the value ofCfnImageBuilderMixinProps.getAccessEndpoints()appstreamAgentVersion(String appstreamAgentVersion) Sets the value ofCfnImageBuilderMixinProps.getAppstreamAgentVersion()build()Builds the configured instance.description(String description) Sets the value ofCfnImageBuilderMixinProps.getDescription()displayName(String displayName) Sets the value ofCfnImageBuilderMixinProps.getDisplayName()domainJoinInfo(CfnImageBuilderPropsMixin.DomainJoinInfoProperty domainJoinInfo) Sets the value ofCfnImageBuilderMixinProps.getDomainJoinInfo()domainJoinInfo(IResolvable domainJoinInfo) Sets the value ofCfnImageBuilderMixinProps.getDomainJoinInfo()enableDefaultInternetAccess(Boolean enableDefaultInternetAccess) Sets the value ofCfnImageBuilderMixinProps.getEnableDefaultInternetAccess()enableDefaultInternetAccess(IResolvable enableDefaultInternetAccess) Sets the value ofCfnImageBuilderMixinProps.getEnableDefaultInternetAccess()iamRoleArn(String iamRoleArn) Sets the value ofCfnImageBuilderMixinProps.getIamRoleArn()Sets the value ofCfnImageBuilderMixinProps.getImageArn()Sets the value ofCfnImageBuilderMixinProps.getImageName()instanceType(String instanceType) Sets the value ofCfnImageBuilderMixinProps.getInstanceType()Sets the value ofCfnImageBuilderMixinProps.getName()Sets the value ofCfnImageBuilderMixinProps.getTags()Sets the value ofCfnImageBuilderMixinProps.getVpcConfig()vpcConfig(IResolvable vpcConfig) Sets the value ofCfnImageBuilderMixinProps.getVpcConfig()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessEndpoints
@Stability(Stable) public CfnImageBuilderMixinProps.Builder accessEndpoints(IResolvable accessEndpoints) Sets the value ofCfnImageBuilderMixinProps.getAccessEndpoints()- Parameters:
accessEndpoints- The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.- Returns:
this
-
accessEndpoints
@Stability(Stable) public CfnImageBuilderMixinProps.Builder accessEndpoints(List<? extends Object> accessEndpoints) Sets the value ofCfnImageBuilderMixinProps.getAccessEndpoints()- Parameters:
accessEndpoints- The list of virtual private cloud (VPC) interface endpoint objects. Administrators can connect to the image builder only through the specified endpoints.- Returns:
this
-
appstreamAgentVersion
@Stability(Stable) public CfnImageBuilderMixinProps.Builder appstreamAgentVersion(String appstreamAgentVersion) Sets the value ofCfnImageBuilderMixinProps.getAppstreamAgentVersion()- Parameters:
appstreamAgentVersion- 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].- Returns:
this
-
description
Sets the value ofCfnImageBuilderMixinProps.getDescription()- Parameters:
description- The description to display.- Returns:
this
-
displayName
Sets the value ofCfnImageBuilderMixinProps.getDisplayName()- Parameters:
displayName- The image builder name to display.- Returns:
this
-
domainJoinInfo
@Stability(Stable) public CfnImageBuilderMixinProps.Builder domainJoinInfo(IResolvable domainJoinInfo) Sets the value ofCfnImageBuilderMixinProps.getDomainJoinInfo()- Parameters:
domainJoinInfo- The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.- Returns:
this
-
domainJoinInfo
@Stability(Stable) public CfnImageBuilderMixinProps.Builder domainJoinInfo(CfnImageBuilderPropsMixin.DomainJoinInfoProperty domainJoinInfo) Sets the value ofCfnImageBuilderMixinProps.getDomainJoinInfo()- Parameters:
domainJoinInfo- The name of the directory and organizational unit (OU) to use to join the image builder to a Microsoft Active Directory domain.- Returns:
this
-
enableDefaultInternetAccess
@Stability(Stable) public CfnImageBuilderMixinProps.Builder enableDefaultInternetAccess(Boolean enableDefaultInternetAccess) Sets the value ofCfnImageBuilderMixinProps.getEnableDefaultInternetAccess()- Parameters:
enableDefaultInternetAccess- Enables or disables default internet access for the image builder.- Returns:
this
-
enableDefaultInternetAccess
@Stability(Stable) public CfnImageBuilderMixinProps.Builder enableDefaultInternetAccess(IResolvable enableDefaultInternetAccess) Sets the value ofCfnImageBuilderMixinProps.getEnableDefaultInternetAccess()- Parameters:
enableDefaultInternetAccess- Enables or disables default internet access for the image builder.- Returns:
this
-
iamRoleArn
Sets the value ofCfnImageBuilderMixinProps.getIamRoleArn()- Parameters:
iamRoleArn- The ARN of the IAM role that is applied to the image builder. To assume a role, the image builder calls the Security Token ServiceAssumeRoleAPI 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 .
- Returns:
this
-
imageArn
Sets the value ofCfnImageBuilderMixinProps.getImageArn()- Parameters:
imageArn- The ARN of the public, private, or shared image to use.- Returns:
this
-
imageName
Sets the value ofCfnImageBuilderMixinProps.getImageName()- Parameters:
imageName- The name of the image used to create the image builder.- Returns:
this
-
instanceType
Sets the value ofCfnImageBuilderMixinProps.getInstanceType()- Parameters:
instanceType- 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
- Returns:
this
-
name
Sets the value ofCfnImageBuilderMixinProps.getName()- Parameters:
name- A unique name for the image builder.- Returns:
this
-
tags
Sets the value ofCfnImageBuilderMixinProps.getTags()- Parameters:
tags- An array of key-value pairs.- Returns:
this
-
vpcConfig
Sets the value ofCfnImageBuilderMixinProps.getVpcConfig()- Parameters:
vpcConfig- The VPC configuration for the image builder. You can specify only one subnet.- Returns:
this
-
vpcConfig
@Stability(Stable) public CfnImageBuilderMixinProps.Builder vpcConfig(CfnImageBuilderPropsMixin.VpcConfigProperty vpcConfig) Sets the value ofCfnImageBuilderMixinProps.getVpcConfig()- Parameters:
vpcConfig- The VPC configuration for the image builder. You can specify only one subnet.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnImageBuilderMixinProps>- Returns:
- a new instance of
CfnImageBuilderMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-