1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. iam
  5. getVirtualMfaDevice

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.iam.getVirtualMfaDevice

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 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>
Copy
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]
Copy
func LookupVirtualMfaDevice(ctx *Context, args *LookupVirtualMfaDeviceArgs, opts ...InvokeOption) (*LookupVirtualMfaDeviceResult, error)
func LookupVirtualMfaDeviceOutput(ctx *Context, args *LookupVirtualMfaDeviceOutputArgs, opts ...InvokeOption) LookupVirtualMfaDeviceResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetVirtualMfaDeviceResult> getVirtualMfaDevice(GetVirtualMfaDeviceArgs args, InvokeOptions options)
public static Output<GetVirtualMfaDeviceResult> getVirtualMfaDevice(GetVirtualMfaDeviceArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:iam:getVirtualMfaDevice
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

SerialNumber This property is required. string
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
SerialNumber This property is required. string
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
serialNumber This property is required. String
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
serialNumber This property is required. string
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
serial_number This property is required. str
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
serialNumber This property is required. String
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.

getVirtualMfaDevice Result

The following output properties are available:

SerialNumber string
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
Tags List<Pulumi.AwsNative.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.
SerialNumber string
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
Tags 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.
serialNumber String
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
tags 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.
serialNumber string
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
tags 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::VirtualMFADevice resource.
tags 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.
serialNumber String
Returns the serial number for the specified AWS::IAM::VirtualMFADevice resource.
tags 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

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the 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.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi