{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iam/json-schema/amazon-iam-create-virtual-mfadevice-response-schema.json",
  "title": "CreateVirtualMFADeviceResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iam-virtual-mfa-device-api-openapi.yml#/components/schemas/CreateVirtualMFADeviceResponse",
  "type": "object",
  "properties": {
    "VirtualMFADevice": {
      "$ref": "#/$defs/VirtualMFADevice"
    }
  },
  "required": [
    "VirtualMFADevice"
  ],
  "$defs": {
    "AttachedPermissionsBoundary": {
      "type": "object",
      "properties": {
        "PermissionsBoundaryType": {
          "type": "string",
          "enum": [
            "PermissionsBoundaryPolicy"
          ],
          "description": "The permissions boundary usage type that indicates what type of IAM resource is used as the permissions boundary for an entity. This data type can only have a value of Policy."
        },
        "PermissionsBoundaryArn": {
          "type": "string",
          "description": "The ARN of the policy used to set the permissions boundary for the user or role."
        }
      }
    },
    "Tag": {
      "type": "object",
      "properties": {
        "Key": {
          "type": "string",
          "description": "The key name that can be used to look up or retrieve the associated value. For example, Department or Cost Center are common choices."
        },
        "Value": {
          "type": "string",
          "description": "The value associated with this tag. For example, tags with a key name of Department could have values such as Human Resources, Accounting, and Support. Tags with a key name of Cost Center might have values that consist of the number associated with the different cost centers in your company. Typically, many resources have tags with the same key name but with different values."
        }
      },
      "required": [
        "Key",
        "Value"
      ]
    },
    "User": {
      "type": "object",
      "properties": {
        "Path": {
          "type": "string",
          "description": "The path to the user. For more information about paths, see IAM identifiers in the IAM User Guide. The ARN of the policy used to set the permissions boundary for the user."
        },
        "UserName": {
          "type": "string",
          "description": "The friendly name identifying the user."
        },
        "UserId": {
          "type": "string",
          "description": "The stable and unique string identifying the user. For more information about IDs, see IAM identifiers in the IAM User Guide."
        },
        "Arn": {
          "type": "string",
          "description": "The Amazon Resource Name (ARN) that identifies the user. For more information about ARNs and how to use ARNs in policies, see IAM Identifiers in the IAM User Guide."
        },
        "CreateDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time, in ISO 8601 date-time format, when the user was created."
        },
        "PasswordLastUsed": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time, in ISO 8601 date-time format, when the user's password was last used to sign in to an Amazon Web Services website. For a list of Amazon Web Services websites that capture a user's last sign-in time, see the Credential reports topic in the IAM User Guide. If a password is used more than once in a five-minute span, only the first use is returned in this field. If the field is null (no value), then it indicates that they never signed in with a password. This can be because: The user never had a password. A password exists but has not been used since IAM started tracking this in"
        },
        "PermissionsBoundary": {
          "$ref": "#/$defs/AttachedPermissionsBoundary"
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "A list of tags that are associated with the user. For more information about tagging, see Tagging IAM resources in the IAM User Guide."
        }
      },
      "required": [
        "Path",
        "UserName",
        "UserId",
        "Arn",
        "CreateDate"
      ]
    },
    "VirtualMFADevice": {
      "type": "object",
      "properties": {
        "SerialNumber": {
          "type": "string",
          "description": "The serial number associated with VirtualMFADevice."
        },
        "Base32StringSeed": {
          "type": "string",
          "format": "byte",
          "description": "The base32 seed defined as specified in RFC3548. The Base32StringSeed is base32-encoded."
        },
        "QRCodePNG": {
          "type": "string",
          "format": "byte",
          "description": "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. The Base32String value is base64-encoded."
        },
        "User": {
          "$ref": "#/$defs/User"
        },
        "EnableDate": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time on which the virtual MFA device was enabled."
        },
        "Tags": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Tag"
          },
          "description": "A list of tags that are attached to the virtual MFA device. For more information about tagging, see Tagging IAM resources in the IAM User Guide."
        }
      },
      "required": [
        "SerialNumber"
      ]
    }
  }
}