We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
Resource Type definition for AWS::IAM::VirtualMFADevice
Using getVirtualMfaDevice
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getVirtualMfaDevice(args: GetVirtualMfaDeviceArgs, opts?: InvokeOptions): Promise<GetVirtualMfaDeviceResult>
function getVirtualMfaDeviceOutput(args: GetVirtualMfaDeviceOutputArgs, opts?: InvokeOptions): Output<GetVirtualMfaDeviceResult>def get_virtual_mfa_device(serial_number: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetVirtualMfaDeviceResult
def get_virtual_mfa_device_output(serial_number: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetVirtualMfaDeviceResult]func LookupVirtualMfaDevice(ctx *Context, args *LookupVirtualMfaDeviceArgs, opts ...InvokeOption) (*LookupVirtualMfaDeviceResult, error)
func LookupVirtualMfaDeviceOutput(ctx *Context, args *LookupVirtualMfaDeviceOutputArgs, opts ...InvokeOption) LookupVirtualMfaDeviceResultOutput> Note: This function is named LookupVirtualMfaDevice in the Go SDK.
public static class GetVirtualMfaDevice
{
public static Task<GetVirtualMfaDeviceResult> InvokeAsync(GetVirtualMfaDeviceArgs args, InvokeOptions? opts = null)
public static Output<GetVirtualMfaDeviceResult> Invoke(GetVirtualMfaDeviceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetVirtualMfaDeviceResult> getVirtualMfaDevice(GetVirtualMfaDeviceArgs args, InvokeOptions options)
public static Output<GetVirtualMfaDeviceResult> getVirtualMfaDevice(GetVirtualMfaDeviceArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:iam:getVirtualMfaDevice
arguments:
# arguments dictionaryThe following arguments are supported:
- Serial
Number string - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource.
- Serial
Number string - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource.
- serial
Number String - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource.
- serial
Number string - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource.
- serial_
number str - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource.
- serial
Number String - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource.
getVirtualMfaDevice Result
The following output properties are available:
- Serial
Number string - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource. -
List<Pulumi.
Aws Native. Outputs. Tag> A list of tags that you want to attach to the new IAM virtual MFA device. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- Users List<string>
- The IAM user associated with this virtual MFA device.
- Serial
Number string - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource. - Tag
A list of tags that you want to attach to the new IAM virtual MFA device. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- Users []string
- The IAM user associated with this virtual MFA device.
- serial
Number String - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource. - List<Tag>
A list of tags that you want to attach to the new IAM virtual MFA device. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- users List<String>
- The IAM user associated with this virtual MFA device.
- serial
Number string - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource. - Tag[]
A list of tags that you want to attach to the new IAM virtual MFA device. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- users string[]
- The IAM user associated with this virtual MFA device.
- serial_
number str - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource. - Sequence[root_Tag]
A list of tags that you want to attach to the new IAM virtual MFA device. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- users Sequence[str]
- The IAM user associated with this virtual MFA device.
- serial
Number String - Returns the serial number for the specified
AWS::IAM::VirtualMFADeviceresource. - List<Property Map>
A list of tags that you want to attach to the new IAM virtual MFA device. Each tag consists of a key name and an associated value. For more information about tagging, see Tagging IAM resources in the IAM User Guide .
If any one of the tags is invalid or if you exceed the allowed maximum number of tags, then the entire request fails and the resource is not created.
- users List<String>
- The IAM user associated with this virtual MFA device.
Supporting Types
Tag
Package Details
- Repository
- AWS Native pulumi/pulumi-aws-native
- License
- Apache-2.0
We recommend new projects start with resources from the AWS provider.
published on Monday, Mar 9, 2026 by Pulumi
