PluginArgs

data class PluginArgs(val alias: Output<String>? = null, val enableTimeout: Output<Int>? = null, val enabled: Output<Boolean>? = null, val envs: Output<List<String>>? = null, val forceDestroy: Output<Boolean>? = null, val forceDisable: Output<Boolean>? = null, val grantAllPermissions: Output<Boolean>? = null, val grantPermissions: Output<List<PluginGrantPermissionArgs>>? = null, val name: Output<String>? = null) : ConvertibleToJava<PluginArgs>

Manages the lifecycle of a Docker plugin.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.docker.Plugin;
import com.pulumi.docker.PluginArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var sample_volume_plugin = new Plugin("sample-volume-plugin", PluginArgs.builder()
.alias("sample-volume-plugin")
.enableTimeout(60)
.enabled(false)
.envs("DEBUG=1")
.forceDestroy(true)
.forceDisable(true)
.grantAllPermissions(true)
.build());
}
}

Import

#!/bin/bash

$ pulumi import docker:index/plugin:Plugin sample-volume-plugin "$(docker plugin inspect -f {{.ID}} tiborvass/sample-volume-plugin:latest)"

Constructors

Link copied to clipboard
constructor(alias: Output<String>? = null, enableTimeout: Output<Int>? = null, enabled: Output<Boolean>? = null, envs: Output<List<String>>? = null, forceDestroy: Output<Boolean>? = null, forceDisable: Output<Boolean>? = null, grantAllPermissions: Output<Boolean>? = null, grantPermissions: Output<List<PluginGrantPermissionArgs>>? = null, name: Output<String>? = null)

Properties

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

Docker Plugin alias

Link copied to clipboard
val enabled: Output<Boolean>? = null

If true the plugin is enabled. Defaults to true

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

HTTP client timeout to enable the plugin

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

The environment variables in the form of KEY=VALUE, e.g. DEBUG=0

Link copied to clipboard
val forceDestroy: Output<Boolean>? = null

If true, then the plugin is destroyed forcibly

Link copied to clipboard
val forceDisable: Output<Boolean>? = null

If true, then the plugin is disabled forcibly

Link copied to clipboard
val grantAllPermissions: Output<Boolean>? = null

If true, grant all permissions necessary to run the plugin

Link copied to clipboard

Grant specific permissions only

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

Docker Plugin name

Functions

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