MfaTotpArgs

data class MfaTotpArgs(val algorithm: Output<String>? = null, val digits: Output<Int>? = null, val issuer: Output<String>? = null, val keySize: Output<Int>? = null, val maxValidationAttempts: Output<Int>? = null, val namespace: Output<String>? = null, val period: Output<Int>? = null, val qrSize: Output<Int>? = null, val skew: Output<Int>? = null) : ConvertibleToJava<MfaTotpArgs>

Resource for configuring the totp MFA method.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as vault from "@pulumi/vault";
const example = new vault.identity.MfaTotp("example", {issuer: "issuer1"});
import pulumi
import pulumi_vault as vault
example = vault.identity.MfaTotp("example", issuer="issuer1")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vault = Pulumi.Vault;
return await Deployment.RunAsync(() =>
{
var example = new Vault.Identity.MfaTotp("example", new()
{
Issuer = "issuer1",
});
});
package main
import (
"github.com/pulumi/pulumi-vault/sdk/v6/go/vault/identity"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := identity.NewMfaTotp(ctx, "example", &identity.MfaTotpArgs{
Issuer: pulumi.String("issuer1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vault.identity.MfaTotp;
import com.pulumi.vault.identity.MfaTotpArgs;
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 example = new MfaTotp("example", MfaTotpArgs.builder()
.issuer("issuer1")
.build());
}
}
resources:
example:
type: vault:identity:MfaTotp
properties:
issuer: issuer1

Import

Resource can be imported using its uuid field, e.g.

$ pulumi import vault:identity/mfaTotp:MfaTotp example 0d89c36a-4ff5-4d70-8749-bb6a5598aeec

Constructors

Link copied to clipboard
constructor(algorithm: Output<String>? = null, digits: Output<Int>? = null, issuer: Output<String>? = null, keySize: Output<Int>? = null, maxValidationAttempts: Output<Int>? = null, namespace: Output<String>? = null, period: Output<Int>? = null, qrSize: Output<Int>? = null, skew: Output<Int>? = null)

Properties

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

Specifies the hashing algorithm used to generate the TOTP code. Options include SHA1, SHA256, SHA512.

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

The number of digits in the generated TOTP token. This value can either be 6 or 8

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

The name of the key's issuing organization.

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

Specifies the size in bytes of the generated key.

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

The maximum number of consecutive failed validation attempts allowed.

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

Target namespace. (requires Enterprise)

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

The length of time in seconds used to generate a counter for the TOTP token calculation.

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

The pixel size of the generated square QR code.

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

The number of delay periods that are allowed when validating a TOTP token. This value can either be 0 or 1.

Functions

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