AclToken

class AclToken : KotlinCustomResource

Example Usage

Creating a token with limited policies:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nomad.AclToken;
import com.pulumi.nomad.AclTokenArgs;
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 dakota = new AclToken("dakota", AclTokenArgs.builder()
.policies(
"dev",
"qa")
.type("client")
.build());
}
}

Properties

Link copied to clipboard
val accessorId: Output<String>

(string) - A non-sensitive identifier for this token that can be logged and shared safely without granting any access to the cluster.

Link copied to clipboard
val createTime: Output<String>

(string) - The timestamp the token was created.

Link copied to clipboard
val expirationTime: Output<String>

(string) - The timestamp after which the token is considered expired and eligible for destruction.

Link copied to clipboard
val expirationTtl: Output<String>?

(string: "") - Provides a TTL for the token in the form of a time duration such as "5m" or "1h".

Link copied to clipboard
val global: Output<Boolean>?

(bool: false) - Whether the token should be replicated to all regions, or if it will only be used in the region it was created in.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

(string: "") - A human-friendly name for this token.

Link copied to clipboard
val policies: Output<List<String>>?

(set: []) - A set of policy names to associate with this token. Must be set on client-type tokens, must not be set on management-type tokens. Policies do not need to exist before being used here.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val roles: Output<List<AclTokenRole>>?

(set: []) - The list of roles attached to the token. Each entry has name and id attributes. It may be used multiple times.

Link copied to clipboard
val secretId: Output<String>

(string) - The token value itself, which is presented for access to the cluster.

Link copied to clipboard
val type: Output<String>

(string: <required>) - The type of token this is. Use client for tokens that will have policies associated with them. Use management for tokens that can perform any action.

Link copied to clipboard
val urn: Output<String>