// Lists the MFA devices for an IAM user. If the request includes a IAM user name,
// then this operation lists all the MFA devices associated with the specified
// user. If you do not specify a user name, IAM determines the user name implicitly
// based on the AWS access key ID signing the request for this API. You can
// paginate the results using the MaxItems and Marker parameters.
Lists the MFA devices for an IAM user. If the request includes a IAM user name,
then this operation lists all the MFA devices associated with the specified
user. If you do not specify a user name, IAM determines the user name implicitly
based on the AWS access key ID signing the request for this API. You can
paginate the results using the MaxItems and Marker parameters.
// Lists the MFA devices for an IAM user . If the request includes a IAM user name // then this operation lists all the MFA devices associated with the specified // user . If you do not specify a user name IAM determines the user name implicitly // based on the AWS access key ID signing the request for this API . You can // paginate the results using the MaxItems and Marker parameters .
func (c *Client) ListMFADevices(ctx context.Context, params *ListMFADevicesInput, optFns ...func(*Options)) (*ListMFADevicesOutput, error) {
	if params == nil {
		params = &ListMFADevicesInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "ListMFADevices", params, optFns, addOperationListMFADevicesMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*ListMFADevicesOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) ListMFADevices ( ctx context . Context , params * ListMFADevicesInput , optFns ... func ( * Options ) ) ( * ListMFADevicesOutput , error ) { if params == nil { params = & ListMFADevicesInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationListMFADevicesMiddlewares ) if err != nil { return nil , err } out := result . ( * ListMFADevicesOutput ) out . ResultMetadata = metadata return out , nil }
Lists the MFA devices for an IAM user.
Lists the MFA devices for an IAM user .