Synchronizes the specified MFA device with AWS servers.
Access
public
Parameters
Parameter |
Type |
Required |
Description |
---|---|---|---|
|
Required |
Name of the user whose MFA device you want to resynchronize. [Constraints: The value must be between 1 and 128 characters, and must match the following regular expression pattern: |
|
|
Required |
Serial number that uniquely identifies the MFA device. [Constraints: The value must be between 9 and 256 characters, and must match the following regular expression pattern: |
|
|
Required |
An authentication code emitted by the device. [Constraints: The value must be between 6 and 6 characters, and must match the following regular expression pattern: |
|
|
Required |
A subsequent authentication code emitted by the device. [Constraints: The value must be between 6 and 6 characters, and must match the following regular expression pattern: |
|
|
Optional |
An associative array of parameters that can have the following keys:
|
Returns
Type |
Description |
---|---|
A |
Examples
Resyncs a multi-factor authentication device.
Learn more about multi-factor authentication at aws.amazon.com/mfa.
// Instantiate the class $iam = new AmazonIAM(); $response = $iam->resync_mfa_device('johndoe2', CFCredentials::get('@default')->mfa_serial, '123456', '987654'); // Success? var_dump($response->isOK());Result:
bool(true)
Related Methods
Source
Method defined in services/iam.class.php | Toggle source view (10 lines) | View on GitHub