ServiceArgs

data class ServiceArgs(val auth: Output<ServiceAuthArgs>? = null, val convergeConfig: Output<ServiceConvergeConfigArgs>? = null, val endpointSpec: Output<ServiceEndpointSpecArgs>? = null, val labels: Output<List<ServiceLabelArgs>>? = null, val mode: Output<ServiceModeArgs>? = null, val name: Output<String>? = null, val rollbackConfig: Output<ServiceRollbackConfigArgs>? = null, val taskSpec: Output<ServiceTaskSpecArgs>? = null, val updateConfig: Output<ServiceUpdateConfigArgs>? = null) : ConvertibleToJava<ServiceArgs>

Import

Example Assuming you created a service as follows #!/bin/bash docker service create --name foo -p 8080:80 nginx prints th ID 4pcphbxkfn2rffhbhe6czytgi you provide the definition for the resource as follows terraform resource "docker_service" "foo" {

name = "foo" task_spec { container_spec { image = "nginx" } } endpoint_spec { ports { target_port = "80" published_port = "8080" } } } then the import command is as follows #!/bin/bash

$ pulumi import docker:index/service:Service foo 4pcphbxkfn2rffhbhe6czytgi

Constructors

Link copied to clipboard
constructor(auth: Output<ServiceAuthArgs>? = null, convergeConfig: Output<ServiceConvergeConfigArgs>? = null, endpointSpec: Output<ServiceEndpointSpecArgs>? = null, labels: Output<List<ServiceLabelArgs>>? = null, mode: Output<ServiceModeArgs>? = null, name: Output<String>? = null, rollbackConfig: Output<ServiceRollbackConfigArgs>? = null, taskSpec: Output<ServiceTaskSpecArgs>? = null, updateConfig: Output<ServiceUpdateConfigArgs>? = null)

Properties

Link copied to clipboard
val auth: Output<ServiceAuthArgs>? = null

Configuration for the authentication for pulling the images of the service

Link copied to clipboard

A configuration to ensure that a service converges aka reaches the desired that of all task up and running

Link copied to clipboard

Properties that can be configured to access and load balance a service

Link copied to clipboard
val labels: Output<List<ServiceLabelArgs>>? = null

User-defined key/value metadata

Link copied to clipboard
val mode: Output<ServiceModeArgs>? = null

Scheduling mode for the service

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

Name of the service

Link copied to clipboard

Specification for the rollback strategy of the service

Link copied to clipboard
val taskSpec: Output<ServiceTaskSpecArgs>? = null

User modifiable task configuration

Link copied to clipboard

Specification for the update strategy of the service

Functions

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