AclAuthMethod

class AclAuthMethod : KotlinCustomResource

Manages an ACL Auth Method in Nomad.

Example Usage

Creating an ALC Auth Method:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nomad.AclAuthMethod;
import com.pulumi.nomad.AclAuthMethodArgs;
import com.pulumi.nomad.inputs.AclAuthMethodConfigArgs;
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 myNomadAclAuthMethod = new AclAuthMethod("myNomadAclAuthMethod", AclAuthMethodArgs.builder()
.type("OIDC")
.tokenLocality("global")
.maxTokenTtl("10m0s")
.default_(true)
.config(AclAuthMethodConfigArgs.builder()
.oidcDiscoveryUrl("https://uk.auth0.com/")
.oidcClientId("someclientid")
.oidcClientSecret("someclientsecret-t")
.boundAudiences("someclientid")
.allowedRedirectUris(
"http://localhost:4649/oidc/callback",
"http://localhost:4646/ui/settings/tokens")
.listClaimMappings(Map.of("http://nomad.internal/roles", "roles"))
.build())
.build());
}
}

Properties

Link copied to clipboard

Configuration specific to the auth method provider.

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

(bool: false) - Defines whether this ACL Auth Method is to be set as default.

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

(string: <required>) - Defines the maximum life of a token created by this method and is specified as a time duration such as "15h".

Link copied to clipboard
val name: Output<String>

(string: <required>) - The identifier of the ACL Auth Method.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val tokenLocality: Output<String>

(string: <required>) - Defines whether the ACL Auth Method creates a local or global token when performing SSO login. This field must be set to either local or global.

Link copied to clipboard
val type: Output<String>

(string: <required>) - ACL Auth Method SSO workflow type. Currently, the only supported type is OIDC.

Link copied to clipboard
val urn: Output<String>