VirtualMfaDevice

class VirtualMfaDevice : KotlinCustomResource

Provides an IAM Virtual MFA Device.

Note: All attributes will be stored in the raw state as plain-text.

Example Usage

Using certs on file:

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iam.VirtualMfaDevice;
import com.pulumi.aws.iam.VirtualMfaDeviceArgs;
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 VirtualMfaDevice("example", VirtualMfaDeviceArgs.builder()
.virtualMfaDeviceName("example")
.build());
}
}

Import

IAM Virtual MFA Devices can be imported using the arn, e.g.,

$ pulumi import aws:iam/virtualMfaDevice:VirtualMfaDevice example arn:aws:iam::123456789012:mfa/example

Properties

Link copied to clipboard
val arn: Output<String>

The Amazon Resource Name (ARN) specifying the virtual mfa device.

Link copied to clipboard

The base32 seed defined as specified in RFC3548. The base_32_string_seed is base64-encoded.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val path: Output<String>?

The path for the virtual MFA device.

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

A QR code PNG image that encodes otpauth://totp/$virtualMFADeviceName@$AccountName?secret=$Base32String where $virtualMFADeviceName is one of the create call arguments. AccountName is the user name if set (otherwise, the account ID otherwise), and Base32String is the seed in base32 format.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Map of resource tags for the virtual mfa device. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard

The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.