ServiceTaskSpec constructor
- required Input<
ServiceTaskSpecContainerSpec> containerSpec, - Input<
int?> ? forceUpdate, - Input<
ServiceTaskSpecLogDriver?> ? logDriver, - Input<
List< ? networksAdvanceds,ServiceTaskSpecNetworksAdvanced> ?> - Input<
ServiceTaskSpecPlacement?> ? placement, - Input<
ServiceTaskSpecResources?> ? resources, - Input<
ServiceTaskSpecRestartPolicy?> ? restartPolicy, - Input<
String?> ? runtime,
Creates a new ServiceTaskSpec.
containerSpec The spec for each container
forceUpdate A counter that triggers an update even if no relevant parameters have been changed. See the spec.
logDriver 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
networksAdvanceds The networks the container is attached to
placement The placement preferences
resources Resource requirements which apply to each individual container created as part of the service
restartPolicy Specification for the restart policy which applies to containers created as part of this service.
runtime Runtime is the type of runtime specified for the task executor. See the types.
Implementation
const ServiceTaskSpec({
required this.containerSpec,
this.forceUpdate,
this.logDriver,
this.networksAdvanceds,
this.placement,
this.resources,
this.restartPolicy,
this.runtime,
});