ServiceTaskSpecArgs

data class ServiceTaskSpecArgs(val containerSpec: Output<ServiceTaskSpecContainerSpecArgs>, val forceUpdate: Output<Int>? = null, val logDriver: Output<ServiceTaskSpecLogDriverArgs>? = null, val networksAdvanceds: Output<List<ServiceTaskSpecNetworksAdvancedArgs>>? = null, val placement: Output<ServiceTaskSpecPlacementArgs>? = null, val resources: Output<ServiceTaskSpecResourcesArgs>? = null, val restartPolicy: Output<ServiceTaskSpecRestartPolicyArgs>? = null, val runtime: Output<String>? = null) : ConvertibleToJava<ServiceTaskSpecArgs>

Constructors

Link copied to clipboard
constructor(containerSpec: Output<ServiceTaskSpecContainerSpecArgs>, forceUpdate: Output<Int>? = null, logDriver: Output<ServiceTaskSpecLogDriverArgs>? = null, networksAdvanceds: Output<List<ServiceTaskSpecNetworksAdvancedArgs>>? = null, placement: Output<ServiceTaskSpecPlacementArgs>? = null, resources: Output<ServiceTaskSpecResourcesArgs>? = null, restartPolicy: Output<ServiceTaskSpecRestartPolicyArgs>? = null, runtime: Output<String>? = null)

Properties

Link copied to clipboard

The spec for each container

Link copied to clipboard
val forceUpdate: Output<Int>? = null

A counter that triggers an update even if no relevant parameters have been changed. See the spec.

Link copied to clipboard

Specifies the log driver to use for tasks created from this spec. If not present, the default one for the swarm will be used, finally falling back to the engine default if not specified

Link copied to clipboard

The networks the container is attached to

Link copied to clipboard

The placement preferences

Link copied to clipboard

Resource requirements which apply to each individual container created as part of the service

Link copied to clipboard

Specification for the restart policy which applies to containers created as part of this service.

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

Runtime is the type of runtime specified for the task executor. See the types.

Functions

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