PlacementArgs

data class PlacementArgs(val excludeZones: Output<List<String>>? = null, val includeZones: Output<List<String>>? = null, val zonePlacementPolicy: Output<Either<String, ZonePlacementPolicyType>>? = null) : ConvertibleToJava<PlacementArgs>

Describes the user-defined constraints for virtual machine hardware placement.

Constructors

Link copied to clipboard
constructor(excludeZones: Output<List<String>>? = null, includeZones: Output<List<String>>? = null, zonePlacementPolicy: Output<Either<String, ZonePlacementPolicyType>>? = null)

Properties

Link copied to clipboard
val excludeZones: Output<List<String>>? = null

This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must not be present in the list of availability zones passed with 'excludeZones'. If 'excludeZones' is not provided, all availability zones in region will be considered for selection.

Link copied to clipboard
val includeZones: Output<List<String>>? = null

This property supplements the 'zonePlacementPolicy' property. If 'zonePlacementPolicy' is set to 'Any', availability zone selected by the system must be present in the list of availability zones passed with 'includeZones'. If 'includeZones' is not provided, all availability zones in region will be considered for selection.

Link copied to clipboard
val zonePlacementPolicy: Output<Either<String, ZonePlacementPolicyType>>? = null

Specifies the policy for virtual machine's placement in availability zone. Possible values are: Any - An availability zone will be automatically picked by system as part of virtual machine creation.

Functions

Link copied to clipboard
open override fun toJava(): PlacementArgs