Class CfnInfrastructureConfigurationPropsMixin.PlacementProperty.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.imagebuilder.mixins.CfnInfrastructureConfigurationPropsMixin.PlacementProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnInfrastructureConfigurationPropsMixin.PlacementProperty>
- Enclosing interface:
CfnInfrastructureConfigurationPropsMixin.PlacementProperty
@Stability(Stable)
public static final class CfnInfrastructureConfigurationPropsMixin.PlacementProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnInfrastructureConfigurationPropsMixin.PlacementProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionavailabilityZone(String availabilityZone) build()Builds the configured instance.Sets the value ofCfnInfrastructureConfigurationPropsMixin.PlacementProperty.getHostId()hostResourceGroupArn(String hostResourceGroupArn) Sets the value ofCfnInfrastructureConfigurationPropsMixin.PlacementProperty.getTenancy()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
availabilityZone
@Stability(Stable) public CfnInfrastructureConfigurationPropsMixin.PlacementProperty.Builder availabilityZone(String availabilityZone) - Parameters:
availabilityZone- The Availability Zone where your build and test instances will launch.- Returns:
this
-
hostId
@Stability(Stable) public CfnInfrastructureConfigurationPropsMixin.PlacementProperty.Builder hostId(String hostId) Sets the value ofCfnInfrastructureConfigurationPropsMixin.PlacementProperty.getHostId()- Parameters:
hostId- The ID of the Dedicated Host on which build and test instances run. This only applies iftenancyishost. If you specify the host ID, you must not specify the resource group ARN. If you specify both, Image Builder returns an error.- Returns:
this
-
hostResourceGroupArn
@Stability(Stable) public CfnInfrastructureConfigurationPropsMixin.PlacementProperty.Builder hostResourceGroupArn(String hostResourceGroupArn) Sets the value ofCfnInfrastructureConfigurationPropsMixin.PlacementProperty.getHostResourceGroupArn()- Parameters:
hostResourceGroupArn- The Amazon Resource Name (ARN) of the host resource group in which to launch build and test instances. This only applies iftenancyishost. If you specify the resource group ARN, you must not specify the host ID. If you specify both, Image Builder returns an error.- Returns:
this
-
tenancy
@Stability(Stable) public CfnInfrastructureConfigurationPropsMixin.PlacementProperty.Builder tenancy(String tenancy) Sets the value ofCfnInfrastructureConfigurationPropsMixin.PlacementProperty.getTenancy()- Parameters:
tenancy- The tenancy of the instance. An instance with a tenancy ofdedicatedruns on single-tenant hardware. An instance with a tenancy ofhostruns on a Dedicated Host.If tenancy is set to
host, then you can optionally specify one target for placement – either host ID or host resource group ARN. If automatic placement is enabled for your host, and you don't specify any placement target, Amazon EC2 will try to find an available host for your build and test instances.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnInfrastructureConfigurationPropsMixin.PlacementProperty>- Returns:
- a new instance of
CfnInfrastructureConfigurationPropsMixin.PlacementProperty - Throws:
NullPointerException- if any required attribute was not provided
-