Virtual Mfa Device
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Properties
Link copied to clipboard
The base32 seed defined as specified in RFC3548. The base_32_string_seed
is base64-encoded.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
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
The name of the virtual MFA device. Use with path to uniquely identify a virtual MFA device.